Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
[gnulib.git] / ChangeLog
blob805927af03945b3a6fd9fca3370bbe7aab43a8e3
1 2019-12-04  Bruno Haible  <bruno@clisp.org>
3         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
4         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
5         _GL_CXXALIASWARN invocation on non-glibc systems.
6         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
7         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
8         iswctype, towlower, towupper): Likewise.
10 2019-12-03  Bruno Haible  <bruno@clisp.org>
12         Avoid hassles caused by [[noreturn]] in C++.
13         Reported by Christian Biesinger <cbiesinger@google.com> in
14         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
15         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
16         * lib/_Noreturn.h: Likewise.
18 2019-12-02  Bruno Haible  <bruno@clisp.org>
20         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
21         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
22         LIBMULTITHREAD.
23         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
24         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
25         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
26         gl_THREADLIB.
27         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
29 2019-12-02  Bruno Haible  <bruno@clisp.org>
31         Fix some more link errors with --enable-threads=isoc.
32         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
33         * modules/pthread-rwlock (Depends-on): Likewise.
35 2019-12-02  Bruno Haible  <bruno@clisp.org>
37         Fix link errors with --enable-threads=posix on AIX.
38         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
39         program with $(LIBTHREAD).
40         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
41         program with $(LIBTHREAD).
43 2019-12-02  Bruno Haible  <bruno@clisp.org>
45         Fix link errors with --enable-threads=posix on AIX.
46         * modules/mbrtowc (Link): New section.
47         * modules/acl (Link): Likewise.
48         * modules/argmatch (Link): Likewise.
49         * modules/backup-rename (Link): Likewise.
50         * modules/backupfile (Link): Likewise.
51         * modules/closein (Link): Likewise.
52         * modules/closeout (Link): Likewise.
53         * modules/copy-file (Link): Likewise.
54         * modules/csharpcomp (Link): Likewise.
55         * modules/csharpexec (Link): Likewise.
56         * modules/dfa (Link): Likewise.
57         * modules/exclude (Link): Likewise.
58         * modules/fnmatch (Link): Likewise.
59         * modules/fnmatch-gnu (Link): Likewise.
60         * modules/fnmatch-posix (Link): Likewise.
61         * modules/glob (Link): Likewise.
62         * modules/human (Link): Likewise.
63         * modules/javacomp (Link): Likewise.
64         * modules/javaexec (Link): Likewise.
65         * modules/javaversion (Link): Likewise.
66         * modules/mbfile (Link): Likewise.
67         * modules/mbiter (Link): Likewise.
68         * modules/mbmemcasecmp (Link): Likewise.
69         * modules/mbmemcasecoll (Link): Likewise.
70         * modules/mbrlen (Link): Likewise.
71         * modules/mbscasecmp (Link): Likewise.
72         * modules/mbscasestr (Link): Likewise.
73         * modules/mbschr (Link): Likewise.
74         * modules/mbscspn (Link): Likewise.
75         * modules/mbsinit (Link): Likewise.
76         * modules/mbslen (Link): Likewise.
77         * modules/mbsncasecmp (Link): Likewise.
78         * modules/mbsnlen (Link): Likewise.
79         * modules/mbsnrtowcs (Link): Likewise.
80         * modules/mbspbrk (Link): Likewise.
81         * modules/mbspcasecmp (Link): Likewise.
82         * modules/mbsrchr (Link): Likewise.
83         * modules/mbsrtowcs (Link): Likewise.
84         * modules/mbssep (Link): Likewise.
85         * modules/mbsspn (Link): Likewise.
86         * modules/mbsstr (Link): Likewise.
87         * modules/mbstok_r (Link): Likewise.
88         * modules/mbswidth (Link): Likewise.
89         * modules/mbuiter (Link): Likewise.
90         * modules/mkdir-p (Link): Likewise.
91         * modules/propername (Link): Likewise.
92         * modules/quote (Link): Likewise.
93         * modules/quotearg (Link): Likewise.
94         * modules/quotearg-simple (Link): Likewise.
95         * modules/regex-quote (Link): Likewise.
96         * modules/rpmatch (Link): Likewise.
97         * modules/sh-quote (Link): Likewise.
98         * modules/system-quote (Link): Likewise.
99         * modules/trim (Link): Likewise.
100         * modules/unistdio/ulc-asnprintf (Link): Likewise.
101         * modules/unistdio/ulc-fprintf (Link): Likewise.
102         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
103         * modules/unistdio/ulc-vasprintf (Link): Likewise.
104         * modules/unistdio/ulc-vfprintf (Link): Likewise.
105         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
106         * modules/unistdio/ulc-vsprintf (Link): Likewise.
107         * modules/xfreopen (Link): Likewise.
108         * modules/xmemcoll (Link): Likewise.
109         * modules/yesno (Link): Likewise.
110         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
111         * modules/argmatch-tests (Makefile.am): Likewise.
112         * modules/closein-tests (Makefile.am): Likewise.
113         * modules/copy-file-tests (Makefile.am): Likewise.
114         * modules/dfa-tests (Makefile.am): Likewise.
115         * modules/fnmatch-tests (Makefile.am): Likewise.
116         * modules/glob-tests (Makefile.am): Likewise.
117         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
118         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
119         * modules/mbrtowc-tests (Makefile.am): Likewise.
120         * modules/mbscasecmp-tests (Makefile.am): Likewise.
121         * modules/mbscasestr-tests (Makefile.am): Likewise.
122         * modules/mbschr-tests (Makefile.am): Likewise.
123         * modules/mbscspn-tests (Makefile.am): Likewise.
124         * modules/mbsinit-tests (Makefile.am): Likewise.
125         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
126         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
127         * modules/mbspbrk-tests (Makefile.am): Likewise.
128         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
129         * modules/mbsrchr-tests (Makefile.am): Likewise.
130         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
131         * modules/mbsspn-tests (Makefile.am): Likewise.
132         * modules/mbsstr-tests (Makefile.am): Likewise.
133         * modules/quotearg-tests (Makefile.am): Likewise.
134         * modules/quotearg-simple-tests (Makefile.am): Likewise.
135         * modules/readtokens-tests (Makefile.am): Likewise.
136         * modules/regex-quote-tests (Makefile.am): Likewise.
137         * modules/sh-quote-tests (Makefile.am): Likewise.
138         * modules/system-quote-tests (Makefile.am): Likewise.
139         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
140         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
141         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
142         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
143         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
144         * modules/yesno-tests (Makefile.am): Likewise.
146 2019-12-02  Bruno Haible  <bruno@clisp.org>
148         Simplify link sections.
149         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
150         * modules/lock (Link): Likewise.
151         * modules/cond (Link): Likewise.
152         * modules/tls (Link): Likewise.
153         * modules/yield (Link): Likewise.
154         * modules/regex (Link): Likewise.
155         * modules/localename (Link): Likewise.
156         * modules/unicase/locale-language (Link): Likewise.
157         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
159 2019-12-02  Bruno Haible  <bruno@clisp.org>
161         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
162         * tests/test-thread_self.c (main): Disable test on AIX.
164 2019-12-01  Bruno Haible  <bruno@clisp.org>
166         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
167         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
168         gl_THREADLIB_EARLY_BODY.
169         (gl_THREADLIB_EARLY_BODY): Invoke it.
170         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
171         (gl_THREADLIB_BODY): Invoke it.
172         (gl_PTHREADLIB): New macro.
173         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
174         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
175         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
176         * modules/pthread-h (Files): Add threadlib.m4.
177         (Depends-on): Remove threadlib.
178         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
179         and _THREAD_SAFE here.
180         (Link): Use LIBPTHREAD, not LIBTHREAD.
181         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
182         LIBMULTITHREAD.
183         * modules/pthread-once (Link): Likewise.
184         * modules/pthread-mutex (Link): Likewise.
185         * modules/pthread-rwlock (Link): Likewise.
186         * modules/pthread-cond (Link): Likewise.
187         * modules/pthread-tss (Link): Likewise.
188         * modules/pthread-spin (Link): Likewise.
189         * modules/pthread (Link): Likewise.
190         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
191         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
192         * modules/pthread-once-tests (test_pthread_once1_LDADD,
193         test_pthread_once2_LDADD): Likewise.
194         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
195         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
196         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
197         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
199 2019-12-01  Bruno Haible  <bruno@clisp.org>
201         cond: State linking requirements.
202         * modules/cond (Link): New section.
204 2019-12-01  Bruno Haible  <bruno@clisp.org>
206         threadlib: Remove unnecessary file (left over from 2019-07-06).
207         * modules/threadlib (Files): Remove config.rpath.
209 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
211         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
212         Reported by Dagobert Michelsen <dam@opencsw.org> in
213         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
214         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
215         list of strings instead of one string.
216         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
217         * pygnulib/GLImport.py (execute): Likewise.
219 2019-11-27  Bruno Haible  <bruno@clisp.org>
221         openpty, forkpty: Fix build error on Solaris 11.4.
222         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
223         also in <termios.h>.
224         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
225         of the function also in <termios.h>.
226         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
227         * doc/glibc-functions/forkpty.texi: Likewise.
229 2019-11-27  Bruno Haible  <bruno@clisp.org>
231         New options --enable-threads=isoc and --enable-threads=isoc+posix.
232         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
233         --enable-threads=isoc and --enable-threads=isoc+posix.
234         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
235         When both the ISO C and the POSIX threads API are available, choose
236         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
237         --enable-threads=isoc+posix was specified. When only the ISO C threads
238         API is available and --enable-threads=iso was specified, choose
239         USE_ISOC_THREADS.
240         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
241         USE_ISOC_AND_POSIX_THREADS.
242         * lib/glthread/lock.c: Likewise.
243         * lib/glthread/cond.h: Likewise.
244         * lib/glthread/cond.c: Likewise.
245         * lib/glthread/tls.h: Likewise.
246         * lib/glthread/tls.c: Likewise.
247         * lib/glthread/yield.h: Likewise.
248         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
249         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
250         * lib/glthread/thread.c: Likewise.
251         * lib/glthread/threadlib.c: Likewise.
252         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
253         USE_ISOC_AND_POSIX_THREADS.
254         * tests/test-cond.c: Consider USE_ISOC_THREADS and
255         USE_ISOC_AND_POSIX_THREADS.
256         * tests/test-tls.c: Likewise.
257         * tests/test-thread_create.c (main): Likewise.
258         * tests/test-pthread-cond.c: Likewise.
259         * tests/test-pthread-mutex.c: Likewise.
260         * tests/test-pthread-once2.c: Likewise.
261         * tests/test-pthread-rwlock.c: Likewise.
262         * tests/test-pthread-tss.c: Likewise.
263         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
264         USE_POSIX_THREADS.
266 2019-11-24  Bruno Haible  <bruno@clisp.org>
268         mbrtowc: Modernize autoconf test.
269         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
270         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
271         try a UTF-8 locale.
272         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
274 2019-11-24  Bruno Haible  <bruno@clisp.org>
276         Fix errors in C++ mode on mingw.
277         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
278         instead of _GL_CXXALIAS_SYS.
279         * lib/signal.in.h (pthread_sigmask): Likewise.
280         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
281         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
282         Likewise.
283         * lib/wchar.in.h (btowc): Likewise.
285 2019-11-24  Bruno Haible  <bruno@clisp.org>
287         sys_time: Fix errors in C++ mode on mingw.
288         * lib/sys_time.in.h (timeval): Restore the redirection
289         '#define timeval rpl_timeval', for when the symbol timeval is being used
290         outside the 'gnulib' namespace.
291         * lib/sys_select.in.h (select): In C++, write 'timeval', not
292         'struct timeval'.
294 2019-11-24  Bruno Haible  <bruno@clisp.org>
296         iswctype: Fix errors in C++ mode on mingw.
297         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
298         is 1.
299         * lib/iswctype.c (iswctype): Add another implementation, for the
300         GNULIB_defined_wint_t case.
301         * modules/iswctype (configure.ac): Compile iswctype.c also if
302         GNULIB_OVERRIDES_WINT_T is 1.
304 2019-11-24  Bruno Haible  <bruno@clisp.org>
306         windows-timedmutex: Fix errors in C++ mode on mingw.
307         * lib/windows-timedmutex.h: Add closing brace.
309 2019-11-24  Bruno Haible  <bruno@clisp.org>
311         Fix errors in C++ mode on Cygwin.
312         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
313         _GL_CXXALIAS_SYS.
315 2019-11-24  Bruno Haible  <bruno@clisp.org>
317         time_r: Fix for mingw (regression from 2019-11-16).
318         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
319         AC_LINK_IFELSE test only if the function does not appear to exist.
321 2019-11-24  Bruno Haible  <bruno@clisp.org>
323         wcstok: Add tests.
324         * tests/test-wcstok.c: New file.
325         * modules/wcstok-tests: New file.
327 2019-11-24  Bruno Haible  <bruno@clisp.org>
329         wcstok: Work around wrong signature on native Windows.
330         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
331         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
332         REPLACE_WCSTOK.
333         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
334         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
335         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
336         * doc/posix-functions/wcstok.texi: Mention the problem.
338 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
340         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
341         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
342         remove workaround for GCC bug 91450 as the bug should be fixed
343         there too.
345 2019-11-21  Bruno Haible  <bruno@clisp.org>
347         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
348         Reported by Christian Biesinger <cbiesinger@google.com> in
349         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
350         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
351         non-glibc systems.
352         * lib/locale.in.h (localeconv, setlocale): Likewise.
353         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
354         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
355         rint, round, trunc): Likewise.
356         * lib/monetary.in.h (strfmon_l): Likewise.
357         * lib/pthread.in.h (pthread_mutexattr_getrobust,
358         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
359         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
360         pthread_spin_destroy): Likewise.
361         * lib/signal.in.h (raise, signal): Likewise.
362         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
363         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
364         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
365         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
366         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
367         Likewise.
368         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
369         Likewise.
370         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
371         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
372         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
373         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
374         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
375         wcsftime): Likewise.
376         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
378 2019-11-21  Bruno Haible  <bruno@clisp.org>
380         Fix various errors in _GL_CXXALIAS_SYS invocations.
381         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
382         _GL_CXXALIAS_SYS.
383         * lib/pthread.in.h (pthread_mutexattr_gettype,
384         pthread_mutexattr_getrobust): Likewise.
385         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
386         * lib/sys_socket.in.h (recv, send): Likewise.
387         * lib/unistd.in.h (getdtablesize): Likewise.
388         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
389         'struct timeval'.
391 2019-11-21  Bruno Haible  <bruno@clisp.org>
393         math tests: Update after 2019-08-28 change.
394         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
395         return type of 'bool', not 'int'.
397 2019-11-21  Bruno Haible  <bruno@clisp.org>
399         pthread-spin: Fix errors in C++ mode.
400         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
401         functions as nonexistent when <pthread.h> exists but does not define
402         the pthread_spinlock_t type.
404 2019-11-21  Bruno Haible  <bruno@clisp.org>
406         pthread-mutex: Fix errors in C++ mode.
407         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
408         pthread_mutexattr_getrobust exists. If not, define
409         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
410         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
411         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
412         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
413         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
414         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
415         definition.
417 2019-11-19  Bruno Haible  <bruno@clisp.org>
419         threads-h tests: Fix typo.
420         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
422 2019-11-19  Bruno Haible  <bruno@clisp.org>
424         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
425         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
426         to 'const pthread_attr_t *'.
427         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
428         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
430 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
432         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
433         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
434         work around GCC bug 91450 as the bug should be fixed there.
436 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
438         glob: get closer to glibc glob.c
439         Omit differences from glibc when the differences don’t matter.
440         * lib/glob.c [_LIBC]: Include shlib-compat.h.
441         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
442         (glob_lstat): New function.
443         (glob_in_dir): Use it.
444         (GLOB_ATTRIBUTE): Define to empty if not already defined.
445         Use changed.
447 2019-11-18  Bruno Haible  <bruno@clisp.org>
449         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
450         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
451         UINTPTR_MAX): Consider _WIN64.
452         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
453         a pointer.
455 2019-11-18  Bruno Haible  <bruno@clisp.org>
457         stdint: Fix value of WINT_MAX when we override wint_t.
458         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
459         when GNULIB_OVERRIDES_WINT_T is 1.
461 2019-11-18  Bruno Haible  <bruno@clisp.org>
463         vcs-to-changelog: New module.
464         * modules/vcs-to-changelog: New file.
465         * MODULES.html.sh (func_all_modules): Add it.
467 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
469         vcs-to-changelog: New script to generate ChangeLog-like output.
470         Discussion:
471         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
472         * build-aux/vcs_to_changelog.py: New file.
473         * build-aux/vcstocl/frontend_c.py: New file.
474         * build-aux/vcstocl/misc_util.py: New file.
475         * build-aux/vcstocl/vcs_git.py: New file.
477 2019-11-18  Bruno Haible  <bruno@clisp.org>
479         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
480         Reported by Keith Marshall <keith@users.osdn.me> in
481         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
482         and <https://osdn.net/projects/mingw/ticket/39677>.
483         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
484         already been defined by mingw's <crtdefs.h>.
486 2019-11-18  Bruno Haible  <bruno@clisp.org>
488         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
489         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
490         conditionally enabled.
492 2019-11-18  Bruno Haible  <bruno@clisp.org>
494         gc: Mirror libgcrypt.m4 from libgcrypt.
495         * config/srclistvars.sh (LIBGCRYPT): New variable.
496         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
498 2019-11-17  Bruno Haible  <bruno@clisp.org>
500         locale, localename: Improve z/OS support.
501         Reported by Daniel Richard G. in
502         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
503         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
504         gl_LOCALE_H.
505         (gl_LOCALE_H): Require it.
506         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
507         defined, don't even check for newlocale, duplocale, freelocale.
508         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
509         locale_t is not defined.
511 2019-11-17  Bruno Haible  <bruno@clisp.org>
513         havelib: Make libdirstems processing more flexible.
514         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
515         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
516         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
517         patch from 2017-02-19).
518         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
519         libdirs, even when the first one exists as a directory.
521 2019-11-17  Bruno Haible  <bruno@clisp.org>
523         havelib: Match the bitness when searching for libraries.
524         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
525         acl_is_expected_elfclass.
526         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
527         file exists, in ELF, also test whether it has the ELF class that
528         corresponds to the host's bitness.
530 2019-11-17  Bruno Haible  <bruno@clisp.org>
532         host-cpu-c-abi: Add support for unknown CPUs.
533         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
534         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
535         32-bit or 64-bit.
537 2019-11-17  Bruno Haible  <bruno@clisp.org>
539         havelib: Remove redundant code.
540         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
541         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
543 2019-11-17  Bruno Haible  <bruno@clisp.org>
545         havelib: Fix a bug in dependency processing.
546         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
547         of .la files, don't overwrite the value of additional_libdir for the
548         next rounds.
550 2019-11-16  Bruno Haible  <bruno@clisp.org>
552         wctype-h: When overriding wint_t, override also the related functions.
553         Reported by Christian Biesinger <cbiesinger@google.com> in
554         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
555         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
556         REPLACE_ISWCNTRL to 1.
557         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
558         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
559         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
560         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
561         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
562         on mingw.
563         * doc/posix-headers/wctype.texi: Likewise.
565 2019-11-16  Bruno Haible  <bruno@clisp.org>
567         time_r: Fix for mingw.
568         Reported by Christian Biesinger <cbiesinger@google.com> in
569         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
570         * lib/time.in.h: On mingw, include <unistd.h>.
571         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
572         <time.h>. Test for localtime_r in a way that works when it is defined
573         as an inline function.
575 2019-11-13  Bruno Haible  <bruno@clisp.org>
577         havelib: Revert last change.
578         * build-aux/config.rpath: Revert last change. We can add msys2 support
579         when it has been added to libtool.m4 upstream.
581 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
583         config: add msys support
584         Requested by Arnold Robbins in:
585         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
586         He also requested a change to config.guess, which I’ll forward
587         upstream.
588         * build-aux/ar-lib (func_file_conv):
589         * build-aux/compile (func_file_conv):
590         * build-aux/config.rpath (wl, with_gnu_ld)
591         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
592         Treat msys like cygwin.
594 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
596         regex: now back in sync with glibc
597         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
598         regexec.c got merged into glibc and are now copies again.
600 2019-10-27  Bruno Haible  <bruno@clisp.org>
602         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
603         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
604         statement.
605         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
606         32-bit CPUs.
608 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
610         timespec-add, timespec-sub: simplify
611         * lib/timespec-add.c (timespec_add):
612         * lib/timespec-sub.c (timespec_sub):
613         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
614         work on unsigned integers.
616 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
618         nstrftime: speed up integer overflow checking
619         * lib/nstrftime.c: Include intprops.h.
620         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
621         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
622         instead of doing it by hand.
623         * modules/nstrftime (Depends-on): Add intprops.
625         Port better to GCC under macOS
626         Work around macOS header that has ‘#define __has_builtin(x) 0’
627         when compiled by GCC.  Apple really, really doesn’t want you to
628         use GCC, apparently.  Rroblem reported by Akim Demaille in:
629         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
630         The fix is to not trust __has_builtin when being compiled by
631         recent-enough GCC.
632         * lib/intprops.h (__has_builtin)
633         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
634         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
635         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
636         Remove.  All uses removed.
637         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
638         directly, if defined and if not newer GCC.
639         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
640         New macro, that use __has_builtin directly, if defined and if
641         not newer GCC.
642         (assume): Use them.
644 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
646         maintainer-makefile: update rule for argmatch.
647         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
649 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
651         bitset: let freeing functions accept NULL.
652         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
653         given NULL.
654         * lib/bitset.h: Document that.
655         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
657 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
659         inttypes: use more-robust test for int range
660         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
661         Problem reported by Dagobert Michelsen in:
662         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
663         * lib/inttypes.in.h: Rely only on limits.h when checking
664         int range.
666 2019-10-15  Bruno Haible  <bruno@clisp.org>
668         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
669         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
670         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
671         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
672         term_ostream_set_hyperlink): New functions.
673         (term_styled_ostream_get_hyperlink_ref,
674         term_styled_ostream_get_hyperlink_id,
675         term_styled_ostream_set_hyperlink): New function aliases.
677 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
679         update-copyright: use en dashes in .texi ranges
680         * build-aux/update-copyright: Match year ranges like "1998--2019",
681         which are used in the Autoconf manual.  Also, update ranges in
682         .tex, .texi, and .texinfo files to use en dashes instead of
683         hyphens.
685 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
687         * config/srclist.txt: Remove posix/regex_internal.c for now.
689 2019-10-13  Bruno Haible  <bruno@clisp.org>
691         git-version-gen: Allow 'snapshot' as .tarball-version contents.
692         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
693         contents to the empty string.
695 2019-10-12  Bruno Haible  <bruno@clisp.org>
697         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
698         * tests/test-intprops.c (main): Disable two more tests when using
699         HP-UX cc.
701 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
703         Simplify and regularize regex use of ‘assert’
704         Also, tell GCC about the asserts even when compiling without
705         debugging, to give it further optimization opportunities.
706         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
707         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
708         (parse_expression, parse_bracket_exp):
709         * lib/regex_internal.c (build_wcs_buffer)
710         (build_wcs_upper_buffer, re_string_reconstruct)
711         (re_string_context_at):
712         * lib/regexec.c (re_search_stub, re_copy_regs)
713         (re_search_internal, prune_impossible_nodes, check_matching)
714         (check_halt_state_context, set_regs, sift_states_backward)
715         (build_sifted_states, transit_state_mb, transit_state_bkref)
716         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
717         (match_ctx_add_subtop):
718         Use it instead of plain ‘assert’.
720 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
722         regex: omit debug assignment when not debugging
723         * lib/regexec.c (re_search_internal) [!DEBUG]:
724         Remove unnecessary assignment.
726         regex: tell compiler there’s at most 256 arcs out
727         Partly this is to help the reader (and maybe help GCC);
728         partly this is to pacify Coverity.
729         * lib/regex_internal.h: Include verify.h.
730         * lib/regexec.c (group_nodes_into_DFAstates):
731         Tell the compiler that ndests cannot exceed SBC_MAX.
732         * modules/regex (Depends-on): Add ‘verify’.
734         regex: simplify by assuming C99
735         * config/srclist.txt: Comment out regex_internal.h and regexec.c
736         temporarily.
737         * lib/regex_internal.h (lock_define, re_match_context_t):
738         Simplify by assuming C99 macros and const.
739         * lib/regexec.c (re_search_internal): Simplify by assuming C99
740         initializers.  Remove unnecessary assignment, as mctx is now
741         safely initialized earlier.
743         regex: avoid copying of uninitialized storage
744         * config/srclist.txt: Comment out regcomp.c temporarily.
745         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
746         Initialize even when not checking for lint, as the behavior is
747         arguably undefined otherwise and Coverity warns about it.
749 2019-10-06  Bruno Haible  <bruno@clisp.org>
751         access tests: Fix test failure when run as root.
752         * tests/test-access.c: Include root-uid.h.
753         (geteuid): Define fallback.
754         (main): Don't expect that writing to a read-only file would fail when
755         running as root. Also, remove the created files at the end.
756         * modules/access-tests (Depends-on): Add root-uid.
757         (configure.ac): Test whether geteuid exists.
759 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
761         users.txt: add GNU nano
762         Nano has been making use of gnulib since March 2017, version 2.8.0.
764 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
766         bootstrap: simplify debugging of wget failures
767         Problem reported by Tim Rühsen in:
768         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
769         * build-aux/bootstrap (po_download_command_format):
770         Invoke wget with -nv instead of -q, to make debugging easier.
772 2019-09-29  Bruno Haible  <bruno@clisp.org>
774         avltree-list: Fix compilation warning (introduced on 2014-09-16).
775         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
776         'const' attribute.
778 2019-09-29  Bruno Haible  <bruno@clisp.org>
780         fbufmode: Fix compilation error on glibc >= 2.28 systems.
781         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
783 2019-09-28  Bruno Haible  <bruno@clisp.org>
785         Update comments that refer to POSIX.
786         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
787         sentence about trailing slashes.
788         * lib/fflush.c: Clarify the reasoning.
789         * tests/test-fflush2.c: Cite the relevant sentence.
791 2019-09-28  Bruno Haible  <bruno@clisp.org>
793         access: Document limitations on Windows.
794         Suggested by Zaretskii <eliz@gnu.org>.
795         * doc/posix-functions/access.texi: Mention two limitations on Windows.
797 2019-09-28  Bruno Haible  <bruno@clisp.org>
799         findprog-in: Fix comment.
800         Reported by Eli Zaretskii <eliz@gnu.org>.
801         * lib/findprog.h (find_in_given_path): Extend description of EACCES
802         condition.
803         * lib/stat.c (rpl_stat): Fix typo in comment.
804         * lib/utime.c (_gl_utimens_windows): Likewise.
806 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
808         Update URLs and associated text
809         (Thanks to Bruno Haible for proofreading this patch.)
810         Prefer https: to http: in URLs where either will do, for the usual
811         security reasons.  I also updated broken and/or moved URLs
812         discovered during the process. In a few places I had to resort to
813         archive.org, since I didn't find the originals elsewhere.
815 2019-09-15  Paul Smith  <psmith@gnu.org>
816             Bruno Haible  <bruno@clisp.org>
818         findprog-in: Set errno when the search fails.
819         * lib/findprog-in.c: Include <errno.h>.
820         (find_in_given_path): Set errno before returning NULL.
821         * lib/findprog.h (find_in_given_path): Update comment accordingly.
822         Define the term "slash".
824 2019-09-15  Bruno Haible  <bruno@clisp.org>
826         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
827         * modules/findprog (Depends-on): Add access.
828         * modules/findprog-lgpl (Depends-on): Likewise.
829         * modules/findprog-in (Depends-on): Likewise.
831 2019-09-15  Bruno Haible  <bruno@clisp.org>
833         access: Add tests.
834         * tests/test-access.c: New file.
835         * modules/access-tests: New file.
837         access: New module.
838         * lib/unistd.in.h (access): New declaration.
839         * lib/access.c: New file.
840         * m4/access.m4: New file.
841         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
842         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
843         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
844         REPLACE_ACCESS.
845         * modules/access: New file.
846         * tests/test-unistd-c++.cc (access): Check signature.
847         * doc/posix-functions/access.texi: Mention the new module.
849 2019-09-15  Bruno Haible  <bruno@clisp.org>
851         fcntl-h: Fix compilation error of creat.c on MSVC.
852         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
853         defined.
855 2019-09-15  Bruno Haible  <bruno@clisp.org>
857         creat: Add tests.
858         * tests/test-creat.c: New file, based on tests/test-open.h.
859         * modules/creat-tests: New file.
861         creat: New module.
862         * lib/fcntl.in.h (creat): New declaration.
863         * lib/creat.c: New file, based on lib/open.c.
864         * m4/creat.m4: New file.
865         * m4/open-slash.m4: New file, extracted from m4/open.m4.
866         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
867         Invoke gl_OPEN_TRAILING_SLASH_BUG.
868         * modules/open (Files): Add m4/open-slash.m4.
869         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
870         REPLACE_CREAT.
871         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
872         * modules/creat: New file.
873         * tests/test-fcntl-h-c++.cc (creat): Check signature.
874         * doc/posix-functions/creat.texi: Mention the new module.
876 2019-09-15  Bruno Haible  <bruno@clisp.org>
878         open tests: Enhance test.
879         * tests/test-open.h (test_open): Test the creation of an executable
880         regular file. Also improve initial cleanup.
882 2019-09-15  Bruno Haible  <bruno@clisp.org>
884         intprops tests: Avoid build failure with HP-UX cc.
885         * tests/test-intprops.c: Disable a check that makes HP cc choke with
886         "error 4018: Macro param too large after substitution - use -H option.".
888 2019-09-14  Bruno Haible  <bruno@clisp.org>
890         Make autoconf tests work with -Werror=implicit-function-declaration.
891         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
892         towupper() declaration.
893         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
894         declaration.
896 2019-09-14  Bruno Haible  <bruno@clisp.org>
898         findprog-in: Better mimic the system on native Windows.
899         Reported by Paul Smith <psmith@gnu.org>.
900         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
901         non-empty suffixes when the file name already contains a '.'.
903 2019-09-10  Bruno Haible  <bruno@clisp.org>
905         wctob: Fix autoconf test.
906         Based on patch by Florian Weimer <fweimer@redhat.com>.
907         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
909 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
911         xhash: provide hash_xinitialize.
912         Suggested by Egor Pugin <egor.pugin@gmail.com>
913         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
914         * modules/xhash, lib/xhash.c: New.
915         * lib/hash.h (hash_xinitialize): New.
917 2019-09-09  Bruno Haible  <bruno@clisp.org>
919         findprog-in: Make exec optimization optional.
920         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
921         (find_in_given_path): Add optimize_for_exec parameter.
922         * lib/findprog-in.c (find_in_given_path): Likewise.
924 2019-09-08  Bruno Haible  <bruno@clisp.org>
926         Add option to assume the best, not the worst, when cross-compiling.
927         Suggested by Jonas Termansen <sortie@maxsi.org>.
928         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
929         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
930         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
931         lt_cv_sys_argz_works.
932         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
933         ac_cv_func_calloc_0_nonnull.
934         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
935         --enable-cross-guesses for gl_cv_func_realpath_works.
936         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
937         gl_cv_func_cbrtl_ieee.
938         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
939         gl_cv_func_ceil_ieee.
940         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
941         gl_cv_func_ceilf_ieee.
942         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
943         gl_cv_func_ceill_ieee.
944         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
945         ac_cv_func_chown_works.
946         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
947         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
948         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
949         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
950         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
951         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
952         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
953         gl_cv_func_expl_works.
954         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
955         gl_cv_func_expm1_ieee.
956         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
957         gl_cv_func_expm1l_works.
958         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
959         gl_cv_func_open_directory_works.
960         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
961         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
962         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
963         gl_cv_func_fchownat_empty_filename_works.
964         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
965         gl_cv_func_fdopendir_works.
966         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
967         gl_cv_func_floor_ieee.
968         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
969         gl_cv_func_floorf_ieee.
970         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
971         gl_cv_func_fma_works.
972         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
973         gl_cv_func_fmaf_works.
974         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
975         gl_cv_func_fmal_works.
976         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
977         gl_cv_func_fmod_ieee.
978         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
979         gl_cv_func_fmodf_ieee.
980         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
981         gl_cv_func_fmodl_ieee.
982         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
983         gl_cv_func_fpurge_works.
984         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
985         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
986         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
987         gl_cv_func_getcwd_null.
988         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
989         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
990         gl_cv_func_working_getdelim.
991         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
992         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
993         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
994         gl_cv_func_getgroups_works.
995         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
996         am_cv_func_working_getline.
997         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
998         for gl_cv_func_getopt_gnu.
999         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
1000         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
1001         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
1002         gl_cv_func_hypot_ieee.
1003         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
1004         gl_cv_func_hypotf_ieee.
1005         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
1006         gl_cv_func_hypotl_ieee.
1007         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
1008         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
1009         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
1010         gl_cv_func_link_works.
1011         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
1012         gl_cv_func_linkat_slash.
1013         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
1014         gl_cv_func_log_ieee.
1015         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
1016         gl_cv_func_logf_ieee.
1017         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
1018         gl_cv_func_logl_works.
1019         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
1020         gl_cv_func_log10_ieee.
1021         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
1022         gl_cv_func_log10f_ieee.
1023         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
1024         gl_cv_func_log10l_works.
1025         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
1026         gl_cv_func_log1p_ieee.
1027         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
1028         gl_cv_func_log1pf_ieee.
1029         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
1030         gl_cv_func_log1pl_ieee.
1031         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
1032         gl_cv_func_log2_ieee.
1033         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
1034         gl_cv_func_log2f_ieee.
1035         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
1036         --enable-cross-guesses for
1037         gl_cv_func_lstat_dereferences_slashed_symlink.
1038         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
1039         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
1040         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
1041         gl_cv_C_locale_sans_EILSEQ.
1042         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
1043         gl_cv_func_memchr_works.
1044         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
1045         gl_cv_func_memmem_works_always.
1046         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
1047         gl_cv_func_memmem_works_fast.
1048         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
1049         gl_cv_func_mkdir_trailing_slash_works,
1050         gl_cv_func_mkdir_trailing_dot_works.
1051         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
1052         gl_cv_func_mkfifo_works.
1053         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
1054         gl_cv_func_mknod_works.
1055         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
1056         gl_cv_func_working_mkstemp.
1057         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
1058         gl_cv_func_working_mktime.
1059         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
1060         gl_cv_func_modf_ieee.
1061         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
1062         gl_cv_func_modff_ieee.
1063         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
1064         gl_cv_func_modfl_ieee.
1065         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
1066         gl_cv_func_nanosleep.
1067         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
1068         gl_cv_func_perror_works.
1069         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
1070         gl_cv_func_printf_sizes_c99.
1071         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
1072         gl_cv_func_printf_infinite.
1073         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
1074         gl_cv_func_printf_infinite_long_double.
1075         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
1076         gl_cv_func_printf_directive_a.
1077         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
1078         gl_cv_func_printf_directive_f.
1079         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
1080         gl_cv_func_printf_flag_zero.
1081         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
1082         gl_cv_func_printf_enomem.
1083         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
1084         gl_cv_func_snprintf_truncation_c99.
1085         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
1086         gl_cv_func_snprintf_retval_c99.
1087         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
1088         gl_cv_func_snprintf_directive_n.
1089         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
1090         gl_cv_func_vsnprintf_zerosize_c99.
1091         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
1092         gl_cv_func_pselect_detects_ebadf.
1093         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
1094         Obey --enable-cross-guesses for
1095         gl_cv_pthread_rwlock_rdlock_prefer_writer.
1096         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
1097         gl_cv_func_ptsname_sets_errno.
1098         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
1099         gl_cv_func_svid_putenv.
1100         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
1101         gl_cv_func_readlink_works.
1102         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
1103         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
1104         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
1105         gl_cv_func_re_compile_pattern_working.
1106         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
1107         gl_cv_func_remainder_ieee.
1108         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
1109         gl_cv_func_remainderf_ieee.
1110         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
1111         gl_cv_func_remainderl_ieee.
1112         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
1113         gl_cv_func_rintl_works.
1114         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
1115         gl_cv_func_rmdir_works.
1116         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
1117         gl_cv_func_round_ieee.
1118         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
1119         gl_cv_func_roundf_ieee.
1120         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
1121         gl_cv_func_roundl_ieee.
1122         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
1123         gl_cv_func_select_detects_ebadf.
1124         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
1125         gl_cv_func_setenv_works.
1126         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
1127         gl_cv_func_unsetenv_works.
1128         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
1129         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
1130         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
1131         gl_cv_func_sleep_works.
1132         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
1133         gl_cv_func_stat_file_slash.
1134         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
1135         gl_cv_func_stpncpy.
1136         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
1137         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
1138         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
1139         gl_cv_func_strcasestr_linear.
1140         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
1141         gl_cv_func_working_strerror.
1142         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
1143         gl_cv_func_strerror_0_works.
1144         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
1145         --enable-cross-guesses for gl_cv_func_strerror_r_works.
1146         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
1147         gl_cv_func_strstr_works_always.
1148         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
1149         gl_cv_func_strstr_linear.
1150         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
1151         gl_cv_func_strtod_works.
1152         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
1153         gl_cv_func_strtold_works.
1154         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
1155         gl_cv_func_symlink_works.
1156         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
1157         gl_cv_func_symlinkat_works.
1158         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
1159         gl_cv_func_trunc_ieee.
1160         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
1161         gl_cv_func_truncf_ieee.
1162         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
1163         gl_cv_func_truncl_ieee.
1164         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
1165         gl_cv_func_tzset_clobber.
1166         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
1167         gl_cv_func_ungetc_works.
1168         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
1169         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
1170         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
1171         gl_cv_func_usleep_works.
1172         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
1173         gl_cv_func_futimesat_works.
1174         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
1175         gl_cv_func_working_utimes.
1176         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
1177         gl_cv_func_wcwidth_works.
1178         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
1179         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
1180         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
1181         links for testing. Obey --enable-cross-guesses for
1182         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
1183         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
1185 2019-09-08  Bruno Haible  <bruno@clisp.org>
1187         Clarify that cross-compilation guesses are guesses.
1188         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
1189         cross-compiling.
1191 2019-09-08  Bruno Haible  <bruno@clisp.org>
1193         chown: Fix configure output (regression from 2019-03-23).
1194         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
1195         gl_cv_func_chown_follows_symlink variable.
1197 2019-09-08  Bruno Haible  <bruno@clisp.org>
1199         findprog-in: New module.
1200         Suggested by Paul Smith <psmith@gnu.org>.
1201         * lib/findprog.h (find_in_given_path): New declaration.
1202         * lib/findprog-in.c: New file, based on lib/findprog.c.
1203         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
1204         * modules/findprog-in: New file.
1206 2019-09-08  Bruno Haible  <bruno@clisp.org>
1208         findprog: Remove unused dependency.
1209         * modules/findprog (Depends-on): Remove strdup.
1211 2019-09-08  Bruno Haible  <bruno@clisp.org>
1213         findprog: Remove test that is obsolete since 2006-04-24.
1214         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
1216 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
1218         bitset: style changes
1219         * lib/bitset/vector.c (vbitset_resize): Factor computation.
1220         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
1221         xzalloc to xcalloc.
1222         Suggested by Paul Eggert.
1224 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
1226         bitset: check memory allocation
1227         Reported by 江 祖铭 (Zu-Ming Jiang).
1228         With help from Paul Eggert.
1229         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
1230         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
1231         instead of realloc.
1232         When shrinking, accept failures.
1233         * lib/bitset/vector.c (vbitset_resize): Likewise.
1235 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
1237         scratch_buffer: sync from glibc
1238         * config/srclist.txt: Add the scratch_buffer source
1239         code from glibc, since these should be in sync.
1240         Autoupdate.
1242 2019-09-07  Bruno Haible  <bruno@clisp.org>
1244         doc: Update for glibc 2.30.
1245         * doc/glibc-functions/gettid.texi: New file.
1246         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
1247         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
1248         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
1249         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
1250         * doc/glibc-functions/sem_clockwait.texi: New file.
1251         * doc/glibc-functions/tgkill.texi: New file.
1252         * doc/glibc-functions/twalk_r.texi: New file.
1253         * doc/gnulib.texi: Include them.
1254         (Glibc semaphore.h): New section.
1255         * doc/pastposix-functions/h_errno.texi: Update.
1256         * doc/posix-functions/*.texi: Likewise.
1258 2019-09-06  Bruno Haible  <bruno@clisp.org>
1260         symlink tests: Avoid test failure on Linux with Lustre file system.
1261         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
1262         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
1263         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
1265 2019-09-01  Bruno Haible  <bruno@clisp.org>
1267         gitsub.sh: Add support for shallow-cloning of subdirectories.
1268         * top/gitsub.sh (func_usage): Document allowed git options with
1269         'git pull'.
1270         (func_pull): Accept GIT_OPTIONS argument.
1271         (pull): Parse git options before complaining about too many arguments.
1272         Pass the git options to func_pull.
1274 2019-08-29  Bruno Haible  <bruno@clisp.org>
1276         lock: Fix cross-compilation guesses.
1277         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
1278         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
1279         platforms.
1281 2019-08-28  Bruno Haible  <bruno@clisp.org>
1283         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
1284         Reported by Martin Storsjö <martin@martin.st> in
1285         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
1286         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
1287         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
1288         files from GCC 6 or newer, use an override through '#define', because
1289         the inline definitions in the platform's <cmath> cannot be overridden
1290         in another way.
1292 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
1294         Revert macOS INT_MULTIPLY_WRAPV patch
1295         Problem reported by Bruno Haible in:
1296         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
1297         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
1298         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
1299         Go back to working around the Clang bug on macOS.
1301 2019-08-27  Bruno Haible  <bruno@clisp.org>
1303         libtool-next-version: Fix error output.
1304         * build-aux/libtool-next-version (func_fatal_error): Fix the program
1305         name.
1307 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
1309         Speed up INT_MULTIPLY_WRAPV on macOS
1310         Assume that __builtin_mul_overflow works OK with Clang on macOS.
1311         Mattias Engdegård says it’s safe to assume the relevant library
1312         is always available there.
1313         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
1314         New temporary internal macro.
1315         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
1316         No need to work around the Clang bug on macOS.
1318 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
1320         intprops.h, verify.h: port better to clang
1321         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
1322         with Clang.  Problem reported privately by Mattias Engdegård.
1323         Also, insulate intprops.h and verify.h better against each other’s
1324         definitions of __has_builtin on non-Clang hosts.
1325         * lib/intprops.h (__has_builtin): Define a temporary substitute
1326         if __has_builtin is not already defined.
1327         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
1328         New temporary internal macros.
1329         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
1330         Now two separate macros, replacing the old
1331         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
1332         __builtin_mul_overflow is like the rest.  All uses changed.
1333         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
1334         Adjust to above changes.
1335         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
1336         longer relevant.  All uses changed.
1337         * lib/verify.h (__has_builtin): Treat like intprops.h,
1338         so that the two .h files do not collide with each other.
1339         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
1340         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
1342 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1344         intprops: say why not Clang __builtin_add_overflow
1345         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
1346         Mention Clang in comment, responding to a query from
1347         Mattias Engdegård.
1349 2019-08-24  Bruno Haible  <bruno@clisp.org>
1351         doc: Document most of the files outside of modules.
1352         * doc/gnulib.texi (Build Infrastructure Files,
1353         Release Management Files): New chapters.
1355 2019-08-24  Bruno Haible  <bruno@clisp.org>
1357         bootstrap: Keep in sync with the 'gettext' module.
1358         Reported by Assaf Gordon in
1359         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
1360         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
1361         * build-aux/po/remove-potcdate.sin: Likewise.
1363 2019-08-24  Bruno Haible  <bruno@clisp.org>
1365         crypto/gc-sha512: Add tests.
1366         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
1367         * modules/crypto/gc-sha512-tests: New file.
1369         crypto/gc-sha256: Add tests.
1370         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
1371         * modules/crypto/gc-sha256-tests: New file.
1373         crypto/gc-sha256, crypto/gc-sha512: New modules.
1374         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
1375         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
1376         (MAX_DIGEST_SIZE): Set to 64.
1377         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
1378         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
1379         (gc_sha256, gc_sha512): New functions.
1380         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
1381         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
1382         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
1384 2019-08-24  Bruno Haible  <bruno@clisp.org>
1386         crypto/gc-sha1 tests: Improve output when the test fails.
1387         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
1388         output.
1390 2019-08-24  Bruno Haible  <bruno@clisp.org>
1392         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
1393         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
1394         LIBGCRYPT_HAS_MD_SM3.
1395         * lib/gc-libgcrypt.c: Include sm3.h.
1396         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
1397         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
1398         implementation if libgcrypt does not support SM3.
1400 2019-08-24  Bruno Haible  <bruno@clisp.org>
1402         crypto/gc-md2: Optimize and clarify code.
1403         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
1404         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
1405         is not needed.
1407 2019-08-24  Bruno Haible  <bruno@clisp.org>
1409         crypto/gc-md2: Add comment.
1410         * lib/gc-libgcrypt.c: Add comment.
1412 2019-08-24  Bruno Haible  <bruno@clisp.org>
1414         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
1415         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
1416         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
1417         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
1418         variable.
1420 2019-08-24  Bruno Haible  <bruno@clisp.org>
1422         crypto/gc: Fix link error with --with-libgcrypt.
1423         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
1424         AC_LIB_HAVE_LINKFLAGS invocation.
1426 2019-08-24  Bruno Haible  <bruno@clisp.org>
1428         crypto/gc: Access the module indicators correctly.
1429         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
1430         * lib/gc-libgcrypt.c: Likewise.
1432 2019-08-24  Bruno Haible  <bruno@clisp.org>
1434         crypto/gc: Fix configuration with --with-libgcrypt.
1435         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
1436         * modules/crypto/gc (Files): Add it.
1437         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
1439 2019-08-24  Bruno Haible  <bruno@clisp.org>
1441         Remove unused file.
1442         * m4/stat-macros.m4: Remove file.
1444 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
1446         New strip-trailing-space option for srclist-update
1447         * config/srclist-update (fixfile): Support new option.
1448         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
1449         Use it.
1451 2019-08-20  Eric Blake  <eblake@redhat.com>
1453         accept4: Support SOCK_NONBLOCK, if defined
1454         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
1456         accept4: Fix compilation when native accept4() exists.
1457         Reported by Richard W.M. Jones <rjones@redhat.com> in
1458         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
1459         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
1461 2019-08-18  Bruno Haible  <bruno@clisp.org>
1463         Defeat -flto GCC optimization in math autoconf tests.
1464         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
1465         at <https://savannah.gnu.org/bugs/?56109>.
1466         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
1467         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
1468         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
1469         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1470         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
1471         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
1472         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
1473         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
1474         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
1475         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
1476         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
1477         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
1479 2019-08-17  Bruno Haible  <bruno@clisp.org>
1481         windows-spin: Implement declared functions.
1482         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
1483         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
1484         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
1485         name.
1487 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
1489         intprops: port to Oracle Developer Studio 12.6
1490         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
1491         typos that were in a section not compiled by GCC.
1493 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
1495         intprops: support uchar, ushort _WRAPV dests
1496         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
1497         when __builtin_add_overflow etc. and _Generic are not used.
1498         (_GL_INT_OP_WRAPV): Use it to support destinations that
1499         are unsigned char or unsigned short, even in compilers
1500         that lack __typeof__ and are not C11-compatible.
1502         intprops: pacify picky GCC
1503         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
1504         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
1505         possibly-incorrect result.
1506         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
1507         about (A) used as a boolean, when A is an expression like 3 * 4.
1509         intprops: support unsigned *_WRAPV results
1510         Add support for unsigned, unsigned long, and unsigned long long
1511         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
1512         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
1513         bug with unsigned inputs reported by Eli Zaretskii in:
1514         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
1515         * config/srclist.txt: Break the glibc connection for intprops.h
1516         temporarily, while more testing is done in Gnulib-using apps.
1517         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
1518         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
1519         Support unsigned results no narrower than unsigned int.  Report
1520         overflow correctly if some arguments are unsigned.
1521         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
1522         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
1523         the right thing with narrow args.
1524         (_GL_INT_OP_CALC1): Remove.  All callers removed.
1525         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
1526         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
1527         * tests/test-intprops.c: Check for bugs and test new behavior.
1529 2019-08-14  Bruno Haible  <bruno@clisp.org>
1531         get_progname_of: New module.
1532         * lib/get_progname_of.h: New file.
1533         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
1534         * lib/getprogname.c (getprogname): Tweak coding style.
1535         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
1536         * modules/get_progname_of: New file.
1538 2019-08-14  Bruno Haible  <bruno@clisp.org>
1540         get_ppid_of: New module.
1541         * lib/get_ppid_of.h: New file.
1542         * lib/get_ppid_of.c: New file.
1543         * modules/get_ppid_of: New file.
1545 2019-08-13  Bruno Haible  <bruno@clisp.org>
1547         libtextstyle-optional tests: Support the NO_COLOR environment variable.
1548         * tests/test-libtextstyle.c (main): Do not emit styling when the
1549         environment variable NO_COLOR is set.
1551 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1553         verify: improve diagnostic quality in recent GCC
1554         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
1555         useful line number containing the top-level caller of the macro.
1556         So, bring back the older way of issuing a diagnostic containing
1557         the top-level call’s arg, so that it is easier to diagnose
1558         ‘verify’ failures with recent GCC.
1559         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
1560         Bring back DIAGNOSTIC arg.  All callers changed.
1561         (verify): Just use _GL_VERIFY.
1563 2019-08-11  Bruno Haible  <bruno@clisp.org>
1565         localcharset: Add more aliases for OS/2.
1566         Based on patch by KO Myung-Hun <komh78@gmail.com> in
1567         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
1568         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
1570 2019-08-10  Eric Blake  <eblake@redhat.com>
1572         configmake: Update advice on usage.
1573         * modules/configmake (Include): No longer necessary to include
1574         last, since configmake.h itself worries about collision avoidance.
1576 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
1578         parse-datetime: fix 'T' military timezone handling
1579         * lib/parse-datetime.y (zone):
1580         follow-up to the previous commit: the 'T' case is handled outside the
1581         conversion table (used as either military timezone UTC-7 or ISO8601
1582         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
1583         timezone letters.
1585 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
1587         parse-datetime: fix military timezone letters
1588         Problem and trivial fix reported by Neil Hoggarth in:
1589         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
1590         * lib/parse-datetime.y (military_table):
1591         Do it the right way, not the RFC 822 way.
1593 2019-08-08  Eric Blake  <eblake@redhat.com>
1595         configmake: Avoid namespace pollution issue on mingw.
1596         * modules/configmake (Makefile.am): If the project uses
1597         <winsock2.h>, include that header before defining DATADIR.
1599 2019-07-28  Bruno Haible  <bruno@clisp.org>
1601         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
1602         * tests/test-mbrtowc.c (main): Fix expected value of wc.
1604 2019-07-24  Bruno Haible  <bruno@clisp.org>
1606         pthread-h: Fix definitions of types and macros on mingw.
1607         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
1608         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
1609         not in use.
1610         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
1611         'pthread-once' is not in use.
1612         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
1613         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
1614         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
1615         in use.
1616         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
1617         Define also when module 'pthread-rwlock' is not in use.
1618         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
1619         also when module 'pthread-cond' is not in use.
1620         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
1621         'pthread-tss' is not in use.
1622         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
1623         use.
1625 2019-07-24  Simon Josefsson  <simon@josefsson.org>
1627         crypto/gc: Cope with libgcrypt without SM3.
1628         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
1630 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
1632         backupfile: fix resource leak on memory failure
1633         Problem found by Coverity (CID 1484214).
1634         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
1636 2019-07-22  Bruno Haible  <bruno@clisp.org>
1638         Avoid missing-declarations warning in various tests.
1639         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
1640         test6, test_optional, test7, test8, test9, test10, test11, test12,
1641         test13, test14, test15, test_fun): Declare static.
1642         * tests/test-cnd.c (test_cnd_wait): Likewise.
1643         * tests/test-cond.c (test_cond): Likewise.
1645 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
1647         pthread tests: Avoid missing-declarations warning.
1648         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
1650 2019-07-19  Bruno Haible  <bruno@clisp.org>
1652         parse-datetime: Avoid warnings from bison versions >= 3.3.
1653         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
1654         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
1656 2019-07-19  Bruno Haible  <bruno@clisp.org>
1658         parse-datetime: Require Bison 2.4 or newer.
1659         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
1660         Code taken from gettext's intl.m4.
1661         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
1662         of YACC.
1664 2019-07-19  Bruno Haible  <bruno@clisp.org>
1666         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
1667         * lib/areadlink-with-size.c: Include <string.h>.
1668         * lib/areadlinkat-with-size.c: Likewise.
1669         * lib/xgethostname.c: Likewise.
1670         * lib/xgetdomainname.c: Likewise.
1672 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
1674         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
1675         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
1676         "%pure-parser".  The former is available since Bison 2.3b (2008),
1677         while the latter is marked as obsolete since version 3.4 (May 2019).
1679 2019-07-16  Bruno Haible  <bruno@clisp.org>
1681         update-copyright: Make it work again (regression from 2019-06-15).
1682         Reported by Brian C. Lane <bcl@redhat.com>.
1683         * build-aux/update-copyright: Add back the -0777, -p, -i options.
1685 2019-07-14  Bruno Haible  <bruno@clisp.org>
1687         doc: Update info about <pthread.h>.
1688         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
1689         of 'pthread'.
1691 2019-07-14  Bruno Haible  <bruno@clisp.org>
1693         pthread_sigmask tests: Use new multithread modules.
1694         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
1695         glthread/thread.h.
1696         (main_thread, killer_thread): Change type to pthread_t.
1697         (main): Update accordingly.
1698         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
1699         thread.
1701 2019-07-14  Bruno Haible  <bruno@clisp.org>
1703         pthread-tss: Add tests.
1704         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
1705         tests/test-tss.c.
1706         * modules/pthread-tss-tests: New file.
1708 2019-07-14  Bruno Haible  <bruno@clisp.org>
1710         pthread-cond: Add tests.
1711         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
1712         tests/test-cnd.c.
1713         * modules/pthread-cond-tests: New file.
1715 2019-07-14  Bruno Haible  <bruno@clisp.org>
1717         pthread-rwlock: Add tests.
1718         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
1719         * modules/pthread-rwlock-tests: New file.
1721 2019-07-14  Bruno Haible  <bruno@clisp.org>
1723         pthread-mutex: Add tests.
1724         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
1725         tests/test-mtx.c.
1726         * modules/pthread-mutex-tests: New file.
1728 2019-07-14  Bruno Haible  <bruno@clisp.org>
1730         pthread-once: Add tests.
1731         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
1732         tests/test-call_once.c.
1733         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
1734         tests/test-mtx.c.
1735         * modules/pthread-once-tests: New file.
1737 2019-07-14  Bruno Haible  <bruno@clisp.org>
1739         pthread-thread: Add tests.
1740         * tests/test-pthread-thread.c: New file, based on
1741         tests/test-thread_create.c and tests/test-thrd_create.c.
1742         * modules/pthread-thread-tests: New file.
1744 2019-07-14  Bruno Haible  <bruno@clisp.org>
1746         pthread: Turn into a convenience module.
1747         * lib/pthread.in.h: Remove declarations for extern inline functions.
1748         * lib/pthread.c: Remove file.
1749         * modules/pthread (Files): Remove it.
1750         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
1751         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
1752         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
1753         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
1754         GNULIB_PTHREAD.
1755         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
1757 2019-07-14  Bruno Haible  <bruno@clisp.org>
1759         pthread-spin: New module.
1760         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
1761         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
1762         inline definitions.
1763         * lib/pthread-spin.c: New file.
1764         * m4/pthread-spin.m4: New file.
1765         * modules/pthread-spin: New file.
1766         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
1767         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
1768         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
1769         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
1770         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
1772 2019-07-14  Bruno Haible  <bruno@clisp.org>
1774         pthread-tss: New module.
1775         * lib/pthread-tss.c: New file.
1776         * m4/pthread-tss.m4: New file.
1777         * modules/pthread-tss: New file.
1778         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
1779         * doc/posix-functions/pthread_setspecific.texi: Likewise.
1780         * doc/posix-functions/pthread_getspecific.texi: Likewise.
1781         * doc/posix-functions/pthread_key_delete.texi: Likewise.
1783 2019-07-14  Bruno Haible  <bruno@clisp.org>
1785         pthread-cond: New module.
1786         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
1787         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
1788         * lib/pthread-cond.c: New file.
1789         * m4/pthread-cond.m4: New file.
1790         * modules/pthread-cond: New file.
1791         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
1792         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
1793         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
1794         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
1795         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
1796         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
1797         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
1798         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
1800 2019-07-14  Bruno Haible  <bruno@clisp.org>
1802         pthread-rwlock: New module.
1803         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
1804         * m4/pthread-rwlock.m4: New file.
1805         * modules/pthread-rwlock: New file.
1806         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
1807         and the Android problem.
1808         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
1809         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
1810         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
1811         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
1812         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
1813         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
1814         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
1815         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
1816         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
1817         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
1819 2019-07-14  Bruno Haible  <bruno@clisp.org>
1821         pthread-mutex: New module.
1822         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
1823         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
1824         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
1825         pthread_mutex_unlock): Remove inline definitions.
1826         * lib/pthread-mutex.c: New file.
1827         * m4/pthread-mutex.m4: New file.
1828         * modules/pthread-mutex: New file.
1829         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
1830         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
1831         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
1832         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
1833         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
1834         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
1835         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
1836         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
1837         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
1838         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
1839         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
1840         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
1842 2019-07-14  Bruno Haible  <bruno@clisp.org>
1844         pthread-once: New module.
1845         * lib/pthread-once.c: New file.
1846         * m4/pthread-once.m4: New file.
1847         * modules/pthread-once: New file.
1848         * doc/posix-functions/pthread_once.texi: Mention the new module.
1850 2019-07-14  Bruno Haible  <bruno@clisp.org>
1852         pthread-thread: New module.
1853         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
1854         inline definitions.
1855         * lib/pthread-thread.c: New file.
1856         * m4/pthread-thread.m4: New file.
1857         * modules/pthread-thread: New file.
1858         * doc/posix-functions/pthread_create.texi: Mention the new module.
1859         * doc/posix-functions/pthread_attr_init.texi: Likewise.
1860         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
1861         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
1862         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
1863         * doc/posix-functions/pthread_self.texi: Likewise.
1864         * doc/posix-functions/pthread_equal.texi: Likewise.
1865         * doc/posix-functions/pthread_detach.texi: Likewise.
1866         * doc/posix-functions/pthread_join.texi: Likewise.
1867         * doc/posix-functions/pthread_exit.texi: Likewise.
1869 2019-07-14  Bruno Haible  <bruno@clisp.org>
1871         pthread-h: Prepare for adding new modules.
1872         * lib/pthread.in.h: Define the types and macros for each of the
1873         facilities separately.
1874         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
1875         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
1876         HAVE_PTHREAD_PROCESS_SHARED.
1877         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
1878         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
1879         HAVE_PTHREAD_PROCESS_SHARED.
1880         * modules/pthread-h (Makefile.am): Substitute
1881         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
1882         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
1884 2019-07-14  Bruno Haible  <bruno@clisp.org>
1886         pthread-h: Add declarations of essential pthread functions.
1887         * lib/pthread.in.h: Include snippets.
1888         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
1889         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
1890         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
1891         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
1892         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
1893         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
1894         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
1895         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
1896         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
1897         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
1898         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
1899         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
1900         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
1901         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
1902         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
1903         pthread_key_create, pthread_setspecific, pthread_getspecific,
1904         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
1905         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
1906         declarations.
1907         (pthread_mutex_timedlock): Move declaration.
1908         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
1909         declared.
1910         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
1911         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
1912         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
1913         HAVE_* and REPLACE_* variables for the new functions.
1914         * modules/pthread-h (Depends-on): Add snippet/c++defs,
1915         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
1916         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
1917         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
1918         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
1919         variables for the new functions. Split the sed script, to avoid the
1920         limit of 99 commands of HP-UX sed.
1921         * tests/test-pthread-c++.cc: Check the signature of the new functions.
1923 2019-07-14  Bruno Haible  <bruno@clisp.org>
1925         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
1926         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
1927         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
1928         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
1929         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
1930         * modules/pthread-h (Depends-on): Add threadlib.
1931         (Link): Change to $(LIBTHREAD).
1932         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
1933         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
1935 2019-07-14  Bruno Haible  <bruno@clisp.org>
1937         pthread-h: Add C++ tests.
1938         * tests/test-pthread-c++.cc: New file.
1939         * modules/pthread-h-c++-tests: New file.
1941 2019-07-14  Bruno Haible  <bruno@clisp.org>
1943         pthread-h: Add tests.
1944         * tests/test-pthread.c: New file.
1945         * modules/pthread-h-tests: New file.
1947 2019-07-14  Bruno Haible  <bruno@clisp.org>
1949         pthread-h: New module.
1950         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
1951         is 1.
1952         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
1953         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
1954         <pthread.h> pollutes the namespace; instead, prepare for generating a
1955         pthread.h always. Substitute HAVE_PTHREAD_H here.
1956         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
1957         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
1958         * modules/pthread-h: New file, based on modules/pthread.
1959         * modules/pthread: Rely on 'pthread-h'.
1960         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
1961         Update.
1962         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
1963         pthread.
1965 2019-07-14  Bruno Haible  <bruno@clisp.org>
1967         sched_yield: New module.
1968         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
1969         (sched_yield): New declaration.
1970         * lib/sched_yield.c: New file.
1971         * m4/sched_yield.m4: New file.
1972         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
1973         provide a replacement sched.h always. Test whether sched_yield is
1974         declared.
1975         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
1976         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
1977         (Makefile.am): Provide a replacement sched.h always. Substitute
1978         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
1979         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
1980         * modules/sched_yield: New file.
1981         * doc/posix-functions/sched_yield.texi: Mention the new module.
1983 2019-07-14  Bruno Haible  <bruno@clisp.org>
1985         windows-spin: New module.
1986         * lib/windows-spin.h: New file.
1987         * lib/windows-spin.c: New file.
1988         * modules/windows-spin: New file.
1990 2019-07-14  Bruno Haible  <bruno@clisp.org>
1992         windows-timedrwlock: New module.
1993         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
1994         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
1995         windows-cond.c.
1996         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
1997         redefinition conflict with windows-timedrwlock.h.
1998         * modules/windows-timedrwlock: New file.
2000 2019-07-14  Bruno Haible  <bruno@clisp.org>
2002         windows-rwlock: New module.
2003         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
2004         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
2005         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
2006         windows-initguard.h.
2007         (gl_rwlock_t): Define using glwthread_rwlock_t.
2008         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
2009         (glthread_rwlock_init): Define using glwthread_rwlock_init.
2010         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
2011         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
2012         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
2013         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
2014         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
2015         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
2016         glthread_rwlock_destroy_func): Remove declarations.
2017         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
2018         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
2019         gl_waitqueue_notify_all, glthread_rwlock_init_func,
2020         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
2021         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
2022         functions.
2023         * modules/windows-rwlock: New file.
2024         * modules/lock (Depends-on): Add windows-rwlock.
2026 2019-07-14  Bruno Haible  <bruno@clisp.org>
2028         windows-thread: Add support for creating a thread in detached state.
2029         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
2030         (glwthread_thread_create): Add attr argument.
2031         * lib/windows-thread.c (glwthread_thread_create): Likewise.
2032         * lib/glthread/thread.h (glthread_create): Update.
2033         * lib/thrd.c (thrd_create): Update.
2035 2019-07-14  Bruno Haible  <bruno@clisp.org>
2037         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
2038         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
2039         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
2040         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
2041         * lib/windows-mutex.h: Update.
2042         * lib/windows-recmutex.h: Likewise.
2043         * lib/windows-timedmutex.h: Likewise.
2044         * lib/windows-timedrecmutex.h: Likewise.
2045         * lib/windows-cond.h: Likewise.
2046         * lib/glthread/lock.h: Likewise.
2047         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
2048         lib/windows-spinlock.h.
2049         * modules/windows-recmutex (Files): Likewise.
2050         * modules/windows-timedmutex (Files): Likewise.
2051         * modules/windows-timedrecmutex (Files): Likewise.
2052         * modules/windows-cond (Files): Likewise.
2053         * modules/threads-h (Files): Likewise.
2055 2019-07-14  Bruno Haible  <bruno@clisp.org>
2057         doc: Fix info about pthread API in HP-UX.
2058         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
2060 2019-07-14  Bruno Haible  <bruno@clisp.org>
2062         threads-h: Fix generation of threads.h.
2063         * modules/threads-h (Makefile.am): Insert the required header file
2064         snippets.
2066 2019-07-09  Bruno Haible  <bruno@clisp.org>
2068         striconveh test: Fix a compilation failure when iconv is not available.
2069         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2070         * tests/test-striconveh.c (main): Move iconv_close invocations inside
2071         HAVE_ICONV.
2073 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
2075         argmatch: adjust columns for help2man.
2076         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
2077         requires column 20 or more, return 20.
2079 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2081         areadlink-with-size: avoid realloc when size==0
2082         * lib/areadlink-with-size.c (areadlink_with_size):
2083         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
2084         Reallocate at the end to the actual size, to avoid memory waste,
2085         as suggested by Bruno Haible.  But when the guessed size is zero -
2086         useful when the size is unknown - do the initial small readlink
2087         into the stack, to avoid that realloc in the usual case.
2089 2019-07-06  Pádraig Brady  <P@draigBrady.com>
2091         areadlink-with-size: guess a buffer size with 0 size
2092         The size is usually taken from st_size, which can be zero,
2093         resulting in inefficient operation.
2094         Instead let zero select an initial memory allocation
2095         of 128 bytes, which most symlinks fit within.
2096         * lib/areadlink-with-size.c (areadlink_with_size):
2097         Start with a 128 byte buffer, for SIZE == 0.
2098         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
2100 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
2102         Replace manually crafted hex regexes with [:xdigit:]
2103         * build-aux/gitlog-to-changelog (parse_amend_file)
2104         (git_dir_option):
2105         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
2106         This patch is backported from Emacs (Bug#36167).
2108 2019-07-06  Bruno Haible  <bruno@clisp.org>
2110         error: Fix documentation.
2111         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
2112         module provides.
2113         * doc/glibc-functions/error_message_count.texi: Likewise.
2114         * doc/glibc-functions/error_one_per_line.texi: Likewise.
2115         * doc/glibc-functions/error_print_progname.texi: Likewise.
2117 2019-07-06  Bruno Haible  <bruno@clisp.org>
2119         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
2120         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
2121         and older is unsupported.
2122         * doc/**/*.texi: Update.
2124 2019-07-06  Bruno Haible  <bruno@clisp.org>
2126         doc: Remove documentation of Linux libc5 as a supported platform.
2127         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
2128         to Linux libc5.
2129         * doc/posix-functions/iswalpha.texi: Likewise.
2130         * doc/posix-functions/iswblank.texi: Likewise.
2131         * doc/posix-functions/iswcntrl.texi: Likewise.
2132         * doc/posix-functions/iswdigit.texi: Likewise.
2133         * doc/posix-functions/iswgraph.texi: Likewise.
2134         * doc/posix-functions/iswlower.texi: Likewise.
2135         * doc/posix-functions/iswprint.texi: Likewise.
2136         * doc/posix-functions/iswpunct.texi: Likewise.
2137         * doc/posix-functions/iswspace.texi: Likewise.
2138         * doc/posix-functions/iswupper.texi: Likewise.
2139         * doc/posix-functions/iswxdigit.texi: Likewise.
2140         * doc/posix-functions/snprintf.texi: Likewise.
2141         * doc/posix-functions/vsnprintf.texi: Likewise.
2143 2019-07-06  Bruno Haible  <bruno@clisp.org>
2145         doc: Remove documentation of Tandem/NSK as a supported platform.
2146         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
2147         Tandem/NSK.
2148         * doc/**/*.texi: Update.
2150 2019-07-06  Bruno Haible  <bruno@clisp.org>
2152         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
2153         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
2154         and older is unsupported.
2155         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
2156         Mac OS X 10.4 and older.
2157         * doc/posix-functions/asinl.texi: Likewise.
2158         * doc/posix-functions/atanl.texi: Likewise.
2159         * doc/posix-functions/cosl.texi: Likewise.
2160         * doc/posix-functions/expl.texi: Likewise.
2161         * doc/posix-functions/frexpl.texi: Likewise.
2162         * doc/posix-functions/gettimeofday.texi: Likewise.
2163         * doc/posix-functions/logl.texi: Likewise.
2164         * doc/posix-functions/mkstemp.texi: Likewise.
2165         * doc/posix-functions/sinl.texi: Likewise.
2166         * doc/posix-functions/sqrtl.texi: Likewise.
2167         * doc/posix-functions/tanl.texi: Likewise.
2168         * doc/posix-functions/wcswidth.texi: Likewise.
2169         * doc/**/*.texi: Update.
2171 2019-07-06  Bruno Haible  <bruno@clisp.org>
2173         doc: Remove documentation of AIX 4 as a supported platform.
2174         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
2175         unsupported.
2176         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
2177         workarounds.
2178         * doc/posix-functions/strnlen.texi: Likewise.
2179         * doc/posix-headers/inttypes.texi: Likewise.
2180         * doc/**/*.texi: Update.
2182 2019-07-06  Bruno Haible  <bruno@clisp.org>
2184         doc: Remove documentation of HP-UX 10 as a supported platform.
2185         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
2186         unsupported.
2187         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
2188         workarounds.
2189         * doc/posix-functions/gmtime_r.texi: Likewise.
2190         * doc/posix-functions/localtime_r.texi: Likewise.
2191         * doc/posix-functions/mkstemp.texi: Likewise.
2192         * doc/**/*.texi: Update.
2194 2019-07-06  Bruno Haible  <bruno@clisp.org>
2196         doc: Remove documentation of Interix 3.5 as a supported platform.
2197         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
2198         unsupported.
2199         * doc/posix-functions/select.texi: Don't mention Interix specific
2200         workarounds.
2201         * doc/posix-headers/signal.texi: Likewise.
2202         * doc/**/*.texi: Update.
2204 2019-07-06  Bruno Haible  <bruno@clisp.org>
2206         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
2207         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
2208         unsupported.
2209         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
2210         workarounds.
2211         * doc/posix-functions/nl_langinfo.texi: Likewise.
2212         * doc/posix-functions/remainder.texi: Likewise.
2213         * doc/posix-functions/towlower.texi: Likewise.
2214         * doc/posix-functions/towupper.texi: Likewise.
2215         * doc/posix-functions/vsnprintf.texi: Likewise.
2216         * doc/posix-functions/wcscat.texi: Likewise.
2217         * doc/posix-functions/wcschr.texi: Likewise.
2218         * doc/posix-functions/wcscmp.texi: Likewise.
2219         * doc/posix-functions/wcscpy.texi: Likewise.
2220         * doc/posix-functions/wcscspn.texi: Likewise.
2221         * doc/posix-functions/wcslen.texi: Likewise.
2222         * doc/posix-functions/wcsncat.texi: Likewise.
2223         * doc/posix-functions/wcsncmp.texi: Likewise.
2224         * doc/posix-functions/wcsncpy.texi: Likewise.
2225         * doc/posix-functions/wcspbrk.texi: Likewise.
2226         * doc/posix-functions/wcsrchr.texi: Likewise.
2227         * doc/posix-functions/wcsspn.texi: Likewise.
2228         * doc/posix-headers/langinfo.texi: Likewise.
2229         * doc/posix-headers/signal.texi: Likewise.
2230         * doc/posix-headers/wchar.texi: Likewise.
2231         * doc/posix-headers/wctype.texi: Likewise.
2232         * doc/**/*.texi: Update.
2234 2019-07-05  Bruno Haible  <bruno@clisp.org>
2236         doc: Remove documentation of OSF/1 as supported platform.
2237         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
2238         unsupported.
2239         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
2240         workarounds.
2241         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
2242         * doc/glibc-functions/ptsname_r.texi: Likewise.
2243         * doc/posix-functions/ceil.texi: Likewise.
2244         * doc/posix-functions/ceilf.texi: Likewise.
2245         * doc/posix-functions/ceill.texi: Likewise.
2246         * doc/posix-functions/fchdir.texi: Likewise.
2247         * doc/posix-functions/floor.texi: Likewise.
2248         * doc/posix-functions/floorf.texi: Likewise.
2249         * doc/posix-functions/fmod.texi: Likewise.
2250         * doc/posix-functions/fmodf.texi: Likewise.
2251         * doc/posix-functions/fmodl.texi: Likewise.
2252         * doc/posix-functions/log.texi: Likewise.
2253         * doc/posix-functions/logf.texi: Likewise.
2254         * doc/posix-functions/logl.texi: Likewise.
2255         * doc/posix-functions/log10.texi: Likewise.
2256         * doc/posix-functions/log10f.texi: Likewise.
2257         * doc/posix-functions/log10l.texi: Likewise.
2258         * doc/posix-functions/log2.texi: Likewise.
2259         * doc/posix-functions/log2f.texi: Likewise.
2260         * doc/posix-functions/log2l.texi: Likewise.
2261         * doc/posix-functions/mbrtowc.texi: Likewise.
2262         * doc/posix-functions/recv.texi: Likewise.
2263         * doc/posix-functions/recvfrom.texi: Likewise.
2264         * doc/posix-functions/remainder.texi: Likewise.
2265         * doc/posix-functions/remainderf.texi: Likewise.
2266         * doc/posix-functions/remainderl.texi: Likewise.
2267         * doc/posix-functions/round.texi: Likewise.
2268         * doc/posix-functions/roundf.texi: Likewise.
2269         * doc/posix-functions/roundl.texi: Likewise.
2270         * doc/posix-functions/send.texi: Likewise.
2271         * doc/posix-functions/sendto.texi: Likewise.
2272         * doc/posix-functions/setenv.texi: Likewise.
2273         * doc/posix-functions/snprintf.texi: Likewise.
2274         * doc/posix-functions/tcgetsid.texi: Likewise.
2275         * doc/posix-functions/trunc.texi: Likewise.
2276         * doc/posix-functions/truncf.texi: Likewise.
2277         * doc/posix-functions/truncl.texi: Likewise.
2278         * doc/posix-functions/ttyname_r.texi: Likewise.
2279         * doc/posix-functions/unsetenv.texi: Likewise.
2280         * doc/posix-functions/wcsrtombs.texi: Likewise.
2281         * doc/posix-headers/sys_select.texi: Likewise.
2282         * doc/posix-headers/wchar.texi: Likewise.
2283         * doc/posix-headers/wctype.texi: Likewise.
2284         * doc/**/*.texi: Update.
2286 2019-07-05  Bruno Haible  <bruno@clisp.org>
2288         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
2289         * doc/**/*.texi: Update.
2291 2019-07-05  Bruno Haible  <bruno@clisp.org>
2293         doc: Remove documentation of Solaris 8 and older as supported platforms.
2294         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
2295         unsupported.
2296         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
2297         workarounds.
2298         * doc/posix-functions/memcmp.texi: Likewise.
2299         * doc/posix-functions/rename.texi: Likewise.
2300         * doc/posix-functions/tzset.texi: Likewise.
2301         * doc/posix-headers/wctype.texi: Likewise.
2302         * doc/**/*.texi: Update.
2304 2019-07-05  Bruno Haible  <bruno@clisp.org>
2306         doc: Remove documentation of Interix 3.5 as a supported platform.
2307         * doc/**/*.texi: Update.
2309 2019-07-05  Bruno Haible  <bruno@clisp.org>
2311         doc: Remove documentation of BeOS as a supported platform.
2312         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
2313         unsupported.
2314         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
2315         * doc/posix-functions/getdelim.texi: Likewise.
2316         * doc/**/*.texi: Update.
2318 2019-07-05  Bruno Haible  <bruno@clisp.org>
2320         thread, lock, cond, tls: Remove support for Pth threads.
2321         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
2322         --enable-threads=pth any more.
2323         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
2324         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
2325         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
2326         threads and ISO C11 threads.
2327         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
2328         * lib/glthread/lock.h: Likewise.
2329         * lib/glthread/lock.c: Likewise.
2330         * lib/glthread/cond.h: Likewise.
2331         * lib/glthread/cond.c: Likewise.
2332         * lib/glthread/tls.h: Likewise.
2333         * lib/glthread/tls.c: Likewise.
2334         * lib/glthread/yield.h: Likewise.
2335         * lib/regex_internal.h: Likewise.
2336         * tests/test-thread_create.c: Likewise.
2337         * tests/test-lock.c: Likewise.
2338         * tests/test-cond.c: Likewise.
2339         * tests/test-tls.c: Likewise.
2340         * tests/test-rwlock1.c: Don't include glthread/yield.h.
2341         (main): Sleep without calling gl_thread_yield.
2343 2019-07-05  Bruno Haible  <bruno@clisp.org>
2345         thread, lock, cond, tls: Remove support for old Solaris threads.
2346         Solaris >= 2.5.1 has POSIX threads.
2347         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
2348         --enable-threads=solaris any more.
2349         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
2350         * lib/glthread/thread.c: Update comment.
2351         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
2352         * lib/glthread/lock.h: Likewise.
2353         * lib/glthread/lock.c: Likewise.
2354         * lib/glthread/cond.h: Likewise.
2355         * lib/glthread/cond.c: Likewise.
2356         * lib/glthread/tls.h: Likewise.
2357         * lib/glthread/tls.c: Likewise.
2358         * lib/glthread/yield.h: Likewise.
2359         * lib/regex_internal.h: Likewise.
2360         * tests/test-thread_create.c: Likewise.
2361         * tests/test-lock.c: Likewise.
2362         * tests/test-cond.c: Likewise.
2363         * tests/test-tls.c: Likewise.
2365 2019-07-05  Bruno Haible  <bruno@clisp.org>
2367         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
2368         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
2369         needed size is equal to the allocated size.
2370         * lib/getcwd.c (__getcwd): Likewise.
2372 2019-07-05  Bruno Haible  <bruno@clisp.org>
2374         xgetdomainname: Don't return an excessive memory allocation.
2375         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
2376         before returning it.
2378 2019-07-05  Bruno Haible  <bruno@clisp.org>
2380         xgethostname: Don't return an excessive memory allocation.
2381         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
2382         returning it.
2384 2019-07-05  Bruno Haible  <bruno@clisp.org>
2386         areadlinkat-with-size: Don't return an excessive memory allocation.
2387         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
2388         before returning it.
2390 2019-07-05  Bruno Haible  <bruno@clisp.org>
2392         areadlink-with-size: Don't return an excessive memory allocation.
2393         Reported by Andreas Dilger <adilger@whamcloud.com>.
2394         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
2395         before returning it.
2397 2019-07-03  Bruno Haible  <bruno@clisp.org>
2399         renameatu: Fix test failure on MSVC.
2400         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
2401         empty string.
2403 2019-07-03  Bruno Haible  <bruno@clisp.org>
2405         mbrtowc: Fix invalid use of mbtowc() on MSVC.
2406         * lib/mbrtowc.c: Include glthread/lock.h.
2407         (mbtowc_lock): New variable.
2408         (mbrtowc): Treat UTF-8 encoding without locking. For the other
2409         encodings, explicitly reset the internal state of mbtowc, and protect
2410         this through a lock.
2411         * modules/mbrtowc (Depends-on): Add lock.
2413 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
2415         argmatch: don't define _ in the header.
2416         Reported by Jim Meyering.
2417         * lib/argmatch.h (N_, _): Don't define.
2418         Use gettext instead.
2419         * lib/argmatch.h (_): Define.
2420         * tests/test-argmatch.c (N_): Define.
2422 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2424         verify: document ‘assume’ better
2425         * lib/verify.h: Reword doc (Bug#36370).
2427 2019-07-02  Bruno Haible  <bruno@clisp.org>
2429         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
2430         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
2431         "CPutf8".
2432         * lib/nl_langinfo.c (ctype_codeset): Likewise.
2434 2019-07-02  Bruno Haible  <bruno@clisp.org>
2436         getcwd: Fix crash when invoked with size = 0 on MSVC.
2437         * lib/getcwd.c: Include msvc-inval.h.
2438         (getcwd_nothrow): New function/macro.
2439         (getcwd_system): New macro.
2440         (__getcwd): Use it instead of getcwd.
2441         * modules/getcwd (Depends-on): Add msvc-inval.
2442         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
2444 2019-07-02  Bruno Haible  <bruno@clisp.org>
2446         nonblocking-pipe tests: Fix test failure on MSVC.
2447         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
2448         native Windows.
2450 2019-07-02  Bruno Haible  <bruno@clisp.org>
2452         usleep: Implement with millisecond resolution on native Windows.
2453         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
2454         * doc/pastposix-functions/usleep.texi: Update accordingly.
2456 2019-07-02  Bruno Haible  <bruno@clisp.org>
2458         lstat tests: Fix test failure on MSVC.
2459         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
2460         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
2462 2019-07-02  Bruno Haible  <bruno@clisp.org>
2464         stat tests: Fix test failure on MSVC.
2465         * tests/test-stat.h (test_stat_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         getaddrinfo tests: Fix test failure on MSVC.
2471         * tests/test-getaddrinfo.c: Include sockets.h.
2472         (main): Invoke gl_sockets_startup.
2473         * modules/getaddrinfo-tests (Depends-on): Add sockets.
2475 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
2477         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
2478         * lib/poll.c: Call Windows native select() with Windows native timeval.
2480 2019-06-30  Bruno Haible  <bruno@clisp.org>
2482         argmatch: Fix compilation errors.
2483         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
2484         * tests/test-argmatch.c (main): Update after last-minute function names
2485         change.
2487 2019-06-30  Bruno Haible  <bruno@clisp.org>
2489         Include <stdlib.h> when needed.
2490         * lib/cnd.c: Include <stdlib.h>, needed for abort().
2491         * lib/fcntl.c: Likewise.
2492         * lib/mbscasestr.c: Likewise.
2493         * lib/mbssep.c: Likewise.
2494         * lib/mbsstr.c: Likewise.
2495         * lib/openat.c: Include <stdlib.h>, needed for free().
2496         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
2497         abort().
2499 2019-06-30  Bruno Haible  <bruno@clisp.org>
2501         Include <stdlib.h> when needed.
2502         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
2503         * lib/faccessat.c: Likewise.
2504         * lib/fchmodat.c: Likewise.
2505         * lib/fchownat.c: Likewise.
2506         * lib/fstatat.c: Likewise.
2507         * lib/mkfifoat.c: Likewise.
2508         * lib/mknodat.c: Likewise.
2509         * lib/readlinkat.c: Likewise.
2510         * lib/symlinkat.c: Likewise.
2511         * lib/utimensat.c: Likewise.
2512         * lib/mkdirat.c: Likewise. Include also the specification header.
2514 2019-06-30  Bruno Haible  <bruno@clisp.org>
2516         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
2517         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
2518         from gl_PREREQ_SYS_H_SOCKET.
2519         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
2520         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
2521         gl_PREREQ_SYS_H_WS2TCPIP.
2522         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
2523         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
2524         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
2526 2019-06-30  Bruno Haible  <bruno@clisp.org>
2528         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
2529         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
2530         REPLACE_INET_NTOP to 1 always.
2531         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
2532         REPLACE_INET_PTON to 1 always.
2534 2019-06-30  Bruno Haible  <bruno@clisp.org>
2536         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
2537         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
2538         not REPLACE_INET_NTOP.
2540 2019-06-30  Bruno Haible  <bruno@clisp.org>
2542         poll: Add comment.
2543         * lib/poll.c: Add comment about WSAPoll.
2545 2019-06-30  Bruno Haible  <bruno@clisp.org>
2547         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
2548         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
2549         * lib/poll.in.h: Include <winsock2.h>.
2550         (POLL*, pollfd): Override on native Windows.
2551         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2552         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
2553         (Makefile.am): Substitute HAVE_WINSOCK2_H.
2555 2019-06-28  Bruno Haible  <bruno@clisp.org>
2557         accept4: Fix compilation error on OpenIndiana.
2558         Reported by Michal Nowak <mnowak@startmail.com>
2559         via Mark H Weaver <mhw@netris.org>.
2560         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
2561         whether it exists as a function.
2563 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
2565         strverscmp: sync from glibc
2566         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
2567         comments, include libc-config.h, define __strverscmp to be
2568         strverscmp, and don’t assume types line uint8_t and int8_t that
2569         that C99 doesn’t guarantee.
2570         [!_LIBC]: Include libc-config.h; define __strverscmp.
2571         Include stdint.h.
2572         (__strverscmp): Assume C99.  Use uint_least8_t
2573         and int_least8_t instead of unsigned char and signed char.
2574         * modules/strverscmp (Depends-on): Add libc-config, stdint.
2576 2019-06-25  Bruno Haible  <bruno@clisp.org>
2578         tss tests: Add tests for destructors and races.
2579         * tests/test-tss.c (worker_thread): Fix typo in debug message.
2580         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
2581         functions.
2582         (main): Invoke them.
2583         * modules/tls-tests (Depends-on): Add mtx.
2585 2019-06-25  Bruno Haible  <bruno@clisp.org>
2587         tls tests: Add tests for destructors and races.
2588         * tests/test-tls.c: Include glthread/lock.h.
2589         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
2590         functions.
2591         (main): Invoke them.
2592         * modules/tls-tests (Depends-on): Add lock.
2594 2019-06-25  Bruno Haible  <bruno@clisp.org>
2596         windows-tls: Implement TLS key destructors for native Windows.
2597         * lib/windows-tls.h (glwthread_tls_process_destructors): New
2598         declaration.
2599         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
2600         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
2601         (dtor_table_init_once, dtor_table_lock: New variables.
2602         (struct dtor): New type.
2603         (dtor_table, dtors_count, dtors_used, dtors_allocated,
2604         dtor_processing_threads): New variables.
2605         (dtor_table_initialize, dtor_table_ensure_initialized,
2606         dtor_table_shrink_used, glwthread_tls_process_destructors): New
2607         functions.
2608         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
2609         handle non-NULL destructors.
2610         * modules/windows-tls (Depends-on): Add windows-once.
2611         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
2612         Use the functions declared in windows-tls.h.
2613         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
2614         GLWTHREAD_DESTRUCTOR_ITERATIONS.
2615         * lib/windows-thread.c: Include windows-tls.h.
2616         (wrapper_func, glwthread_thread_exit): Invoke
2617         glwthread_tls_process_destructors.
2618         * modules/windows-thread (Depends-on): Add windows-tls.
2620 2019-06-25  Bruno Haible  <bruno@clisp.org>
2622         threadlib: Avoid autoconf warning "was expanded before it was required".
2623         * modules/threadlib (configure.ac): Require gl_THREADLIB.
2625 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
2627         argmatch: remove duplicate const qualifier
2628         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
2630 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
2632         unistd: stddef.h and sys/types.h namespace cleanup
2633         * lib/unistd.in.h [__GLIBC__]:
2634         Do not include stddef.h or sys/types.h.
2635         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
2636         supposed to declare off_t and ssize_t.  Problem found when looking
2637         at why @GNULIB_PWRITE@ was different from the newly-added
2638         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
2640 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
2642         maintainer-makefile: restore portability to non-GNU awks
2643         Reported by Tim Rühsen.
2644         * top/maint.mk (AWK): New variable.  Use it.
2645         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
2647 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2649         Document setvbuf _IOLBF problem
2650         * doc/posix-functions/setvbuf.texi (setvbuf):
2651         Document MS-Windows portability problem with _IOLBF.
2653         Document lseek SEEK_DATA/SEEK_HOLE
2654         * doc/posix-functions/lseek.texi (lseek):
2655         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
2657 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
2659         argmatch: put all the docs member last.
2660         Reported by Bruno Haible.
2661         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
2662         member before the docs done.
2663         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
2665 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
2667         argmatch: add support to generate the usage message.
2668         * lib/argmatch.c: Move some #includes and gettext support to...
2669         * lib/argmatch.h: here.
2670         (ARGMATCH_DEFINE_GROUP): New macro.
2671         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
2672         (argmatch_backup_group): New.
2673         (CHECK): New.
2674         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
2675         argmatch_backup_argument and argmatch_backup_usage.
2676         * modules/argmatch: We depend on c99.
2677         * doc/argmatch.texi (Recognizing Option Arguments): New.
2678         * doc/gnulib.texi: Use it.
2680 2019-06-21  Bruno Haible  <bruno@clisp.org>
2682         thrd: Add comment.
2683         * lib/thrd.c (pthread_main_func): Add comment.
2685 2019-06-21  Bruno Haible  <bruno@clisp.org>
2687         threads-h: Define 'thread_local' if and only if it actually works.
2688         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
2689         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
2690         Oracle Solaris Studio C. Compile a simple program, to see whether
2691         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
2692         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
2693         * lib/threads.in.h (thread_local): Undefine if it does not work.
2694         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
2695         (Link): Mention LIBTHREADLOCAL.
2696         * tests/test-threads.c: Don't check that thread_local is defined.
2697         * tests/test-thread_local.c: New file.
2698         * modules/threads-h-tests (Files): Add it and macros.h.
2699         (Depends-on): Add thrd and stdint.
2700         (configure.ac): Test whether 'alarm' is declared.
2701         (Makefile.am): Arrange to build and link test-thread_local.
2702         * doc/posix-headers/threads.texi: Mention the platforms that don't
2703         support 'thread_local'.
2705 2019-06-20  Bruno Haible  <bruno@clisp.org>
2707         threads-h: Simplify link dependencies.
2708         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
2709         Don't set LTLIBSTDTHREAD.
2710         * modules/thrd (Link): Simplify accordingly.
2711         * modules/mtx (Link): Likewise.
2712         * modules/cnd (Link): Likewise.
2713         * modules/tss (Link): Likewise.
2714         * modules/threads (Link): Likewise.
2716 2019-06-20  Bruno Haible  <bruno@clisp.org>
2718         threads-h: Fix link error on FreeBSD 11.
2719         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
2720         also with -lpthread.
2722 2019-06-20  Bruno Haible  <bruno@clisp.org>
2724         threadlib: Fix typo (regression from today).
2725         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
2727 2019-06-20  Bruno Haible  <bruno@clisp.org>
2729         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
2730         * lib/windows-thread.c: Include <errno.h>.
2731         * lib/windows-tls.c: Likewise.
2733 2019-06-20  Bruno Haible  <bruno@clisp.org>
2735         tss tests: Small improvement.
2736         * tests/test-tss.c (test_tss): Pass a different id to each thread.
2738 2019-06-20  Bruno Haible  <bruno@clisp.org>
2740         threads: New module.
2741         * modules/threads: New file.
2743 2019-06-20  Bruno Haible  <bruno@clisp.org>
2745         tss: Add tests.
2746         * tests/test-tss.c: New file, based on tests/test-tls.c.
2747         * modules/tss-tests: New file.
2749 2019-06-20  Bruno Haible  <bruno@clisp.org>
2751         cnd: Add tests.
2752         * tests/test-cnd.c: New file, based on tests/test-cond.c.
2753         * modules/cnd-tests: New file.
2755 2019-06-20  Bruno Haible  <bruno@clisp.org>
2757         mtx: Add tests.
2758         * tests/test-mtx.c: New file, based on tests/test-lock.c.
2759         * tests/test-call_once.c: New file, based on tests/test-once.c.
2760         * modules/mtx-tests: New file.
2762 2019-06-20  Bruno Haible  <bruno@clisp.org>
2764         thrd: Add tests.
2765         * tests/test-thrd_create.c: New file, based on
2766         tests/test-thread_create.c.
2767         * tests/test-thrd_current.c: New file, based on
2768         tests/test-thread_self.c.
2769         * modules/thrd-tests: New file.
2771 2019-06-20  Bruno Haible  <bruno@clisp.org>
2773         tss: New module.
2774         * lib/tss.c: New file.
2775         * modules/tss: New file.
2776         * doc/posix-functions/tss_create.texi: Mention the new module.
2777         * doc/posix-functions/tss_set.texi: Likewise.
2778         * doc/posix-functions/tss_get.texi: Likewise.
2779         * doc/posix-functions/tss_delete.texi: Likewise.
2781 2019-06-20  Bruno Haible  <bruno@clisp.org>
2783         cnd: New module.
2784         * lib/cnd.c: New file.
2785         * modules/cnd: New file.
2786         * doc/posix-functions/cnd_init.texi: Mention the new module.
2787         * doc/posix-functions/cnd_wait.texi: Likewise.
2788         * doc/posix-functions/cnd_timedwait.texi: Likewise.
2789         * doc/posix-functions/cnd_signal.texi: Likewise.
2790         * doc/posix-functions/cnd_broadcast.texi: Likewise.
2791         * doc/posix-functions/cnd_destroy.texi: Likewise.
2793 2019-06-20  Bruno Haible  <bruno@clisp.org>
2795         mtx: New module.
2796         * lib/mtx.c: New file.
2797         * modules/mtx: New file.
2798         * doc/posix-functions/call_once.texi: Mention the new module.
2799         * doc/posix-functions/mtx_init.texi: Likewise.
2800         * doc/posix-functions/mtx_lock.texi: Likewise.
2801         * doc/posix-functions/mtx_trylock.texi: Likewise.
2802         * doc/posix-functions/mtx_timedlock.texi: Likewise.
2803         * doc/posix-functions/mtx_unlock.texi: Likewise.
2804         * doc/posix-functions/mtx_destroy.texi: Likewise.
2806 2019-06-20  Bruno Haible  <bruno@clisp.org>
2808         thrd: New module.
2809         * lib/thrd.c: New file.
2810         * m4/thrd.m4: New file.
2811         * modules/thrd: New file.
2812         * doc/posix-functions/thrd_current.texi: Mention the new module.
2813         * doc/posix-functions/thrd_detach.texi: Likewise.
2814         * doc/posix-functions/thrd_equal.texi: Likewise.
2815         * doc/posix-functions/thrd_exit.texi: Likewise.
2816         * doc/posix-functions/thrd_sleep.texi: Likewise.
2817         * doc/posix-functions/thrd_yield.texi: Likewise.
2818         * doc/posix-functions/thrd_create.texi: Mention the new module and the
2819         AIX bug.
2820         * doc/posix-functions/thrd_join.texi: Mention the new module and the
2821         AIX and Solaris bugs.
2823 2019-06-20  Bruno Haible  <bruno@clisp.org>
2825         threads-h: Add tests.
2826         * tests/test-threads.c: New file.
2827         * modules/threads-h-tests: New file.
2828         * tests/test-threads-c++.cc: New file.
2829         * modules/threads-h-c++-tests: New file.
2831 2019-06-20  Bruno Haible  <bruno@clisp.org>
2833         threads-h: New module.
2834         * lib/threads.in.h: New file.
2835         * m4/threads.m4: New file.
2836         * m4/yield.m4 (gl_YIELD): Update comment.
2837         * modules/threads-h: New file.
2838         * modules/yields (configure.ac): Use AC_REQUIRE.
2839         * doc/posix-headers/threads.texi: Mention the new module and the AIX
2840         bugs.
2842 2019-06-20  Bruno Haible  <bruno@clisp.org>
2844         windows-thread: New module.
2845         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
2846         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
2847         * lib/glthread/thread.h: Include windows-thread.h.
2848         (gl_thread_t): Define using glwthread_thread_t.
2849         (glthread_create): Define using glwthread_thread_create.
2850         (glthread_join): Define using glwthread_thread_join.
2851         (gl_thread_self): Define using glwthread_thread_self.
2852         (gl_thread_exit): Define using glwthread_thread_exit.
2853         (glthread_create_func, glthread_join_func, gl_thread_self_func,
2854         gl_thread_exit_func): Remove declarations.
2855         * lib/glthread/thread.c (self_key): Remove variable.
2856         (do_init_self_key, init_self_key): Remove functions.
2857         (struct gl_thread_struct): Remove type.
2858         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
2859         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
2860         functions.
2861         * modules/windows-thread: New file.
2862         * modules/thread (Depends-on): Add windows-thread.
2864 2019-06-20  Bruno Haible  <bruno@clisp.org>
2866         windows-tls: New module.
2867         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
2868         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
2869         * lib/glthread/tls.h: Include windows-tls.h.
2870         (gl_tls_key_t): Define using glwthread_tls_key_t.
2871         * modules/windows-tls: New file.
2872         * modules/tls (Depends-on): Add windows-tls.
2874 2019-06-20  Bruno Haible  <bruno@clisp.org>
2876         windows-cond: New module.
2877         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
2878         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
2879         * lib/glthread/cond.h: Include windows-cond.h.
2880         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
2881         (gl_cond_t): Define using glwthread_cond_t.
2882         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
2883         (glthread_cond_init): Define using glwthread_cond_init.
2884         (glthread_cond_wait): Define using glwthread_cond_wait.
2885         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
2886         (glthread_cond_signal): Define using glwthread_cond_signal.
2887         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
2888         (glthread_cond_destroy): Define using glwthread_cond_destroy.
2889         (glthread_cond_init_func, glthread_cond_wait_func,
2890         glthread_cond_timedwait_func, glthread_cond_signal_func,
2891         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
2892         declarations.
2893         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
2894         types.
2895         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
2896         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
2897         glthread_cond_init_func, glthread_cond_wait_func,
2898         glthread_cond_timedwait_func, glthread_cond_signal_func,
2899         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
2900         functions.
2901         * modules/windows-cond: New file.
2902         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
2904 2019-06-20  Bruno Haible  <bruno@clisp.org>
2906         windows-timedrecmutex: New module.
2907         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
2908         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
2909         * modules/windows-timedrecmutex: New file.
2911 2019-06-20  Bruno Haible  <bruno@clisp.org>
2913         windows-timedmutex: New module.
2914         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
2915         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
2916         * modules/windows-timedmutex: New file.
2918 2019-06-20  Bruno Haible  <bruno@clisp.org>
2920         windows-recmutex: New module.
2921         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
2922         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
2923         * lib/glthread/lock.h: Include windows-recmutex.h.
2924         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
2925         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
2926         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
2927         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
2928         (glthread_recursive_lock_unlock): Define using
2929         glwthread_recmutex_unlock.
2930         (glthread_recursive_lock_destroy): Define using
2931         glwthread_recmutex_destroy.
2932         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
2933         glthread_recursive_lock_unlock_func,
2934         glthread_recursive_lock_destroy_func): Remove declarations.
2935         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
2936         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
2937         glthread_recursive_lock_destroy_func): Remove functions.
2938         * modules/windows-recmutex: New file.
2939         * modules/lock (Depends-on): Add windows-recmutex.
2941 2019-06-20  Bruno Haible  <bruno@clisp.org>
2943         windows-mutex: New module.
2944         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
2945         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
2946         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
2947         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
2948         (gl_spinlock_t): Remove type.
2949         (gl_lock_t): Define using glwthread_mutex_t.
2950         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
2951         (glthread_lock_init): Define using glwthread_mutex_init.
2952         (glthread_lock_lock): Define using glwthread_mutex_lock.
2953         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
2954         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
2955         (glthread_lock_init_func, glthread_lock_lock_func,
2956         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
2957         declarations.
2958         Use glwthread_spinlock_t instead of gl_spinlock_t.
2959         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
2960         GLWTHREAD_SPINLOCK_INIT.
2961         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
2962         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
2963         functions.
2964         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
2965         gl_spinlock_t.
2966         * modules/windows-mutex: New file.
2967         * modules/lock (Depends-on): Add windows-mutex.
2969 2019-06-20  Bruno Haible  <bruno@clisp.org>
2971         windows-once: New module.
2972         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
2973         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
2974         * lib/glthread/lock.h: Include windows-once.h.
2975         (gl_once_t): Define using glwthread_once_t.
2976         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
2977         (glthread_once): Define using glwthread_once.
2978         (glthread_once_func): Remove declaration.
2979         * lib/glthread/lock.c (glthread_once_func): Remove function.
2980         * modules/windows-once: New file.
2981         * modules/lock (Depends-on): Add windows-once.
2983 2019-06-20  Bruno Haible  <bruno@clisp.org>
2985         lock, cond: Avoid possible counter wraparound on Windows.
2986         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
2987         field of the guard unchanged if it was already positive.
2988         (glthread_rwlock_rdlock_func): Likewise.
2989         (glthread_rwlock_wrlock_func): Likewise.
2990         (glthread_recursive_lock_lock_func): Likewise.
2991         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
2992         (glthread_cond_timedwait_func): Likewise.
2994 2019-06-20  Bruno Haible  <bruno@clisp.org>
2996         cond: Make glthread_cond_timedwait more reliable on Windows.
2997         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
2998         condition variable before looking at the current time.
3000 2019-06-20  Bruno Haible  <bruno@clisp.org>
3002         pthread_mutex_timedlock: New module.
3003         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
3004         new declaration.
3005         * lib/pthread_mutex_timedlock.c: New file.
3006         * m4/pthread_mutex_timedlock.m4: New file.
3007         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
3008         whether pthread_mutex_timedlock is declared.
3009         (gl_PTHREAD_MODULE_INDICATOR): New macro.
3010         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
3011         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
3012         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
3013         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
3014         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
3015         * modules/pthread_mutex_timedlock: New file.
3016         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
3017         module.
3019 2019-06-20  Bruno Haible  <bruno@clisp.org>
3021         thread, lock, cond, tls: Recognize C11 multithreaded applications.
3022         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
3023         * lib/glthread/thread.h (c11_threads_in_use): New macro.
3024         (pthread_in_use, pth_in_use, thread_in_use): Use it.
3025         * lib/glthread/lock.h (c11_threads_in_use): New macro.
3026         (pthread_in_use, pth_in_use, thread_in_use): Use it.
3027         * lib/glthread/cond.h (c11_threads_in_use): New macro.
3028         (pthread_in_use, pth_in_use, thread_in_use): Use it.
3029         * lib/glthread/tls.h (c11_threads_in_use): New macro.
3030         (pthread_in_use, pth_in_use, thread_in_use): Use it.
3032 2019-06-20  Bruno Haible  <bruno@clisp.org>
3034         tls tests: Small improvements.
3035         * tests/test-tls.c: Include <stdint.h>.
3036         (worker_thread): Avoid gcc warning on 64-bit mingw.
3037         (test_tls): Pass a different id to each thread.
3038         * modules/tls-tests (Depends-on): Add stdint.
3040 2019-06-20  Bruno Haible  <bruno@clisp.org>
3042         cond tests: Simplify.
3043         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
3045 2019-06-20  Bruno Haible  <bruno@clisp.org>
3047         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
3048         * tests/test-lock.c (test_once): Don't reference fire_signal if
3049         !ENABLE_LOCKING.
3051 2019-06-19  Bruno Haible  <bruno@clisp.org>
3053         nanosleep: Relicense under LGPLv2+.
3054         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
3055         * modules/nanosleep (License): Change to LGPLv2+.
3057 2019-06-19  Bruno Haible  <bruno@clisp.org>
3059         Reorder pieces of header in perl scripts.
3060         The desired order is
3061         - Prologue part 1 (2 lines with #!)
3062         - Program short description
3063         - Copyright and license notice
3064         - Written-by notice
3065         - Program short description (optional)
3066         - Program long description (optional)
3067         - Prologue part 2
3068         - Time stamp
3069         - Code
3070         Reported by Paul Eggert.
3071         * build-aux/announce-gen: Reorder header.
3072         * build-aux/gitlog-to-changelog: Likewise.
3073         * build-aux/useless-if-before-free: Likewise.
3074         * build-aux/prefix-gnulib-mk: Add copyright notice and short
3075         description.
3076         * build-aux/update-copyright: Likewise. Add short description. Bump
3077         time-stamp-line-limit to 200.
3079 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
3081         verify-tests: work around xlc bug
3082         Problem reported by Bruno Haible in:
3083         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
3084         * tests/test-verify.c (item): Move the arithmetic inside the
3085         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
3087 2019-06-16  Bruno Haible  <bruno@clisp.org>
3089         Restore Emacs time-stamp hook applicability.
3090         Reported by Darshit Shah <darnir@gnu.org>.
3091         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
3092         * build-aux/announce-gen: Likewise.
3093         * build-aux/gitlog-to-changelog: Likewise.
3094         * build-aux/prefix-gnulib-mk: Likewise.
3095         * build-aux/update-copyright: Likewise.
3097 2019-06-15  Bruno Haible  <bruno@clisp.org>
3099         Fix scripts to have valid executable format on Alpine Linux.
3100         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
3101         Idea by Paul Eggert.
3102         * build-aux/useless-if-before-free: Use a prologue that starts with
3103         '#!/bin/sh'.
3104         * build-aux/announce-gen: Likewise.
3105         * build-aux/gitlog-to-changelog: Likewise.
3106         * build-aux/prefix-gnulib-mk: Likewise.
3107         * build-aux/update-copyright: Likewise.
3108         * tests/test-update-copyright.sh: Update test program accordingly.
3110 2019-06-10  Bruno Haible  <bruno@clisp.org>
3112         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
3113         Reported by Nikita Ermakov <arei@altlinux.org> in
3114         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
3115         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
3116         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
3118 2019-06-10  Bruno Haible  <bruno@clisp.org>
3120         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
3121         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
3122         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
3123         a copy of the path argument.
3124         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
3125         it.
3127 2019-06-10  Bruno Haible  <bruno@clisp.org>
3129         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
3130         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
3131         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
3132         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
3133         a copy of the path argument.
3134         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
3135         it.
3137 2019-06-10  Bruno Haible  <bruno@clisp.org>
3139         posix_spawn_file_actions_addfchdir: Add tests.
3140         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
3141         * tests/test-posix_spawn5.c: New file.
3142         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
3144 2019-06-10  Bruno Haible  <bruno@clisp.org>
3146         posix_spawn_file_actions_addfchdir: New module.
3147         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
3148         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
3149         union member 'fchdir_action'.
3150         * lib/spawn_faction_addfchdir.c: New file.
3151         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
3152         * m4/posix_spawn_faction_addfchdir.m4: New file.
3153         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
3154         'posix_spawn_file_actions_addfchdir' is present and whether
3155         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
3156         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
3157         posix_spawn_file_actions_addfchdir is declared.
3158         (gl_SPAWN_H_DEFAULTS): Initialize
3159         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
3160         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
3161         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
3162         * modules/spawn (Makefile.am): Substitute
3163         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
3164         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
3165         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
3166         * modules/posix_spawn_file_actions_addfchdir: New file.
3167         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
3168         signature.
3169         * doc/posix-functions/posix_spawn.texi: Mention the new module.
3170         * doc/posix-functions/posix_spawnp.texi: Likewise.
3171         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
3172         Likewise.
3174 2019-06-10  Bruno Haible  <bruno@clisp.org>
3176         doc: Document existence of posix_spawn_file_actions_addchdir module.
3177         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
3178         the posix_spawn_file_actions_addchdir module.
3180 2019-06-10  Bruno Haible  <bruno@clisp.org>
3182         posix_spawn-internal: Fix module description.
3183         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
3184         from here...
3185         * modules/posix_spawnp (configure.ac): ... and here...
3186         * modules/posix_spawn-internal (configure.ac): ... to here.
3188 2019-06-10  Bruno Haible  <bruno@clisp.org>
3190         doc: Update and improve documentation of glibc functions.
3191         This is a series of commits that
3192         - updates the documentation to the state of glibc 2.29,
3193         - adds references to Linux man pages and glibc documentation,
3194         - marks Linux specific functions as such.
3195         These are the commits:
3196         doc: Update after removal of crypt functions from glibc 2.28.
3197         doc: Remove mention of function vm86 (does not exist on x86_64).
3198         doc: Remove mention of functions that are gone from glibc.
3199         doc: Mention that glibc no longer provides h_errno.
3200         doc: Mention the availability of specific functions in glibc versions.
3201         doc: Mention eaccess.
3202         doc: Add references to Linux man pages.
3203         doc: Add references to glibc documentation.
3204         doc: Mention inotify_* functions.
3205         doc: Mention ppoll.
3206         doc: Mention sched_getcpu.
3207         doc: Mention sync_file_range.
3208         doc: Mention epoll_pwait.
3209         doc: Mention eventfd, eventfd_read, eventfd_write.
3210         doc: Mention signalfd.
3211         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
3212         doc: Mention epoll_create1.
3213         doc: Mention getauxval.
3214         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
3215         doc: Mention nextdown, nextup.
3216         doc: Mention more ISO TS 18661-1 <math.h> functions.
3217         doc: Mention ISO TS 18661-1 <fenv.h> functions.
3218         doc: Mention getrandom, getentropy.
3219         doc: Mention strfromf, strfromd, strfroml.
3220         doc: Mention preadv2, pwritev2.
3221         doc: Mention copy_file_range.
3222         doc: Mention memfd_create.
3223         doc: Mention mlock2.
3224         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
3225         doc: Mention more ISO TS 18661-1 <math.h> functions.
3226         doc: Mention renameat2.
3227         doc: Mention statx.
3228         doc: Mention the ISO C11 multithreading header and functions.
3229         doc: Mention getcpu.
3230         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
3231         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
3232         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
3233         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
3234         doc: Some glibc functions also exist on Solaris 11.
3235         doc: Some glibc functions also exist on Solaris 11.4.
3236         doc: Some glibc functions also exist on FreeBSD.
3237         doc: Some glibc functions also exist on BeOS.
3238         doc: Some glibc functions also exist on Haiku.
3239         doc: Mark functions which exist only on Linux.
3240         doc: Mark functions which exist only on Linux and illumos.
3242 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
3244         copy-file: fix typo
3245         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
3247         copy-file-range: simplify into a stub
3248         Based on a comment by Florian Weimer in:
3249         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
3250         It turns out that Emacs (which will use this module) won’t need an
3251         emulation and I suspect other programs won’t either, because these
3252         programs will need to fall back on read+write anyway.  Perhaps I
3253         am wrong and other programs will be able to use an emulation; if
3254         so, this patch can be reverted.
3255         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
3256         Just call it copy_file_range.
3257         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
3258         Check via AC_LINK_IFELSE.
3259         * modules/copy-file-range (Depends-on): Remove modules no longer used.
3261 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
3263         copy-file: prefer copy_file_range
3264         * lib/copy-file.c: Do not include xalloc.h.
3265         (qcopy_file_preserving): Allocate a buffer only if
3266         copy_file_range does not suffice.  If the allocation fails
3267         don't give up; just use a small stack-based buffer.
3268         Prefer copy_file_range if it works.
3269         * modules/copy-file (Depends-on): Add copy-file-range.
3270         Remove xalloc.
3272         copy-file-range: new module
3273         * MODULES.html.sh: Add copy-file-range.
3274         * lib/copy-file-range.c, m4/copy-file-range.m4:
3275         * modules/copy-file-range: New files.
3276         * lib/unistd.in.h (copy_file_range): Declare.
3277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
3278         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
3279         * modules/unistd (unistd.h): Substitute them.
3281 2019-05-28  Bruno Haible  <bruno@clisp.org>
3283         binary-io: Attempted use of O_BINARY on consoles no longer fails.
3284         Reported by KO Myung-Hun <komh78@gmail.com> in
3285         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
3286         * lib/binary-io.h (__gl_setmode_check): Remove function.
3287         (set_binary_mode): Declare as notinline on DJGPP and EMX.
3288         * lib/binary-io.c (__gl_setmode_check): Remove function.
3289         (set_binary_mode): Define here on DJGPP and EMX. Inline
3290         __gl_setmode_check. In case of a tty, don't return an error code.
3292 2019-05-28  James Youngman  <jay@gnu.org>
3294         dirent-safer: Make opendir_safer usable from C++.
3295         * lib/dirent-safer.h: use extern "C".
3297 2019-05-28  James Youngman  <jay@gnu.org>
3299         canonicalize: Make canonicalize_filename_mode usable from C++.
3300         * lib/canonicalize.h: use extern "C".
3302 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
3304         prefix-gnulib-mk: Fix CPPFLAGS migration.
3305         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
3306         _a part of the library name.
3308 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
3310         flexmember: update comments again
3311         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
3313         flexmember: update comment
3314         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
3316 2019-05-20  Bruno Haible  <bruno@clisp.org>
3318         setlocale: Improve fallback on macOS.
3319         * lib/setlocale.c (search): Optimize away a redundant strcmp()
3320         invocation.
3321         (locales_with_principal_territory): New array.
3322         (langcmp, get_main_locale_with_same_language): New functions.
3323         (locales_with_principal_language): New array.
3324         (terrcmp, get_main_locale_with_same_territory): New functions.
3325         (rpl_setlocale): When setlocale_single failed, try again with a locale
3326         that is more likely to exist. Don't warn if the environment variable
3327         SETLOCALE_VERBOSE is not set.
3329 2019-05-19  Bruno Haible  <bruno@clisp.org>
3331         localename: Fix default on macOS.
3332         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
3333         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
3334         (gl_locale_name_environ, gl_locale_name_default): Remove code for
3335         HAVE_CFLOCALECOPYCURRENT.
3336         * lib/localename.h (gl_locale_name_default): Update.
3338 2019-05-19  Karl Berry  <karl@freefriends.org>
3340         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
3341         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
3342         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
3344 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
3346         maintainer-makefile: catch uses of $< in non-implicit rules
3347         * top/maint.mk (sc_prohibit_magic_number_exit): New.
3349 2019-05-18  Bruno Haible  <bruno@clisp.org>
3351         threadlib: Provide an easy way to avoid mingw's winpthreads library.
3352         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
3353         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
3354         gl_use_threads accordingly.
3356 2019-05-18  Bruno Haible  <bruno@clisp.org>
3358         pthread_sigmask: Fix compilation error with --enable-threads=windows.
3359         Reported by Tim Rühsen in
3360         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
3361         and Michele Locati in
3362         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
3363         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
3364         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
3365         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
3366         in use and regardless which threads API is chosen.
3368 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3370         close-stream, closein, closeout: simplify
3371         I noticed this opportunity for simplification while drafting a
3372         new, related module that I haven’t had time to finish yet.
3373         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
3374         * modules/close-stream (Files): Remove m4/close-stream.m4.
3375         (configure.ac): Omit gl_CLOSE_STREAM.
3376         * modules/closein (Files): Remove m4/closein.m4
3377         (configure.ac): Omit gl_CLOSEIN.
3378         * modules/closeout (Files): Remove m4/closeout.m4.
3379         (configure.ac): Omit gl_CLOSEOUT.
3381 2019-05-12  Bruno Haible  <bruno@clisp.org>
3383         libtool-next-version: New program.
3384         * build-aux/libtool-next-version: New file.
3386 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
3387             Bruno Haible  <bruno@clisp.org>
3389         version-etc: Ease translation.
3390         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
3391         URLs and formatting newlines out of translatable string.
3393 2019-05-11  Bruno Haible  <bruno@clisp.org>
3395         gnupload: Explain how to create symlinks.
3396         * build-aux/gnupload (usage): Add an example that creates symlinks.
3398 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3400         fpucw: port to gcc -pedantic
3401         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
3402         Use __extension__ if using ({ ... }).
3404         crypto/af_alg: port to strict C compilers
3405         * lib/af_alg.c: Include af_alg.h regardless, so that the
3406         compilation unit is nonempty.
3408 2019-05-10  Bruno Haible  <bruno@clisp.org>
3410         base64: Avoid false positive warning from Coverity.
3411         Reported by Kamil Dudka <kdudka@redhat.com>.
3412         Idea by Paul Eggert.
3413         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
3414         '& 0x3f' to the array index expressions. This convinces Coverity that
3415         there is no out-of-bounds array reference, regardless of the input.
3417 2019-05-09  Bruno Haible  <bruno@clisp.org>
3419         gettext: Update to gettext 0.20.
3420         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
3421         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
3422         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
3423         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
3424         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
3425         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
3426         (configure.ac): Request infrastructure compatible with gettext 0.20.
3427         * m4/glibc2.m4: Remove file.
3428         * m4/intdiv0.m4: Remove file.
3429         * m4/intl.m4: Remove file.
3430         * m4/intldir.m4: Remove file.
3431         * m4/intmax.m4: Remove file.
3432         * m4/printf-posix.m4: Remove file.
3433         * m4/uintmax_t.m4: Remove file.
3434         * m4/gettext.m4: Update from gettext 0.20.
3435         * m4/po.m4: Likewise.
3437 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3439         verify: remove verify_true
3440         * NEWS: Mention this.
3441         * lib/verify.h (verify_true): Remove.
3442         * tests/test-verify.c (item): Test verify_expr, not verify_true.
3444         Support C2X and C++17 static_assert
3445         C2X and C++17 finally added support for a simple, single-argument
3446         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
3447         doing back in 2005.  Implement static_assert on older platforms.
3448         The only remaining advantage of ‘verify’ is a shorter name.
3449         * doc/posix-headers/assert.texi (assert.h):
3450         * doc/verify.texi (Compile-time Assertions):
3451         Modernize for C2X and C++17.
3452         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
3453         New macros.
3454         (_GL_HAVE__STATIC_ASSERT): Remove.
3455         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
3456         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
3457         string.  All callers changed.
3458         (_GL_VERIFY): Require 3 or more args, of which only the first 2
3459         are used.  All callers changed.
3460         (_Static_assert): Allow either 1 or 2 args, and define if
3461         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
3462         !_GL_HAVE__STATIC_ASSERT.
3463         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
3464         of defining if !_GL_HAVE_STATIC_ASSERT.
3465         (verify_expr, verify): Don’t bother trying to copy the expression
3466         into the diagnostic, since 1-argument static_assert doesn’t.
3467         (verify): Prefer 1-argument _Static_assert if it works.
3468         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
3470 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
3472         Fix _GL_HAVE__STATIC_ASSERT typo
3473         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
3474         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
3476 2019-05-05  Bruno Haible  <bruno@clisp.org>
3478         wcwidth: Ensure width 1, not 2, for ambiguous characters.
3479         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
3480         via Akim Demaille <akim.demaille@gmail.com>.
3481         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
3482         en_US.UTF-8 locale, since that is more likely to be present than an
3483         fr_FR.UTF-8 locale.
3484         * tests/test-wcwidth.c (main): Check the width of U+2202.
3485         * doc/posix-functions/wcwidth.texi: Mention the issue.
3487 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3489         Port manywarnings to GCC 9
3490         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
3491         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
3492         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
3493         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
3494         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
3495         --help=warnings output.
3496         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
3497         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
3498         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
3500 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
3502         Sync lib/mktime-internal.h from glibc
3503         * config/srclist.txt: Add entry for lib/mktime-internal.h.
3504         * lib/mktime-internal.h: Autoupdate.
3506 2019-04-28  Bruno Haible  <bruno@clisp.org>
3508         tls tests: Prevent that the test takes too long.
3509         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
3510         (main): Let the test fail if it takes more than 10 minutes.
3511         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
3513 2019-04-27  Bruno Haible  <bruno@clisp.org>
3515         lock tests: Prevent that the test takes too long.
3516         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
3517         (main): Let the test fail if it takes more than 10 minutes.
3518         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
3520 2019-04-27  Bruno Haible  <bruno@clisp.org>
3522         localename: Fix crash on mingw (regression from 2018-11-23).
3523         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
3524         locale name that is null.
3526 2019-04-27  Bruno Haible  <bruno@clisp.org>
3528         Fix gcc warnings on 64-bit mode mingw.
3529         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
3530         * lib/gl_array_list.c: Likewise.
3531         * lib/gl_array_map.c: Likewise.
3532         * lib/gl_array_set.c: Likewise.
3533         * lib/gl_carray_list.c: Likewise.
3534         * lib/gl_sublist.c: Likewise.
3535         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
3536         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
3537         * lib/gl_hash_map.c (uintptr_t): Likewise.
3538         * lib/gl_hash_set.c (uintptr_t): Likewise.
3539         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
3540         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
3541         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
3542         * lib/iconv.c (uintptr_t): Likewise.
3543         * lib/iconv_close.c (uintptr_t): Likewise.
3544         * tests/test-lock.c: Include <stdint.h>.
3545         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
3546         'long'.
3547         * modules/clean-temp (Depends-on): Add stdint.
3548         * modules/array-list (Depends-on): Likewise.
3549         * modules/array-map (Depends-on): Likewise.
3550         * modules/array-set (Depends-on): Likewise.
3551         * modules/carray-list (Depends-on): Likewise.
3552         * modules/sublist (Depends-on): Likewise.
3553         * modules/lock-tests (Depends-on): Likewise.
3555 2019-04-27  Bruno Haible  <bruno@clisp.org>
3557         error: Tweak indentation.
3558         * lib/error.c: Correct indentation.
3560 2019-04-27  Bruno Haible  <bruno@clisp.org>
3562         term-style-control: Fix gcc warning on mingw.
3563         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
3564         of i.
3566 2019-04-26  Bruno Haible  <bruno@clisp.org>
3568         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
3569         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
3571 2019-04-26  Bruno Haible  <bruno@clisp.org>
3573         relocatable-prog: Fix gcc warning on mingw.
3574         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
3575         on EMX.
3577 2019-04-02  Bruno Haible  <bruno@clisp.org>
3579         gitsub.sh: New file.
3580         * top/gitsub.sh: New file.
3582 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
3584         argmatch: use void* for raw memory pointers
3585         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
3586         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
3587         to "values", keep char* for strings.
3589 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
3591         prefix-gnulib-mk: fix the support for gnulib-po
3592         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
3593         Don't touch HAVE_* variables.
3594         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
3596 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
3598         di-set: allow free with 'ino_map' being NULL.
3599         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
3600         is NULL.  Bug introduced in commit 3703dbbe88dd.
3601         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
3602         as a test.
3604 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
3606         * lib/str-two-way.h: Fix comment typo.
3608 2019-04-13  Bruno Haible  <bruno@clisp.org>
3610         x-to-1: Restore ability to use original calling convention.
3611         * build-aux/x-to-1.in: Add comments. Accept the original form of
3612         HELP2MAN argument as well as the form expected since 2012-12-12.
3614 2019-04-13  Bruno Haible  <bruno@clisp.org>
3616         x-to-1: Avoid failure due to missing perl modules.
3617         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
3618         needs are installed.
3620 2019-04-13  Bruno Haible  <bruno@clisp.org>
3622         openmp-init: New module.
3623         * modules/openmp-init: New file.
3624         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
3625         the changes from 2019-04-09.
3627 2019-04-12  Bruno Haible  <bruno@clisp.org>
3629         signbit: Fix compilation error when gnulib's math.h exists twice.
3630         * lib/math.in.h (GNULIB_defined_signbit): New macro.
3632 2019-04-12  Bruno Haible  <bruno@clisp.org>
3634         openmp: Fix compilation error on platforms without OpenMP.
3635         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
3637 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
3639         mountlist: make parsing /proc/self/mountinfo more robust
3640         Cater for the following issues with mountinfo parsing (the first
3641         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
3642         in <https://bugs.gnu.org/35137>).
3643         1. The fields source, target, mntroot and fstype may contain characters
3644         like '\r'; sscanf(3) fails to read such values with the %s format
3645         specifier because it would stop at such characters.
3646         Example: "mount -t tmpfs tmpfs /foo^Mbar".
3647         The only true separator in that file is the ' ' character.
3648         2. The source field may be an empty string, which happens e.g. with
3649         "mount -t tmpfs '' /target".
3650         3. The fstype field may contain mangled characters as well which need
3651         unescaping.
3652         * lib/mountlist.c (terminate_at_blank): Add utility function.
3653         (read_file_system_list): In the block trying to read the mountinfo file,
3654         avoid using sscanf(3) with %s format; instead, parse the above fields
3655         separated by spaces one by one.
3656         This also handles the case when the source field is an empty string.
3657         Unescape the fstype field.
3659 2019-04-09  Bruno Haible  <bruno@clisp.org>
3661         openmp: Add workaround for 32-bit programs on AIX.
3662         * lib/omp.in.h: New file.
3663         * lib/omp-init.c: New file, based on lib/nproc.c.
3664         * m4/omp_h.m4: New file.
3665         * modules/openmp (Files): Add them.
3666         (Depends-on): Add include_next, c-ctype, setenv.
3667         (configure.ac): Invoke gl_OMP_H.
3668         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
3669         (Include): Mention <omp.h>.
3671 2019-04-09  Bruno Haible  <bruno@clisp.org>
3673         nproc: Fix return value for privileged processes.
3674         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
3675         getpid().
3677 2019-04-07  Bruno Haible  <bruno@clisp.org>
3679         Add copyright notices in several files.
3680         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
3681         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
3682         * lib/libunistring.valgrind: Likewise.
3683         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
3684         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
3685         * lib/memchr.valgrind: Likewise.
3686         * lib/memchr2.valgrind: Likewise.
3687         * lib/rawmemchr.valgrind: Likewise.
3688         * lib/relocatable.valgrind: Likewise.
3689         * lib/strchrnul.valgrind: Likewise.
3691 2019-03-25  Bruno Haible  <bruno@clisp.org>
3693         term-style-control tests: Fix link error.
3694         Reported by Tom G. Christensen in
3695         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
3696         * modules/term-style-control-tests (Makefile.am): Link
3697         test-term-style-control-hello and test-term-style-control-yes against
3698         LIBINTL.
3700 2019-03-24  Bruno Haible  <bruno@clisp.org>
3702         term-style-control: Add tests.
3703         * tests/test-term-style-control-hello.c: New file.
3704         * tests/test-term-style-control-yes.c: New file.
3705         * modules/term-style-control-tests: New file.
3707         term-style-control: New module.
3708         * lib/term-style-control.h: New file, based on libtextstyle's
3709         term-ostream.oo.h and term-ostream.oo.c.
3710         * lib/term-style-control.c: New file, based on libtextstyle's
3711         term-ostream.oo.c.
3712         * modules/term-style-control: New file.
3714 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
3716         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
3717         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
3718         C++98 appears to be supported by Clang, but not by GCC nor ICC.
3720 2019-03-23  Bruno Haible  <bruno@clisp.org>
3722         Support cross-compilation to musl libc.
3723         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
3724         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
3725         musl libc.
3726         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
3727         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
3728         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
3729         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3730         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3731         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
3732         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
3733         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
3734         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3735         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
3736         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
3737         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
3738         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
3739         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3740         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
3741         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
3742         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3743         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3744         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
3745         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
3746         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3747         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
3748         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
3749         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
3750         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
3751         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
3752         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
3753         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
3754         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
3755         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
3756         * m4/log.m4 (gl_FUNC_LOG): Likewise.
3757         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
3758         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
3759         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
3760         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
3761         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
3762         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
3763         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
3764         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
3765         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
3766         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
3767         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
3768         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3769         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3770         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
3771         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
3772         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3773         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
3774         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
3775         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
3776         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
3777         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
3778         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
3779         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
3780         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3781         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
3782         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3783         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3784         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3785         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3786         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3787         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3788         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3789         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
3790         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3791         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3792         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
3793         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
3794         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3795         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
3796         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3797         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3798         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3799         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
3800         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
3801         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
3802         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3803         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3805 2019-03-23  Bruno Haible  <bruno@clisp.org>
3807         posix_spawn_file_actions_*: Document musl libc bugs.
3808         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
3809         the bug.
3810         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
3811         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
3812         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
3813         cross-compiling to a musl system, guess no.
3814         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
3815         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
3817 2019-03-23  Bruno Haible  <bruno@clisp.org>
3819         futimens: Document musl libc bug.
3820         * doc/posix-functions/futimens.texi: Mention the bug.
3821         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
3822         cross-compiling, guess no on glibc and musl systems.
3824 2019-03-23  Bruno Haible  <bruno@clisp.org>
3826         Clarify that cross-compilation guesses are guesses.
3827         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
3828         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
3829         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
3830         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
3831         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
3832         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
3833         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
3834         gl_cv_glob_lists_symlinks.
3835         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
3836         'guessing ' to ac_cv_func_malloc_0_nonnull.
3837         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
3838         'guessing ' to ac_cv_func_realloc_0_nonnull.
3839         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
3840         'guessing ' to gl_cv_func_poll.
3841         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
3842         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
3843         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
3845 2019-03-23  Bruno Haible  <bruno@clisp.org>
3847         strtold: Fix typo.
3848         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
3850 2019-03-23  Bruno Haible  <bruno@clisp.org>
3852         noreturn: In C++ mode with clang, use _Noreturn as fallback.
3853         Reported by Akim Demaille.
3854         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
3855         [[noreturn]] would not work, use _Noreturn instead.
3857 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
3859         libtextstyle-optional: Fix compiler warnings.
3860         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
3861         as unused.
3863 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
3865         bitset: fix memory leaks
3866         Reported by Bruno Haible.
3867         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
3868         * lib/bitset/vector.c (vbitset_free): New.
3869         (vbitset_vtable): Use it.
3871 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
3873         bitset: minor changes
3874         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
3875         * lib/bitset/table.c: Formatting changes.
3876         Remove useless braces.
3877         Prefer using else in cascades of if/else-if with returns.
3878         * lib/bitset/vector.c: Reduce scopes.
3880 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
3882         bitset: expose bitset_resize
3883         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
3884         * tests/test-bitset.c (check_attributes): Check bitset_resize.
3885         (main): Use a variable bitset as reference, since fixed does not support resize.
3887 2019-03-19  Bruno Haible  <bruno@clisp.org>
3889         doc: Document the 'stdnoreturn' and 'noreturn' modules.
3890         Reported by Akim Demaille.
3891         * doc/noreturn.texi: New file.
3892         * doc/gnulib.texi: Include it.
3894 2019-03-19  Bruno Haible  <bruno@clisp.org>
3896         doc: Document how to use 'static inline'.
3897         * doc/static-inline.texi: New file.
3898         * doc/gnulib.texi: Include it.
3900 2019-03-19  Bruno Haible  <bruno@clisp.org>
3902         libtextstyle-optional: Add tests.
3903         * tests/test-libtextstyle.c: New file, based on libtextstyle's
3904         adhoc-tests/hello.c.
3905         * tests/test-libtextstyle-default.css: New file, copied from
3906         libtextstyle's adhoc-tests/hello-default.css.
3907         * modules/libtextstyle-optional-tests: New file.
3909         libtextstyle-optional: New module.
3910         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
3911         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
3912         * modules/libtextstyle-optional: New file.
3914 2019-03-19  Bruno Haible  <bruno@clisp.org>
3916         c-stack: Make signal handlers more reliable.
3917         * lib/c-stack.c (progname): New variable.
3918         (die): Use it.
3919         (c_stack_action): Initialize it.
3920         (segv_handler): Save and restore errno.
3922 2019-03-19  Bruno Haible  <bruno@clisp.org>
3924         Help making signal handlers more reliable.
3925         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
3926         _GL_ASYNC_SAFE into config.h.
3927         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
3928         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
3929         argument.
3930         * lib/fatal-signal.c (action_t, uninstall_handlers,
3931         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
3932         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
3933         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
3934         _GL_ASYNC_SAFE.
3935         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
3936         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
3938 2019-03-18  Bruno Haible  <bruno@clisp.org>
3940         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
3941         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
3942         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
3944 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
3946         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
3947         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
3948         GCC 4.8.
3950 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
3952         fts: minor simplification
3953         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
3955 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
3957         bitset, timevar: Depend on c99.
3958         Reported by Bruno Haible.
3959         * modules/bitset, modules/timevar (Depends-on): Add c99.
3961 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
3963         bitset: a bit (...) more tests
3964         * tests/test-bitset.c (check_attributes): Check zero and ones.
3966 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
3968         bitset: fix overflows.
3969         Reported by Bruno Haible.
3970         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
3971         * lib/bitset/table.c (tbitset_test): last_bit is the position of
3972         the bit in the array of bitset_word, so be sure to take its modulo
3973         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
3974         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
3976 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
3978         bitset: style changes.
3979         * lib/bitset/table.c: Use NULL, not 0, for pointers.
3980         Formatting changes.
3981         (tbitset_list): Reduce scopes.
3983 2019-03-16  Bruno Haible  <bruno@clisp.org>
3985         fatal-signal: Pass the signal number to the action.
3986         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
3987         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
3988         (fatal_signal_handler): Pass the signal number to the action.
3989         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
3990         signal number as parameter.
3991         (create_temp_dir): Update.
3992         * lib/wait-process.c (cleanup_slaves_action): New function.
3993         (register_slave_subprocess): Update at_fatal_signal invocation.
3994         * NEWS: Mention the change.
3996 2019-03-16  Bruno Haible  <bruno@clisp.org>
3998         fatal-signal: Add function that lists the fatal signals.
3999         * lib/fatal-signal.h (get_fatal_signals): New declaration.
4000         * lib/fatal-signal.c (get_fatal_signals): New function.
4002 2019-03-14  Bruno Haible  <bruno@clisp.org>
4004         isatty: Make it return true in Cygwin consoles on native Windows.
4005         * lib/isatty.c: Include <string.h>.
4006         (GetProcAddress): New macro.
4007         (GetNamedPipeClientProcessIdFuncType): New type.
4008         (GetNamedPipeClientProcessIdFunc): New variable.
4009         (QueryFullProcessImageNameFuncType): New type.
4010         (QueryFullProcessImageNameFunc): New variable.
4011         (initialized): New variable.
4012         (initialize): New function.
4013         (IsCygwinConsoleHandle): New function.
4014         (isatty): Invoke it.
4015         * doc/posix-functions/isatty.texi: Mention the issue.
4017 2019-03-14  Bruno Haible  <bruno@clisp.org>
4019         all: Update URLs to msdn.microsoft.com.
4020         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
4021         was moved to docs.microsoft.com.
4023 2019-03-13  Bruno Haible  <bruno@clisp.org>
4025         gnulib-tool: Clarify the coding style.
4026         Suggested by Pavel Raiskup <praiskup@redhat.com>.
4027         * gnulib-tool: Add comment about coding style.
4029 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
4031         strtod: fix clash with strtold
4032         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
4033         * lib/strtod.c (compute_minus_zero, minus_zero):
4034         Simplify by remving the macro / external variable,
4035         and having just a function.  User changed.  This avoids
4036         the need for an external variable that might clash.
4038 2019-03-10  Bruno Haible  <bruno@clisp.org>
4040         alloca-opt: Fix conflict mingw's new <alloca.h> file.
4041         Reported by Eli Zaretskii <eliz@gnu.org>.
4042         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
4043         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
4044         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
4046 2019-03-10  Bruno Haible  <bruno@clisp.org>
4048         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
4049         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
4050         is in use.
4051         * tests/test-printf-posix2.c: Likewise.
4053 2019-03-10  Bruno Haible  <bruno@clisp.org>
4055         uninorm tests: Free allocated memory.
4056         * tests/uninorm/test-u32-normalize-big.h
4057         (struct normalization_test_file): Remove 'const' from allocated member.
4058         (free_normalization_test_file): New declaration.
4059         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
4060         memory.
4061         (free_normalization_test_file): New function.
4062         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
4063         'struct normalization_test_file' contents.
4064         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
4065         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
4066         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
4068 2019-03-10  Bruno Haible  <bruno@clisp.org>
4070         di-set: Fix memory leak.
4071         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
4072         not free().
4074 2019-03-10  Bruno Haible  <bruno@clisp.org>
4076         tests: Free allocated memory.
4077         Reported by <deltatau@protonmail.com> via Assaf Gordon.
4078         * tests/test-astrxfrm.c (main): Free allocated memory.
4079         * tests/test-bitset.c (compare, check_attributes): Free allocated
4080         bitsets.
4081         * tests/test-filenamecat.c (main): Free allocated memory.
4082         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
4083         * tests/test-freadptr.c (main): Likewise.
4084         * tests/test-freadptr2.c (main): Free allocated memory.
4085         * tests/test-freadseek.c (main): Likewise.
4086         * tests/test-gc-arcfour.c (main): Close allocated context.
4087         * tests/test-gc-arctwo.c (main): Likewise.
4088         * tests/test-gc-des.c (main): Close all allocated contexts.
4089         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
4090         * tests/test-pipe-filter-ii1.c (main): Likewise.
4091         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
4092         allocated file actions.
4093         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
4094         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
4095         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
4096         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
4097         * tests/test-strfmon_l.c (main): Free allocated locales.
4098         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
4099         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
4100         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
4101         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
4102         * tests/unistr/test-chr.h (main): Free input32.
4103         * tests/unistr/test-strchr.h (test_strchr): Likewise.
4105 2019-03-10  Bruno Haible  <bruno@clisp.org>
4107         tests: Prepare for using valgrind.
4108         * tests/*.sh: Invoke all test programs through ${CHECKER}.
4109         * tests/*/*.sh: Likewise.
4110         * tests/test-freadptr.c (main): Update accordingly.
4111         * tests/test-freadseek.c (main): Likewise.
4113 2019-03-09  Bruno Haible  <bruno@clisp.org>
4115         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
4116         * lib/get-rusage-as.c (get_rusage_as): When compiled by
4117         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
4118         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
4119         before exiting.
4121 2019-03-09  Jim Meyering  <meyering@fb.com>
4123         test-userspec.c: don't print NULL
4124         * tests/test-userspec.c (main): A test release of gcc,
4125         9.0.1 20190310, warned that this test would attempt to
4126         print a NULL pointer via a %s printf format.  Fix that
4127         and remove the unnecessary preceding "!diag" conjunct.
4128         Also add a comment.
4130 2019-03-03  Bruno Haible  <bruno@clisp.org>
4132         getloadavg: Write NULL for the null pointer.
4133         Reported by Michal Privoznik <mprivozn@redhat.com>.
4134         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
4136 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
4138         alloca, tsearch-tests: Write NULL for the null pointer.
4139         * lib/alloca.c (i00afunc): Write NULL instead of 0.
4140         * tests/test-tsearch.c (mangle_tree): Likewise.
4142 2019-03-09  Bruno Haible  <bruno@clisp.org>
4144         strfmon_l: Fix -fsanitize=address finding.
4145         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
4146         <string.h>.
4147         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
4148         (directive_t, directives_t): New types.
4149         (fmon_parse): New function.
4150         (rpl_strfmon_l): Don't call va_arg more often than needed for the
4151         format string. Consume 'long double' arguments in places where the
4152         format string indicates so.
4153         * modules/strfmon_l (Depends-on): Add 'stdbool'.
4155 2019-03-09  Bruno Haible  <bruno@clisp.org>
4157         crypto/des: Fix undefined behaviour.
4158         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
4159         shift operations on 'int'.
4161 2019-03-09  Bruno Haible  <bruno@clisp.org>
4163         Fix undefined behaviour.
4164         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
4165         'unsigned int', to avoid shift operations on 'int'.
4166         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
4167         * tests/test-count-leading-zeros.c (main): Use a random number that has
4168         as many bits as TYPE, not only 2*15 or 2*31 bits.
4169         * tests/test-count-trailing-zeros.c (main): Likewise.
4170         * tests/test-count-one-bits.c (main): Likewise.
4171         * tests/test-memmem.c: Don't include "null-ptr.h".
4172         (main): Use zerosize_ptr() instead of null_ptr().
4173         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
4175 2019-03-08  Bruno Haible  <bruno@clisp.org>
4177         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
4178         Reported by Jeffrey Walton <noloader@gmail.com>.
4179         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
4180         invoke memset with a zero size.
4181         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
4182         Likewise.
4183         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
4184         Adjust accordingly.
4186 2019-03-08  Bruno Haible  <bruno@clisp.org>
4188         unistr/*, uniconv/*: Fix undefined behaviour.
4189         Reported by Jeffrey Walton <noloader@gmail.com>.
4190         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
4191         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
4192         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
4193         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
4195 2019-03-08  Bruno Haible  <bruno@clisp.org>
4197         unistr/u8-cmp: Fix undefined behaviour.
4198         Reported by Jeffrey Walton <noloader@gmail.com>.
4199         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
4201 2019-03-08  Bruno Haible  <bruno@clisp.org>
4203         unictype/numeric: Fix undefined behaviour.
4204         Reported by Jeffrey Walton <noloader@gmail.com>.
4205         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
4206         on shift overflow, caught by "gcc -fsanitize=undefined".
4207         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
4208         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
4209         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
4211 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
4213         git-version-gen: fix --version copyright year
4214         * build-aux/git-version-gen, build-aux/move-if-change (version):
4215         --version output copyright year is now taken from script year,
4216         so that it no longer needs to be updated by hand.
4218 2019-03-04  Bruno Haible  <bruno@clisp.org>
4220         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
4221         This approach supports relocatable installation of shared libraries
4222         which depend on other shared libraries from the same package.
4223         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
4224         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
4225         wrapper around the original LIBTOOL.
4226         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
4227         token '@loader_path' instead of '$ORIGIN'.
4228         * build-aux/libtool-reloc: New file.
4229         * modules/relocatable-prog (Files): Add it.
4230         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
4231         the recent changes. Document the need to set the *_LDFLAGS of libraries.
4232         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
4233         Makefile.am, not in configure.ac.
4235 2019-03-04  Bruno Haible  <bruno@clisp.org>
4237         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
4238         * build-aux/install-reloc: Revert change.
4239         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
4241 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4243         nstrftime: support the ‘+’ flag
4244         * lib/nstrftime.c (add, __strftime_internal):
4245         Add support for the ‘+’ flag introduced in POSIX.1-2017.
4246         (__strftime_internal): New arg ‘width’.  All uses changed.
4247         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
4249 2019-02-24  Bruno Haible  <bruno@clisp.org>
4251         relocatable-prog: Improve verbose output.
4252         * build-aux/install-reloc (func_verbose): Escape characters that would
4253         be interpreted by the shell.
4255 2019-02-24  Bruno Haible  <bruno@clisp.org>
4257         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
4258         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
4259         "sys/stat.h".
4260         * lib/lstat.c: Likewise.
4261         * lib/fstat.c: Likewise.
4262         * lib/fstatat.c: Likewise.
4264 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
4266         long-options: add parse_gnu_standard_options_only
4267         Discussed in https://bugs.gnu.org/33468 .
4269         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
4270         (parse_gnu_standard_options_only): Add function to process
4271         the GNU default options --help and --version and fail for
4272         any other unknown long or short option. See
4273         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
4274         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
4275         * modules/long-options (depends-on): Add stdbool, exitfail.
4276         * top/maint.mk (sc_prohibit_long_options_without_use): Update
4277         syntax-check rule, add new function name.
4279 2019-02-23  Bruno Haible  <bruno@clisp.org>
4281         relocatable-prog: Update documentation.
4282         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
4283         the recent changes.
4285 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
4287         nstrftime: tweak arg order
4288         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
4289         All callers changed.  Suggested by TAMUKI Shoichi in:
4290         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
4292 2019-02-23  Bruno Haible  <bruno@clisp.org>
4294         relocatable-prog: Use wrapper-free installation also on Mac OS X.
4295         Reported by Paul Smith <psmith@gnu.org>.
4296         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
4297         (func_relativize): New function, from gnulib-tool.
4298         Handle mode 'macosx' through invocations of 'otool' and
4299         'install_name_tool'.
4300         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
4301         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
4302         'install-reloc' invocation with mode 'macosx'.
4304 2019-02-23  Bruno Haible  <bruno@clisp.org>
4306         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
4307         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
4308         Hurd with glibc >= 2.27.
4310 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
4312         nstrftime: merge glibc strftime changes
4313         This incorporates:
4314         2019-02-11 Fix a few whitespace arrangement inconsistencies
4315         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
4316         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
4317         2019-01-11 strftime: use the "L_" macro with character literals
4318         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
4319         callers changed.  Default width of %Ey is now 2.  This is needed
4320         for proper handling of Japanese dates starting on 2019-05-01.
4322 2019-02-19  Bruno Haible  <bruno@clisp.org>
4324         relocatable-prog: Use $ORIGIN trick on more platforms.
4325         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
4326         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
4327         Solaris >= 10, Haiku. But don't use it on Android.
4328         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
4329         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
4331 2019-02-19  Bruno Haible  <bruno@clisp.org>
4333         progreloc: Speed up executable lookup on various platforms.
4334         * lib/progreloc.c: Include <errno.h>.
4335         (safe_read, full_read): New functions.
4336         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
4337         prefer the information from the /proc file system to a PATH search.
4339 2019-02-19  Bruno Haible  <bruno@clisp.org>
4341         progreloc: Simplify code for Android.
4342         * lib/progreloc.c (executable_fd): Don't define on Android.
4343         (maybe_executable, find_executable): Don't use executable_fd on Android.
4345 2019-02-15  Bruno Haible  <bruno@clisp.org>
4347         gnulib-tool: Support --import with just a few tests, not --with-tests.
4348         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
4349         'inctests' when generating files; use 'inctests' only for computing the
4350         transitive closure.
4352 2019-02-14  Bruno Haible  <bruno@clisp.org>
4354         gnulib-tool: Improve handling of multiple --local-dir options.
4355         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
4356         options work.
4357         * gnulib-tool (func_path_prepend): Remove function.
4358         (func_path_foreach): Make IFS handling more robust.
4359         (local_gnulib_path): Collect --local-dir values using func_path_append,
4360         not func_path_prepend.
4361         (func_determine_path_separator): Make IFS handling more robust.
4362         (func_lookup_file_cb): New function.
4363         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
4364         func_lookup_local_file. Apply the patches in the reverse order of their
4365         origin in $local_gnulib_path.
4366         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
4367         * NEWS: Mention that the first --local-dir option is the one with
4368         highest priority.
4370 2019-02-10  Bruno Haible  <bruno@clisp.org>
4372         libtextstyle: New module.
4373         * m4/libtextstyle.m4: New file.
4374         * modules/libtextstyle: New file.
4376 2019-02-05  Bruno Haible  <bruno@clisp.org>
4378         declared.sh: Fix bug with variables of pointer type.
4379         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
4380         before the symbol to be omitted if the preceding character is a '*'.
4382 2019-02-04  Bruno Haible  <bruno@clisp.org>
4384         Add script for running tests under valgrind.
4385         * build-aux/run-test: New file, from GNU libunistring.
4386         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
4387         as well.
4389 2019-02-04  Bruno Haible  <bruno@clisp.org>
4391         declared.sh: Fix --version output.
4392         * build-aux/declared.sh (func_version): Update package name.
4394 2019-02-03  Bruno Haible  <bruno@clisp.org>
4396         Add script for determining the set of symbols to export from a library.
4397         * build-aux/declared.sh: New file, from GNU libunistring.
4398         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
4399         Mention it.
4401 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
4403         vla: add commentary about VLA_ELEMS
4404         * lib/vla.h (VLA_ELEMS): Add commentary,
4405         some inspired by Bruno Haible’s proposal in:
4406         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
4408         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
4409         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
4410         assume the C99 signatures for strtod and strtold.  Programs that
4411         require stricter adherence to C99 should also use the strtod and
4412         strtold modules as needed, and we no longer need the
4413         HAVE_C99_STRTOLD macro.
4414         * NEWS: Mention this.
4415         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
4416         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
4417         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
4418         (Files): Remove m4/c-strtod.m4.
4419         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
4420         exists.
4422 2019-02-02  Bruno Haible  <bruno@clisp.org>
4424         fma: Improve code style.
4425         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
4427 2019-02-02  Colin Watson  <cjwatson@debian.org>
4429         *-map tests: Fix compilation error.
4430         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
4431         * tests/test-hash_map.c: Likewise.
4432         * tests/test-linkedhash_map.c: Likewise.
4434 2019-01-31  Bruno Haible  <bruno@clisp.org>
4436         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
4437         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
4438         GNULIB_defined_strtold_function): New macros.
4439         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
4440         (STRTOD): Ignore HAVE_C99_STRTOLD.
4441         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
4442         deemed buggy. But do use it on platforms where uselocale exists and is
4443         usable.
4444         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
4445         deemed buggy. On platforms where uselocale exists and is usable, use
4446         uselocale and strtod/strtold.
4447         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
4448         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
4449         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
4450         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
4451         (Depends-on): Add strtod.
4452         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
4453         (Depends-on): Add strtold.
4455 2019-01-31  Bruno Haible  <bruno@clisp.org>
4457         strtod, strtold: Use the locale's decimal point.
4458         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
4459         (decimal_point_char): New function, copied from lib/vasnprintf.c.
4460         (parse_number): Add a radixchar argument. Use it instead of '.'.
4461         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
4462         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
4463         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
4464         * tests/test-strtod1.c: New file.
4465         * tests/test-strtod1.sh: New file.
4466         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
4467         locale-fr.m4 and its dependencies.
4468         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
4469         (Makefile.am): Arrange to compile test-strtod1.c and run
4470         test-strtod1.sh.
4471         * tests/test-strtold1.c: New file.
4472         * tests/test-strtold1.sh: New file.
4473         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
4474         locale-fr.m4 and its dependencies.
4475         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
4476         (Makefile.am): Arrange to compile test-strtold1.c and run
4477         test-strtold1.sh.
4479 2019-01-31  Bruno Haible  <bruno@clisp.org>
4481         strtod, strtold tests: Simplify tests.
4482         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
4483         * tests/test-strtold.c (main): Likewise.
4485 2019-01-31  Bruno Haible  <bruno@clisp.org>
4487         strtod, strtold: Avoid unnecessary rounding errors.
4488         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
4489         decimal to DOUBLE conversion.
4491 2019-01-31  Bruno Haible  <bruno@clisp.org>
4493         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
4494         * lib/strtod.c (STRTOD): When there is an extra character after the
4495         exponent marker 'p', reparse the number.
4496         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
4497         * doc/posix-functions/strtold.texi: Likewise.
4499 2019-01-29  Bruno Haible  <bruno@clisp.org>
4501         strtold: Add tests.
4502         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
4503         * modules/strtold-tests: New file.
4505 2019-01-29  Bruno Haible  <bruno@clisp.org>
4507         strtold: New module.
4508         * lib/stdlib.in.h (strtold): New declaration.
4509         * lib/strtold.c: New file.
4510         * lib/strtod.c: Consider USE_LONG_DOUBLE.
4511         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
4512         USE_LDEXP): New macros.
4513         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
4514         USE_LONG_DOUBLE.
4515         (underlying_strtod): Remove function. Replace with some macros.
4516         Re-add the code for a missing underlying function that was removed on
4517         2013-02-19.
4518         * m4/strtold.m4: New file.
4519         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
4520         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
4521         REPLACE_STRTOLD.
4522         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
4523         REPLACE_STRTOLD.
4524         * modules/strtold: New file.
4525         * doc/posix-functions/strtold.texi: Document the new module.
4527 2019-01-29  Bruno Haible  <bruno@clisp.org>
4529         strtod: Fix compilation error on IRIX 6.5.
4530         * modules/strtod (Depends-on): Add 'math'.
4532 2019-01-28  Bruno Haible  <bruno@clisp.org>
4534         Fix build error when building a shared libunistring on Android.
4535         * tests/uninorm/test-nfc.c (n): Don't define on Android.
4536         (main): Add 'volatile', to defeat a GCC optimization that would
4537         eliminate the reference.
4538         * tests/uninorm/test-nfd.c (n): Don't define on Android.
4539         (main): Add 'volatile', to defeat a GCC optimization that would
4540         eliminate the reference.
4541         * tests/uninorm/test-nfkc.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-nfkd.c (n): Don't define on Android.
4545         (main): Add 'volatile', to defeat a GCC optimization that would
4546         eliminate the reference.
4548 2019-01-27  Bruno Haible  <bruno@clisp.org>
4550         Avoid build errors due to wrong references between modules.
4551         * lib/uninorm/canonical-decomposition.c: Include
4552         "uninorm/decomposition-table.h", not "decomposition-table.h".
4553         * lib/uninorm/decomposition.c: Likewise.
4554         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
4555         not "decompose-internal.h".
4556         * lib/uninorm/u16-normalize.c: Likewise.
4557         * lib/uninorm/u32-normalize.c: Likewise.
4558         * lib/uninorm/uninorm-filter.c: Likewise.
4559         * lib/uninorm/nfkc.c: Likewise.
4560         * lib/uninorm/nfkd.c: Likewise.
4561         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
4562         "caseprop.h".
4563         * lib/unicase/u8-ct-totitle.c: Likewise.
4564         * lib/unicase/u8-prefix-context.c: Likewise.
4565         * lib/unicase/u8-suffix-context.c: Likewise.
4566         * lib/unicase/u16-casemap.c: Likewise.
4567         * lib/unicase/u16-ct-totitle.c: Likewise.
4568         * lib/unicase/u16-prefix-context.c: Likewise.
4569         * lib/unicase/u16-suffix-context.c: Likewise.
4570         * lib/unicase/u32-casemap.c: Likewise.
4571         * lib/unicase/u32-ct-totitle.c: Likewise.
4572         * lib/unicase/u32-prefix-context.c: Likewise.
4573         * lib/unicase/u32-suffix-context.c: Likewise.
4574         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
4575         "unicasemap.h".
4576         * lib/unicase/u8-toupper.c: Likewise.
4577         * lib/unicase/u8-ct-tolower.c: Likewise.
4578         * lib/unicase/u8-ct-toupper.c: Likewise.
4579         * lib/unicase/u16-tolower.c: Likewise.
4580         * lib/unicase/u16-toupper.c: Likewise.
4581         * lib/unicase/u16-ct-tolower.c: Likewise.
4582         * lib/unicase/u16-ct-toupper.c: Likewise.
4583         * lib/unicase/u32-tolower.c: Likewise.
4584         * lib/unicase/u32-toupper.c: Likewise.
4585         * lib/unicase/u32-ct-tolower.c: Likewise.
4586         * lib/unicase/u32-ct-toupper.c: Likewise.
4587         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
4588         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
4589         * lib/unicase/u16-ct-casefold.c: Likewise.
4590         * lib/unicase/u32-ct-casefold.c: Likewise.
4592 2019-01-27  Bruno Haible  <bruno@clisp.org>
4594         gperf: Fix error when this module is required by some test module.
4595         * modules/gperf (Applicability): Set to 'all'.
4597 2019-01-27  Bruno Haible  <bruno@clisp.org>
4599         tmpfile: Add support for Android.
4600         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
4601         works.
4602         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
4603         Android.
4604         * modules/tmpfile (Depends-on): Add 'stdbool'.
4605         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
4606         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
4608 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
4610         bitsetv: allow free on NULL.
4611         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
4613 2019-01-27  Bruno Haible  <bruno@clisp.org>
4615         test-framework-sh: Improve maintainability.
4616         * tests/init.sh: Clarify what belongs together. Reorder definitions.
4618 2019-01-27  Bruno Haible  <bruno@clisp.org>
4620         tests: Don't assume that /tmp exists.
4621         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
4622         * tests/test-copy-acl-1.sh: Likewise.
4623         * tests/test-file-has-acl-1.sh: Likewise.
4624         * tests/test-copy-file-1.sh: Likewise.
4626 2019-01-27  Bruno Haible  <bruno@clisp.org>
4628         tests: Accommodate a shell that is not in /bin/sh.
4629         * tests/init.sh (setup_): Set srcdir and builddir.
4630         (BOURNE_SHELL): New variable.
4631         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
4632         * modules/file-has-acl-tests (Depends-on): Likewise.
4633         * modules/copy-file-tests (Depends-on): Likewise.
4634         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
4635         scripts through $BOURNE_SHELL.
4636         * tests/test-set-mode-acl-2.sh: Likewise.
4637         * tests/test-copy-acl-1.sh: Likewise.
4638         * tests/test-copy-acl-2.sh: Likewise.
4639         * tests/test-file-has-acl-1.sh: Likewise.
4640         * tests/test-file-has-acl-2.sh: Likewise.
4641         * tests/test-copy-file-1.sh: Likewise.
4642         * tests/test-copy-file-2.sh: Likewise.
4643         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
4644         invoker.
4645         * tests/test-copy-acl.sh (builddir): Likewise.
4646         * tests/test-file-has-acl.sh (builddir): Likewise.
4647         * tests/test-copy-file.sh (builddir): Likewise.
4648         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
4649         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
4650         * tests/test-vc-list-files-git.sh: Likewise.
4652 2019-01-27  Bruno Haible  <bruno@clisp.org>
4654         tests: Fix some "unused variable" warnings.
4655         * tests/test-fts.c (fts_dealloc): Remove unused variable.
4656         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
4657         * tests/test-striconveh.c (main): Move some variable into the
4658         '#if HAVE_ICONV'.
4659         * tests/test-striconveha.c (main): Likewise.
4660         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
4661         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
4662         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
4663         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
4664         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
4665         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
4666         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
4667         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
4668         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
4669         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
4670         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
4671         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
4672         * tests/test-tsearch.c (main): Move some variable into the
4673         '#if HAVE_INITSTATE'.
4675 2019-01-27  Bruno Haible  <bruno@clisp.org>
4677         unigbrk/uc-grapheme-breaks: Fix build failure.
4678         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
4679         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
4681 2019-01-27  Bruno Haible  <bruno@clisp.org>
4683         mountlist: Merge two .m4 files.
4684         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
4685         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
4686         * m4/ls-mntd-fs.m4: Remove file.
4687         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
4689 2019-01-27  Bruno Haible  <bruno@clisp.org>
4691         tests: Enable Linux specific tests on Android.
4692         * tests/test-flock.c (main): Treat Android like Linux.
4693         * tests/test-openat-safer.c (main): Likewise.
4695 2019-01-27  Bruno Haible  <bruno@clisp.org>
4697         relocatable-prog: Use Linux code on Android.
4698         * lib/progreloc.c: Treat Android like Linux.
4700 2019-01-26  Bruno Haible  <bruno@clisp.org>
4702         getloadavg: Add support for Android.
4703         * lib/getloadavg.c: Treat Android like Linux.
4705 2019-01-26  Bruno Haible  <bruno@clisp.org>
4707         vma-iter: Add support for Android.
4708         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
4709         * lib/vma-iter.c: Treat Android like Linux.
4710         * lib/get-rusage-data.c (get_rusage_data): Likewise.
4712 2019-01-26  Bruno Haible  <bruno@clisp.org>
4714         fts: Optimize on Android.
4715         * lib/fts.c: Treat Android like Linux.
4717 2019-01-26  Bruno Haible  <bruno@clisp.org>
4719         fts: Add support for Android.
4720         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
4721         defined by this module and the ones in libc.
4722         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
4724 2019-01-26  Bruno Haible  <bruno@clisp.org>
4726         mountlist: Use Linux code on Android.
4727         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
4728         (unescape_tab, read_file_system_list): Enable Linux code on Android
4729         as well.
4730         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
4731         and endmntent.
4732         * modules/mountlist (Depends-on): Add 'getline'.
4734 2019-01-26  Bruno Haible  <bruno@clisp.org>
4736         localename tests: Fix test failure on Android.
4737         * modules/localename-tests (Depends-on): Add 'setlocale'.
4739 2019-01-26  Bruno Haible  <bruno@clisp.org>
4741         mountlist: Port better to Android.
4742         * lib/mountlist.c (MOUNTED): Redefine on Android.
4743         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
4744         Android.
4746 2019-01-26  Bruno Haible  <bruno@clisp.org>
4748         striconveh: Fix use of uninitialized iconv_t.
4749         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4750         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
4751         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
4753 2019-01-26  Bruno Haible  <bruno@clisp.org>
4755         nonblocking-socket-tests: Fix test failure on Android 4.3.
4756         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
4757         also on Android.
4759 2019-01-26  Bruno Haible  <bruno@clisp.org>
4761         sh-filename: Add support for Android 4.3.
4762         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
4764 2019-01-26  Bruno Haible  <bruno@clisp.org>
4766         ptsname_r: Work around bug on Android 4.3.
4767         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
4768         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
4769         correct.
4770         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
4771         is defined, just fix the return value.
4772         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
4773         The behaviour of musl libc is nothing to be "fixed", since it is
4774         compliant with the next POSIX standard.
4776 2019-01-26  Bruno Haible  <bruno@clisp.org>
4778         ttyname_r: Work around bug on Android 4.3.
4779         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
4780         * lib/ttyname_r.c (ttyname_r): Implement for Android.
4781         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
4782         * doc/posix-functions/ttyname.texi: Likewise.
4784 2019-01-25  Bruno Haible  <bruno@clisp.org>
4786         getprogname: Port to Android 4.3.
4787         * lib/getprogname.c (getprogname): On Android, take only the last
4788         component of __progname.
4790 2019-01-25  Bruno Haible  <bruno@clisp.org>
4792         wcrtomb: Work around bug on Android 4.3.
4793         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
4794         the C locale.
4795         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
4796         which does not have the 'wctomb' function.
4797         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
4798         * tests/test-wcrtomb.c (main): Accept argument '5'.
4799         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
4801 2019-01-25  Bruno Haible  <bruno@clisp.org>
4803         setlocale: Work around bug on Android 4.3.
4804         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
4805         the "C" locale.
4806         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
4807         * doc/posix-functions/setlocale.texi: Mention the Android bug.
4809 2019-01-24  Bruno Haible  <bruno@clisp.org>
4811         memchr: Work around bug on Android <= 5.0.
4812         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
4813         * doc/posix-functions/memchr.texi: Mention the Android bug.
4815 2019-01-24  Bruno Haible  <bruno@clisp.org>
4817         random: Fix compilation error on Android 4.3.
4818         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
4819         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
4820         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
4821         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
4822         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
4823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
4824         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
4825         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
4826         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
4827         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
4828         REPLACE_INITSTATE, REPLACE_SETSTATE.
4829         * doc/posix-functions/random.texi: Correct the description of the
4830         situation on Android.
4831         * doc/posix-functions/srandom.texi: Likewise.
4832         * doc/posix-functions/rand.texi: Likewise.
4833         * doc/posix-functions/srand.texi: Likewise.
4835 2019-01-24  Bruno Haible  <bruno@clisp.org>
4837         mbtowc: Fix compilation error on Android 4.3.
4838         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
4839         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
4840         HAVE_MBTOWC.
4841         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
4842         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
4843         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
4844         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
4845         * doc/posix-functions/mbtowc.texi: Mention the change.
4847 2019-01-24  Bruno Haible  <bruno@clisp.org>
4849         fdatasync: Fix compilation error on Android 4.3.
4850         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
4851         test whether fdatasync() exists.
4853 2019-01-24  Bruno Haible  <bruno@clisp.org>
4855         unlinkat: Fix compilation error on Android 4.3.
4856         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
4857         also on Android.
4858         * doc/posix-functions/unlinkat.texi: Mention the issue.
4860 2019-01-24  Bruno Haible  <bruno@clisp.org>
4862         renameat: Fix compilation error on Android 4.3.
4863         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
4864         * doc/posix-functions/renameat.texi: Mention the issue.
4866 2019-01-24  Bruno Haible  <bruno@clisp.org>
4868         fchownat: Fix compilation error on Android 4.3.
4869         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
4870         use.
4871         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
4872         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
4873         * doc/posix-functions/fchownat.texi: Mention the issue.
4875 2019-01-23  Bruno Haible  <bruno@clisp.org>
4877         gnulib-tool: Support running testdirs on Android.
4878         * build-aux/test-driver.diff: New file.
4879         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
4880         build-aux/test-driver after running automake.
4882 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
4884         relocatable-prog: avoid warnings from Automake
4885         * modules/relocatable-prog: Don't declare PHONY dependencies in
4886         Automake conditionals.
4888 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
4890         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
4891         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
4893 2019-01-23  Bruno Haible  <bruno@clisp.org>
4895         threadlib: Revert commit from 2018-06-25. We now have a better fix.
4896         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
4897         preceding -Wl,--as-needed option. Don't check whether the linker
4898         supports --as-needed/--no-as-needed and --push-state/--pop-state.
4900 2019-01-23  Bruno Haible  <bruno@clisp.org>
4902         thread: Force linking with -lpthread, even when --as-needed is in use.
4903         Reported by Richard W.M. Jones <rjones@redhat.com> in
4904         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
4905         * lib/glthread/thread.h (pthread_create): Don't declare weak.
4907 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
4908             Bruno Haible  <bruno@clisp.org>
4910         relocatable: avoid compiler warnings (-Wshadow)
4911         * lib/relocatable.c (compute_curr_prefix): Rename local variables
4912         to avoid name collisions with global variables.
4914 2019-01-22  Bruno Haible  <bruno@clisp.org>
4916         vasnprintf: Don't use %n on Android.
4917         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
4918         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
4919         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
4921 2019-01-22  Bruno Haible  <bruno@clisp.org>
4923         *printf: Support cross-compilation to Android.
4924         * m4/printf.m4: Add cross-compilation guesses for Android.
4926 2019-01-21  Bruno Haible  <bruno@clisp.org>
4928         diacrit: Mark deprecated.
4929         * modules/diacrit (Status, Notice): Mark as deprecated.
4930         * NEWS: Mention it.
4932 2019-01-20  Bruno Haible  <bruno@clisp.org>
4934         rintl: Override broken implementation on NetBSD.
4935         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
4936         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
4937         REPLACE_RINTL.
4938         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
4939         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
4940         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
4941         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
4943 2019-01-20  Bruno Haible  <bruno@clisp.org>
4945         log10l: Work around inaccurate implementation on NetBSD.
4946         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
4947         * lib/log10l.c: Comment out too simplistic override.
4948         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
4950 2019-01-20  Bruno Haible  <bruno@clisp.org>
4952         logl: Work around inaccurate implementation on NetBSD.
4953         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
4954         * lib/logl.c: Comment out unused code.
4955         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
4957 2019-01-20  Bruno Haible  <bruno@clisp.org>
4959         expm1l: Work around inaccurate implementation on NetBSD.
4960         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
4961         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
4962         REPLACE_EXPM1L.
4963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
4964         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
4965         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
4966         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
4968 2019-01-20  Bruno Haible  <bruno@clisp.org>
4970         expl: Work around inaccurate implementation on NetBSD.
4971         * lib/math.in.h (expl): Test also REPLACE_EXPL.
4972         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
4973         REPLACE_EXPL.
4974         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
4975         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
4976         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
4977         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
4979 2019-01-20  Bruno Haible  <bruno@clisp.org>
4981         exp2l: Work around inaccurate implementation on NetBSD.
4982         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
4983         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
4985 2019-01-20  Bruno Haible  <bruno@clisp.org>
4987         floor, floorl: Avoid autoconf warnings.
4988         * modules/floor (configure.ac): Use AC_REQUIRE.
4989         * modules/floorl (configure.ac): Likewise.
4991 2019-01-20  Bruno Haible  <bruno@clisp.org>
4993         Defeat current GCC optimizations in math autoconf tests.
4994         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
4995         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
4996         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4997         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4998         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
4999         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
5000         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
5001         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
5002         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
5003         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
5004         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5005         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
5006         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
5007         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
5008         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
5009         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
5010         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
5011         * m4/log.m4 (gl_FUNC_LOG): Likewise.
5012         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
5013         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
5014         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
5015         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
5016         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
5017         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
5018         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
5019         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
5020         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
5021         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
5022         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5023         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
5024         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5025         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5026         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5027         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5028         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5029         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5030         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5031         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5033 2019-01-19  Pádraig Brady  <P@draigBrady.com>
5035         gettext: support disabling use of VLAs
5036         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
5038 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
5040         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
5041         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
5043 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
5045         fcntl: Fix syntax error (regression from 2018-10-05).
5046         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
5048 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
5050         relocatable: improve documentation.
5051         * doc/relocatable-maint.texi (Supporting Relocation): For
5052         substitutions performed by config.status, we need more variables
5053         (for instance datarootdir defaults to '${prefix}/share' so we need
5054         prefix).
5056 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
5058         backup: update dependencies
5059         * modules/backup-rename (Depends-on): It now depends on opendirat
5060         instead of opendir.  It also uses stdint, and xalloc-oversized.
5061         But no longer dirfd.
5062         * modules/backupfile (Depends-on): Add xalloc-oversized.
5064 2019-01-13  Bruno Haible  <bruno@clisp.org>
5066         getcwd: Fix test failure when building on a Linux 9p file system.
5067         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
5068         EINVAL from mkdir like ENAMETOOLONG.
5069         * tests/test-getcwd.c (test_long_name): Likewise.
5071 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
5073         Fix typos found by codespell.
5074         * lib/*.[hc]: Fix typos in comments.
5075         * pygnulib/*.py: Fix typos in error messages and comments.
5077 2019-01-12  Bruno Haible  <bruno@clisp.org>
5079         doc: Fix documentation about container data types.
5080         Reported by Werner Lemberg <wl@gnu.org>.
5081         * doc/containers.texi (Container data types): Fix typo.
5083 2019-01-10  Bruno Haible  <bruno@clisp.org>
5085         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
5086         Reported by Reuben Thomas <rrt@sc3d.org>.
5087         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
5089 2019-01-06  Bruno Haible  <bruno@clisp.org>
5091         maintainer-makefile: Make the configure.ac section optional.
5092         * top/maint.mk (GREP, SED): Define if not defined.
5094 2019-01-06  Bruno Haible  <bruno@clisp.org>
5096         localename: Assume setlocale function.
5097         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
5098         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
5100 2019-01-06  Bruno Haible  <bruno@clisp.org>
5102         doc: Add documentation about container data types.
5103         * doc/containers.texi: New file.
5104         * doc/gnulib.texi (Particular Modules): Include it.
5106 2019-01-06  Bruno Haible  <bruno@clisp.org>
5108         doc: Update documentation about 'progname' module.
5109         * doc/progname.texi: Rename from doc/error.texi. Change node name and
5110         title. Rewrite.
5111         * doc/gnulib.texi (Particular Modules): Update.
5113 2019-01-06  Bruno Haible  <bruno@clisp.org>
5115         doc: Document the xstdopen and *-safer modules.
5116         * doc/xstdopen.texi: New file.
5117         * doc/gnulib.texi (Particular Modules): Include it.
5119 2019-01-06  Bruno Haible  <bruno@clisp.org>
5121         xstdopen: Add tests.
5122         * tests/test-xstdopen.c: New file.
5123         * tests/test-xstdopen.sh: New file.
5124         * modules/xstdopen-tests: New file.
5126         xstdopen: New module.
5127         * lib/xstdopen.h: New file.
5128         * lib/xstdopen.c: New file.
5129         * modules/xstdopen: New file.
5131 2019-01-06  Bruno Haible  <bruno@clisp.org>
5133         stdopen: Fix compilation error with IRIX cc.
5134         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
5136 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5138         xfreopen need not include stdio--.h
5139         * lib/xfreopen.c: Do not include stdio--.h.
5141         xfreopen need not depend on freopen-safer
5142         * modules/xfreopen (Depends-on):
5143         Depend on freopen, not freopen-safer.
5145         stdopen: modernize and simplify
5146         * lib/stdopen.c: Update copyright date
5147         Do not include sys/types.h; no longer needed these days.
5148         (stdopen): Use C99-style decl in loop.  Return int errno
5149         value, rather than just a bool.  Do not worry about fd mismatches,
5150         since the caller cares only if 0, 1, 2 are occupied.
5151         * lib/stdopen.h: No need to include <stdbool.h>.
5152         * m4/stdopen.m4: Remove.
5153         * modules/stdopen: New file.
5155         stdopen: copy from last use in coreutils
5156         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
5157         New files, taken from their last commit in coreutils
5158         2007-07-23T12:35:58Z!jim@meyering.net
5159         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
5161 2019-01-05  Bruno Haible  <bruno@clisp.org>
5163         argp: Don't pass an invalid argument to dgettext().
5164         Reported by He X <xw897002528@gmail.com>.
5165         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
5166         dgettext().
5168 2019-01-05  Bruno Haible  <bruno@clisp.org>
5170         argp: Don't pass an invalid argument to dgettext().
5171         Reported by He X <xw897002528@gmail.com>.
5172         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
5173         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
5174         dgettext().
5176 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5178         stdioext: port to newer 32-bit Android
5179         Problem reported by Tom Yan in:
5180         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
5181         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
5182         (fp_) [__ANDROID__]: Use it.
5184 2019-01-04  Bruno Haible  <bruno@clisp.org>
5186         lock: Fix link error with --enable-threads=pth.
5187         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
5188         Mark as weak.
5190 2019-01-04  Bruno Haible  <bruno@clisp.org>
5192         Fix link errors in unit tests.
5193         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5194         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
5195         * modules/array-map-tests (Makefile.am): Link test-array_map against
5196         libintl.
5197         * modules/array-set-tests (Makefile.am): Link test-array_set against
5198         libintl.
5199         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
5200         libintl.
5201         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
5202         libintl.
5203         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
5204         against libintl.
5205         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
5206         against libintl.
5208 2019-01-04  Bruno Haible  <bruno@clisp.org>
5210         Fix incorrect 'Link' sections.
5211         * modules/regex (Link): Mention the link requirement of module 'lock'.
5212         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
5214 2019-01-04  Bruno Haible  <bruno@clisp.org>
5216         Fix some 'Link' sections.
5217         * modules/c-stack (Link): Add link directive from the 'gettext-h'
5218         dependency.
5219         * modules/getaddrinfo (Link): Likewise.
5221 2019-01-04  Bruno Haible  <bruno@clisp.org>
5223         Remove redundant 'Link' sections.
5224         * modules/canon-host (Link): Remove section.
5225         * modules/timevar (Link): Likewise.
5227 2019-01-04  Bruno Haible  <bruno@clisp.org>
5229         Remove incorrect 'Link' sections.
5230         * modules/acl (Link): Remove section. Use combined 'Link' sections from
5231         the dependencies instead.
5232         * modules/crypto/md5 (Link): Likewise.
5233         * modules/crypto/sha1 (Link): Likewise.
5234         * modules/crypto/sha256 (Link): Likewise.
5235         * modules/crypto/sha512 (Link): Likewise.
5236         * modules/faccessat (Link): Likewise.
5237         * modules/fdutimensat (Link): Likewise.
5238         * modules/iconv_open-utf (Link): Likewise.
5239         * modules/propername (Link): Likewise.
5240         * modules/qacl (Link): Likewise.
5241         * modules/unicodeio (Link): Likewise.
5242         * modules/utimecmp (Link): Likewise.
5243         * modules/utimensat (Link): Likewise.
5244         * modules/xstriconv (Link): Likewise.
5245         * modules/xstriconveh (Link): Likewise.
5247 2019-01-04  Bruno Haible  <bruno@clisp.org>
5249         gnulib-tool: New option --extract-recursive-link-directive.
5250         * gnulib-tool (func_usage): Document the new options
5251         --extract-recursive-dependencies, --extract-recursive-link-directive.
5252         (func_verify_module): Document output variables.
5253         (func_get_dependencies_recursively): New function.
5254         (func_get_link_directive_recursively): New function.
5255         Use them to implement the new options
5256         --extract-recursive-dependencies, --extract-recursive-link-directive.
5257         * doc/gnulib-tool.texi (Link-time requirements): New section.
5259 2019-01-04  Bruno Haible  <bruno@clisp.org>
5261         Clarify meaning of 'Link' section in module description.
5262         * doc/gnulib.texi (Module description): Clarify the meaning of the
5263         'Link' section versus the one of the dependencies.
5264         * NEWS: Mention the change.
5266 2019-01-04  Bruno Haible  <bruno@clisp.org>
5268         pselect: Fix module description.
5269         * modules/pselect (Link): Put one link option per line.
5271 2019-01-04  Bruno Haible  <bruno@clisp.org>
5273         cosl: Fix module description.
5274         * modules/cosl (Link): Fix typo.
5275         * modules/mathl (configure.ac): Likewise.
5277 2019-01-04  Bruno Haible  <bruno@clisp.org>
5279         c-xvasprintf: Fix module dependencies.
5280         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
5282 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
5284         bootstrap: die when some submodules are not initialized
5285         * build-aux/bootstrap: Make sure all submodules are initialized.
5287 2019-01-04  Bruno Haible  <bruno@clisp.org>
5289         bitsetv: Fix module dependencies.
5290         * lib/bitsetv.c: Include xalloc.h.
5291         * modules/bitsetv (Depends-on): Add 'xalloc'.
5293 2019-01-04  Bruno Haible  <bruno@clisp.org>
5295         xmemdup0: Remove redundant code.
5296         * lib/xmemdup0.h (xalloc_die): Remove declaration.
5298 2019-01-04  Bruno Haible  <bruno@clisp.org>
5300         backupfile: Fix module dependencies.
5301         * modules/backupfile (Depends-on): Add 'xalloc'.
5303 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
5305         bitset, crypto/gc: fix conflicts with Solaris 11
5306         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
5307         avoid clash with Solaris 11 <sys/bitset.h>.
5308         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
5309         with Solaris 11 <xorg/gc.h>.
5311 2019-01-04  Bruno Haible  <bruno@clisp.org>
5313         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
5314         Reported by Andy Fiddaman <andy@omniosce.org>.
5315         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
5317 2019-01-03  Eric Blake  <eblake@redhat.com>
5319         maintainer-makefile: fix typo in previous patch
5320         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
5321         of Roman's work.
5323 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
5325         maintainer-makefile: prefer $(GREP) over grep
5326         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
5327         defined.
5328         * top/maint.mk: Use it everywhere.
5330         maintainer-makefile: split long argument lines
5331         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
5332         it would be too long for exec limits on BSD.
5334 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5336         mkfifo: bring back HAVE_MKFIFO macro
5337         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
5338         Problem reported by Andrew Janke in:
5339         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
5341 2018-12-21  Bruno Haible  <bruno@clisp.org>
5343         Assume Autoconf >= 2.63.
5344         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
5345         versions < 2.60.
5347 2018-12-21  Bruno Haible  <bruno@clisp.org>
5349         memcmp: Mention the clang bug.
5350         * tests/test-memcmp.c: Add comment about a known test failure.
5351         * doc/posix-functions/memcmp.texi: Mention the clang bug.
5353 2018-12-20  Jim Meyering  <meyering@fb.com>
5355         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
5356         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
5357           echo '123-x'|LC_ALL=C grep -E '.\bx'
5358         The goal is to revert the first, but reverting it requires to restore
5359         the function deleted in the second. I ran this to restore the deleted
5360         function:
5361           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
5362             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
5363             | patch -R -p1
5364         * lib/dfa.c (charclass_context): Restore deleted function.
5365         Reverting the primary commit removes this change:
5366         dfa: Simplify a building state
5367         * lib/dfa.c (build_state): Simplify a building state.
5369 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
5371         version-etc: allow zero authors
5372         * lib/version-etc.c (version_etc_arn): If no authors are given,
5373         omit authorship info instead of dumping core.
5375 2018-12-19  Bruno Haible  <bruno@clisp.org>
5377         lchown tests: Be more permissive regarding errno values.
5378         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
5379         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
5380         alternative to ENOSYS.
5381         * modules/lchown-tests (Depends-on): Add 'errno'.
5382         * modules/fchownat-tests (Depends-on): Likewise.
5384 2018-12-18  Bruno Haible  <bruno@clisp.org>
5386         duplocale: Avoid test failure on AIX 7.
5387         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
5388         (configure.ac): Invoke gt_FUNC_USELOCALE.
5389         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
5390         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
5391         works.
5393 2018-12-18  Bruno Haible  <bruno@clisp.org>
5395         localename: Fix test failure on AIX 7.
5396         Reported by Assaf Gordon in
5397         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
5398         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
5399         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
5400         instead of ac_cv_func_uselocale.
5401         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
5402         HAVE_USELOCALE.
5403         * lib/localename-table.h: Likewise.
5404         * lib/localename-table.c: Likewise.
5405         * tests/test-localename.c: Likewise.
5406         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
5408 2018-12-18  Bruno Haible  <bruno@clisp.org>
5410         localename: Update comments regarding Cygwin.
5411         * lib/localename.c: Update comment.
5412         * doc/posix-functions/uselocale.texi: Update platforms list.
5413         * doc/posix-functions/newlocale.texi: Likewise.
5414         * doc/posix-functions/duplocale.texi: Likewise.
5415         * doc/posix-functions/freelocale.texi: Likewise.
5417 2018-12-16  Bruno Haible  <bruno@clisp.org>
5419         c-stack: Fix for Linux/sparc.
5420         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
5421         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
5423 2018-12-16  Bruno Haible  <bruno@clisp.org>
5425         localename: Avoid test failure on some glibc systems.
5426         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
5427         Unset environment variables that might disturb the first setlocale call,
5428         and verify that this setlocale call succeeds.
5430 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
5432         random: Fix build error on native Windows (regression from 2018-06-21).
5433         * lib/random.c (__srandom, __initstate, __setstate, __random,
5434         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
5435         to the symbols without '__' prefix.
5437 2018-12-16  Bruno Haible  <bruno@clisp.org>
5439         obstack, libc-config: Support HP-UX cc in C99 mode.
5440         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
5441         compiler, even when in C99 mode.
5442         * lib/cdefs.h (__flexarr): Likewise.
5443         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
5445 2018-12-16  Bruno Haible  <bruno@clisp.org>
5447         localename: Fix test failure on OpenBSD >= 6.2.
5448         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
5449         locale system. Define HAVE_FAKE_LOCALES in this case.
5450         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
5451         HAVE_USELOCALE.
5452         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
5453         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
5454         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
5455         platforms list.
5456         * doc/posix-functions/newlocale.texi: Likewise.
5457         * doc/posix-functions/duplocale.texi: Update platforms list.
5458         * doc/posix-functions/freelocale.texi: Likewise.
5460 2018-12-16  Bruno Haible  <bruno@clisp.org>
5462         duplocale tests: Re-enable the test on platforms without <monetary.h>.
5463         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
5464         of the test, on platforms without <monetary.h>.
5466 2018-12-16  Bruno Haible  <bruno@clisp.org>
5468         localename: Update comments.
5469         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
5471 2018-12-15  Jim Meyering  <meyering@fb.com>
5473         regex: fix indentation
5474         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
5476 2018-12-15  Bruno Haible  <bruno@clisp.org>
5478         openat-safer tests: Avoid test failure on NetBSD 8.
5479         * tests/test-openat-safer.c (main): Execute a Linux specific test only
5480         on Linux.
5482 2018-12-15  Jim Meyering  <meyering@fb.com>
5484         regex: work around a bug in glibc-2.27 and prior
5485         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
5486         assertion for /0|()0|\1|0/.
5487         * tests/test-regex.c (main): Add the same test here.
5489 2018-12-15  Bruno Haible  <bruno@clisp.org>
5491         localename: Fix use of uninitialized shell variable.
5492         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
5493         gt_cv_locale_solaris114 always before use. Remove assignment without
5494         effect.
5496 2018-12-15  Bruno Haible  <bruno@clisp.org>
5498         dfa tests: Avoid test failure on Alpine Linux.
5499         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
5500         command found on Alpine Linux.
5502 2018-12-15  Jim Meyering  <meyering@fb.com>
5504         dfa: avoid new warnings from gcc
5505         These would prevent building with -Werror and a Dec snapshot of gcc.
5506         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
5507         Rename each inner instance to "p".
5508         (charclass_context): Remove unused static function.
5510 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
5512         mkdir-p: improve diagnostic for FUSE mounts
5513         Problem reported by Niklas Hambüchen in:
5514         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
5515         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
5516         errno to mkdir errno if the stat errno is likely more interesting.
5518 2018-12-14  Bruno Haible  <bruno@clisp.org>
5520         hash-map: Add tests.
5521         * tests/test-hash_map.c: New file.
5522         * modules/hash-map-tests: New file.
5524         linkedhash-map: Add tests.
5525         * tests/test-linkedhash_map.c: New file.
5526         * modules/linkedhash-map-tests: New file.
5528         array-map: Add tests.
5529         * tests/test-array_map.c: New file.
5530         * modules/array-map-tests: New file.
5532         xmap: New module.
5533         * lib/gl_xmap.h: New file.
5534         * lib/gl_xmap.c: New file.
5535         * modules/xmap: New file.
5537         hash-map: New module.
5538         * lib/gl_hash_map.h: New file.
5539         * lib/gl_hash_map.c: New file.
5540         * modules/hash-map: New file.
5542         linkedhash-map: New module.
5543         * lib/gl_linkedhash_map.h: New file.
5544         * lib/gl_linkedhash_map.c: New file.
5545         * lib/gl_anyhash1.h: Update comments.
5546         * lib/gl_anyhash2.h: Likewise.
5547         * modules/linkedhash-map: New file.
5549         array-map: New module.
5550         * lib/gl_array_map.h: New file.
5551         * lib/gl_array_map.c: New file.
5552         * modules/array-map: New file.
5554         map: New module.
5555         * lib/gl_map.h: New file.
5556         * lib/gl_map.c: New file.
5557         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
5558         conflict with gl_map.h.
5559         * modules/map: New file.
5561 2018-12-13  Bruno Haible  <bruno@clisp.org>
5563         select tests: Avoid test failure on Cygwin.
5564         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
5566 2018-12-13  Bruno Haible  <bruno@clisp.org>
5568         localtime-buffer: Avoid endless recursion in localtime and gmtime.
5569         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
5571 2018-12-13  Bruno Haible  <bruno@clisp.org>
5573         localeconv tests: Avoid test failure on Cygwin.
5574         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
5575         'mon_grouping' tests.
5577 2018-12-11  Bruno Haible  <bruno@clisp.org>
5579         omap: Don't dispose the old value when the function returns it.
5580         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
5581         here.
5582         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
5583         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
5584         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
5585         here.
5587         array-omap, avltree-omap, rbtree-omap: Tweak style.
5588         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
5589         false.
5590         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
5592         rbtree-omap: Add tests.
5593         * tests/test-rbtree_omap.c: New file.
5594         * modules/rbtree-omap-tests: New file.
5596         avltree-omap: Add tests.
5597         * tests/test-avltree_omap.c: New file.
5598         * modules/avltree-omap-tests: New file.
5600         array-omap: Add tests.
5601         * tests/test-array_omap.c: New file.
5602         * modules/array-omap-tests: New file.
5604         xomap: New module.
5605         * lib/gl_xomap.h: New file.
5606         * lib/gl_xomap.c: New file.
5607         * modules/xomap: New file.
5609         rbtree-omap: New module.
5610         * lib/gl_rbtree_omap.h: New file.
5611         * lib/gl_rbtree_omap.c: New file.
5612         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
5613         Parameterize.
5614         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
5615         * modules/rbtree-omap: New file.
5616         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
5617         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
5619         avltree-omap: New module.
5620         * lib/gl_avltree_omap.h: New file.
5621         * lib/gl_avltree_omap.c: New file.
5622         * lib/gl_avltree_ordered.h: Code moved to here from
5623         lib/gl_avltree_oset.c. Parameterize.
5624         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
5625         * lib/gl_anytree_omap.h: New file.
5626         * modules/avltree-omap: New file.
5627         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
5628         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
5630         array-omap: New module.
5631         * lib/gl_array_omap.h: New file.
5632         * lib/gl_array_omap.c: New file.
5633         * modules/array-omap: New file.
5635         omap: New module.
5636         * lib/gl_omap.h: New file.
5637         * lib/gl_omap.c: New file.
5638         * modules/omap: New file.
5640 2018-12-11  Bruno Haible  <bruno@clisp.org>
5642         hash-set, linkedhash-set: Reduce code duplication.
5643         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
5644         lib/gl_anyhash_set1.h.
5645         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
5646         lib/gl_anyhash_set2.h. Parameterize.
5647         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
5648         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
5649         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
5650         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
5651         * lib/gl_rbtreehash_list.c: Likewise.
5652         * lib/gl_linkedhash_list.c: Likewise.
5653         (hash_resize_after_add): Remove function.
5654         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
5655         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
5656         * gl_hash_set.c: Likewise.
5657         * modules/avltreehash-list (Files, Makefile.am): Update file list.
5658         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
5659         * modules/linkedhash-list (Files, Makefile.am): Likewise.
5660         * modules/linkedhash-set (Files, Makefile.am): Likewise.
5661         * modules/hash-set (Files, Makefile.am): Likewise.
5663 2018-12-11  Bruno Haible  <bruno@clisp.org>
5665         array-set: Optimize.
5666         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
5667         outside the loop, not inside the loop.
5669 2018-12-11  Bruno Haible  <bruno@clisp.org>
5671         times: Fix tests.
5672         * tests/test-times.c (doublecmp): Implement a total order.
5674 2018-12-11  Bruno Haible  <bruno@clisp.org>
5676         array-set, linkedhash-set, hash-set: Fix tests.
5677         * tests/test-array_set.c (cmp_objects_in_array): New function.
5678         (check_equals): Use it.
5679         * tests/test-hash_set.c: Likewise.
5680         * tests/test-linkedhash_set.c: Likewise.
5682 2018-12-08  Bruno Haible  <bruno@clisp.org>
5684         Fix comments.
5685         * lib/gl_list.h (gl_list_free): Clarify what it does.
5686         * lib/gl_oset.h (gl_oset_free): Likewise.
5687         * lib/gl_set.h (gl_set_free): Likewise.
5688         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
5689         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
5690         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
5691         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
5693 2018-12-03  Bruno Haible  <bruno@clisp.org>
5695         hash-set: Add tests.
5696         * tests/test-hash_set.c: New file.
5697         * modules/hash-set-tests: New file.
5699         linkedhash-set: Add tests.
5700         * tests/test-linkedhash_set.c: New file.
5701         * modules/linkedhash-set-tests: New file.
5703         array-set: Add tests.
5704         * tests/test-array_set.c: New file.
5705         * modules/array-set-tests: New file.
5707         xset: New module.
5708         * lib/gl_xset.h: New file.
5709         * lib/gl_xset.c: New file.
5710         * modules/xset: New file.
5712         hash-set: New module.
5713         * lib/gl_hash_set.h: New file.
5714         * lib/gl_hash_set.c: New file.
5715         * modules/hash-set: New file.
5717         linkedhash-set: New module.
5718         * lib/gl_linkedhash_set.h: New file.
5719         * lib/gl_linkedhash_set.c: New file.
5720         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
5721         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
5722         * lib/gl_anyhash_primes.h: New file, extracted from
5723         lib/gl_anyhash_list2.h.
5724         * lib/gl_anyhash_list2.h: Include it.
5725         (primes, next_prime): Remove definitions.
5726         * modules/linkedhash-set: New file.
5727         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
5728         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
5729         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
5730         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
5731         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
5732         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
5734         array-set: New module.
5735         * lib/gl_array_set.h: New file.
5736         * lib/gl_array_set.c: New file.
5737         * modules/array-set: New file.
5739         set: New module.
5740         * lib/gl_set.h: New file.
5741         * lib/gl_set.c: New file.
5742         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
5743         gl_set.h.
5744         * modules/set: New file.
5746 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
5748         bison: don't force the Yacc mode
5749         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
5750         errors when Bison features are used in the grammar file.  Some of
5751         these features (such as %expect) were flagged non-yacc recently.  Most
5752         of the time, -y is actually used to please Automake's ylwrap which
5753         expects the output to be y.tab.c.
5754         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
5756 2018-12-01  Bruno Haible  <bruno@clisp.org>
5758         gnupload: Document short options.
5759         * build-aux/gnupload (usage): Document the short options.
5761 2018-11-28  Ben Elliston  <bje@gnu.org>
5763         gnupload: Support option -h as alias of --help.
5764         * build-aux/gnupload: Support -h.
5766 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
5768         memrchr: port better to clang
5769         * lib/memrchr.c (__memrchr): Cast to void * instead of to
5770         longword *, to pacify clang -Wcast-align (Bug#33544).
5772 2018-11-29  Eric Blake  <eblake@redhat.com>
5774         docs: mention printf %m considerations
5775         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
5776         is not portable, and is easy enough to work around.
5777         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
5778         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
5779         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
5780         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
5781         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
5782         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
5783         * doc/posix-functions/printf.texi (printf): Likewise.
5784         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
5785         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
5786         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
5787         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
5788         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5789         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
5790         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5791         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5792         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
5793         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
5794         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
5795         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
5797 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
5799         bitset: rename ebitset/expandable.* as tbitset/table.*
5800         See
5801         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
5802         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
5803         * lib/bitset/table.h, lib/bitset/table.c: these.
5804         Rename all the ebitset* symbols as tbitset*.
5805         Adjust dependencies.
5807 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
5809         bitset: check the operations
5810         * tests/test-bitset.c (bitset_random): New.
5811         Use it.
5812         * lib/bitset/expandable.c (ebitset_not): Fix typo.
5814 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
5816         bitset: properly use false/true instead of 0/1 for Booleans
5817         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
5818         0/1, as Booleans.
5820 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
5822         bitset: rename BITSET_VARRAY as BITSET_VECTOR
5823         For consistency with the name of the file.
5824         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
5825         * lib/bitset/stats.c, lib/bitset/vector.c
5826         (BITSET_VARRAY): Rename as...
5827         (BITSET_VECTOR): this.
5829 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
5831         strerror_r-posix: memmove, not memcpy
5832         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
5833         since the source and destination might overlap in the call
5834         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
5835         Simplify.
5837 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
5839         bitsetv: new module
5840         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
5842 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
5844         bitset: add tests and doc
5845         First stabs at providing a documentation and test for the bitset
5846         module.
5847         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
5849 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
5851         bitset: new module
5852         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
5853         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
5854         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
5855         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
5856         * lib/bitset/vector.h, modules/bitset:
5857         New.
5859 2018-11-23  Bruno Haible  <bruno@clisp.org>
5861         localename: Fix gettext test failures on mingw.
5862         * lib/localename.c (gl_locale_name_posix): Convert the result of
5863         gl_locale_name_environ to XPG syntax.
5865 2018-11-23  Karl Berry  <karl@freefriends.org>
5867         * config/srclistvars.txt,
5868         * config/srclist.txt: remove all gettext references;
5869         the gettext maintainers will sync as needed.
5871 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
5873         mktime: add libc-config dependency
5874         I missed this when we synced from glibc.
5875         * modules/mktime (Depends-on): Add libc-config.
5877 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
5879         longlong: fix comment typo
5880         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
5882 2018-11-11  Bruno Haible  <bruno@clisp.org>
5884         havelib: Remove the need to include asm-underscore.m4.
5885         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
5886         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
5887         gl_HOST_CPU_C_ABI.
5888         * modules/havelib (Files): Add host-cpu-c-abi.m4.
5889         (Depends-on): Remove host-cpu-c-abi.
5891 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
5893         parse-datetime: simplify test for mktime failure
5894         * lib/parse-datetime.y (mktime_ok): Simplify.
5895         Remove args TZ and T; no longer needed.  Callers changed.
5897         posixtm: simplify test for mktime failure
5898         * lib/posixtm.c (posixtime): Simplify.
5900         nstrftime: simplify test for mktime failure
5901         * lib/nstrftime.c (__strftime_internal): Simplify.
5903 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
5905         gnulib-common.m4: port _Noreturn to C++
5906         Problem reported by Akim Demaille in:
5907         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
5908         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
5909         Merge adjustments from _Noreturn.h and from glibc into the non-C++
5910         version.
5911         * lib/_Noreturn.h: Match gnulib-common.
5913 2018-10-30  Bruno Haible  <bruno@clisp.org>
5915         gnu-make: Fix for NetBSD 8 'make'.
5916         Reported by Reuben Thomas in
5917         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
5918         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
5919         output, ignoring exit codes.
5921 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
5923         maintainer-makefile: fix syntax-check rule for "same.h"
5924         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
5925         for 'same_nameat', too.
5927 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
5929         havelib: fix nested ‘configure’ chatter
5930         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
5931         AC_CACHE_CHECK calls, which resulted in confusing output like
5932         “checking for the common suffixes of directories in the library
5933         search path... checking for 64-bit host... no lib,lib”.
5935         backupfile: tweak for better code
5936         * lib/backupfile.c: Sort include directives, and remove
5937         unnecessary <limits.h> include.
5938         (FALLTHROUGH): New macro, copied from other modules.
5939         (backupfile_internal): Use it to avoid code duplication.
5940         This lets GCC 8.2.1 generate better code by inlining the
5941         call to check_extension.
5943 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
5945         backupfile: new dir_fd args
5946         New module opendirat with code taken from fts.
5947         Use this module to let backupfile use a directory file descriptor.
5948         * NEWS: Document the incompatible change.
5949         * lib/backup-find.c (find_backup_file_name):
5950         * lib/backup-rename.c (backup_file_rename):
5951         New arg DIR_FD.
5952         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
5953         (SIZE_MAX): Remove.
5954         Include opendirat.h rather than dirent--.h.
5955         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
5956         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
5957         (backupfile_internal): New arg DIR_FD.  All callers changed.
5958         * lib/fts.c: Include opendirat.h.
5959         (opendirat): Move to opendirat.c.
5960         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
5961         * modules/backupfile (Depends-on): Remove dirfd, opendir.
5962         Add opendirat.
5963         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
5964         Add opendirat.
5966 2018-10-23  Bruno Haible  <bruno@clisp.org>
5968         localename: Simplify support for per-thread locales on Solaris 11.4.
5969         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
5970         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
5971         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
5972         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
5973         specific code.
5974         * lib/localename-table.h: Update comments.
5975         * lib/localename-table.c: Update comments.
5976         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
5977         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
5978         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
5979         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
5980         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
5981         HAVE_NAMELESS_LOCALES here.
5982         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
5983         m4/intlsolaris.m4.
5984         * modules/gettext (Files): Likewise.
5986 2018-10-22  Bruno Haible  <bruno@clisp.org>
5988         std-gnu11: Support Autoconf versions < 2.64.
5989         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
5990         when _AC_DO_LIMIT does not exist.
5992 2018-10-22  Bruno Haible  <bruno@clisp.org>
5994         Assume Autoconf >= 2.63.
5995         * DEPENDENCIES: Mention the requirement.
5997         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
5998         (func_get_filelist): Don't list m4/onceonly.m4 any more.
5999         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
6000         * m4/onceonly.m4: Remove file.
6002         * m4/openmp.m4: Remove file.
6003         * modules/openmp (Files): Remove m4/openmp.m4.
6005         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
6006         htmldir, dvidir, pdfdir, psdir, localedir.
6007         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
6009         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
6010         Autoconf < 2.60.
6011         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
6012         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
6014         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
6015         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
6016         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
6018         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
6019         exists.
6020         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
6022         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
6023         Autoconf < 2.61.
6025         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
6026         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
6027         Autoconf >= 2.52.
6029         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
6030         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
6031         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
6033 2018-10-22  Bruno Haible  <bruno@clisp.org>
6035         Assume Automake >= 1.11.
6036         * m4/configmake.m4: Update comments.
6037         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
6038         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
6039         of 'eval'.
6040         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
6041         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
6042         requires Automake >= 1.11.
6044 2018-10-22  Bruno Haible  <bruno@clisp.org>
6046         localename: Fix typo in comment.
6047         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
6049 2018-10-22  Bruno Haible  <bruno@clisp.org>
6051         Fix failure of 'gnulib-tool --create-testdir' with all modules.
6052         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
6054 2018-10-21  Bruno Haible  <bruno@clisp.org>
6056         locale: Ease integration with GNU libintl.
6057         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
6058         GNULIB_defined_freelocale): New macros.
6060 2018-10-21  Bruno Haible  <bruno@clisp.org>
6062         localename: Fine-tune support for per-thread locales on Solaris 11.4.
6063         * lib/localename-table.h: New file, extracted from lib/localename.c.
6064         * lib/localename-table.c: Likewise.
6065         * lib/localename.c: Include localename-table.h.
6066         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
6067         locale_hash_function instead of pointer_hash.
6068         * modules/localename (Files): Add lib/localename-table.h,
6069         lib/localename-table.c.
6070         (lib_SOURCES): Add localename-table.c.
6071         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
6072         for Solaris 11.4 locale system only on Solaris. Test for it
6073         independently whether getlocalename_l exists.
6074         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
6075         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
6076         HAVE_NAMELESS_LOCALES.
6077         * modules/gettext (Files): Add m4/intlsolaris.m4.
6079 2018-10-21  Bruno Haible  <bruno@clisp.org>
6081         Small update from gettext.
6082         * m4/intl.m4: Update from gettext:
6083         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
6084         mode on AIX.
6085         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
6086         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
6088 2018-10-16  Bruno Haible  <bruno@clisp.org>
6090         mountlist: Remove support for Cray with UNICOS 9.
6091         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
6092         MOUNTED_LISTMNTENT.
6093         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
6095 2018-10-16  Bruno Haible  <bruno@clisp.org>
6097         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
6098         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
6099         STAT_STATFS2_FS_DATA.
6100         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
6101         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
6102         MOUNTED_GETMNT.
6103         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
6104         * lib/getloadavg.c (decstation): Remove definition and case.
6105         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
6106         * lib/getgroups.c: Likewise.
6107         * doc/posix-functions/getgroups.texi: Likewise.
6108         * lib/time.in.h: Update comments.
6110 2018-10-16  Bruno Haible  <bruno@clisp.org>
6112         getloadavg: Remove support for ConvexOS.
6113         * lib/getloadavg.c: Remove convex case.
6115 2018-10-16  Bruno Haible  <bruno@clisp.org>
6117         getloadavg: Remove support for Sony NEWS.
6118         * lib/getloadavg.c: Remove sony_news case.
6120 2018-10-16  Bruno Haible  <bruno@clisp.org>
6122         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
6123         * lib/fsusage.c: Remove _SEQUENT_ case.
6124         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
6125         * lib/mountlist.c: Don't test for MNTTABNAME.
6126         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
6127         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
6128         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
6129         * lib/stat-size.h: Don't mention the Sequent bug.
6130         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
6132 2018-10-16  Bruno Haible  <bruno@clisp.org>
6134         fsusage: Remove support for AIX 3.
6135         * lib/fsusage.c: Remove code for AIX 3.
6136         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
6138 2018-10-16  Bruno Haible  <bruno@clisp.org>
6140         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
6141         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
6142         * lib/fsusage.c: Remove code for AIX PS/2.
6143         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
6144         * lib/getloadavg.c: Likewise.
6146 2018-10-16  Bruno Haible  <bruno@clisp.org>
6148         getloadavg: Remove support for HP-UX on m68k.
6149         * lib/getloadavg.c: Remove hp9000s300 case.
6151 2018-10-16  Bruno Haible  <bruno@clisp.org>
6153         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
6154         * lib/fsusage.c: Remove DOLPHIN case.
6155         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
6156         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
6158 2018-10-16  Bruno Haible  <bruno@clisp.org>
6160         getloadavg: Remove support for Alliant FX/2800.
6161         * lib/getloadavg.c: Remove alliant case.
6163 2018-10-16  Bruno Haible  <bruno@clisp.org>
6165         getloadavg: Remove support for tek4300.
6166         * lib/getloadavg.c: Remove tek4300 case.
6168 2018-10-16  Bruno Haible  <bruno@clisp.org>
6170         getloadavg: Remove support for Ardent.
6171         * lib/getloadavg.c: Remove ardent case.
6173 2018-10-16  Bruno Haible  <bruno@clisp.org>
6175         mountlist: Remove support for SVR2.
6176         Reported by Andrew Borodin <aborodin@vmail.ru> in
6177         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
6178         * lib/mountlist.c: Remove MOUNTED_FREAD case.
6179         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
6180         MOUNTED_FREAD.
6182 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
6184         libc-config: merge from glibc
6185         * lib/cdefs.h (__glibc_has_attribute): New macro.
6187         regex: depend on libc-config
6188         * modules/regex (Depends-on): Add libc-config.
6189         This is needed after the recent autoupdate from glibc.
6191 2018-10-14  Bruno Haible  <bruno@clisp.org>
6193         localename: Add support for per-thread locales on Solaris 11.4.
6194         * lib/locale.in.h (newlocale, freelocale): New declarations.
6195         (duplocale): Declare also when the 'localename' module requests it.
6196         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
6197         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
6198         (struniq): Update.
6199         (struct locale_categories_names, struct locale_hash_node): New types.
6200         (LOCALE_HASH_TABLE_SIZE): New constant.
6201         (locale_hash_table, locale_lock): New variables.
6202         (pointer_hash, get_locale_t_name): New functions.
6203         (newlocale, duplocale, freelocale): New overridden functions.
6204         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
6205         * m4/intlsolaris.m4: New file.
6206         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
6207         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
6208         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
6209         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
6210         declared.
6211         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
6212         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
6213         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
6214         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
6215         * modules/localename (Files): Add intlsolaris.m4.
6216         (Depends-on): Add 'locale'.
6217         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
6218         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
6219         the signatures.
6221 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
6223         timevar: use gethrxtime to get wall clock time
6224         clock_gettime is not portable.  gethrxtime takes the best available
6225         option to get the wall clock time, including clock_gettime (monotonic
6226         clock), and gettime (non monotonic).
6227         Also, using xtime_t instead of float preserves the precision.
6228         Suggested by Bruno Haible.
6229         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
6230         * modules/timevar (Depends-on): We need gethrxtime.
6231         We no longer use times().
6232         (Link): Update.
6233         * lib/timevar.h (timevar_time_def): Use xtime_t.
6234         * lib/timevar.c (set_to_current_time): Use gethrxtime.
6235         (timevar_print): Instead of checking whether the timings themselves
6236         are large enough for the timevar to be printed, check the percentages.
6238 2018-10-14  Bruno Haible  <bruno@clisp.org>
6240         wcsnrtombs: Work around Solaris 11.4 bug.
6241         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
6242         macro.
6243         (gl_FUNC_WCSNRTOMBS): Invoke it.
6244         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
6246 2018-10-14  Bruno Haible  <bruno@clisp.org>
6248         mbsnrtowcs: Work around Solaris 11.4 bug.
6249         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
6250         macro.
6251         (gl_FUNC_MBSNRTOWCS): Invoke it.
6252         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
6254 2018-10-14  Bruno Haible  <bruno@clisp.org>
6256         doc: Update for Solaris 11.4.
6257         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
6258         mention Solaris 11.4.
6259         * m4/printf.m4: Update comments about Solaris.
6260         * m4/log.m4: Likewise.
6261         * m4/log10.m4: Likewise.
6262         * m4/logb.m4: Likewise.
6263         * m4/logbf.m4: Likewise.
6264         * m4/logbl.m4: Likewise.
6265         * m4/rename.m4: Likewise.
6266         * m4/wcrtomb.m4: Likewise.
6267         * m4/hostent.m4: Likewise.
6268         * m4/servent.m4: Likewise.
6270 2018-10-14  Bruno Haible  <bruno@clisp.org>
6272         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
6273         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
6274         pointer.
6275         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
6276         pointer.
6277         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
6278         pointer.
6279         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
6280         pointer.
6281         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
6282         pointer.
6284 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
6286         bootstrap: fix wget command for po files.
6287         * build-aux/bootstrap (po_download_command_format): Fix comment,
6288         and adjust callers.
6290 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
6292         timevar: improve the output format
6293         Suggested by Bruno Haible.
6294         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
6295         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
6296         wall, since its resolution is much higher.
6298 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
6300         timevar: expect that getrusage is available.
6301         Don't keep both times and getrusage as backend: both are guaranteed by
6302         gnulib, a single one suffices.  Using getrusage is open to possibly
6303         tracking other types of resources in the future.
6304         * modules/timevar (Depends-on): Add getrusage.
6305         (configure.ac): Remove gl_TIMEVAR.
6306         (Files): Remove m4/timevar.m4.
6307         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
6308         * lib/timevar.h (timevar_enabled): Clarify documentation.
6309         * lib/timevar.c: Remove all the code about times.
6310         Remove all the CPP guards about getrusage: expect it to be present
6311         (courtesy of gnulib).
6313 2018-10-12  Bruno Haible  <bruno@clisp.org>
6315         mountlist: Improve support for Solaris in 64-bit mode.
6316         Reported by David Wood <David.Wood@deshaw.com> in
6317         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
6318         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
6319         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
6320         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
6322 2018-10-12  Bruno Haible  <bruno@clisp.org>
6324         mountlist: Add support for Minix.
6325         Reported by Assaf Gordon in
6326         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
6327         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
6328         AC_CHECK_FUNCS to check for 'getmntinfo'.
6329         * lib/mountlist.c: Update comments.
6331 2018-10-12  Bruno Haible  <bruno@clisp.org>
6333         Make better use of Autoconf.
6334         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
6335         * m4/manywarnings.m4: Likewise.
6336         * m4/manywarnings-c++.m4: Likewise.
6337         * m4/socklen.m4: Likewise.
6338         * m4/sockpfaf.m4: Likewise.
6339         * m4/stdarg.m4: Likewise.
6340         * m4/visibility.m4: Likewise.
6341         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
6342         indentation.
6343         * m4/ls-mntd-fs.m4: Likewise.
6345 2018-10-11  Bruno Haible  <bruno@clisp.org>
6347         mountlist: Modernize platform lists.
6348         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
6349         platforms, deemphasizing the obsolete ones.
6350         * lib/mountlist.c: Likewise.
6352 2018-10-11  Bruno Haible  <bruno@clisp.org>
6354         getprogname: Add support for 32-bit programs on HP-UX.
6355         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
6356         try the similar functions 32-bit programs on 64-bit HP-UX.
6358 2018-10-11  Bruno Haible  <bruno@clisp.org>
6360         getprogname: Work around program name truncation when possible.
6361         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
6362         possibly use pst_cmd instead.
6364 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
6366         fts: cleanup after FTS_NOATIME removal
6367         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
6368         (FTS_STOP): Shrink to minimal values.  We don’t need to
6369         worry about binary compatibility in Gnulib, and the old way
6370         of doing things had a hole in the user options that caused
6371         FTS_OPTIONMASK to not work as desired.
6373 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
6375         fts: remove FTS_NOATIME
6376         This reverts commit da4d6974013c822af1498941e32db774b2031765.
6377         We cannot guarantee that O_NOATIME works: e.g. openat fails
6378         with EPERM if the effective user ID of the caller does not match
6379         the owner of the file and the caller is not privileged.
6380         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
6381         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
6382         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
6383         (FTS_OPTIONMASK): Adjust.
6384         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
6385         (fd_ring_check): Likewise.
6387 2018-10-08  Bruno Haible  <bruno@clisp.org>
6389         csharpcomp*, csharpexec*: Remove support for pnet.
6390         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
6391         HAVE_CSCC.
6392         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
6393         Don't test HAVE_CSCC.
6394         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
6395         (compile_csharp_class): Don't invoke it.
6396         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
6397         HAVE_ILRUN.
6398         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
6399         Don't test HAVE_ILRUN.
6400         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
6401         (execute_csharp_program): Don't invoke it.
6402         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
6403         any more.
6405 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
6407         renameatu: prefer renameat2 to syscall
6408         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
6409         Use renameat2 instead of syscall (Bug#32796).
6410         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
6412 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
6414         bootstrap, gnulib-tool: use https instead of insecure rsync
6415         * build-aux/bootstrap (download_po_files, po_download_command_format):
6416         Don't try using rsync; always use wget over https to fetch PO files.
6417         * gnulib-tool (func_import): Likewise.
6418         * pygnulib/GLImport.py (GLImport.execute): Likewise.
6420 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
6422         bootstrap, gnulib-tool: correct the translations wget command
6423         * build-aux/bootstrap (po_download_command_format2): Restrict
6424         recursion to a single level.
6425         * gnulib-tool (func_import): Likewise.
6426         * pygnulib/GLImport.py (GLImport.execute): Likewise.
6428 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
6430         doc: the gnulib snapshots are not maintained
6431         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
6433 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
6435         timevar: add to lib_SOURCES
6436         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
6438 2018-10-07  Bruno Haible  <bruno@clisp.org>
6440         dirent: Update documentation.
6441         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
6443 2018-10-05  Bruno Haible  <bruno@clisp.org>
6445         strpbrk: Make it possible to namespace the defined symbol.
6446         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
6448 2018-10-05  Bruno Haible  <bruno@clisp.org>
6450         strcspn: Make it possible to namespace the defined symbol.
6451         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
6453 2018-10-05  Bruno Haible  <bruno@clisp.org>
6455         raise: Make it possible to namespace the defined symbol.
6456         * lib/raise.c (raise): Undefine only after the replacement function has
6457         been defined.
6458         (raise): Renamed from rpl_raise.
6459         (raise_nothrow): Move to the end of the compilation unit.
6461 2018-10-05  Bruno Haible  <bruno@clisp.org>
6463         memcmp: Make it possible to namespace the defined symbol.
6464         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
6466 2018-10-05  Bruno Haible  <bruno@clisp.org>
6468         explicit_bzero: Make it possible to namespace the defined symbol.
6469         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
6470         glibc.
6472 2018-10-05  Bruno Haible  <bruno@clisp.org>
6474         mkdir-p: Depend on 'mkdir'.
6475         * modules/mkdir-p (Depends-on): Add 'mkdir'.
6477 2018-10-05  Bruno Haible  <bruno@clisp.org>
6479         tempname: Depend on 'mkdir'.
6480         Reported by Maarten Bosmans <mkbosmans@gmail.com>
6481         at <https://savannah.gnu.org/bugs/?33379>.
6482         * modules/tempname (Depends-on): Add 'mkdir'.
6484 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
6486         timevar: rely on gnulib modules for time portability.
6487         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
6488         * m4/timevar.m4: Don't check for clock_t and struct tms,
6489         guaranteed by gnulib.
6490         * lib/timevar.h: Use extern "C" protection.
6491         Include <stdio.h> for FILE.
6492         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
6493         they are guaranteed by gnulib.
6494         Remove uses of clock as (now useless) fallback.
6496 2018-10-04  Bruno Haible  <bruno@clisp.org>
6498         sh-filename: New module.
6499         * m4/sh-filename.m4: New file.
6500         * modules/sh-filename: New file.
6501         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
6502         "/bin/sh".
6503         * tests/test-posix_spawn1.c (main): Likewise.
6504         * tests/test-posix_spawn2.c (main): Likewise.
6505         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
6506         is_envjavac_gcj43): Likewise.
6507         * lib/javaexec.c (execute_java_class): Likewise.
6508         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
6509         * modules/posix_spawnp-tests (Depends-on): Likewise.
6510         * modules/javacomp (Depends-on): Likewise.
6511         * modules/javaexec (Depends-on): Likewise.
6513 2018-10-04  Bruno Haible  <bruno@clisp.org>
6515         spawn-pipe tests: Avoid test failure on native Windows.
6516         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
6517         that fd 2 is closed.
6519 2018-10-04  Bruno Haible  <bruno@clisp.org>
6521         fcntl: Make it possible to namespace the defined symbol.
6522         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
6523         been defined.
6524         (fcntl): Renamed from rpl_fcntl.
6525         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
6526         from fcntl.
6527         (klibc_fcntl): Move to the end of the compilation unit.
6529 2018-10-02  Bruno Haible  <bruno@clisp.org>
6531         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
6532         * tests/test-vasnprintf.c (test_function): Change the test added on
6533         2018-09-23 to check only the 18 most significant digits.
6535         vasnprintf tests: Avoid test failure on Cygwin.
6536         * tests/test-vasnprintf.c (test_function): Change the test added on
6537         2018-09-23 to check only the 42 most significant digits.
6539 2018-10-01  Bruno Haible  <bruno@clisp.org>
6541         mkostemp, mkostemps: Update documentation.
6542         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
6543         * doc/glibc-functions/mkostemps.texi: Likewise.
6545 2018-10-01  Tom Tromey  <tom@tromey.com>
6547         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
6548         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
6549         on OS X.
6551 2018-09-30  Pádraig Brady  <P@draigBrady.com>
6553         hmac-*: refactor to remove repetitive code
6554         * lib/hmac.c: A new parameterized single implementation.
6555         * lib/hmac-md5.c: Define parameters and include implementation.
6556         * lib/hmac-sha1.c: Likewise.
6557         * lib/hmac-sha256.c: Likewise.
6558         * lib/hmac-sha512.c: Likewise.
6559         * modules/crypto/hmac-md5: Reference the new implementation file.
6560         * modules/crypto/hmac-sha1: Likewise.
6561         * modules/crypto/hmac-sha256: Likewise.
6562         * modules/crypto/hmac-sha512: Likewise.
6563         * tests/test-hmac-md5.c: Refactor common code to a single function.
6564         * tests/test-hmac-sha1.c: Likewise.
6565         * tests/test-hmac-sha256.c: Likewise.
6566         * tests/test-hmac-sha512.c: Likewise.
6568 2018-09-30  Zhang Qing  <zhangqingl@126.com>
6570         hmac-sha512: fix hash for keys > blocksize (128 bytes)
6571         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
6572         key length to that output by sha512, not the blocksize.
6573         Otherwise uninitialized data from the stack
6574         is used when computing the hash.
6575         * tests/test-hmac-sha512.c: Add a shortened key test case.
6576         Reported at https://github.com/coreutils/gnulib/pull/5
6578 2018-09-30  Bruno Haible  <bruno@clisp.org>
6580         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
6581         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
6582         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
6583         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
6584         'unsigned int' before comparison with an unsigned value.
6586 2018-09-30  Bruno Haible  <bruno@clisp.org>
6588         grantpt: Remove unnecessary dependency.
6589         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
6591 2018-09-30  Bruno Haible  <bruno@clisp.org>
6593         timevar: Small tweaks.
6594         * lib/timevar.h: Fix comments. Add parameter names to function
6595         declarations.
6596         * lib/timevar.c: Include timevar.h immediately after config.h.
6597         * lib/timevar.def: Fix comments.
6598         * modules/timevar (Maintainer): List Akim Demaille.
6600 2018-09-30  Bruno Haible  <bruno@clisp.org>
6602         timevar: Include documentation in gnulib manual.
6603         * doc/timevar.texi: Change node and section name to 'Profiling of
6604         program phases'.
6605         In the code snippets, tweak the #includes and use GNU coding style.
6606         * doc/gnulib.texi: Include timevar.texi.
6608 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
6610         timevar: import from Bison.
6611         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
6612         New files.
6613         * lib/timevar.def: New file.
6614         * doc/timevar.texi: New file.
6616 2018-09-26  Bruno Haible  <bruno@clisp.org>
6618         javacomp-script, javacomp: Add preliminary support for Java 12..17.
6619         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
6620         * lib/javacomp.c (default_target_version): Likewise.
6622 2018-09-26  Bruno Haible  <bruno@clisp.org>
6624         javacomp-script, javacomp: Add support for Java 11.
6625         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
6626         target-version 11.
6627         * lib/javaversion.h: Update comments.
6628         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
6629         source_version_index, get_goodcode_snippet, get_failcode_snippet,
6630         TARGET_VERSION_BOUND, target_version_index,
6631         corresponding_classfile_version): Accept source_version 11 and
6632         target_version 11.
6633         * lib/javacomp.h: Update comments accordingly.
6635 2018-09-23  Bruno Haible  <bruno@clisp.org>
6637         vasnprintf: Fix heap memory overrun bug.
6638         Reported by Ben Pfaff <blp@cs.stanford.edu> in
6639         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
6640         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
6641         memory.
6642         * tests/test-vasnprintf.c (test_function): Add another test.
6644 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
6646         maint: mktime.c now shared with glibc
6647         * config/srclist.txt: intprops.h, timegm.c and mktime.c
6648         are now the same in Gnulib and glibc.
6650         mktime: fix _LIBC typo
6651         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
6653 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
6655         dfa: optimization for state merge
6656         * lib/dfa.c (merge2): New function.
6657         (merge_nfa_state): Use it.
6659 2018-09-18  Jim Meyering  <meyering@fb.com>
6661         dfa: trivial comment fix: s/is/if/
6662         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
6664 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
6666         dfa: use more-informative function name
6667         * lib/dfa.c (maybe_disable_superset_dfa):
6668         Rename from dfautf8noss.  Use change.
6670         dfa: tweak allocation performance
6671         * lib/dfa.c (merge_nfa_state, dfaoptimize):
6672         Prefer ptrdiff_t for indexes some more.
6673         Use char for flags, as it’s wide enough.
6674         Allocate queue and flags together, with one malloc call.
6675         No need to use xnmalloc since the multiplication and
6676         addition cannot overflow (it’s already been checked by
6677         earlier allocation).  Prefer memset to open-coding.
6679         dfa: prune states as we go
6680         * lib/dfa.c (prune): Remove.
6681         dfa: reorder enum for efficiency
6682         (merge_nfa_state): Prune as we go instead of at the end.
6683         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
6685         * lib/dfa.c (END): Now -1 again.  Reorder other elements
6686         of the enumeration to make it easier for GCC to generate
6687         efficient code by using fewer comparisons to check for
6688         ranges of values.
6689         (atom): Take advantage of the reordering.
6691 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
6693         dfa: optimize alternation in NFA
6694         Even when similar states exist in alternation, the DFA treats them
6695         as separate items, which may complicate the transition in NFA and
6696         cause slowdown.  This change assembles the states into one.  For
6697         example, ab|ac is changed into a(b|c).  This change speeds-up
6698         matching for many branched patterns.  For example, grep speeds up
6699         more than 30× in:
6701           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
6702           time -p env LC_ALL=C grep -vf in in
6704         * lib/dfa.c (prune): New function.
6705         (merge_nfa_state): New function.  It merges similar NFA states.
6706         (dfaoptimize): New function.  It seeks merged and removed nodes.
6707         (dfaanalyze): Call new function.
6708         (dfautf8noss): Change name from dfaoptimize because of addition of new
6709         function.
6710         (dfacomp): Update caller.
6712         dfa: simplify initial state
6713         Simplifying the initial state enables easier optimization of the NFA.
6714         * lib/dfa.c (enum token): Add new element BEG.
6715         (prtok): Adjust due to adding element BEG.
6716         (dfaparse): Put BEG at a head of tokens.
6717         (state_index): Adjust due to adding element BEG.
6718         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
6719         build initial state.
6720         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
6722 2018-09-18  Bruno Haible  <bruno@clisp.org>
6724         file-has-acl: Fix test failure on Cygwin 2.9.
6725         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
6726         * lib/acl-internal.h: Likewise.
6727         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
6728         * lib/acl-internal.c: Update comments regarding Cygwin.
6729         * lib/acl_entries.c: Likewise.
6730         * lib/file-has-acl.c: Likewise.
6731         (file_has_acl): For Cygwin, use a different way to determine whether
6732         the "default" ACL of a directory is nontrivial.
6733         * lib/get-permissions.c: Update comments regarding Cygwin.
6734         * lib/set-permissions.c: Likewise.
6736 2018-09-18  Bruno Haible  <bruno@clisp.org>
6738         stat-time tests: Fix test failure on Cygwin.
6739         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
6741 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
6743         doc: OS X 10.11 lacked ns time functions
6744         According to <https://github.com/zeromq/libzmq/issues/2175>,
6745         nanosecond-resolution timestamp functions were introduced
6746         in macOS 10.12, so document the last version (OS X 10.11)
6747         where they were absent.
6749         gettime: nanotime never existed
6750         Problem reported by Bruno Haible in:
6751         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
6752         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
6753         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
6755 2018-09-18  Bruno Haible  <bruno@clisp.org>
6757         doc: Update statement about target platforms.
6758         Reported by Simon Sobisch.
6759         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
6760         restrictions on MSVC versions.
6762 2018-09-18  Bruno Haible  <bruno@clisp.org>
6764         posix_spawn tests: Fix link error on 64-bit Cygwin.
6765         * tests/test-posix_spawn1.c (environ): Remove declaration.
6766         * tests/test-posix_spawn2.c (environ): Likewise.
6767         * tests/test-posix_spawn3.c (environ): Likewise.
6768         * tests/test-posix_spawn4.c (environ): Likewise.
6769         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
6770         * modules/posix_spawnp-tests (Depends-on): Likewise.
6772 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
6774         timespec: new function current_timespec
6775         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
6776         and don’t worry about it failing on a CLOCK_REALTIME arg.
6777         POSIX requires it to succeed and I don’t know of any
6778         counterexamples where the fallbacks would work.
6779         (current_timespec): New function, taken from Emacs.  It is more
6780         convenient than gettime, and can help register allocation.
6781         * lib/timespec.h: Include arg-nonnull.h.
6782         (current_timespec): New declaration.
6783         (gettime, settime): Declare args to be nonnull.
6784         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
6786 2018-09-16  Bruno Haible  <bruno@clisp.org>
6788         setlocale: Improve locale handling on macOS 10.12 or newer.
6789         * lib/setlocale.c: Include header files for CoreFoundation. Declare
6790         gl_locale_name_canonicalize.
6791         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
6792         and LC_MESSAGES.
6793         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
6795 2018-09-16  Bruno Haible  <bruno@clisp.org>
6797         Update list of locale names with scripts on macOS.
6798         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
6799         match Mac OS X 10.13 and recent glibc.
6801 2018-09-16  Bruno Haible  <bruno@clisp.org>
6803         gettext: Use newer macOS APIs when possible.
6804         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
6805         CFLocaleCopyPreferredLanguages.
6807 2018-09-16  Bruno Haible  <bruno@clisp.org>
6809         localename: Revisit macOS specific code.
6810         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
6811         Fix comments about Mac OS X versions.
6813 2018-09-15  Bruno Haible  <bruno@clisp.org>
6815         setlocale: Improve support for locales not supported by libc.
6816         Reported by Dapeng Gao <peter@dpgao.cc> at
6817         <https://savannah.gnu.org/bugs/?54479>.
6818         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
6819         (libintl_setlocale): Use a more error-tolerant strategy when the locale
6820         to be set is not supported by libc: Emit warnings instead of failing.
6822 2018-09-15  Bruno Haible  <bruno@clisp.org>
6824         strstr, strcasestr: Add workaround against glibc-2.28 bug.
6825         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
6826         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
6827         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
6828         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
6829         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
6830         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
6831         * doc/glibc-functions/strcasestr.texi: Likewise.
6833 2018-09-14  Bruno Haible  <bruno@clisp.org>
6835         doc: Fix bottom of top-level page.
6836         Reported by Akim Demaille <akim.demaille@gmail.com> in
6837         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
6838         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
6839         mode.
6840         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
6841         accordingly.
6843 2018-09-12  Bruno Haible  <bruno@clisp.org>
6845         Add test case from a recent glibc bug.
6846         * tests/test-strstr.c (main): Add test of long needle.
6847         * tests/test-strcasestr.c (main): Likewise.
6848         * tests/test-c-strstr.c (main): Likewise.
6849         * tests/test-c-strcasestr.c (main): Likewise.
6850         * tests/test-memmem.c (main): Likewise.
6852 2018-09-12  Bruno Haible  <bruno@clisp.org>
6854         Apply Eric Blake's improvements from 2011-02-25 to more tests.
6855         * tests/test-c-strstr.c (main): Add the same tests here as well.
6857 2018-09-12  Bruno Haible  <bruno@clisp.org>
6859         Apply Jim Meyering's fix from 2015-01-11 to more tests.
6860         * tests/test-memmem.c (main): Free haystack.
6861         * tests/test-strcasestr.c (main): Likewise.
6862         * tests/test-c-strcasestr.c (main): Likewise.
6864 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
6866         xstrtol: fix missing-TYPE_SIGNED typo
6867         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
6869 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
6871         timespec: fix resolution confusion
6872         In normal usage, clock resolution is given in seconds, but the
6873         code was mistakenly using inverse seconds and calling it
6874         “resolution”.  Fix this, partly by renaming two identifiers.
6875         The old names will be kept for a bit, to ease transition.
6876         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
6877         New constants, replacing TIMESPEC_RESOLUTION and
6878         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
6879         All uses changed.
6881 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
6883         mktime: simplify in prep for glibc merge
6884         * lib/mktime.c, lib/timegm.c [_LIBC]:
6885         Include mktime-internal.h (a small file just for glibc)
6886         instead of using a typedef.
6888 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
6890         intprops: minor clarification of code
6891         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
6892         Use _GL_INT_CONVERT rather than reinventing it.
6894 2018-09-07  Bruno Haible  <bruno@clisp.org>
6896         Fix a comment.
6897         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
6899 2018-09-07  Bruno Haible  <bruno@clisp.org>
6901         posix_spawn_file_actions_addchdir: Add tests.
6902         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
6903         * tests/test-posix_spawn4.c: New file.
6904         * modules/posix_spawn_file_actions_addchdir-tests: New file.
6906 2018-09-07  Bruno Haible  <bruno@clisp.org>
6908         posix_spawn_file_actions_addchdir: New module.
6909         Suggested by Eric Blake in
6910         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
6911         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
6912         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
6913         union member 'chdir_action'.
6914         * lib/spawn_faction_addchdir.c: New file.
6915         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
6916         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
6917         HAVE_WORKING_POSIX_SPAWN.
6918         * lib/spawn_faction_adddup2.c: Likewise.
6919         * lib/spawn_faction_addopen.c: Likewise.
6920         * m4/posix_spawn_faction_addchdir.m4: New file.
6921         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
6922         'posix_spawn_file_actions_addchdir' is present and whether
6923         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
6924         instead of HAVE_WORKING_POSIX_SPAWN.
6925         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
6926         posix_spawn_file_actions_addchdir is declared.
6927         (gl_SPAWN_H_DEFAULTS): Initialize
6928         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
6929         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
6930         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
6931         * modules/spawn (Makefile.am): Substitute
6932         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
6933         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
6934         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
6935         * modules/posix_spawn_file_actions_addchdir: New file.
6936         * modules/posix_spawn_file_actions_addclose (Depends-on,
6937         configure.ac): Test also REPLACE_POSIX_SPAWN.
6938         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
6939         configure.ac): Likewise.
6940         * modules/posix_spawn_file_actions_addopen (Depends-on,
6941         configure.ac): Likewise.
6942         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
6943         signature.
6944         * doc/posix-functions/posix_spawn.texi: Mention the new module.
6945         * doc/posix-functions/posix_spawnp.texi: Likewise.
6947 2018-09-06  Bruno Haible  <bruno@clisp.org>
6949         stddef: Override max_align_t on NetBSD 8.0/x86.
6950         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
6951         the value of __alignof__ (max_align_t).
6952         * doc/posix-headers/stddef.texi: Mention the issue.
6954 2018-09-06  Bruno Haible  <bruno@clisp.org>
6956         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
6957         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
6958         system fcntl.
6959         * doc/posix-functions/fcntl.texi: Document the issue.
6961 2018-09-06  Bruno Haible  <bruno@clisp.org>
6963         count-trailing-zeros tests: Rely on limits-h module.
6964         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
6965         definition.
6966         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
6968 2018-09-06  Bruno Haible  <bruno@clisp.org>
6970         count-leading-zeros tests: Rely on limits-h module.
6971         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
6972         definition.
6973         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
6975 2018-09-06  Bruno Haible  <bruno@clisp.org>
6977         count-one-bits tests: Rely on limits-h module.
6978         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
6979         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
6981 2018-09-06  Bruno Haible  <bruno@clisp.org>
6983         xstrtoll: Rely on limits-h module.
6984         * lib/xstrtol.c: Don't include intprops.h.
6985         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
6986         * modules/xstrtol (Depends-on): Remove 'intprops'.
6987         * modules/xstrtoll (Depends-on): Add 'limits-h'.
6989 2018-09-06  Bruno Haible  <bruno@clisp.org>
6991         strtoll, strtoull: Rely on limits-h module.
6992         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
6993         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
6994         * modules/strtoll (Depends-on): Add limits-h.
6995         * modules/strtoull (Depends-on): Likewise.
6997 2018-09-06  Bruno Haible  <bruno@clisp.org>
6999         intprops tests: Fix compilation error with pre-C99 compiler.
7000         * tests/test-intprops.c (verify_stmt): New macro.
7001         (VERIFY, main): Use it.
7003 2018-09-06  Bruno Haible  <bruno@clisp.org>
7005         limits-h: Provide numerical limits macros.
7006         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
7007         IRIX and for GCC.
7008         (WORD_BIT, LONG_BIT): Define.
7009         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
7010         <limits.h> does not define LLONG_MAX or WORD_BIT.
7011         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
7012         TYPE_MAXIMUM): New macros, from intprops.h.
7013         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
7014         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
7015         provides.
7017 2018-09-05  Bruno Haible  <bruno@clisp.org>
7019         fcntl: Don't access nonexistent optional argument.
7020         Reported by Frank Busse <f.busse@imperial.ac.uk> in
7021         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
7022         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
7023         don't consume an argument. For actions that take an 'int' argument,
7024         consume an 'int' argument.
7026 2018-09-05  Eric Blake  <eblake@redhat.com>
7028         doc: mention environ pitfall
7029         * doc/posix-functions/environ.texi (environ): Assigning NULL to
7030         environ is a glibc extension.
7032 2018-09-03  Bruno Haible  <bruno@clisp.org>
7034         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
7035         Reported by Antoine Luong <antoine.luong@c-s.fr> in
7036         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
7037         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
7038         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
7039         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
7041 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
7043         mktime: fix unlikely race+overflow bug
7044         Problem reported by Alexandre Oliva in:
7045         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
7046         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
7047         to avoid an unlikely race if the compiler delays a load and
7048         if this cascades into a signed integer overflow.
7050 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
7052         mktime, timegm: simplify glibc time64_t
7053         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
7054         Now long int, not time_t, since long int is the longstanding type
7055         for this in glibc and there is no need to change it even if time_t
7056         becomes 64 bits - even int would do, though this would be a change
7057         to the glibc generated code.  When this change is merged into
7058         glibc, it should simplify the time_t vs time64_t situation.
7060         mktime, timegm: simplify merge to glibc
7061         Move code around to make a merge to glibc easier to audit.
7062         This should not change behavior.
7063         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
7064         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
7065         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
7066         simplify later conditionals; default the others to zero.  In uses
7067         of these conditionals, explicitly spell out how _LIBC affects
7068         things, so it’s easier to review from a glibc viewpoint.
7069         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
7070         compartmentalize tzset issues.  Move system-dependent tzsettish
7071         code here from mktime.
7072         (mktime): Move tzsettish code to my_tzset, and move
7073         localtime_offset to within mktime so that it doesn’t
7074         need a separate ifdef.
7076 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
7078         intprops: avoid evaluation of some expressions
7079         This makes EXPR_SIGNED (e) easier to use, as it no longer
7080         evaluates the expression E.  Formerly, E was required to be free
7081         of side effects.
7082         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
7083         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
7084         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
7086 2018-08-23  Bruno Haible  <bruno@clisp.org>
7088         getcwd: Add cross-compilation guesses.
7089         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
7090         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
7091         Based on a patch by Paul Eggert.
7092         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
7093         guesses for all GNU systems.
7095 2018-08-19  Bruno Haible  <bruno@clisp.org>
7097         glob-h: Formalize side effects from other modules.
7098         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
7099         * m4/glob.m4 (gl_GLOB): Invoke it.
7101         fnmatch-h: Formalize side effects from other modules.
7102         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
7103         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
7105         limits-h: Formalize side effects from other modules.
7106         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
7107         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
7109 2018-08-19  Bruno Haible  <bruno@clisp.org>
7111         getpass: Move declaration to <unistd.h>.
7112         * lib/unistd.in.h (getpass): New declaration.
7113         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
7114         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
7115         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
7116         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
7117         On glibc systems, don't set REPLACE_GETPASS to 1.
7118         * modules/getpass (Depends-on): Add 'unistd'.
7119         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
7120         (Include): Specify <unistd.h> instead of "getpass.h".
7121         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
7122         (configure.ac): Sync with the configure.ac section of modules/getpass.
7123         (Include): Specify <unistd.h> instead of "getpass.h".
7124         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
7125         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
7126         REPLACE_GETPASS.
7127         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
7128         REPLACE_GETPASS.
7129         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
7130         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
7131         and musl.
7132         * NEWS: Mention the change.
7134 2018-08-19  Bruno Haible  <bruno@clisp.org>
7136         glob: Fix over-optimization due to attribute __nonnull__.
7137         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
7139 2018-08-19  Bruno Haible  <bruno@clisp.org>
7141         glob: Fix another compilation error when glob.h is not replaced.
7142         Reported by Reuben Thomas <rrt@sc3d.org> in
7143         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
7144         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
7145         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
7147 2018-08-18  Bruno Haible  <bruno@clisp.org>
7149         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
7150         Reported by Reuben Thomas <rrt@sc3d.org> in
7151         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
7152         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
7153         in config.h.
7155 2018-08-18  Bruno Haible  <bruno@clisp.org>
7157         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
7158         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
7159         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
7160         Solution proposed by Eli Zaretskii.
7161         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
7162         * lib/gettimeofday.c (GetProcAddress): Likewise.
7163         * lib/link.c (GetProcAddress): Likewise.
7164         * lib/physmem.c (GetProcAddress): Likewise.
7165         * lib/poll.c (GetProcAddress): Likewise.
7166         * lib/select.c (GetProcAddress): Likewise.
7167         * lib/stat-w32.c (GetProcAddress): Likewise.
7169 2018-08-18  Bruno Haible  <bruno@clisp.org>
7171         glob: Fix another compilation error when glob.h is not replaced.
7172         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
7173         * lib/globfree.c: Include <libc-config.h>.
7175 2018-08-18  Bruno Haible  <bruno@clisp.org>
7177         glob: Fix compilation error when glob.h is not replaced.
7178         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
7179         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
7180         * lib/glob_pattern_p.c: Include <libc-config.h>.
7181         * modules/glob (Depends-on): Add libc-config.
7183 2018-08-18  Bruno Haible  <bruno@clisp.org>
7185         scratch_buffer: Add tests.
7186         * tests/test-scratch-buffer.c: New file.
7187         * modules/scratch_buffer-tests: New file.
7189 2018-08-18  Bruno Haible  <bruno@clisp.org>
7191         scratch_buffer: Fix include file.
7192         Reported by Reuben Thomas <rrt@sc3d.org> in
7193         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
7194         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
7195         double-inclusion guard.
7197 2018-08-18  Bruno Haible  <bruno@clisp.org>
7199         glob-h: Revert Paul Eggert's revert.
7200         * m4/glob_h.m4: Revert to previous state.
7201         * modules/glob-h: Likewise.
7203 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
7205         glob-h: always build glob.h
7206         This works around a problem reported by Reuben Thomas in:
7207         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
7208         This workaround always builds glob.h, even on platforms that
7209         do not need it; perhaps this could be improved someday.
7210         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
7211         is always created now.
7212         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
7214 2018-08-13  Bruno Haible  <bruno@clisp.org>
7216         monetary: Simplify m4 code.
7217         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
7218         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
7220 2018-08-13  Bruno Haible  <bruno@clisp.org>
7222         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
7223         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
7224         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
7225         and by Paul J. Lucas <paul@lucasmail.org> in
7226         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
7227         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
7229 2018-08-11  Bruno Haible  <bruno@clisp.org>
7231         setlocale: Trivial simplification.
7232         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
7234 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
7236         verify: port 'assume' to traditional tools
7237         * lib/verify.h (assume): Port better to Oracle Studio 12.6
7238         and other tools that use /*NOTREACHED*/ comments.
7240 2018-08-10  Bruno Haible  <bruno@clisp.org>
7242         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
7243         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
7244         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
7245         'fnmatch-gnu' is in use.
7247 2018-08-07  Bruno Haible  <bruno@clisp.org>
7249         glob-h: Add tests.
7250         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
7251         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
7252         tests/test-glob-h.c.
7253         * modules/glob-h-tests: New file.
7254         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
7255         conditions.
7256         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
7257         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
7259 2018-08-07  Bruno Haible  <bruno@clisp.org>
7261         glob-h: New module.
7262         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
7263         replacements.
7264         * lib/glob.c: Include <config.h>.
7265         * m4/glob_h.m4: New file.
7266         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
7267         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
7268         REPLACE_GLOB_PATTERN_P as appropriate.
7269         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
7270         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
7271         * modules/glob-h: New file.
7272         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
7273         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
7274         lstat, sys_stat. Change conditions.
7275         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
7276         REPLACE_GLOB_PATTERN_P. Set module indicator.
7277         (Makefile.am): Remove code that is moved to glob-h.
7278         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
7279         * modules/posixcheck (Depends-on): Add glob-h.
7281 2018-08-06  Bruno Haible  <bruno@clisp.org>
7283         Force generation of substitute .h file when C++ support is enabled.
7284         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
7285         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
7286         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
7287         FNMATCH_H to non-empty.
7288         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
7289         ICONV_H to non-empty.
7290         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
7291         MONETARY_H to non-empty.
7292         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
7293         non-empty.
7295 2018-08-06  Bruno Haible  <bruno@clisp.org>
7297         fnmatch-h: Fix test compilation error on mingw (regression from today).
7298         * lib/fnmatch.in.h: Fix conditions.
7300 2018-08-06  Bruno Haible  <bruno@clisp.org>
7302         sys_resource: Relicense under LGPLv2+.
7303         John Malmberg's approval is in
7304         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
7305         * modules/sys_resource (License): Change to LGPLv2+.
7307 2018-08-06  Bruno Haible  <bruno@clisp.org>
7309         fnmatch-h: Add tests.
7310         * tests/test-fnmatch-h.c: New file.
7311         * modules/fnmatch-h-tests: New file.
7312         * tests/test-fnmatch-h-c++.cc: New file.
7313         * modules/fnmatch-h-c++-tests: New file.
7315 2018-08-06  Bruno Haible  <bruno@clisp.org>
7317         fnmatch-h: New module.
7318         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
7319         replacements.
7320         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
7321         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
7322         'posixcheck' warning.
7323         * m4/fnmatch_h.m4: New file.
7324         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
7325         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
7326         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
7327         as appropriate.
7328         * modules/fnmatch-h: New file.
7329         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
7330         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
7331         conditions.
7332         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
7333         indicator.
7334         (Makefile.am): Remove code that is moved to fnmatch-h.
7335         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
7336         REPLACE_FNMATCH.
7337         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
7338         * modules/posixcheck (Depends-on): Add fnmatch-h.
7340 2018-08-06  Bruno Haible  <bruno@clisp.org>
7342         Enable more C++ tests.
7343         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
7344         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
7345         * modules/strings-tests (Depends-on): Add strings-c++-tests.
7346         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
7347         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
7349 2018-08-06  Bruno Haible  <bruno@clisp.org>
7351         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
7352         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
7353         getopt.h.
7354         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
7356 2018-08-05  Bruno Haible  <bruno@clisp.org>
7358         utime-h: Generate header file when module 'posixcheck' is in use.
7359         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
7360         UTIME_H to non-empty.
7362 2018-08-05  Bruno Haible  <bruno@clisp.org>
7364         monetary: Generate header file when module 'posixcheck' is in use.
7365         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
7366         use, set MONETARY_H to non-empty.
7368 2018-08-05  Bruno Haible  <bruno@clisp.org>
7370         iconv-h: Generate header file when module 'posixcheck' is in use.
7371         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
7372         set ICONV_H to non-empty.
7374 2018-08-05  Bruno Haible  <bruno@clisp.org>
7376         Optimize the "checking whether ... is declared without a macro" checks.
7377         Suggested by Paul Eggert in
7378         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
7379         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
7380         Gnulib module 'posixcheck' is not in use.
7382 2018-08-05  Bruno Haible  <bruno@clisp.org>
7384         iconv-h: Enable 'posixcheck' warnings.
7385         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
7386         iconv_open.
7387         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
7389 2018-08-05  Bruno Haible  <bruno@clisp.org>
7391         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
7392         * m4/extern-inline.m4: Add more comments.
7393         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
7394         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
7395         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
7397 2018-08-04  Bruno Haible  <bruno@clisp.org>
7399         New module 'posixcheck'.
7400         * modules/posixcheck: New file.
7401         * m4/posixcheck.m4: New file.
7402         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
7403         (Which modules?): Reference it.
7405 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
7407         dfa: fix memory leak
7408         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
7410 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
7412         ieee754-h: new module
7413         It looks like Emacs can use this for some NaN processing.
7414         Emacs uses it only on double NaNs so it should be safe.
7415         * MODULES.html.sh (func_all_modules): Add ieee754-h.
7416         * config/srclist.txt: Mention ieee754.h in a comment.
7417         * doc/glibc-headers/ieee754.texi (ieee754.h):
7418         Gnulib now has a substitute that should work
7419         except for long double and for non-IEEE platforms.
7420         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
7421         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
7423 2018-07-27  Bruno Haible  <bruno@clisp.org>
7425         iswcntrl: Mention minor problem on macOS.
7426         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
7428 2018-07-26  Colin Watson  <cjwatson@debian.org>
7430         bootstrap, gnulib-tool: fix translations rsync
7431         Previously, we created files such as $pobase/Makefile.in.in and then the
7432         subsequent rsync would immediately delete them.
7433         * build-aux/bootstrap (po_download_command_format): Avoid deleting
7434         non-.po files in target directory when rsyncing translations.
7435         * gnulib-tool (func_import): Likewise.
7436         * pygnulib/GLImport.py (GLImport.execute): Likewise.
7438 2018-07-25  Jim Meyering  <meyering@fb.com>
7440         bootstrap: reinstate definition fo gnulib_mk.
7441         That variable is used at least by cppi.
7442         * build-aux/bootstrap (gnulib_mk): Restore definition.
7443         This reverts the deletion from v0.1-1844-gc66dba9ba.
7445 2018-07-23  Bruno Haible  <bruno@clisp.org>
7447         doc: For module names, use texinfo markup @code{} or @samp{}.
7448         * doc/alloca.texi: Mark gnulib module names with @code.
7449         * doc/alloca-opt.texi: Likewise.
7450         * doc/quote.texi: Likewise.
7451         * doc/posix-functions/freopen.texi: Likewise.
7452         * doc/posix-functions/open.texi: Likewise.
7453         * doc/posix-functions/readlink.texi: Likewise.
7454         * doc/posix-functions/readlinkat.texi: Likewise.
7455         * doc/posix-functions/stdout.texi: Likewise.
7456         * doc/posix-functions/stderr.texi: Likewise.
7457         * doc/posix-functions/unlink.texi: Likewise.
7458         * doc/posix-functions/unlinkat.texi: Likewise.
7459         * doc/posix-functions/utime.texi: Likewise.
7460         * doc/posix-functions/utimensat.texi: Likewise.
7461         * doc/posix-functions/utimes.texi: Likewise.
7462         * doc/posix-headers/stdint.texi: Likewise.
7463         * doc/glibc-functions/futimesat.texi: Likewise.
7464         * doc/glibc-functions/lutimes.texi: Likewise.
7465         * doc/glibc-functions/memmem.texi: Likewise.
7467 2018-07-23  Werner LEMBERG  <wl@gnu.org>
7469         doc: Avoid some overfull lines in the TeX output.
7470         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
7471         @example.
7472         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
7473         newline before the long URL.
7474         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
7475         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
7476         Add line breaks in code snippets.
7478 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
7480         hard-locale: simplify by removing hard-locale.m4
7481         * m4/hard-locale.m4: Remove.
7482         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
7483         (configure.ac): Do not call gl_HARD_LOCALE.
7485         gnulib-tool: limit line length for git send-email
7486         * gnulib-tool (func_import): Break actioncmd log line
7487         into multiple lines.
7489 2018-07-16  Bruno Haible  <bruno@clisp.org>
7491         ffs: Ensure declaration on mingw.
7492         Reported by Daniel P. Berrangé <berrange@redhat.com>
7493         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
7494         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
7495         also declared.
7497 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
7499         regex-tests: add dependency
7500         * modules/regex-tests (Depends-on): Add gettext-h.
7501         This is needed given the recent changes to regex,
7502         which no longer depends on gettext-h.
7504 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7506         regex: now in sync with glibc
7507         * config/srclist.txt: Gnulib and glibc regex code
7508         are synchronized again.
7510 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7512         renameatu: rename from renameat2
7513         It's looking like Glibc will add a renameat2 function
7514         that is incompatible with Gnulib renameat2; see:
7515         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
7516         To help avoid future confusion, rename renameat2 to something else.
7517         Use the name 'renameatu', as the Gnulib function is close to the
7518         Glibc function.  Perhaps someday there will also be a renameat2
7519         Gnulib module, which mimicks the future glibc renameat2, but that
7520         can wait as nobody seems to need such a module now.
7521         * NEWS: Mention this.
7522         * lib/renameatu.c: Rename from lib/renameat2.c.
7523         * lib/renameatu.h: Rename from lib/renameat2.h.
7524         * modules/renameatu: Rename from modules/renameat2.
7525         * modules/renameatu-tests: Rename from modules/renameat2-tests.
7526         All uses of "renameat2" in identifiers or file name
7527         changed to "renameatu", except for two instances in
7528         lib/renameatu.c that deal with the Linux kernel's
7529         renameat2 syscall.
7531 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
7533         gnulib-tool: minor tweaks for --gnu-make
7534         * gnulib-tool: Do not allow --gnu-make in test modes,
7535         since they all require automake.
7536         (func_emit_lib_Makefile_am): Don’t emit automake comment
7537         if --gnu-make.
7539         regex: work around conditional-dependencies glitch
7540         * modules/regex (Depends-on): Add langinfo.
7541         Without this change, I had problems building an experimental
7542         version of GNU Emacs.  The symptom of the bug was a message
7543         ‘./configure: line 12726: test: =: unary operator expected’.
7544         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
7545         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
7546         was unset.  Although gl_FUNC_NL_LANGINFO has
7547         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
7548         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
7549         --conditional-dependencies sometimes arranges for the
7550         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
7551         code.  Since the regex code includes <langinfo.h> it should be
7552         depending on the langinfo module anyway, and this happens to work
7553         around the bug, so install that as a workaround for now.  To
7554         reproduce the original problem, run the following shell script on
7555         the version of Gnulib just before this patch was installed.
7556                 rm -fr foo
7557                 mkdir foo
7558                 cat >foo/configure.ac <<'EOF'
7559                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
7560                 gl_EARLY
7561                 gl_INIT
7562                 AC_OUTPUT
7563                 EOF
7564                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
7565                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
7566                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
7567                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
7568                 cd foo
7569                 aclocal -I m4
7570                 autoconf
7571                 ./configure --with-included-regex
7573 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7575         wchar: fix bug when checking for ‘inline’
7576         I discovered this when looking into using the regex module
7577         with Emacs.
7578         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
7579         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
7580         conftest1.c and conftest2.c but these files were not created.
7581         As far as I can see, this check never worked and nobody reported
7582         it until now, which is a bit worrisome.
7584 2018-06-30  Jim Meyering  <meyering@fb.com>
7586         bootstrap: s/--option val/--option=val/
7587         * build-aux/bootstrap (gnulib_tool_options): Change the
7588         spelling of "--option val" pairs to "--option=val", for
7589         aesthetics, and also so that this file no longer triggers
7590         a common help2man syntax-check warning when copied into
7591         projects like grep, gzip, etc.
7593 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7595         manywarnings: omit -Wswitch-default
7596         This should make things more consistent, as we already ignore
7597         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
7598         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
7599         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
7600         Add -Wswitch-default.
7601         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
7602         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
7603         Remove -Wswitch-default.
7605         regex: revert most trimming
7606         Problems reported by Bruno Haible in:
7607         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
7608         * modules/regex (Depends-on): Add lock, memcmp, memmove,
7609         and wctype back in.  lock because regex users shouldn’t
7610         need to know that regex needs locking, and the rest because
7611         gnulib-tool should ordinarily ignore them anyway.
7613 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7615         regex: trim module dependencies
7616         * modules/regex (Depends-on): Remove gettext-h and lock,
7617         since the regex code should work OK without these modules,
7618         and Emacs uses it that way.  Also remove memcmp, memmove,
7619         and wctype, as these modules are obsolete and should not be
7620         needed any more.
7622 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
7624         regex: glibc does not use intprops.h
7625         Maybe we can talk glibc into using intprops.h someday, but
7626         now doesn’t seem to be a good time.
7627         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
7628         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
7629         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
7631 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
7633         regex: port to recently proposed glibc regex merge
7634         This patch is inspired by Adhemerval Zanella's recent proposal
7635         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
7636         to merge glibc and Gnulib regex.  It aims to simplify the merge on
7637         the glibc side, without keeping Gnulib portable.
7638         * lib/regex.h: Fix a problem with glibc installed-header checking,
7639         as follows:
7640         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
7641         (_Restrict_arr_): Prefer __restrict_arr if defined,
7642         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
7643         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
7644         (build_wcs_upper_buffer, build_upper_buffer)
7645         (re_string_translate_buffer, re_string_context_at):
7646         Move decls here from lib/regex_internal.h, for glibc internal tests.
7647         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
7648         glibc BZ #18496.
7649         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
7650         -Wunused-value.
7651         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
7652         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
7653         (bitset_mask): Now static inline, and without any __attribute__
7654         ((unused)) decoration, for glibc internal tests.
7656 2018-06-25  Bruno Haible  <bruno@clisp.org>
7658         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
7659         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
7660         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
7661         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
7662         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
7663         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
7664         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
7665         / -lthread / -lpth does not get optimized away by a preceding
7666         --as-needed option.
7668 2018-06-25  Bruno Haible  <bruno@clisp.org>
7670         Continue to use spaces for indentation, not tabs.
7671         * MODULES.html.sh: Untabify.
7672         * doc/regex.texi: Likewise.
7673         * lib/acl-internal.c: Likewise.
7674         * lib/dfa.c: Likewise.
7675         * lib/exclude.c: Likewise.
7676         * lib/exclude.h: Likewise.
7677         * lib/get-permissions.c: Likewise.
7678         * lib/gettimeofday.c: Likewise.
7679         * lib/parse-datetime.y: Likewise.
7680         * lib/pselect.c: Likewise.
7681         * lib/set-permissions.c: Likewise.
7682         * lib/time.in.h: Likewise.
7683         * m4/canonicalize.m4: Likewise.
7684         * m4/gc.m4: Likewise.
7685         * m4/gnulib-common.m4: Likewise.
7686         * m4/pthread_sigmask.m4: Likewise.
7687         * m4/vararrays.m4: Likewise.
7688         * tests/test-digest.h: Likewise.
7689         * tests/test-fcntl-h.c: Likewise.
7690         * tests/test-timespec.c: Likewise.
7691         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
7693 2018-06-25  Bruno Haible  <bruno@clisp.org>
7695         manywarnings: Don't enable -Wjump-misses-init warnings by default.
7696         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
7697         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
7698         -Wjump-misses-init.
7700 2018-06-25  Jim Meyering  <meyering@fb.com>
7702         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
7703         * lib/acl-internal.h (free_permission_context): Remove that
7704         attribute directive.  Otherwise, it would provoke this from GCC 9:
7705         lib/acl-internal.h:300:3: error: 'const' attribute on function \
7706           returning 'void' [-Werror=attributes]
7708 2018-06-24  Jim Meyering  <meyering@fb.com>
7710         parse-datetime: accommodate gcc-4.8.5
7711         Bruno Haible reported the build failure in
7712         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
7713         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
7714         on declaration of new local.
7716 2018-06-24  Bruno Haible  <bruno@clisp.org>
7718         af_alg: Fail in continuable manner on Linux/powerpc64le.
7719         Reported by Assaf Gordon <assafgordon@gmail.com>
7720         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
7721         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
7722         byte send() as the first round.
7724 2018-06-24  Bruno Haible  <bruno@clisp.org>
7726         af_alg: Fix state of stream after sendfile() succeeds.
7727         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
7728         the stream is correctly positioned afterwards.
7729         * modules/crypto/af_alg (Depends-on): Add fflush.
7730         * tests/test-digest.h (test_digest_on_files): Verify that after the
7731         operation the stream is positioned at end of file.
7733 2018-06-24  Jim Meyering  <meyering@fb.com>
7735         canon-host: take GCC9's advice rather than ignoring warning
7736         Pádraig Brady suggested not to ignore this GCC9 advice.
7737         * lib/canon-host.c: Undo preceding change.
7738         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
7740         parse-datetime.y: avoid spurious GCC 9 warning
7741         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
7742         a function local prior to the first "goto fail".  The prior use would
7743         evoke this:
7744         parse-datetime.y: In function 'parse_datetime2':
7745         parse-datetime.y:1791:19: error: jump skips variable initialization \
7746           [-Werror=jump-misses-init]
7747         parse-datetime.y:2385:2: note: label 'fail' defined here
7748         parse-datetime.y:188:43: note: '({anonymous})' declared here
7749         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
7751         canon-host.c: avoid spurious GCC 9 warning
7752         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
7754         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
7755         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
7756         * m4/manywarnings.m4: Remove them.
7757         Otherwise, building coreutils, I would see this:
7758         cc1: error: deprecated command line option '-Wchkp' [-Werror]
7759         cc1: error: -Wabi won't warn about anything [-Werror=abi]
7760         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
7761           which is also used by default
7762         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
7764 2018-06-24  Bruno Haible  <bruno@clisp.org>
7766         af_alg tests: Add another test.
7767         * tests/test-digest.h (test_digest_on_files): Also check a large file
7768         with a skipped header.
7769         * tests/test-md5.c: Include macros.h.
7770         * tests/test-sha1.c: Likewise.
7771         * tests/test-sha256.c: Likewise.
7772         * tests/test-sha512.c: Likewise.
7773         * modules/crypto/md5-tests (Files): Add tests/macros.h.
7774         * modules/crypto/sha1-tests (Files): Likewise.
7775         * modules/crypto/sha256-tests (Files): Likewise.
7776         * modules/crypto/sha512-tests (Files): Likewise.
7778 2018-06-24  Pádraig Brady  <P@draigBrady.com>
7780         maint: clarify comments about sticky EOF
7781         * lib/af_alg.c: Be more direct that we can't
7782         assume stickiness of EOF for portability reasons.
7783         * lib/md5.c: Clarify that this isn't just a glibc issue.
7784         * lib/sha1.c: Likewise.
7785         * lib/sha256.c: Likewise.
7786         * lib/sha512.c: Likewise.
7788 2018-06-24  Bruno Haible  <bruno@clisp.org>
7790         af_alg: Comment and style improvements.
7791         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
7792         (afalg_buffer, afalg_stream): Improve comments.
7794 2018-06-24  Pádraig Brady  <P@draigBrady.com>
7796         af_alg: disable kernel hash functions by default
7797         All the kernel routines were seen to be significantly slower
7798         with these relatively recent components on an i3-2310M system:
7799           kernel-4.10.6-200.fc25.x86_64
7800           openssl-1.0.2m-1.fc25.x86_64
7801         sha1 was nearly twice as slow in the kernel for example.
7802         Further considerations why this should not be the default, at:
7803         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
7805         * m4/af_alg.m4: Require --with-linux-crypto to enable.
7806         * m4/gl-openssl.m4: Tweak accordingly.
7808 2018-06-24  Pádraig Brady  <P@draigBrady.com>
7810         af_alg: avoid hangs when reading from streams
7811         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
7812         and thus avoid doing a fread() when feof() is set.
7813         * lib/md5.c: Ensure feof() is called before fread().
7814         * lib/sha1.c: Likewise.
7815         * lib/sha256.c: Likewise.
7816         * lib/sha512.c: Likewise.
7818 2018-06-24  Pádraig Brady  <P@draigBrady.com>
7820         af_alg: fix error handling when hash not returned
7821         * lib/af_alg.c (afalg_stream): Handle the case where we've
7822         successfully written data to the kernel in the read/write loop,
7823         but the kernel doesn't respond with the hash.
7825 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
7827         libc-config: merge from glibc
7828         * lib/cdefs.h (__inline, __restrict):
7829         Copy from current glibc.  This fixes glibc bug 17721,
7830         which Gnulib had already fixed in a different way.
7831         (__nonnull): Lessen the distance from glibc by using the
7832         glibc definition inside an ‘#ifndef __nonnull’.
7833         (__attribute_nonstring__): New macro, copied from
7834         current glibc.
7835         * lib/libc-config.h (__attribute_nonstring__): New undef.
7836         (__restrict): Remove; workaround no longer needed.
7837         Keep the __inline workaround, though, as it uses HAVE___INLINE to
7838         support more compilers than the glibc __inline can.
7840 2018-06-24  Bruno Haible  <bruno@clisp.org>
7842         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
7843         * lib/mbrtowc.c (enc_t): New enum type.
7844         (locale_enc, locale_enc_cached): New functions.
7845         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
7846         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
7847         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
7848         instead.
7849         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
7850         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
7851         * modules/wcwidth (configure.ac): Invoke it.
7853 2018-06-24  Bruno Haible  <bruno@clisp.org>
7855         wchar-single: Fix test failure in wcwidth tests.
7856         * tests/test-wcwidth.c (main): If the wchar-single module is present,
7857         skip the tests in the C locale.
7859 2018-06-23  Pádraig Brady  <P@draigBrady.com>
7861         crypto: mention --without-linux-crypto in --with-openssl --help
7862         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
7863         routines take precedence in --with-openssl help output.
7865 2018-06-23  Pádraig Brady  <P@draigBrady.com>
7867         wchar-single: a new module to enable optimizations in wchar replacements
7868         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
7869         GNULIB_WCHAR_SINGLE is enabled.
7870         * lib/wcwidth.c (wcwidth): Likewise.
7872 2018-06-23  Bruno Haible  <bruno@clisp.org>
7874         libc-config: Fix conflict with FreeBSD include files.
7875         * lib/cdefs.h (__nonnull): Remove definition.
7876         * lib/libc-config.h (__nonnull): Remove undefinition.
7878 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
7880         random_r: do not crash if state is unaligned
7881         Problem reported by Bruce Korb in:
7882         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
7883         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
7884         with 'cc -O2 -xmemalign=8s'.
7885         * lib/random_r.c: Include string.h, for memcpy.
7886         (get_int32, set_int32): New functions.
7887         (__srandom_r, __initstate_r, __setstate_r, __random_r):
7888         Use them to avoid assumption that state pointer is aligned.
7889         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
7890         * tests/test-random_r.c (test_failed): New function.
7891         (main): Use it, to test for alignment bugs.
7893         random_r: omit unnecessary include
7894         * lib/random_r.c: Do not include limits.h.
7896         random, random_r: merge from glibc
7897         * lib/random.c, lib/random_r.c:
7898         Include libc-config.h if !_LIBC, not config.h unilaterally.
7899         * lib/random.c:
7900         Do not include stdint.h or time.h; not needed.
7901         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
7902         (unsafe_state): Rename from generator.  All uses changed.
7903         Use C99-style initializers.
7904         (__random, __srandom, __initstate, __setstate): Rename from
7905         non-underscored version, but define it to non-underscored version
7906         on Gnulib.  Add a lock.
7907         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
7908         Likewise.
7909         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
7910         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
7911         (__srandom_r): Use int32_t instead of long int where int32_t will do.
7912         (__random_r): Use uint32 to fix glibc bug 17343.
7913         * modules/random, modules/random_r (Depends-on): Add libc-config.
7914         Depend on stdint only if $HAVE_RANDOM = 0.
7916 2018-06-19  Jim Meyering  <meyering@fb.com>
7918         README-release: also run any check-very-expensive tests
7919         * top/README-release: Adjust instructions so they run the
7920         check-very-expensive tests when there is such a target.
7922 2018-06-18  Bruno Haible  <bruno@clisp.org>
7924         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
7925         * m4/pthread_rwlock_rdlock.m4: Add comment.
7926         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
7927         are reader-preferring in glibc.
7928         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
7929         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
7931 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
7933         crypto: use byteswap
7934         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
7935         * lib/sm3.c: Include <byteswap.h>.
7936         (SWAP): Use its macros rather than reinventing the wheel.
7937         * modules/crypto/md4, modules/crypto/md5-buffer:
7938         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
7939         * modules/crypto/sha512-buffer, modules/crypto/sm3:
7940         (Depends-on): Add byteswap.
7942 2018-06-17  Pádraig Brady  <P@draigBrady.com>
7944         gendocs.sh: fix support for legacy --texi2html
7945         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
7946         to the default makeinfo invocation.
7947         Reported by Bruce Korb
7949 2018-06-17  Bruno Haible  <bruno@clisp.org>
7951         gettext po infrastructure: Update from current gettext git.
7952         Reported by Akim Demaille <akim@lrde.epita.fr>.
7953         * build-aux/po/Makefile.in.in: Update from current gettext git.
7954         * build-aux/po/remove-potcdate.sin: Likewise.
7955         * config/srclist.txt: Temporarily disable sync for these files.
7957 2018-06-17  Bruno Haible  <bruno@clisp.org>
7959         getloadavg: Return 0 on Windows without Cygwin.
7960         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
7962 2018-06-17  Paul Smith  <psmith@gnu.org>
7964         getloadavg: Allow building on Windows without Cygwin
7965         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
7966         * m4/getloadavg.m4: Check for unistd.h.
7968 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
7970         Port crypto/af_alg to GCC 4.8.4
7971         Problem reported by Peter Simons in:
7972         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
7973         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
7975 2018-05-27  Colin Watson  <cjwatson@debian.org>
7977         bootstrap: document source fetching in --help
7978         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
7980 2018-04-09  Colin Watson  <cjwatson@debian.org>
7982         bootstrap: allow non-submodule control of gnulib
7983         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
7984         bootstrap.conf when fetching gnulib using "git clone" or via
7985         GNULIB_SRCDIR.
7987 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
7989         crypto: omit stream ops Emacs doesn’t need
7990         * lib/md5.c (md5_stream):
7991         * lib/sha1.c (sha1_stream):
7992         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
7993         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
7994         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
7995         defined.  Emacs needs this, as it does not use the stream
7996         operations and doesn’t need all the af_alg stuff we’ve recently
7997         added.  Perhaps a similar change is needed to the other crypto
7998         modules, but this patch changes only those needed for Emacs.
7999         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
8000         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
8001         New modules, used by Emacs.
8002         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
8003         * modules/crypto/sha512: Rewrite to depend on the new modules.
8005 2018-05-20  Pádraig Brady  <P@draigBrady.com>
8007         fts: avoid a memory leak edge case
8008         * lib/fts.c (fts_open): Set an appropriate fts_level
8009         so that an immediate fts_close() will free the allocation.
8010         * tests/test-fts.c (fts_dealloc): Add a test case which
8011         will trigger under valgrind or address sanitizer.
8012         Fixes https://bugs.gnu.org/31439
8014 2018-05-20  Bruno Haible  <bruno@clisp.org>
8016         wcwidth tests: Fix link error.
8017         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
8018         $(LIBUNISTRING).
8020 2018-05-20  Bruno Haible  <bruno@clisp.org>
8022         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
8023         * modules/regex (Files): Add m4/glibc21.m4.
8025 2018-05-20  Bruno Haible  <bruno@clisp.org>
8027         localcharset: Optimize.
8028         * lib/localcharset.c (alias_table): Comment out no-op mappings for
8029         platforms where these don't matter. This reduces the table size,
8030         which in turn reduces the lookup time.
8032 2018-05-19  Bruno Haible  <bruno@clisp.org>
8034         localcharset: Map the locale encodings found in newer OSes.
8035         * lib/localcharset.c (alias_table): Add mapping for locale encodings
8036         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
8037         IRIX 6.5, Minix 3.3.
8038         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
8040 2018-05-19  Bruno Haible  <bruno@clisp.org>
8042         localcharset: Move mapping tables into the code. Use a binary search.
8043         * lib/localcharset.h: Document the GNU canonical names for character
8044         encodings here.
8045         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
8046         relocatable.h, configmake.h.
8047         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
8048         macros.
8049         (charset_aliases): Remove variable.
8050         (get_charset_aliases): Remove function.
8051         (struct table_entry): New type.
8052         (alias_table, locale_table): New constants.
8053         (locale_charset): Use the alias_table or locale_table to get the
8054         canonicalized encoding name.
8055         * lib/config.charset: Remove file.
8056         * lib/ref-add.sin: Remove file.
8057         * lib/ref-del.sin: Remove file.
8058         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
8059         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
8060         * modules/localcharset (Notice): Remove.
8061         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
8062         glibc21.m4.
8063         (Depends-on): Remove configmake.
8064         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
8065         (Makefile.am): Simplify.
8066         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
8068 2018-05-19  Bruno Haible  <bruno@clisp.org>
8070         localcharset: Add a manual test.
8071         * tests/test-localcharset.c: New file.
8072         * modules/localcharset-tests: New file.
8074 2018-05-19  Bruno Haible  <bruno@clisp.org>
8076         localcharset: Remove support for obsolete platforms.
8077         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
8078         Mac OS X 10.2. Comment out dubious entry for Solaris.
8080 2018-05-19  Jim Meyering  <meyering@fb.com>
8082         gnupload: adjust comment
8083         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
8084         more likely we'll remove the just-added code in a year or two.
8086 2018-05-19  Bruno Haible  <bruno@clisp.org>
8088         gnupload: Fix "gpg-agent is not available in this session" error.
8089         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
8091 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
8093         crypto/af_alg: fix --help
8094         * m4/af_alg.m4: Avoid spurious newline in --help output.
8096 2018-05-13  Bruno Haible  <bruno@clisp.org>
8098         nl_langinfo: Fix compilation error on Android.
8099         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
8100         INT_CURR_SYMBOL, etc. only if these items are defined.
8102 2018-05-13  Bruno Haible  <bruno@clisp.org>
8104         truncate: Fix compilation error on Android.
8105         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
8106         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
8107         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
8108         HAVE_TRUNCATE.
8109         * modules/truncate: Likewise.
8110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
8111         not HAVE_TRUNCATE.
8112         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
8113         HAVE_TRUNCATE.
8114         * doc/posix-functions/truncate.texi: Mention the issue.
8116 2018-05-13  Bruno Haible  <bruno@clisp.org>
8118         pthread: Fix compilation error on Android.
8119         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
8120         recursive inclusion of this file.
8122 2018-05-13  Bruno Haible  <bruno@clisp.org>
8124         posix_spawn: Fix compilation error on Android.
8125         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
8126         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
8127         (posix_spawn_file_actions_t): Consider also the case
8128         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
8130 2018-05-13  Bruno Haible  <bruno@clisp.org>
8132         tsearch: Move from K&R C to ANSI C.
8133         * lib/tsearch.c (tfind): Convert definition to ANSI C.
8135 2018-05-13  Bruno Haible  <bruno@clisp.org>
8137         tsearch: Fix compilation error on Android.
8138         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
8139         is 0.
8140         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
8141         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
8142         GNULIB_defined_tsearch is true.
8143         (twalk): Define only if GNULIB_defined_twalk is true.
8144         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
8145         is 0.
8146         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
8147         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
8148         * modules/search (Makefile.am): Substitute HAVE_TWALK.
8150 2018-05-13  Bruno Haible  <bruno@clisp.org>
8152         imaxdiv: Fix compilation error on Android.
8153         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
8154         is not defined.
8155         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
8156         HAVE_DECL_IMAXDIV, is 0.
8157         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
8158         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
8160 2018-05-13  Bruno Haible  <bruno@clisp.org>
8162         Support selective inclusion mechanism of recent mingw.org header files.
8163         Reported by Eli Zaretskii <eliz@gnu.org>.
8164         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
8165         __need_ssize_t, or __need_time_t is defined, just include the system's
8166         <sys/types.h>.
8167         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
8168         include the system's <locale.h>.
8170 2018-05-13  Bruno Haible  <bruno@clisp.org>
8172         Avoid compilation error due to 'mmap' on Android.
8173         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
8174         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
8175         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
8176         Undefine on Android.
8178 2018-05-13  Bruno Haible  <bruno@clisp.org>
8180         Add cross-compilation guesses for Linux systems without glibc.
8181         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
8182         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
8183         * m4/link.m4 (gl_FUNC_LINK): Likewise.
8184         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8185         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
8186         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
8187         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8188         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
8189         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
8190         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
8191         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
8192         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8193         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
8194         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8195         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8196         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
8197         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8198         * m4/utimens.m4 (gl_UTIMENS): Likewise.
8200 2018-05-13  Bruno Haible  <bruno@clisp.org>
8202         getpagesize: Fix compilation error on Android.
8203         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
8204         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
8205         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
8206         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
8207         HAVE_GETPAGESIZE accordingly.
8208         * modules/getcwd (Files): Add m4/getpagesize.m4.
8210 2018-05-13  Bruno Haible  <bruno@clisp.org>
8212         tcgetsid: Fix compilation error on Android.
8213         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
8214         AC_CHECK_FUNC.
8216 2018-05-13  Bruno Haible  <bruno@clisp.org>
8218         getpass: Fix configure test for Android.
8219         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
8220         AC_CHECK_FUNC.
8222 2018-05-13  Bruno Haible  <bruno@clisp.org>
8224         ffs: Fix compilation error on Android.
8225         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
8227 2018-05-13  Bruno Haible  <bruno@clisp.org>
8229         mkfifo: Fix compilation error on Android.
8230         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
8231         AC_CHECK_FUNC.
8233 2018-05-13  Bruno Haible  <bruno@clisp.org>
8235         c-strtod: Fix configure test for Android.
8236         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
8237         AC_CHECK_FUNC.
8239 2018-05-13  Bruno Haible  <bruno@clisp.org>
8241         random: Fix compilation error on Android.
8242         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
8243         AC_CHECK_FUNC.
8245 2018-05-13  Bruno Haible  <bruno@clisp.org>
8247         grantpt: Fix compilation error on Android.
8248         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
8249         AC_CHECK_FUNC.
8251 2018-05-13  Bruno Haible  <bruno@clisp.org>
8253         stdioext: Fix compilation errors with newer Android headers.
8254         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
8255         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
8256         fallbacks for Android.
8257         * lib/fpending.c: Update comments.
8258         * lib/fpurge.c: Likewise.
8259         * lib/freadable.h: Likewise.
8260         * lib/freadable.c: Likewise.
8261         * lib/freadahead.c: Likewise.
8262         * lib/freading.h: Likewise.
8263         * lib/freadptr.c: Likewise.
8264         * lib/fseterr.c: Likewise.
8265         * lib/fwritable.h: Likewise.
8266         * lib/fwritable.c: Likewise.
8267         * lib/fwriting.h: Likewise.
8268         * lib/fwriting.c: Likewise.
8270 2018-05-13  Bruno Haible  <bruno@clisp.org>
8272         doc: Add info about Android versions 2.0 to 8.1.
8273         * doc/**/*.texi: Add info about functions in all released versions of
8274         Bionic.
8276 2018-05-12  Bruno Haible  <bruno@clisp.org>
8278         fseeko: On mingw, don't use the hidden function _fseeki64.
8279         Reported by Eli Zaretskii <eliz@gnu.org>.
8280         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
8281         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
8283 2018-05-12  Bruno Haible  <bruno@clisp.org>
8285         glob: Choose 'dirent_type' in a way that works better on mingw.
8286         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
8287         * lib/glob.c (dirent_type): Define as uint_fast32_t.
8289 2018-05-12  Bruno Haible  <bruno@clisp.org>
8291         execute, spawn-pipe: Avoid warning about redefining 'close'.
8292         Reported by Eli Zaretskii <eliz@gnu.org>.
8293         * lib/execute.c: Undefine 'close' before redefining it.
8294         * lib/spawn-pipe.c: Likewise.
8296 2018-05-12  Bruno Haible  <bruno@clisp.org>
8298         nanosleep: Avoid test failure on mingw when it has nanosleep.
8299         Reported by Eli Zaretskii <eliz@gnu.org>.
8300         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
8301         If it does not exist, use a simpler test program that does not call
8302         alarm().
8304 2018-05-10  Bruno Haible  <bruno@clisp.org>
8306         lock, cond, thread, tls: Use a different symbol as libpthread witness.
8307         Reported by Devin Hussey <husseydevin@gmail.com>.
8308         Based on a patch by Paul Eggert.
8309         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
8310         as witness of libpthread.
8311         * lib/glthread/cond.h (pthread_in_use): Likewise.
8312         * lib/glthread/thread.h (pthread_in_use): Likewise.
8313         * lib/glthread/tls.h (pthread_in_use): Likewise.
8315 2018-05-10  Bruno Haible  <bruno@clisp.org>
8317         cond tests: Fix compilation error on Solaris.
8318         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
8319         macro.
8321 2018-05-10  Bruno Haible  <bruno@clisp.org>
8323         doc: Add partial info about Android 4.3.
8324         * doc/*-functions/*.texi: Add info about functions that were added
8325         to Bionic between Android 4.3 and Android 9.0.
8327 2018-05-10  Bruno Haible  <bruno@clisp.org>
8329         doc: Add info about Android 9.0.
8330         * doc/**/*.texi: Add info about functions and headers in Bionic from
8331         Android 9.0.
8333 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
8335         af_alg: fix my typo in afalg_buffer
8336         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
8337         (afalg_stream): Simplify and avoid the need for a runtime test
8338         at the end.
8340         af_alg: recover better from crypto failures
8341         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
8342         input stream is seekable, by repositioning the stream back to
8343         where it was, possibly by just calling sendfile with an offset
8344         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
8345         cases, which lets our callers try again with user-mode code.
8346         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
8347         instead of on fflush and lseek.
8349         af_alg: distiguish I/O errors better
8350         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
8351         not -EIO, if it’s OK for the caller to try again with user-mode code.
8352         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
8353         some other error number) if fflush fails, as the caller should not
8354         try again that case.
8356         af_alg: avoid gotos
8357         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
8358         gotos, as they were a source of unreliability and made the code a
8359         bit harder to follow.
8361         af_alg: don’t leak file descriptors into children
8362         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
8363         This code should be compiled only on recent GNU/Linux platforms
8364         so we shouldn’t have to also depend on the accept4 module.
8366         af_alg: coalesce socket creation
8367         * lib/af_alg.c (alg_socket): New function.
8368         (afalg_buffer, afalg_stream): Use it.  This avoids some
8369         code duplication and gotos.
8371         af_alg: fix file descriptor leak
8372         * lib/af_alg.c (afalg_stream): Close leak.
8374         af_alg: Pacify --enable-gcc-warnings on GCC 8
8375         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
8376         and checking to pacify gcc -Wjump-misses-init on GCC 8.
8378 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
8380         af_alg: Pacify --enable-gcc-warnings
8381         Problem reported by Assaf Gordon in:
8382         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
8383         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
8384         gcc -Wjump-misses-init.
8385         * lib/sha512.c (shaxxx_stream): Now static.
8387 2018-05-06  Bruno Haible  <bruno@clisp.org>
8389         af_alg: Add ability to use Linux kernel crypto API on data in memory.
8390         * lib/af_alg.h (afalg_buffer): New declaration.
8391         * lib/af_alg.c (afalg_buffer): New function.
8393 2018-05-06  Bruno Haible  <bruno@clisp.org>
8395         af_alg: Avoid warnings.
8396         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
8397         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
8399 2018-05-06  Bruno Haible  <bruno@clisp.org>
8401         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
8402         * tests/bench-digest.h: New file.
8403         * tests/bench-md5.c: New file.
8404         * tests/bench-sha1.c: New file.
8405         * tests/bench-sha224.c: New file.
8406         * tests/bench-sha256.c: New file.
8407         * tests/bench-sha384.c: New file.
8408         * tests/bench-sha512.c: New file.
8409         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
8410         tests/bench-digest.h.
8411         (Depends-on): Add getrusage, gettimeofday.
8412         (Makefile.am): Add variables to build bench-md5.
8413         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
8414         tests/bench-digest.h.
8415         (Depends-on): Add getrusage, gettimeofday.
8416         (Makefile.am): Add variables to build bench-sha1.
8417         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
8418         tests/bench-sha256.c, tests/bench-digest.h.
8419         (Depends-on): Add getrusage, gettimeofday.
8420         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
8421         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
8422         tests/bench-sha512.c, tests/bench-digest.h.
8423         (Depends-on): Add getrusage, gettimeofday.
8424         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
8426 2018-05-06  Bruno Haible  <bruno@clisp.org>
8428         af_alg: Fix a resource leak.
8429         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
8430         New local variable 'result'.
8432 2018-05-06  Bruno Haible  <bruno@clisp.org>
8434         af_alg: Fix bug with streams that are not at position 0.
8435         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
8436         assume that the stream is positioned at position 0.
8437         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
8438         of the stream.
8439         * lib/md5.h (md5_stream): Likewise.
8440         * lib/sha1.h (sha1_stream): Likewise.
8441         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
8442         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
8443         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
8445         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
8446         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
8447         stream that is not positioned at the beginning.
8449 2018-05-06  Bruno Haible  <bruno@clisp.org>
8451         af_alg: Add configure option to enable/disable use of Linux crypto API.
8452         Suggested by Assaf Gordon <assafgordon@gmail.com>.
8453         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
8454         USE_LINUX_CRYPTO_API.
8455         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
8456         * lib/af_alg.c: Likewise.
8458 2018-05-06  Bruno Haible  <bruno@clisp.org>
8460         Followup to 'af_alg: New module.'.
8461         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
8462         * modules/crypto/sha1 (Depends-on): Likewise.
8463         * modules/crypto/sha256 (Depends-on): Likewise.
8464         * modules/crypto/sha512 (Depends-on): Likewise.
8466 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8468         crypto/{md5,sha1,sha256,sha512}: simplify
8469         * lib/md5.c (md5_stream):
8470         * lib/sha1.c (sha1_stream):
8471         * lib/sha256.c (shaxxx_stream):
8472         Simplify, partly by assuming C99.
8473         * lib/sha256.c (shaxxx_stream):
8474         New function, which implements both sha256 and sha224.
8475         Simplify, partly by assuming C99.
8476         (sha256_stream, sha224_stream):
8477         Use it to avoid code duplication, removing a FIXME.
8478         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
8479         Likewise.
8481         af_alg: Improve comments.
8482         * lib/af_alg.h: Use imperatives and tighten up wording.
8484 2018-05-05  Bruno Haible  <bruno@clisp.org>
8486         af_alg: Improve comments.
8487         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
8489 2018-05-05  Bruno Haible  <bruno@clisp.org>
8491         af_alg: New module.
8492         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
8493         * lib/af_alg.c: Include "af_alg.h" before the other header files.
8494         * lib/md5.c: Include "af_alg.h" unconditionally.
8495         (md5_stream): Invoke afalg_stream unconditionally.
8496         * lib/sha1.c: Include "af_alg.h" unconditionally.
8497         (sha1_stream): Invoke afalg_stream unconditionally.
8498         * lib/sha256.c: Include "af_alg.h" unconditionally.
8499         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
8500         * lib/sha512.c: Include "af_alg.h" unconditionally.
8501         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
8502         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
8503         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
8504         * modules/crypto/af_alg: New file.
8505         * modules/crypto/md5 (Files): Remove files that are now in the
8506         'crypto/af_alg' module.
8507         (Depends-on): Add crypto/af_alg.
8508         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
8509         (Makefile.am): Don't mention af_alg.c here.
8510         * modules/crypto/sha1 (Files): Remove files that are now in the
8511         'crypto/af_alg' module.
8512         (Depends-on): Add crypto/af_alg.
8513         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
8514         (Makefile.am): Don't mention af_alg.c here.
8515         * modules/crypto/sha256 (Files): Remove files that are now in the
8516         'crypto/af_alg' module.
8517         (Depends-on): Add crypto/af_alg.
8518         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
8519         (Makefile.am): Don't mention af_alg.c here.
8520         * modules/crypto/sha512 (Files): Remove files that are now in the
8521         'crypto/af_alg' module.
8522         (Depends-on): Add crypto/af_alg.
8523         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
8524         (Makefile.am): Don't mention af_alg.c here.
8526 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8528         crypto tests: pacify GCC
8529         * tests/test-digest.h (test_digest_on_files):
8530         Don’t assume digest size fits in int (!).
8532         af_alg: minor style improvements
8533         * lib/af_alg.c (afalg_stream): Prefer C99 style
8534         decl-after-statement, since we’re already assuming C99.  Clarify
8535         by strengthening the bind test and omit unnecessary assignment.
8537 2018-05-05  Bruno Haible  <bruno@clisp.org>
8539         af_alg: Fix bug on empty files.
8540         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
8541         stream is empty.
8543 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8545         sys-limits.h: new file for crypto and safe I/O
8546         * lib/af_alg.c: Include sys-limits.h.
8547         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
8548         (afalg_stream): Also reject negative sizes for sendfile; they
8549         should not happen and the code is a bit cleaner and faster this way.
8550         * lib/safe-read.c: Include sys-limits.h.
8551         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
8552         * lib/sys-limits.h: New file, with values and commentary derived
8553         from the old safe-read.c and from GNU Emacs sysdep.c.
8554         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
8555         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
8556         Add lib/sys-limits.h to Files section.
8558 2018-05-05  Bruno Haible  <bruno@clisp.org>
8560         af_alg: Improve function signature.
8561         * lib/af_alg.h (afalg_stream): Swap second and third argument.
8562         * lib/af_alg.c (afalg_stream): Likewise.
8563         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
8565 2018-05-05  Bruno Haible  <bruno@clisp.org>
8567         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
8568         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
8569         * modules/crypto/sha1 (Depends-on): Likewise.
8570         * modules/crypto/sha256 (Depends-on): Likewise.
8571         * modules/crypto/sha512 (Depends-on): Likewise.
8573 2018-05-05  Bruno Haible  <bruno@clisp.org>
8575         crypto/{md5,sha1,sha256,sha512}: Fix module description.
8576         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
8577         * modules/crypto/sha1 (Depends-on): Likewise.
8578         * modules/crypto/sha256 (Depends-on): Likewise.
8579         * modules/crypto/sha512 (Depends-on): Likewise.
8581 2018-05-05  Bruno Haible  <bruno@clisp.org>
8583         af_alg: Add documentation.
8584         * lib/af_alg.h: Add comments.
8586 2018-05-05  Bruno Haible  <bruno@clisp.org>
8588         sha512: Add tests.
8589         * tests/test-sha512.c: New file.
8590         * modules/crypto/sha512-tests: New file.
8592 2018-05-05  Bruno Haible  <bruno@clisp.org>
8594         sha256: Add tests.
8595         * tests/test-sha256.c: New file.
8596         * modules/crypto/sha256-tests: New file.
8598 2018-05-05  Bruno Haible  <bruno@clisp.org>
8600         sha1 tests: Add test for sha1_stream.
8601         * tests/test-sha1.c: Include test-digest.h.
8602         (main): Invoke test_digest_on_files on 'sha1_stream'.
8603         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
8605 2018-05-05  Bruno Haible  <bruno@clisp.org>
8607         md5 tests: Add test for md5_stream.
8608         * tests/test-digest.h: New file.
8609         * tests/test-md5.c: Include test-digest.h.
8610         (main): Invoke test_digest_on_files on 'md5_stream'.
8611         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
8613 2018-04-28  Matteo Croce  <mcroce@redhat.com>
8615         md5sum: Use AF_ALG when available.
8616         * lib/md5.c: Include af_alg.h.
8617         (md5_stream): Use afalg_stream when available.
8618         * modules/crypto/md5 (Files): Add the af_alg files.
8619         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
8620         (Makefile.am): Add af_alg.c.
8622 2018-04-28  Matteo Croce  <mcroce@redhat.com>
8624         sha512sum: Use AF_ALG when available.
8625         * lib/sha512.c: Include af_alg.h.
8626         (sha512_stream, sha384_stream): Use afalg_stream when available.
8627         * modules/crypto/sha512 (Files): Add the af_alg files.
8628         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
8629         (Makefile.am): Add af_alg.c.
8631 2018-04-28  Matteo Croce  <mcroce@redhat.com>
8633         sha256sum: Use AF_ALG when available.
8634         * lib/sha256.c: Include af_alg.h.
8635         (sha256_stream, sha224_stream): Use afalg_stream when available.
8636         * modules/crypto/sha256 (Files): Add the af_alg files.
8637         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
8638         (Makefile.am): Add af_alg.c.
8640 2018-04-28  Matteo Croce  <mcroce@redhat.com>
8642         sha1sum: Use AF_ALG when available.
8643         * lib/af_alg.h: New file.
8644         * lib/af_alg.c: New file.
8645         * lib/sha1.c: Include af_alg.h.
8646         (sha1_stream): Use afalg_stream when available.
8647         * m4/linux-if-alg.m4: New file.
8648         * modules/crypto/sha1 (Files): Add the new files.
8649         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
8650         (Makefile.am): Add af_alg.c.
8652 2018-05-05  Bruno Haible  <bruno@clisp.org>
8654         all: Replace more http URLs by https URLs.
8655         * lib/localename.c: Use https: URL.
8656         * lib/timespec.h: Likewise.
8658 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
8660         maint: port more modules to GCC 8
8661         * lib/dirname.h (base_name):
8662         * lib/exclude.h (new_exclude):
8663         * lib/xstrndup.h (xstrndup):
8664         Add malloc attribute.
8665         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
8666         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
8667         This pacifies GCC 8.
8668         * m4/gnulib-common.m4 (gl_COMMON_BODY):
8669         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
8671 2018-05-03  Bruno Haible  <bruno@clisp.org>
8673         Simplify code. Drop support for Borland C++ on Windows.
8674         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
8675         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
8676         'defined _WIN32'.
8677         * lib/canonicalize-lgpl.c: Likewise.
8678         * lib/classpath.c: Likewise.
8679         * lib/clean-temp.c: Likewise.
8680         * lib/csharpexec.c: Likewise.
8681         * lib/ctime.c: Likewise.
8682         * lib/dosname.h: Likewise.
8683         * lib/dup2.c: Likewise.
8684         * lib/errno.in.h: Likewise.
8685         * lib/error.c: Likewise.
8686         * lib/euidaccess.c: Likewise.
8687         * lib/execute.c: Likewise.
8688         * lib/fcntl.in.h: Likewise.
8689         * lib/fcntl.c: Likewise.
8690         * lib/filename.h: Likewise.
8691         * lib/findprog.c: Likewise.
8692         * lib/flock.c: Likewise.
8693         * lib/fopen.c: Likewise.
8694         * lib/freopen.c: Likewise.
8695         * lib/fstat.c: Likewise.
8696         * lib/fsync.c: Likewise.
8697         * lib/gc-gnulib.c: Likewise.
8698         * lib/get-rusage-data.c: Likewise.
8699         * lib/getaddrinfo.c: Likewise.
8700         * lib/getdelim.c: Likewise.
8701         * lib/getdtablesize.c: Likewise.
8702         * lib/gethostname.c: Likewise.
8703         * lib/getlogin.c: Likewise.
8704         * lib/getlogin_r.c: Likewise.
8705         * lib/getopt.c: Likewise.
8706         * lib/getpagesize.c: Likewise.
8707         * lib/getpass.c: Likewise.
8708         * lib/getrusage.c: Likewise.
8709         * lib/gettimeofday.c: Likewise.
8710         * lib/glob.c: Likewise.
8711         * lib/inttypes.in.h: Likewise.
8712         * lib/isapipe.c: Likewise.
8713         * lib/javaexec.c: Likewise.
8714         * lib/link.c: Likewise.
8715         * lib/localcharset.c: Likewise.
8716         * lib/localename.h: Likewise.
8717         * lib/localename.c: Likewise.
8718         * lib/localtime.c: Likewise.
8719         * lib/lseek.c: Likewise.
8720         * lib/mbsinit.c: Likewise.
8721         * lib/mkdir.c: Likewise.
8722         * lib/msvc-nothrow.h: Likewise.
8723         * lib/nanosleep.c: Likewise.
8724         * lib/nl_langinfo.c: Likewise.
8725         * lib/nonblocking.c: Likewise.
8726         * lib/nproc.c: Likewise.
8727         * lib/open.c: Likewise.
8728         * lib/openpty.c: Likewise.
8729         * lib/pathmax.h: Likewise.
8730         * lib/pipe-filter-aux.c: Likewise.
8731         * lib/pipe-filter-gi.c: Likewise.
8732         * lib/pipe-filter-ii.c: Likewise.
8733         * lib/pipe.c: Likewise.
8734         * lib/pipe2.c: Likewise.
8735         * lib/poll.c: Likewise.
8736         * lib/popen.c: Likewise.
8737         * lib/posix_openpt.c: Likewise.
8738         * lib/printf-parse.c: Likewise.
8739         * lib/progreloc.c: Likewise.
8740         * lib/putenv.c: Likewise.
8741         * lib/read.c: Likewise.
8742         * lib/relocatable.c: Likewise.
8743         * lib/rename.c: Likewise.
8744         * lib/same-inode.h: Likewise.
8745         * lib/secure_getenv.c: Likewise.
8746         * lib/select.c: Likewise.
8747         * lib/sethostname.c: Likewise.
8748         * lib/setlocale.c: Likewise.
8749         * lib/sigaction.c: Likewise.
8750         * lib/sigprocmask.c: Likewise.
8751         * lib/sleep.c: Likewise.
8752         * lib/spawn-pipe.h: Likewise.
8753         * lib/spawn-pipe.c: Likewise.
8754         * lib/spawni.c: Likewise.
8755         * lib/stat-time.h: Likewise.
8756         * lib/stat-w32.c: Likewise.
8757         * lib/stat.c: Likewise.
8758         * lib/stdio.in.h: Likewise.
8759         * lib/stdio-impl.h: Likewise.
8760         * lib/stdio-read.c: Likewise.
8761         * lib/stdio-write.c: Likewise.
8762         * lib/stdlib.in.h: Likewise.
8763         * lib/strerror_r.c: Likewise.
8764         * lib/strftime-fixes.c: Likewise.
8765         * lib/sys_stat.in.h: Likewise.
8766         * lib/sys_types.in.h: Likewise.
8767         * lib/sys_wait.in.h : Likewise.
8768         * lib/system-quote.h: Likewise.
8769         * lib/system-quote.c: Likewise.
8770         * lib/tmpdir.c: Likewise.
8771         * lib/tzset.c: Likewise.
8772         * lib/uname.c: Likewise.
8773         * lib/unistd.in.h: Likewise.
8774         * lib/utime.in.h: Likewise.
8775         * lib/utime.c: Likewise.
8776         * lib/utimecmp.c: Likewise.
8777         * lib/utimens.c: Likewise.
8778         * lib/vasnprintf.c: Likewise.
8779         * lib/vma-iter.h: Likewise.
8780         * lib/vma-iter.c: Likewise.
8781         * lib/wait-process.c: Likewise.
8782         * lib/wcsftime.c: Likewise.
8783         * lib/wctype.in.h: Likewise.
8784         * lib/write.c: Likewise.
8785         * tests/nap.h: Likewise.
8786         * tests/test-cloexec.c: Likewise.
8787         * tests/test-dup-safer.c: Likewise.
8788         * tests/test-dup2.c: Likewise.
8789         * tests/test-dup3.c: Likewise.
8790         * tests/test-fcntl.c: Likewise.
8791         * tests/test-get-rusage-data.c: Likewise.
8792         * tests/test-getaddrinfo.c: Likewise.
8793         * tests/test-getlogin.h: Likewise.
8794         * tests/test-isatty.c: Likewise.
8795         * tests/test-localename.c: Likewise.
8796         * tests/test-mbrtowc-w32.c: Likewise.
8797         * tests/test-nonblocking.c: Likewise.
8798         * tests/test-nonblocking-pipe-main.c: Likewise.
8799         * tests/test-nonblocking-socket-main.c: Likewise.
8800         * tests/test-nonblocking-socket.h: Likewise.
8801         * tests/test-pipe.c: Likewise.
8802         * tests/test-pipe2.c: Likewise.
8803         * tests/test-poll.c: Likewise.
8804         * tests/test-pthread_sigmask1.c: Likewise.
8805         * tests/test-select.h: Likewise.
8806         * tests/test-sethostname2.c: Likewise.
8807         * tests/test-sigprocmask.c: Likewise.
8808         * tests/test-spawn-pipe-child.c: Likewise.
8809         * tests/test-stat-time.c: Likewise.
8810         * tests/test-system-quote-main.c: Likewise.
8811         * tests/test-utimens-common.h: Likewise.
8812         * tests/test-wcrtomb-w32.c: Likewise.
8813         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
8814         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
8815         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
8816         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
8817         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
8818         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
8819         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
8820         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8821         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8822         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
8823         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
8824         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
8825         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
8826         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
8827         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
8828         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8830 2018-05-02  Bruno Haible  <bruno@clisp.org>
8832         localename: Fix test failures on mingw.
8833         * lib/localename.c (gl_locale_name_thread): Remove code specific to
8834         native Windows.
8835         (gl_locale_name_posix): Move code specific to native Windows here.
8836         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
8837         Accept result without charset suffix, as it appears on mingw.
8839 2018-04-28  Paul Smith  <psmith@gnu.org>
8841         bootstrap: Avoid gnulib operations if not needed
8842         * build-aux/bootstrap: Remove unused variable gnulib_mk.
8843         Set $gnulib_extra_files early so it can be overridden in .conf.
8844         Remove redundant --import flag from $gnulib_tool_options.
8845         Set $use_gnulib to false if no gnulib modules or files are needed.
8846         If $use_gnulib is false, don't do anything related to gnulib.
8847         A lot of this is just whitespace (indentation) changes.
8849 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
8851         manywarnings: port to GCC 8.0
8852         * build-aux/gcc-warning.spec: Add -Wcatch-value,
8853         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
8854         fact that the GCC help message now mentions operands for
8855         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
8856         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
8857         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
8858         and -Wunused-const-variable.
8859         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
8860         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
8861         -Wmissing-attributes, -Wmultistatement-macros,
8862         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
8863         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
8865 2018-04-24  Bruno Haible  <bruno@clisp.org>
8867         sys_socket: Make SO_REUSEPORT available across platforms.
8868         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8869         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
8870         * doc/posix-headers/sys_socket.texi: Mention the issue.
8871         * tests/test-poll.c (SO_REUSEPORT): Remove.
8872         * tests/test-select.h: Include <sys/socket.h>.
8873         (SO_REUSEPORT): Remove.
8874         * modules/select-tests (Depends-on): Add 'sys_socket'.
8876 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
8878         localcharset: short-circuit the search for an alias on a Mac
8879         * lib/localcharset.c (get_charset_aliases): Add a tautological
8880         UTF-8 entry to speed up the search for this case.
8881         Most machines default to a UTF-8 locale nowadays, so begin the
8882         list of aliases with a dummy UTF-8 entry so it will be found
8883         immediately and a time-consuming search through the rest of
8884         the list is avoided.
8886 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
8888         fts: add comment
8889         * lib/fts.c (fts_build): Explain why ==, not >.
8890         See remark by Bernhard Voelker in:
8891         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
8893         fts: fix bug in find across filesystems
8894         This fixes a bug I introduced last summer.
8895         Problem reported by Kamil Dudka in:
8896         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
8897         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
8898         (leaf_optimization):
8899         New arg for file descriptor.  All callers changed.
8900         (fts_build): Check for whether inodes should be sorted
8901         before closing the directory.
8903 2018-04-07  Bruno Haible  <bruno@clisp.org>
8905         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
8906         Reported by Genki Sky <sky@genki.is>.
8907         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
8908         version 0.9.10 or newer.
8909         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
8910         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
8911         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
8912         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
8913         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
8915 2018-04-07  Bruno Haible  <bruno@clisp.org>
8917         execute: Update comment.
8918         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
8920 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
8922         fts: treat CIFS like NFS
8923         Problem reported by Kamil Dudka in:
8924         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
8925         * lib/fts.c (S_MAGIC_CIFS): New macro.
8926         (dirent_inode_sort_may_be_useful, leaf_optimization):
8927         Treat CIFS like NFS.
8929 2018-03-28  Bruno Haible  <bruno@clisp.org>
8931         c-stack: Fix possible build failure on some platforms.
8932         * lib/c-stack.c (die): Define whenever this function is referenced.
8934 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
8936         time_rz: fix workaround for Mac OS X 10.6 infloop
8937         Problems reported by Charles A. Roelli (Bug#27736#117).
8938         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
8939         Also, discard output, which clutters the 'configure' log.
8941 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
8943         havelib: port to Solaris 10 /bin/sh
8944         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
8945         instead of '! test EXPR'.
8947 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
8949         time_rz: work around Mac OS X 10.6 infloop
8950         * doc/posix-functions/localtime.texi:
8951         * doc/posix-functions/localtime_r.texi: Mention the bug.
8952         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
8953         better to fix localtime and localtime_r instead, but that would be
8954         more work and is not needed to fix the Emacs problem.
8955         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
8957 2018-03-24  Jim Meyering  <meyering@fb.com>
8959         test-version-etc.sh: don't use diff directly: use init.sh's compare
8960         We'd rather not sacrifice readable "diff -u" output even for
8961         "diff -c" output (not supported by busybox) or for even less
8962         readable ed-style "diff" output.  So use init.sh's compare function
8963         * tests/test-version-etc.sh: Source init.sh and add "." to path.
8964         Remove "./" from invocation of test-version-etc, so we use path.
8965         And s/diff/compare/.
8966         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
8967         to get init.sh.
8968         Prompted by Eric Blake's comments in
8969         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
8971 2018-03-24  Bruno Haible  <bruno@clisp.org>
8973         javacomp-script, javacomp: Add support for Java 10.
8974         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
8975         target-version 10.
8976         * lib/javaversion.h: Update comments.
8977         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
8978         source_version_index, get_goodcode_snippet, get_failcode_snippet,
8979         TARGET_VERSION_BOUND, target_version_index,
8980         corresponding_classfile_version): Accept source_version 10 and
8981         target_version 10.
8982         * lib/javacomp.h: Update comments accordingly.
8984 2018-03-24  Bruno Haible  <bruno@clisp.org>
8986         javacomp-script, javacomp: Update comments.
8987         * m4/javacomp.m4: Update comments regarding gcj.
8988         * lib/javacomp.h: Likewise.
8990 2018-03-24  Bruno Haible  <bruno@clisp.org>
8992         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
8993         * lib/javaversion.h: Update comments.
8994         * lib/javacomp.h: Likewise.
8995         * lib/javacomp.c (default_target_version, source_version_index,
8996         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
8997         "1.9".
8998         (TARGET_VERSION_BOUND): Bump to 9.
8999         (target_version_index, corresponding_classfile_version): Recognize "9"
9000         instead of "1.9".
9001         (get_source_version_for_javac): New function.
9002         (is_envjavac_nongcj_usable, is_javac_usable): Add
9003         source_version_for_javac argument.
9004         (compile_java_class): Determine and pass source_version_for_javac.
9005         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
9006         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
9007         appropriate.
9009 2018-03-23  Jim Meyering  <meyering@fb.com>
9011         test-version-etc.sh: port to diff without -c
9012         * tests/test-version-etc.sh: Don't use diff's -c option.
9013         This caused spurious test failure on Alpine Linux, which
9014         uses busybox's diff. Reported by Assaf Gordon in
9015         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
9017 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
9019         c-stack: port to recent GCC build
9020         Problem reported by The Fireplace (Bug#30913).
9021         * lib/c-stack.c (die): Define only if used.
9023 2018-03-20  Bruno Haible  <bruno@clisp.org>
9025         euidaccess: Port to native Windows.
9026         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
9027         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
9029 2018-03-19  Bruno Haible  <bruno@clisp.org>
9031         javacomp: Add support for Java 7, 8, 9.
9032         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
9033         source_version_index, get_goodcode_snippet, get_failcode_snippet,
9034         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
9035         and target_version 1,7, 1.8, 1.9.
9036         * lib/javacomp.h: Update comments accordingly.
9038 2018-03-19  Bruno Haible  <bruno@clisp.org>
9040         javacomp-script: Add support for Java 9.
9041         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
9042         target-version 1.9.
9044 2018-03-16  Bruno Haible  <bruno@clisp.org>
9046         glob: Don't compile replacements on recent glibc systems.
9047         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
9048         REPLACE_GLOB is 0, include the system's <glob.h> and use
9049         _GL_CXXALIAS_SYS.
9050         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
9051         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
9052         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
9053         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
9054         Remove snippet/warn-on-use.
9055         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
9056         (Makefile.am): Create glob.h always. Update list of substitutions in
9057         glob.h. Don't depend on $(WARN_ON_USE_H).
9059 2018-03-16  Bruno Haible  <bruno@clisp.org>
9061         glob: Fix link error on native Windows.
9062         * modules/glob (Depends-on): Add 'lstat'.
9064 2018-03-15  Bruno Haible  <bruno@clisp.org>
9066         glob: Fix compilation error in C++ mode.
9067         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
9069 2018-03-15  Bruno Haible  <bruno@clisp.org>
9071         host-cpu-c-abi: Support for RISC-V CPU.
9072         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
9073         riscv32 and riscv64 ABIs.
9074         References:
9075         https://github.com/riscv/riscv-toolchain-conventions
9076         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
9077         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
9079 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
9081         fflush: be more paranoid about libio.h change
9082         Suggested by Eli Zaretskii in:
9083         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
9084         * lib/fbufmode.c (fbufmode):
9085         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
9086         (disable_seek_optimization, rpl_fflush):
9087         * lib/fpending.c (__fpending):
9088         * lib/fpurge.c (fpurge):
9089         * lib/freadable.c (freadable):
9090         * lib/freadahead.c (freadahead):
9091         * lib/freading.c (freading):
9092         * lib/freadptr.c (freadptr):
9093         * lib/freadseek.c (freadptrinc):
9094         * lib/fseeko.c (fseeko):
9095         * lib/fseterr.c (fseterr):
9096         * lib/fwritable.c (fwritable):
9097         * lib/fwriting.c (fwriting):
9098         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
9100 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
9102         maint: write-file-hooks -> before-save-hook
9103         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
9104         it's time to use the recommended replacement.
9105         Problem reported by Glenn Morris in:
9106         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
9107         * build-aux/announce-gen, build-aux/bootstrap:
9108         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
9109         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
9110         * build-aux/gnu-web-doc-update, build-aux/gnupload:
9111         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
9112         * build-aux/update-copyright, build-aux/useless-if-before-free:
9113         * build-aux/vc-list-files:
9114         Update hook usage for files where Gnulib is the canonical source.
9116 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
9118         binary-io: pacify gcc -Wunused-parameter
9119         Problem reported by Reuben Thomas in:
9120         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
9121         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
9122         Use _GL_UNUSED where appropriate.
9124         fflush: adjust to glibc 2.28 libio.h removal
9125         Problem reported by Daniel P. Berrangé in:
9126         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
9127         * lib/fbufmode.c (fbufmode):
9128         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
9129         (disable_seek_optimization, rpl_fflush):
9130         * lib/fpending.c (__fpending):
9131         * lib/fpurge.c (fpurge):
9132         * lib/freadable.c (freadable):
9133         * lib/freadahead.c (freadahead):
9134         * lib/freading.c (freading):
9135         * lib/freadptr.c (freadptr):
9136         * lib/freadseek.c (freadptrinc):
9137         * lib/fseeko.c (fseeko):
9138         * lib/fseterr.c (fseterr):
9139         * lib/fwritable.c (fwritable):
9140         * lib/fwriting.c (fwriting):
9141         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
9142         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
9143         Define if not already defined.
9145 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
9147         environ: fix link error on 32-bit Cygwin
9148         Problem reported for GNU Emacs by Ken Brown in:
9149         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
9150         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
9152 2018-02-24  Bruno Haible  <bruno@clisp.org>
9154         mbrtowc tests: Fix regression on glibc.
9155         Reported by Bernhard Voelker.
9156         * tests/test-mbrtowc.c (main): Fix expected value of wc.
9158 2018-02-24  Bruno Haible  <bruno@clisp.org>
9160         striconveha, uniconv/*: Avoid test failures on musl libc.
9161         * tests/iconvsupport.c: New file.
9162         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
9163         does not support the ISO-2022-JP-2 encoding.
9164         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
9165         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
9166         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
9167         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
9168         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
9169         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
9170         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
9171         (Makefile.am): Link test-striconveha with iconvsupport.o.
9172         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
9173         tests/iconvsupport.c.
9174         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
9175         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
9176         tests/iconvsupport.c.
9177         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
9178         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
9179         tests/iconvsupport.c.
9180         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
9181         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
9182         tests/iconvsupport.c.
9183         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
9184         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
9185         tests/iconvsupport.c.
9186         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
9187         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
9188         tests/iconvsupport.c.
9189         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
9191 2018-02-24  Bruno Haible  <bruno@clisp.org>
9193         localename: Add support for musl libc.
9194         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
9195         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
9196         on Linux platforms which define NL_LOCALE_NAME.
9198 2018-02-24  Bruno Haible  <bruno@clisp.org>
9200         mbrtowc tests: Don't make assumptions about the charset the C locale.
9201         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
9202         particular mapping in the C locale.
9204 2018-02-24  Bruno Haible  <bruno@clisp.org>
9206         ptsname_r: Don't expect that this function sets errno.
9207         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
9208         from ptsname_r().
9209         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
9211 2018-02-23  Bruno Haible  <bruno@clisp.org>
9213         xmalloca: pacify gcc -Wbad-function-cast
9214         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
9216 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
9218         nl_langinfo: pacify gcc -Wunused-function
9219         * lib/nl_langinfo.c (ctype_codeset): Do not define if
9220         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
9221         this case.  Without this change, I got a diagnostic when building
9222         coreutils on Fedora 27 with gcc 7.3.1 20180130.
9224         same: pacify gcc -Wunused-variable
9225         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
9226         Omit unused variable.
9228         malloca: pacify gcc -Wbad-function-cast
9229         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
9230         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
9231         To pacify GCC, I had to cast alloca’s result to some type other
9232         than void * before casting that to uintptr_t.
9234 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9236         utimecmp: new function utimecmpat
9237         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
9238         Do not include utimens.h.
9239         (utimecmpat): New function, generalizing utimecmp.
9240         (utimecmp): Now a thin layer around utimecmpat.
9241         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
9242         utimensat instead of on lstat and utimens.
9244         same: new function same_nameat
9245         * lib/same.c: Include fcntl.h.
9246         * lib/same.c (same_nameat): New function, generalizing same_name.
9247         (same_name): Now a thin layer around same_nameat.
9248         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
9249         * modules/same (Depends-on): Depend on fstatat, openat.
9251 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
9253         warnings: Add support for Objective C.
9254         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
9255         macro.
9257 2018-02-17  Bruno Haible  <bruno@clisp.org>
9259         lock: Fix test-once1 crash on FreeBSD11.
9260         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
9261         'pthread_create', not 'pthread_cancel'.
9263 2018-02-17  Bruno Haible  <bruno@clisp.org>
9265         lock: Add test of gl_once.
9266         * tests/test-once.c: New file.
9267         * modules/lock-tests (Files): Add it.
9268         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
9270 2018-02-17  Bruno Haible  <bruno@clisp.org>
9272         thread: Fix compilation error on IRIX.
9273         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
9274         needed; include it outside the C++ extern "C" {} block.
9275         * doc/posix-headers/pthread.texi: Mention the problem with
9276         pthread_atfork on IRIX.
9278 2018-02-04  Bruno Haible  <bruno@clisp.org>
9280         nl_langinfo: Override the system's nl_langinfo() when needed.
9281         Reported by Jim Meyering.
9282         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
9283         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
9285 2018-02-04  Bruno Haible  <bruno@clisp.org>
9287         signal-h, monetary, strings: Fix build failure in some cases.
9288         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
9289         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
9290         as delimiter in sed command, not '|'.
9291         * modules/monetary (Makefile.am): Likewise.
9292         * modules/strings (Makefile.am): Likewise.
9294 2018-02-03  Jim Meyering  <meyering@fb.com>
9296         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
9297         * top/maint.mk (sc_file_system): Don't complain about
9298         "/proc/filesystems".
9300 2018-02-03  Bruno Haible  <bruno@clisp.org>
9302         stdlib: Fix compilation error on OpenIndiana.
9303         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
9304         <sys/time.h>.
9305         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
9306         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9308 2018-02-03  Bruno Haible  <bruno@clisp.org>
9310         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
9311         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
9312         and use $EGREP instead of 'grep -E'.
9313         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
9314         'grep -E'.
9316 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
9318         malloca: Add a compile-time verification.
9319         * lib/malloca.c (small_t): Verify that it is wide enough.
9320         * modules/malloca (Depends-on): Add verify.
9322 2018-02-02  Bruno Haible  <bruno@clisp.org>
9324         malloca: Add an argument check.
9325         Suggested by Paul Eggert.
9326         * lib/malloca.c (freea): Check against an invalid argument.
9328 2018-02-02  Bruno Haible  <bruno@clisp.org>
9330         localename: Add support for OpenIndiana.
9331         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
9332         Solaris 11 variants with uselocale() but without getlocalename_l().
9334 2018-02-02  Bruno Haible  <bruno@clisp.org>
9336         malloca, xmalloca: Make multithread-safe.
9337         Reported by Florian Weimer <fweimer@redhat.com>.
9338         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
9339         * lib/malloca.h (malloca): In the stack allocation case, return a
9340         pointer that is a multiple of 2 * sa_alignment_max.
9341         (sa_increment): Remove enum item.
9342         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
9343         a pointer that is a multiple of 2 * sa_alignment_max.
9344         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
9345         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
9346         HASH_TABLE_SIZE, mmalloca_results): Remove.
9347         (small_t): New type.
9348         (mmalloca, free): Rewritten.
9349         * lib/malloca.valgrind: Remove file.
9350         * modules/malloca (Files): Remove it.
9351         (Depends-on): Remove verify.
9353 2018-01-31  Bruno Haible  <bruno@clisp.org>
9355         environ: Fix link error on 64-bit Cygwin.
9356         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
9357         __declspec(dllimport) attribute.
9358         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
9360 2018-01-30  Bruno Haible  <bruno@clisp.org>
9362         get-rusage-data: Add support for Minix 3.
9363         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
9365 2018-01-30  Bruno Haible  <bruno@clisp.org>
9367         vma-iter: Add support for Minix 3.
9368         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
9369         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
9371 2018-01-27  Bruno Haible  <bruno@clisp.org>
9373         Fix malfunction of socket functions on HP-UX in 64-bit mode.
9374         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
9375         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
9376         _HPUX_ALT_XOPEN_SOCKET_API.
9377         * modules/accept (Depends-on): Add 'extensions'.
9378         * modules/getpeername (Depends-on): Likewise.
9379         * modules/getsockname (Depends-on): Likewise.
9380         * modules/getsockopt (Depends-on): Likewise.
9381         * modules/recvfrom (Depends-on): Likewise.
9382         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
9383         * doc/posix-functions/getpeername.texi: Likewise.
9384         * doc/posix-functions/getsockname.texi: Likewise.
9385         * doc/posix-functions/getsockopt.texi: Likewise.
9386         * doc/posix-functions/recvfrom.texi: Likewise.
9388 2018-01-27  Bruno Haible  <bruno@clisp.org>
9390         getsockname tests: More tests.
9391         * tests/test-getsockname.c (open_server_socket): New function, mostly
9392         copied from test-poll.c.
9393         (main): Check that getsockname fills in addr.
9394         * modules/getsockname-tests (Depends-on): Add the necessary
9395         dependencies.
9396         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
9398 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
9400         manywarnings: fix maintainer comment
9401         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
9402         it does not mistakenly think that ‘-1)’ is an option.
9404 2018-01-26  Bruno Haible  <bruno@clisp.org>
9406         langinfo: Fix last commit.
9407         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
9408         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
9410 2018-01-24  Bruno Haible  <bruno@clisp.org>
9412         langinfo, nl_langinfo: Add support for alternative month names.
9413         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
9414         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
9415         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
9416         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
9417         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
9418         * doc/posix-functions/nl_langinfo.texi: Likewise.
9420 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9422         Merge strftime.c changes from glibc
9423         This incorporates:
9424         2017-11-14 [BZ #10871] Implement alternative month names
9425         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
9426         2017-06-20 Use locale_t, not __locale_t, throughout glibc
9427         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
9428         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
9429         Use locale_t, not __locale_t.
9430         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
9431         (__strftime_internal): Add support for alternate months.
9433 2018-01-23  Bruno Haible  <bruno@clisp.org>
9435         doc: Mention another prerequisite for using Gnulib.
9436         Reported at <https://stackoverflow.com/questions/48378214/>.
9437         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
9438         AC_CONFIG_HEADERS.
9440 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
9442         build: GuixSD doesn't have /bin/bash
9443         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
9445 2018-01-21  Bruno Haible  <bruno@clisp.org>
9447         Avoid test failures on Microsoft Windows Subsystem for Linux.
9448         * tests/test-fcntl.c (main): Allow a different errno.
9449         * tests/test-rename.h (test_rename): Likewise.
9450         * tests/test-renameat.c (main): Likewise.
9451         * tests/test-renameat2.c (main): Likewise.
9453 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
9455         filenamecat: make base a suffix of result
9456         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
9457         (mfile_name_concat): Always make BASE a suffix of the result, as
9458         cp expects this.  To implement this, separate with '.' instead of
9459         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
9460         * tests/test-filenamecat.c (main): Adjust tests to match
9461         current behavior.  Check that BASE_IN_RESULT points to
9462         a copy of BASE and is a suffix of the resultk, and that DIR
9463         is a prefix of the result that is no longer than the prefix
9464         indicated by BASE_IN_RESULT.
9466 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
9468         update-copyright: Handle use of ©
9469         * build-aux/update-copyright ($circle_c_re): Update regex to
9470         handle use of © in headers.
9472 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
9474         Fix -Wundef warning in user-included header lib/cdefs.h.
9475         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
9477 2018-01-04  Bruno Haible  <bruno@clisp.org>
9479         pthread_sigmask: Avoid compilation error on mingw.
9480         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
9481         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
9482         macro.
9484 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
9486         test-framework-sh: ‘ps -ef’, not ‘ps ef’
9487         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
9488         Suggested by Bob Proulx (Bug#29968).
9489         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
9491 2018-01-02  Eric Blake  <eblake@redhat.com>
9493         stat-time: silence -Wunused-parameter regression
9494         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
9495         Prefer attribute over cast-to-void.
9496         (stat_time_normalize): Mark st as potentially unused.
9498 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
9500         test-framework-sh: avoid netstat
9501         Problem reported by Kristýna Streitová (Bug#29947).
9502         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
9503         deprecated on SuSE and it's not that important anyway.
9505 2018-01-01  Jim Meyering  <meyering@fb.com>
9507         update-copyright: add code to handle more special cases
9508         After running "make update-copyright" this year, five files
9509         required additional manual changes.  Automate those adjustments
9510         for next year.
9511         * Makefile (_year_and_prev): Define.
9512         (update-copyright): Add perl commands to induce this year's post-
9513         update-copyright adjustments.
9515 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9517         version-etc: new year
9518         * build-aux/gendocs.sh (version):
9519         * doc/gendocs_template:
9520         * doc/gendocs_template_min:
9521         * doc/gnulib.texi:
9522         * lib/version-etc.c (COPYRIGHT_YEAR):
9523         Update copyright dates by hand in templates and the like.
9525         maint: fix 'make update-copyright'
9526         * Makefile (update-copyright): Adjust to 2016-11-23 change
9527         to config/srclist-update, which changed the format of srclist.txt.
9529 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
9531         chdir-safer: remove this module
9532         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
9533         * NEWS: Document removal.
9534         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
9535         * modules/chdir-safer: Remove these files.
9537 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
9539         Add cross-compilation results for GNU/Hurd.
9540         * m4/calloc.m4: Add GNU/Hurd guess.
9541         * m4/cbrtl.m4: Likewise.
9542         * m4/ceil.m4: Likewise.
9543         * m4/ceilf.m4: Likewise.
9544         * m4/ceill.m4: Likewise.
9545         * m4/chown.m4: Likewise.
9546         * m4/duplocale.m4: Likewise.
9547         * m4/exp2l.m4: Likewise.
9548         * m4/expm1.m4: Likewise.
9549         * m4/fchdir.m4: Likewise.
9550         * m4/floor.m4: Likewise.
9551         * m4/floorf.m4: Likewise.
9552         * m4/fmod.m4: Likewise.
9553         * m4/fmodf.m4: Likewise.
9554         * m4/fmodl.m4: Likewise.
9555         * m4/getcwd.m4: Likewise.
9556         * m4/getgroups.m4: Likewise.
9557         * m4/gettimeofday.m4: Likewise.
9558         * m4/hypot.m4: Likewise.
9559         * m4/hypotf.m4: Likewise.
9560         * m4/hypotl.m4: Likewise.
9561         * m4/link-follow.m4: Likewise.
9562         * m4/link.m4: Likewise.
9563         * m4/linkat.m4: Likewise.
9564         * m4/log.m4: Likewise.
9565         * m4/log10.m4: Likewise.
9566         * m4/log10f.m4: Likewise.
9567         * m4/log1p.m4: Likewise.
9568         * m4/log1pf.m4: Likewise.
9569         * m4/log1pl.m4: Likewise.
9570         * m4/log2.m4: Likewise.
9571         * m4/log2f.m4: Likewise.
9572         * m4/logf.m4: Likewise.
9573         * m4/lstat.m4: Likewise.
9574         * m4/malloc.m4: Likewise.
9575         * m4/mbrlen.m4: Likewise.
9576         * m4/mbrtowc.m4: Likewise.
9577         * m4/mkdir.m4: Likewise.
9578         * m4/mkfifo.m4: Likewise.
9579         * m4/mknod.m4: Likewise.
9580         * m4/mkstemp.m4: Likewise.
9581         * m4/modf.m4: Likewise.
9582         * m4/modff.m4: Likewise.
9583         * m4/modfl.m4: Likewise.
9584         * m4/printf.m4: Likewise.
9585         * m4/pselect.m4: Likewise.
9586         * m4/ptsname.m4: Likewise.
9587         * m4/putenv.m4: Likewise.
9588         * m4/readlink.m4: Likewise.
9589         * m4/realloc.m4: Likewise.
9590         * m4/remainder.m4: Likewise.
9591         * m4/remainderf.m4: Likewise.
9592         * m4/remainderl.m4: Likewise.
9593         * m4/rmdir.m4: Likewise.
9594         * m4/round.m4: Likewise.
9595         * m4/roundf.m4: Likewise.
9596         * m4/roundl.m4: Likewise.
9597         * m4/select.m4: Likewise.
9598         * m4/setenv.m4: Likewise.
9599         * m4/signbit.m4: Likewise.
9600         * m4/sleep.m4: Likewise.
9601         * m4/stat.m4: Likewise.
9602         * m4/strerror.m4: Likewise.
9603         * m4/strtok_r.m4: Likewise.
9604         * m4/symlink.m4: Likewise.
9605         * m4/symlinkat.m4: Likewise.
9606         * m4/trunc.m4: Likewise.
9607         * m4/truncf.m4: Likewise.
9608         * m4/truncl.m4: Likewise.
9609         * m4/tzset.m4: Likewise.
9610         * m4/ungetc.m4: Likewise.
9611         * m4/usleep.m4: Likewise.
9612         * m4/wcwidth.m4: Likewise.
9614 2017-12-28  Bruno Haible  <bruno@clisp.org>
9616         gnulib-tool: Make --conditional-dependencies work better.
9617         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
9618         * gnulib-tool (Options): Don't reject the combination of
9619         --conditional-dependencies with --with-tests.
9620         (func_emit_autoconf_snippets): Add argument referenceable_modules.
9621         Don't reference $modules.
9622         (func_import, func_create_testdir): Pass it.
9624 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9626         regex: use re_malloc etc. consistently
9627         Problem and original patch reported by Arnold Robbins in:
9628         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
9629         * lib/regcomp.c (re_comp):
9630         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
9631         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
9633 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
9634             Paul Eggert  <eggert@cs.ucla.edu>
9636         glob: Silence warning about void pointer arithmetic.
9637         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
9638         arithmetic.
9640 2017-12-15  Bruno Haible  <bruno@clisp.org>
9642         spawn-pipe: Silence a clang warning.
9643         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
9644         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
9645         in this file.
9647 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9649         explicit_bzero: port to macOS + Clang 9.0.0
9650         Problem reported by Marcus Johnson (Bug#29658).
9651         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
9652         Don’t use asm.
9654 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
9656         doc: Improve explanation of supporting relocatable libraries.
9657         * doc/relocatable-maint.texi (Supporting Relocation): Explain
9658         properly how to build the relocatable module for
9659         libraries. (Method and example code from Bruno Haible.)
9661 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
9663         doc: Use better texinfo tags in a few cases.
9664         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
9665         instead of @samp in a few places.
9667 2017-12-11  Bruno Haible  <bruno@clisp.org>
9669         unistr/base: Update comment.
9670         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
9672 2017-12-10  Pádraig Brady  <P@draigBrady.com>
9674         test-faccessat.c: unlink temp file to avoid subsequent test failure
9675         * tests/test-faccessat.c: Remove the file to avoid failure
9676         to open the file on subsequent runs due to being created
9677         with no permissions.
9679 2017-12-10  Bruno Haible  <bruno@clisp.org>
9681         doc: New sect. "Modifying the build rules of a Gnulib import directory".
9682         * doc/gnulib-tool.texi (Modified build rules): New node.
9684 2017-12-10  Bruno Haible  <bruno@clisp.org>
9686         doc: Tweak wording.
9687         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
9688         "binaries".
9690 2017-12-05  Sam Steingold  <sds@gnu.org>
9691             Bruno Haible  <bruno@clisp.org>
9693         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
9694         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
9695         AC_EGREP_CPP pattern.
9697 2017-12-03  Bruno Haible  <bruno@clisp.org>
9699         all: Replace more http URLs by https URLs.
9700         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
9701         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
9702         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
9703         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
9705 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
9707         Port better to CentOS 5
9708         Problems reported by Tom G. Christensen in:
9709         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
9710         * doc/glibc-functions/strverscmp.texi (strverscmp):
9711         Document strverscmp bug with glibc 2.9 and earlier.
9712         * doc/posix-functions/tzset.texi (tzset):
9713         Document that TZ with angle brackets is POSIX-2001 and later.
9714         * tests/test-nstrftime.c: Include unistd.h.
9715         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
9716         (TZ): Use it to skip tests with angle brackets in TZ,
9717         for older systems.
9719         stat: add missing module dependencies
9720         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
9721         Add stat-time.
9723 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
9725         stat: fix compilation failure on macOS Sierra
9726         Reported by Marius Schamschula <mschamschula@gmail.com> in:
9727         https://savannah.gnu.org/bugs/?52546
9728         * lib/stat.c: Add missing include of stat-time.h.
9730 2017-11-28  Jim Meyering  <meyering@fb.com>
9732         test-faccessat.c: correct BASE definition to avoid parallel test failure
9733         * tests/test-faccessat.c (BASE): Define using this file's name, not
9734         that of test-lstat.c.  Using the latter caused this test to fail
9735         sometimes when run concurrently with test-lstat.
9737 2017-11-27  Daiki Ueno  <ueno@gnu.org>
9739         unicase: fix VPATH build
9740         * modules/unicase/special-casing (Makefile.am): Ensure that the
9741         base directory is created when generating
9742         unicase/special-casing.h.
9744 2017-11-27  Daiki Ueno  <ueno@gnu.org>
9746         libunistring: update to Unicode 9.0.0
9747         * lib/gen-uni-tables.c (fill_properties): Recognize
9748         Sentence_Terminal and Prepended_Concatenation_Mark.
9749         (is_property_default_ignorable_code_point): Exclude U+08E2.
9750         (fill_arabicshaping): Allow missing whitespace when parsing;
9751         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
9752         (output_blocks): Increase the element size of the level1 table to
9753         accommodate more blocks.
9754         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
9755         Update each class according to the standard.
9756         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
9757         E_Base_GAZ characters.
9758         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
9759         Glue_After_Zwj, and E_Base_GAZ characters.
9760         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
9761         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
9762         enum value.
9763         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
9764         value.
9765         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
9766         LBP_ZWJ, LBP_EB, and LBP_EM.
9767         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
9768         enum value.
9769         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
9770         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
9771         declaration.
9772         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
9773         (uniwbrk_table): Implement WB14.
9774         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
9775         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
9776         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
9777         uc-is-grapheme-break.
9778         * modules/unigbrk/uc-grapheme-breaks: New module.
9779         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
9780         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
9781         enum value.
9782         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
9783         * lib/unigbrk/u-grapheme-breaks.h: New file.
9784         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
9785         u-grapheme-breaks.h instead of uc_is_grapheme_break.
9786         * lib/unigbrk/uc-grapheme-breaks.c: New file.
9787         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
9788         29.
9789         * tests/unigbrk/test-uc-gbrk-prop.c
9790         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
9791         GBP_GAZ, and GBP_EBG.
9792         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
9793         * tests/unigbrk/test-uc-is-grapheme-break.c
9794         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
9795         GBP_GAZ, and GBP_EBG.
9796         (main): Skip unsupported rules involving 3 or more characters,
9797         namely GB10, GB12, and GB13.
9798         * lib/uniwidth/width.c (nonspacing_table_data): Update.
9799         * all generated files under lib/uni* and tests/uni*: Regenerate.
9800         * all the affected modules: Bump version.
9802 2017-11-26  Bruno Haible  <bruno@clisp.org>
9804         strfmon_l: Fix compilation error with glibc 2.5.
9805         Reported by Tom G. Christensen <tgc@jupiterrise.com>
9806         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
9807         * lib/monetary.in.h: Include also <locale.h>.
9809 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
9811         posixtm: remove PDS_LEADING_YEAR
9812         This changes the API slightly, in a hopefully-innocuous way.
9813         Without this change the code had undefined behavior when a
9814         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
9815         Problem reported by Pádraig Brady in:
9816         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
9817         * NEWS: Mention this.
9818         * lib/posixtm.c (posix_time_parse): Treat the absence of
9819         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
9820         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
9821         present, but define it as zero, for compatibility with existing
9822         source code).  All other PDS_* values moved up.
9823         * tests/test-posixtm.c (LY): New macro.
9824         (T): Use it.  Do not expect a particular numeric encoding
9825         for PDS_CENTURY etc.
9827 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
9829         stat: work around Solaris bug with tv_nsec < 0
9830         * doc/posix-functions/fstat.texi (fstat):
9831         * doc/posix-functions/fstatat.texi (fstatat):
9832         * doc/posix-functions/lstat.texi (lstat):
9833         * doc/posix-functions/stat.texi (stat):
9834         Mention Solaris 11 bug.
9835         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
9836         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
9837         * lib/lstat.c (rpl_lstat):
9838         * lib/stat.c (rpl_stat):
9839         Normalize resulting timestamps.
9840         * lib/fstatat.c (normal_fstatat): New function.
9841         (rpl_fstatat): Use it.
9842         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
9843         (stat_time_normalize): New function.
9844         * m4/fstat.m4 (gl_FUNC_FSTAT):
9845         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
9846         * m4/lstat.m4 (gl_FUNC_LSTAT):
9847         * m4/stat.m4 (gl_FUNC_STAT):
9848         Replace on Solaris.
9849         * modules/fstat (Depends-on):
9850         * modules/fstatat (Depends-on):
9851         Add stat-time.
9852         * modules/stat-time (Depends-on): Add errno, intprops.
9854 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
9856         regex: merge from glibc
9857         * lib/regcomp.c (init_word_char): Add comments.
9859 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
9861         regex: merge from glibc
9862         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
9863         * lib/regex_internal.h (internal_function): Remove.
9864         All uses removed.
9866 2017-11-20  Bruno Haible  <bruno@clisp.org>
9868         crypto/gc-sm3: Fix buffer overrun.
9869         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
9870         Reported by Coverity.
9872 2017-11-12  Jim Meyering  <meyering@fb.com>
9874         maint: shorten https://lists.gnu.org/archive/html/... links
9875         Each /archive/html/ part can be replace with /r/.
9876         Run this to induce the change:
9877         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
9878         * ChangeLog: Perform that substitution.
9879         * Makefile: Likewise.
9880         * STATUS-libposix: Likewise.
9881         * build-aux/bootstrap: Likewise.
9882         * doc/maintain.texi: Likewise.
9883         * gnulib-tool: Likewise.
9884         * lib/allocator.h: Likewise.
9885         * lib/argp-ba.c: Likewise.
9886         * lib/argp-pv.c: Likewise.
9887         * lib/canon-host.c: Likewise.
9888         * lib/canonicalize-lgpl.c: Likewise.
9889         * lib/float.in.h: Likewise.
9890         * lib/fstat.c: Likewise.
9891         * lib/getdelim.c: Likewise.
9892         * lib/getprogname.c: Likewise.
9893         * lib/glthread/thread.h: Likewise.
9894         * lib/intprops.h: Likewise.
9895         * lib/mbsrtowcs-state.c: Likewise.
9896         * lib/safe-read.c: Likewise.
9897         * lib/signal.in.h: Likewise.
9898         * lib/stat.c: Likewise.
9899         * lib/stdbool.in.h: Likewise.
9900         * lib/stdio-impl.h: Likewise.
9901         * lib/stdio.in.h: Likewise.
9902         * lib/sysexits.in.h: Likewise.
9903         * lib/timespec.h: Likewise.
9904         * lib/wcsrtombs-state.c: Likewise.
9905         * m4/alloca.m4: Likewise.
9906         * m4/extern-inline.m4: Likewise.
9907         * m4/fstatat.m4: Likewise.
9908         * m4/gnulib-common.m4: Likewise.
9909         * m4/lib-ignore.m4: Likewise.
9910         * m4/printf.m4: Likewise.
9911         * m4/regex.m4: Likewise.
9912         * m4/stat-size.m4: Likewise.
9913         * m4/std-gnu11.m4: Likewise.
9914         * m4/stdbool.m4: Likewise.
9915         * m4/sys_types_h.m4: Likewise.
9916         * m4/threadlib.m4: Likewise.
9917         * m4/vararrays.m4: Likewise.
9918         * pygnulib/GLImport.py: Likewise.
9919         * tests/test-exp.h: Likewise.
9920         * tests/test-exp2.h: Likewise.
9921         * tests/test-expm1.h: Likewise.
9922         * tests/test-fflush2.c: Likewise.
9923         * tests/test-getopt_long.h: Likewise.
9924         * tests/test-intprops.c: Likewise.
9925         * tests/test-log.h: Likewise.
9926         * tests/test-log10.h: Likewise.
9927         * tests/test-log1p.h: Likewise.
9928         * tests/test-log2.h: Likewise.
9929         * tests/test-printf-posix.h: Likewise.
9930         * tests/test-regex.c: Likewise.
9931         * tests/test-snprintf-posix.h: Likewise.
9932         * tests/test-sprintf-posix.h: Likewise.
9933         * tests/test-stdalign.c: Likewise.
9934         * tests/test-stdbool.c: Likewise.
9935         * tests/test-vasnprintf-posix.c: Likewise.
9936         * tests/test-vasprintf-posix.c: Likewise.
9937         * top/maint.mk: Likewise.
9939 2017-11-12  Bruno Haible  <bruno@clisp.org>
9941         faccessat: Make the last change more robust.
9942         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
9943         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
9945 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
9947         faccessat: port to macOS (Bug#29231)
9948         macOS faccessat has the same bug that lstat does: if the file
9949         name ends in '/' it ignores the trailing slash.
9950         Problem reported for Emacs by Vincent Zhang.
9951         * doc/posix-functions/faccessat.texi (faccessat): Document this.
9952         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
9953         around the initial includes.  Include errno.h, string.h, sys/stat.h.
9954         (orig_faccessat) [HAVE_FACCESSAT]: New function.
9955         Include "unistd.h" after defining it.
9956         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
9957         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
9958         Handle in the usual way.
9959         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
9960         lstat dereferences symlinks, since faccessat is likely to
9961         have the same problem.
9962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
9963         * modules/faccessat (Depends-on): Add fstatat.
9964         Depend if REPLACE_FACCESSAT is 1, too.
9965         (configure.ac): Link if REPLACE_FACCESSAT is 1.
9966         * modules/faccessat-tests (Depends-on): Add symlink.
9967         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
9968         * tests/test-faccessat.c (main): Test for the bug.
9970 2017-11-11  Bruno Haible  <bruno@clisp.org>
9972         getprogname: Fix compilation error on IRIX.
9973         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
9974         'namesize'.
9976 2017-11-11  Bruno Haible  <bruno@clisp.org>
9978         year2038: Tweak last patch.
9979         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
9981 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9983         year2038: be more insistent about 64-bit time_t
9984         Applications requiring access to arbitrary files should not be
9985         built with 32-bit time_t on hosts that have 64-bit timestamps,
9986         as this can lead to real trouble at runtime.
9987         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
9988         Check on all systems, not just MinGW.  Use a heuristic involving
9989         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
9990         output a failure or just a warning, to make it more likely that
9991         builders will select 64-bit time_t.
9993 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
9995         havelib: fix typo in previous change
9996         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
9998         Don’t use AC_EGREP_CPP if affected by CFLAGS
9999         * m4/float_h.m4 (gl_FLOAT_H):
10000         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
10001         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
10002         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
10003         * m4/year2038.m4 (gl_YEAR2038):
10004         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
10005         likely to be affected by the choice of CFLAGS, since CFLAGS are
10006         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
10007         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
10009         fstatat: pacify GCC on unusual platform
10010         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
10011         Omit, as it’s unused in this case.
10013 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
10015         timespec: prefer ‘assume’ to ‘assure’
10016         This avoids some runtime tests.  The rest of the module makes
10017         similar assumptions and there is little point to testing here.
10018         * lib/timespec.h: Include verify.h instead of assure.h.
10019         (timespec_cmp): Use ‘assume’, not ‘assure’.
10020         Also, remove an unnecessary cast to ‘int’, as lots of other
10021         code in this module now causes -Wconversion to complain, and
10022         this is a problem with -Wconversion not with the code.
10024         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
10026         Port recent gnulib-tool change to Dash
10027         * gnulib-tool (func_create_testdir): Don't assume that the shell
10028         retokenizes after expanding "$@" inside the call to
10029         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
10031 2017-10-27  Jim Meyering  <meyering@fb.com>
10033         timespec.h: use "assure" to avoid a spurious warning
10034         * lib/timespec.h: Include "assure.h" and use it to help
10035         gcc7's -Wstrict-overflow avoid a false positive warning
10036         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
10037         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
10038         * modules/timespec (Depends-on): Add assure.
10040 2017-10-29  Bruno Haible  <bruno@clisp.org>
10042         Avoid several test failures with traditional locales on Haiku.
10043         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
10044         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
10045         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
10046         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
10047         LOCALE_ZH_CN=none.
10049 2017-10-29  Bruno Haible  <bruno@clisp.org>
10051         strerror_r-posix: Fix behaviour and test failure on Haiku.
10052         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
10053         are positive. Work around return value 0 instead of ERANGE on Haiku.
10054         For unknown error numbers, use a format string consistent with perror().
10055         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
10056         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
10057         are positive.
10059 2017-10-29  Bruno Haible  <bruno@clisp.org>
10061         get-rusage-data: Avoid crash on Haiku.
10062         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
10064 2017-10-29  Bruno Haible  <bruno@clisp.org>
10066         get-rusage-as: Avoid crash on Haiku.
10067         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
10069 2017-10-29  Bruno Haible  <bruno@clisp.org>
10071         ilogbl: Ensure replacement on Haiku.
10072         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
10073         REPLACE_ILOGBL if ilogbl does not work.
10074         (gl_FUNC_ILOGBL_WORKS): New macro.
10075         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
10076         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
10077         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
10078         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
10079         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
10081 2017-10-29  Bruno Haible  <bruno@clisp.org>
10083         expl: Ensure replacement on Haiku.
10084         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
10085         zero.
10086         * doc/posix-functions/expl.texi: Mention the Haiku problem.
10088 2017-10-29  Bruno Haible  <bruno@clisp.org>
10090         math: Fix test failure on Haiku.
10091         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
10092         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
10093         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
10094         * doc/posix-headers/math.texi: Mention the Haiku problem.
10096 2017-10-29  Bruno Haible  <bruno@clisp.org>
10098         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
10099         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
10100         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
10102 2017-10-29  Bruno Haible  <bruno@clisp.org>
10104         crypto/*: Verify that the header file is self-contained.
10105         * tests/test-gc-*.c: Include the module's header file immediately after
10106         <config.h>.
10107         * tests/test-hmac-*.c: Likewise.
10108         * tests/test-arcfour.c: Likewise.
10109         * tests/test-arctwo.c: Likewise.
10110         * tests/test-des.c: Likewise.
10111         * tests/test-md2.c: Likewise.
10112         * tests/test-md4.c: Likewise.
10113         * tests/test-md5.c: Likewise.
10114         * tests/test-rijndael.c: Likewise.
10115         * tests/test-sha1.c: Likewise.
10116         * tests/test-sm3.c: Likewise.
10118 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
10119             Bruno Haible  <bruno@clisp.org>
10121         crypto/gc: fix build failure with -Werror=suggest-attribute=const
10122         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
10124 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
10126         New module: crypto/gc-sm3
10127         * lib/gc.h: Declare SM3-related stuffs.
10128         * lib/gc-gnulib.c: Support sm3 in internal functions.
10129         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
10130         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
10131         * modules/crypto/gc-sm3: Define gc-sm3 module.
10132         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
10133         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
10134         * MODULES.html.sh: List gc-sm3 module.
10136 2017-10-29  Bruno Haible  <bruno@clisp.org>
10138         random, random_r: Mention different prototypes on Haiku.
10139         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
10140         * doc/glibc-functions/random_r.texi: Likewise.
10141         * doc/glibc-functions/initstate_r.texi: Likewise.
10142         * doc/glibc-functions/setstate_r.texi: Likewise.
10144 2017-10-28  Bruno Haible  <bruno@clisp.org>
10146         posix_spawn: Avoid spurious message in configure output.
10147         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
10148         'cmp' command.
10150 2017-10-28  Bruno Haible  <bruno@clisp.org>
10152         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
10153         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
10154         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10156 2017-10-28  Bruno Haible  <bruno@clisp.org>
10158         ioctl: Override non-POSIX declaration on Haiku.
10159         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
10160         * lib/sys_ioctl.in.h: Add comment about Haiku.
10161         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
10162         * doc/glibc-headers/sys_ioctl.texi: Likewise.
10164 2017-10-28  Bruno Haible  <bruno@clisp.org>
10166         crypto/sm3: Add overview documentation to the .h file.
10167         * lib/sm3.h: Add comments.
10169 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
10171         New module: crypto/sm3
10172         This new module can be used to compute SM3 message digest of files or
10173         memory blocks according to the specification GM/T 004-2012
10174         Cryptographic Hash Algorithm SM3, published by State Cryptography
10175         Administration, China.
10176         The official SM3 cryptographic hash algorithm specification is
10177         available at
10178         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
10179         * lib/sm3.h: Declare the APIs of sm3 module.
10180         * lib/sm3.c: Implement SM3 hash algorithm.
10181         * m4/sm3.m4: m4 file for sm3 module.
10182         * modules/crypto/sm3: Define sm3 module.
10183         * tests/test-sm3.c: Implement SM3 test case.
10184         * modules/crypto/sm3-tests: Define sm3 test module.
10185         * MODULES.html.sh: List sm3 module.
10187 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
10189         gc-libgcrypt: fix undefined enum type in switch statement
10190         Resolve the following build failure:
10191         lib/gc-libgcrypt.c: In function 'gc_hash_open':
10192         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
10193         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
10194              case 0:
10195              ^~~~
10196         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
10197         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
10199 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
10201         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
10202         Resolve the following build failure:
10203         lib/gc-libgcrypt.c: In function 'gc_hash_read':
10204         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
10205         in signedness [-Werror=pointer-sign]
10206             digest = gcry_md_read (ctx->gch, 0);
10207                    ^
10208         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
10210 2017-10-26  Bruno Haible  <bruno@clisp.org>
10212         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
10213         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
10214         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
10216 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
10218         glob: fix another heap buffer overflow
10219         Problem reported by Tim Rühsen in:
10220         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
10221         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
10223 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
10225         quotearg: pacify compiler re unsigned
10226         * lib/quotearg.c (quotearg_n_options):
10227         Rewrite to avoid diagnostic from overly-picky compiler.
10228         Problem reported by Sami Kerola in:
10229         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
10231         glob: fix heap buffer overflow
10232         * lib/glob.c (glob): Fix off-by-one error introduced into
10233         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
10234         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
10235         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
10236         Fix suggested by Bruno Haible.
10238 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
10240         glob: pacify fuzzer for mempcpy
10241         Problem reported by Tim Rühsen in:
10242         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
10243         * lib/glob.c (glob): Do not pass NULL to mempcpy.
10245 2017-10-12  Bruno Haible  <bruno@clisp.org>
10247         doc: Fix syntax error (regression from 2017-10-03).
10248         * doc/posix-functions/strncpy.texi: Fix syntax error.
10250 2017-10-12  Bruno Haible  <bruno@clisp.org>
10252         doc: Update for Solaris 11.3.
10253         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
10254         mention Solaris 11.3.
10255         * m4/log2.m4: Fix comments.
10256         * m4/log2f.m4: Likewise.
10257         * m4/printf.m4: Update comments.
10258         * m4/rename.m4: Likewise.
10259         * m4/strncat.m4: Likewise.
10261         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
10263 2017-10-10  Bruno Haible  <bruno@clisp.org>
10265         doc: Improve doc about ioctl.
10266         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
10267         prototype.
10269 2017-10-09  Bruno Haible  <bruno@clisp.org>
10271         wcwidth: Don't use obsolete syntax of 'test'.
10272         Reported by Eric Blake.
10273         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
10274         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
10276 2017-10-09  Bruno Haible  <bruno@clisp.org>
10278         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
10279         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
10280         and Daniel P. Berrange <berrange@redhat.com>.
10281         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
10282         on glibc systems. The getopt-pfx-core.h file declares exactly what
10283         unistd.h needs, nothing more.
10285 2017-10-08  Bruno Haible  <bruno@clisp.org>
10287         vma-iter: Improve support for FreeBSD.
10288         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
10289         vma_iterate.
10290         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
10292 2017-10-08  Bruno Haible  <bruno@clisp.org>
10294         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
10295         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
10297 2017-10-07  KO Myung-Hun  <komh@chollian.net>
10299         test-framework-sh: Fix 'invalid path dir' error.
10300         On OS/2, a path separator is ';' not ':'. And ':' is used as a
10301         separator between a drive letter and directory parts.
10302         As a result, an absolute path such as x:/path/to/dir on OS/2 is
10303         treated as an invalid path dir.
10304         * tests/init.sh (PATH_SEPARATOR): Set at startup.
10305         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
10306         instead of hard coded ':'.
10308 2017-10-07  Bruno Haible  <bruno@clisp.org>
10310         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
10311         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
10312         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
10313         (rof_open): On Linux, do multiple read() calls and make sure
10314         MIN_LEFTOVER bytes are left when read() returns.
10316 2017-10-07  Bruno Haible  <bruno@clisp.org>
10318         vma-iter: Improve support for GNU/Hurd.
10319         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
10320         API, not the /proc file system.
10322 2017-10-07  Bruno Haible  <bruno@clisp.org>
10324         test-framework-sh: Don't require bash on Windows and OS/2.
10325         Reported by KO Myung-Hun.
10326         * tests/test-init.sh: Use 'shopt' only when running in bash.
10328 2017-10-06  KO Myung-Hun  <komh@chollian.net>
10330         wcwidth: check a macro version of wcwidth () as well
10331         * lib/wchar.in.h: Revert commit from 2016-01-14.
10332         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
10334 2017-10-06  Bruno Haible  <bruno@clisp.org>
10336         getopt-posix: Clarify copyright header.
10337         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
10338         * lib/getopt-pfx-core.h: Likewise.
10339         * lib/getopt-pfx-ext.h: Likewise.
10340         * lib/getopt-cdefs.in.h: Likewise.
10342 2017-10-03  Bruno Haible  <bruno@clisp.org>
10344         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
10345         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
10346         gl_HOST_CPU_C_ABI.
10348 2017-10-03  Bruno Haible  <bruno@clisp.org>
10350         doc: warn about misuse of strncpy and wcsncpy.
10351         * doc/posix-functions/strcpy.texi: Describe requirements on prior
10352         memory allocation.
10353         * doc/posix-functions/wcscpy.texi: Likewise.
10354         * doc/posix-functions/strncpy.texi: Describe what this function is not
10355         useful for.
10356         * doc/posix-functions/wcsncpy.texi: Likewise.
10358 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10360         fsuage: fix typo in previous change
10361         * lib/fsusage.c: Remove stray include of full-read.h.
10362         Problem reported by Sam Steingold for macOS (Bug#28669).
10364 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
10366         fsusage: remove SVR2 support
10367         SVR2 was obsolete by 1986 and is no longer supported by anybody,
10368         and its code was getting in the way of use of this module by
10369         Emacs, which has its own ‘read’ function anyway.
10370         * lib/fsusage.c: Do not include sys/filsys.h.
10371         (get_fs_usage): Remove SVR2-specific code.
10372         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
10373         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
10374         * modules/fsusage (Depends-on): Do not depend on full-read.
10376         Simplify autoupdate of licenses
10377         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
10378         place.
10380 2017-10-01  Bruno Haible  <bruno@clisp.org>
10382         vma-iter: Add support for GNU/Hurd.
10383         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
10384         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
10386 2017-09-30  Bruno Haible  <bruno@clisp.org>
10388         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
10389         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
10390         fail when module 'largefile' is in use.
10391         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
10392         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
10393         Don't test HAVE_SYS_PROCFS_H.
10395 2017-09-30  Bruno Haible  <bruno@clisp.org>
10397         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
10398         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
10399         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
10400         * modules/havelib (Depends-on): Add host-cpu-c-abi.
10402 2017-09-30  Bruno Haible  <bruno@clisp.org>
10404         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
10405         * lib/uniname/uniname.c (unicode_name_character): Add braces around
10406         scope of local variables.
10408 2017-09-28  Bruno Haible  <bruno@clisp.org>
10410         string: code style
10411         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
10412         substitutable variables.
10413         * modules/string (Makefile.am): Likewise.
10415 2017-09-26  Bruno Haible  <bruno@clisp.org>
10417         uniname/uniname-tests: Tighten code.
10418         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
10419         local variables into one.
10421 2017-09-26  Bruno Haible  <bruno@clisp.org>
10423         vma-iter: Improvements for Linux and BSD platforms.
10424         - Add support for DragonFly BSD.
10425         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
10426         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
10427         Read the entire file into memory in a single system call.
10428         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
10429         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
10431 2017-09-26  Bruno Haible  <bruno@clisp.org>
10433         vma-iter: Provide the protection flags on FreeBSD.
10434         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
10435         skip three fields between the addresses and the protection flags.
10437 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10439         glob: remove bogus extern decl
10440         * lib/glob.c (__glob_pattern_type): Remove now-spurious
10441         extern declaration.  Problem reported by Adhemerval Zanella in:
10442         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
10444 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
10446         uniname/uniname-tests: integer overflow fix
10447         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
10448         Check for integer overflow.
10450         duplocale-tests: fix unlikely crash
10451         * tests/test-duplocale.c (get_locale_dependent_values):
10452         Don’t crash with absurdly long month names.
10454         maint: fix overflow checking in nap.h
10455         * modules/chown-tests:
10456         * modules/fchownat-tests, modules/fdutimensat-tests:
10457         * modules/futimens-tests, modules/lchown-tests:
10458         * modules/stat-time-tests, modules/utime-tests:
10459         * modules/utimens-tests, modules/utimensat-tests:
10460         Depend on intprops.
10461         * tests/nap.h: Include intprops.h.
10462         (diff_timespec): Handle overflow properly.
10464         sys_types: update URL
10465         * m4/sys_types_h.m4: Use https: URL.
10467         parse-datetime: fix dependency
10468         * modules/parse-datetime (Depends-on): Depend
10469         on nstrftime, not strftime.
10471         parse-datetime, posixtm: avoid uninit access
10472         * lib/parse-datetime.y (parse_datetime2):
10473         * lib/posixtm.c (posixtime):
10474         Do not access uninitialized storage, even though the resulting
10475         value is never used.
10477 2017-09-25  Bruno Haible  <bruno@clisp.org>
10479         vma-iter: Improvements for BSD platforms.
10480         - Add support for GNU/kFreeBSD.
10481         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
10482         - Speed up on OpenBSD.
10483         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
10484         (vma_iterate_bsd): New function.
10485         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
10486         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
10487         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
10488         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
10490 2017-09-23  Bruno Haible  <bruno@clisp.org>
10492         strfmon_l: New module.
10493         * modules/strfmon_l: New file.
10494         * lib/strfmon_l.c: New file.
10495         * m4/strfmon_l.m4: New file.
10496         * doc/posix-functions/strfmon_l.texi: Mention the new module.
10497         * modules/strfmon_l-tests: New file.
10498         * tests/test-strfmon_l.c: New file.
10500         monetary: New module.
10501         * modules/monetary: New file.
10502         * lib/monetary.in.h: New file.
10503         * m4/monetary_h.m4: New file.
10504         * doc/posix-headers/monetary.texi: Mention the new module.
10505         * modules/monetary-tests: New file.
10506         * tests/test-monetary.c: New file.
10507         * modules/monetary-c++-tests: New file.
10508         * tests/test-monetary-c++.cc: New file.
10509         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
10511 2017-09-23  Bruno Haible  <bruno@clisp.org>
10513         duplocale tests: Fix test crash on Linux/x86.
10514         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
10515         locale from the current thread before freeing it.
10517 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
10519         mktime: port to OpenVMS
10520         Problem reported by John E. Malmberg in:
10521         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
10522         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
10524 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
10526         manywarnings: port to GCC on 64-bit MS-Windows
10527         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
10528         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
10529         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
10531 2017-09-13  Bruno Haible  <bruno@clisp.org>
10533         all: Replace many more http URLs by https URLs. Update stale URLs.
10534         * users.txt: Remove mention of 'newts'.
10535         * lib/localename.c: Update comment about LANG_SOTHO.
10537 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10539         all: Replace many http URLs by https URLs.
10541 2017-09-12  Bruno Haible  <bruno@clisp.org>
10543         doc: Prefer https URLs where possible.
10544         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
10545         * doc/ld-output-def.texi: Remove unavailable URL.
10547 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
10549         maintainer-makefile: FTP -> HTTPS
10550         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
10551         of FTP, which is planned to be decommissioned on 2017-11-01.
10553 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
10555         libc-config: Fix __GNUC_PREREQ macro.
10556         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
10557         __GNUC_MINOR.
10559 2017-09-09  Bruno Haible  <bruno@clisp.org>
10561         gnulib-tool: Simplify commit from 2015-08-20.
10562         * gnulib-tool (func_add_or_update): Remove local variable
10563         is_binary_file.
10565 2017-09-08  Bruno Haible  <bruno@clisp.org>
10567         stddef: Avoid conflict with system-defined max_align_t.
10568         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
10569         Reported by Werner Lemberg <wl@gnu.org> in
10570         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
10571         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
10572         (max_align_t): Define as a macro.
10573         (GNULIB_defined_max_align_t): New macro. Guards against multiple
10574         definitions of rpl_max_align_t in different copies of gnulib-generated
10575         <stddef.h>.
10577 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10579         libc-config: port to MSVC
10580         Problems reported by Gisle Vanem in:
10581         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
10582         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
10583         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
10584         * m4/__inline.m4: New file.
10585         * modules/libc-config (Files): Add it.
10586         (Depends-on): Use it.
10588         glob: Use enum for __glob_pattern_type result
10589         From a patch proposed by Adhemerval Zanella in:
10590         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
10591         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
10592         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
10593         * lib/glob_internal.h (__glob_pattern_type):
10594         * lib/glob.c (glob):
10595         * lib/glob_pattern_p.c (__glob_pattern_p):
10596         Use them.
10598         glob: fix for use in glibc
10599         Problem reported by Adhemerval Zanella in:
10600         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
10601         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
10602         Do not redefine if _LIBC.
10604 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10606         glob: fix bugs with long login names
10607         Problem reported by Adhemerval Zanella in:
10608         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
10609         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
10610         (glob): Use the same scratch buffer for both getlogin_r and
10611         getpwnam_r.  Don’t require preallocation of the login name.  This
10612         simplifies storage allocation, and corrects the handling of
10613         long login names.
10615 2017-09-02  Bruno Haible  <bruno@clisp.org>
10617         dirent: Update doc.
10618         * doc/posix-headers/dirent.texi: More concrete list of platforms.
10620 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10622         glob: fix getpwnam_r errno typo
10623         * lib/glob.c (glob): Fix longstanding misuse of errno after
10624         getpwnam_r, which returns an error number rather than setting
10625         errno.
10627         glob: fix typo in recent change
10628         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
10629         Fix recently-introduced typo.
10631 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10633         glob: don't save and restore errno unnecessarily
10634         * lib/glob.c (glob): Don't save and restore errno
10635         merely because we have getpwnam_r.
10637         glob: don't assume getpwnam_r
10638         * lib/glob.c (glob): Port recent patches to platforms
10639         lacking getpwnam_r.
10641         scratch_buffer: don’t use private glibc API
10642         Suggested by Florian Weimer in:
10643         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
10644         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
10645         * lib/scratch_buffer_grow.c: Rename to
10646         lib/malloc/scratch_buffer_grow.c.
10647         * lib/scratch_buffer_grow_preserve.c: Rename to
10648         lib/malloc/scratch_buffer_grow_preserve.c.
10649         * lib/scratch_buffer_set_array_size.c: Rename to
10650         lib/malloc/scratch_buffer_set_array_size.c.
10651         * lib/scratch_buffer.h: New file.
10652         * modules/scratch_buffer (Files, Makefile.am):
10653         Adjust to source-file renaming.
10655 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10657         glob: use scratch_buffer instead of extend_alloca
10658         Much of the lib/glob.c part of this patch comes from a glibc patch
10659         proposed by Adhemerval Zanella in:
10660         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
10661         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
10662         included via glob.h, does this for us now.
10663         (__set_errno): Remove, as libc-config does this for us now.
10664         Include <scratch_buffer.h>.
10665         (GETPW_R_SIZE_MAX): Remove.
10666         (glob): Use struct scratch_buffer instead of extend_alloca.
10667         * lib/glob.in.h: Include libc-config.h rather than
10668         including <sys/cdefs.h> conditionally.
10669         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
10670         (__glibc_unlikely, __restrict, weak_alias):
10671         Remove, as libc-config does this for us now.
10672         * m4/glob.m4 (gl_PREREQ_GLOB):
10673         Remove sys/cdefs.h tests; no longer needed.
10674         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
10675         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
10677         scratch_buffer: new module
10678         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
10679         * lib/scratch_buffer_grow_preserve.c:
10680         * lib/scratch_buffer_set_array_size.c:
10681         New files, copied from glibc with very minor changes that can be
10682         copied back.
10683         * modules/scratch_buffer: New file.
10685         libc-config: new module
10686         * MODULES.html.sh: Add libc-config.
10687         * lib/cdefs.h: New file, copied from the GNU C Library with very
10688         minor changes that can be copied back.
10689         * lib/libc-config.h, modules/libc-config: New files.
10691 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10693         glob: match dangling symlinks
10694         This fixes a bug I inadvertently introduced to Gnulib when I
10695         merged glibc glob back into gnulib on 2007-10-16.  This fix is
10696         inspired by a patch proposed for glibc by Adhemerval Zanella in:
10697         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
10698         * doc/posix-functions/glob.texi: Update list of affected platforms.
10699         * lib/glob.c (__lstat64): New macro.
10700         (is_dir): New function.
10701         (glob, glob_in_dir): Match symlinks even if they are dangling.
10702         (link_stat, link_exists_p): Remove.  All uses removed.
10703         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
10704         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
10705         * modules/glob-tests (Depends-on): Add symlink.
10706         * tests/test-glob.c: Include errno.h, unistd.h.
10707         (BASE): New macro.
10708         (main): Test dangling symlinks, if symlinks are supported.
10710         glob, backupfile: inode 0 is a valid inode number
10711         * doc/posix-functions/readdir.texi (readdir):
10712         * doc/posix-headers/dirent.texi (dirent.h):
10713         Document more readdir portability issues.
10714         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
10715         (numbered_backup): Don’t treat inode 0 any differently from
10716         other inode values.
10717         * lib/glob.c (struct readdir_result): Remove skip_entry member.
10718         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
10719         All uses removed.
10720         * modules/glob (Depends-on): Remove d-ino.
10722         glob: simplify symlink detection
10723         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
10724         uint8_t, as C99 does not require uint8_t.
10725         (struct readdir_result): Use it.  Do not define skip_entry unless
10726         it is needed; this saves a byte on platforms lacking d_ino.
10727         (readdir_result_type, readdir_result_skip_entry):
10728         New functions, replacing ...
10729         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
10730         ... these functions, which were removed.  This makes the callers
10731         easier to read.  All callers changed.
10732         (D_INO_TO_RESULT): Now empty if there is no d_ino.
10734 2017-08-30  Pádraig Brady  <P@draigBrady.com>
10736         fts-tests: tag as a longrunning-test so not included by default
10737         * modules/fts-tests: This test takes about 20s on current systems,
10738         and uses about 285M of space on ext4.
10740 2017-08-30  Pádraig Brady  <P@draigBrady.com>
10742         renameat2: fix compilation on alpine linux
10743         * m4/renameat.m4: Check for <linux/fs.h> presence.
10744         * lib/renameat2.h: Only include <linux/fs.h> if present.
10745         Reported by Assaf Gordon on Alpine Linux.
10747 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10749         glob: try to port recent changes to MS-Windows
10750         Problem reported by Bruno Haible in:
10751         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
10752         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
10753         * lib/glob.in.h (__glob_pattern_p): ... to here.
10755 2017-08-24  Eric Blake  <eblake@redhat.com>
10757         warnings: fix compilation with old autoconf
10758         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
10759         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
10760         AC_DEFUN.
10761         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
10762         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
10764 2017-08-24  Bruno Haible  <bruno@clisp.org>
10766         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
10767         * modules/glob (Depends-on): Add c99.
10769 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10771         glob: fix typo that broke platforms lacking d_ino
10772         This typo also hurt performance on GNU/Linux and similar hosts.
10773         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
10774         in previous change.
10776 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10778         glob: merge from glibc with Zanella glob changes
10779         Merge glob from glibc, with changes for glob proposed
10780         by Adhemerval Zanella in the thread starting here:
10781         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
10782         plus some fixes for this merge.
10783         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
10784         New files, ported from glibc.
10785         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
10786         with __restrict.
10787         (__size_t): Remove.  All uses replaced by size_t.
10788         (size_t): Define by defining __need_size_t and including <stddef.h>.
10789         This should work even in non-glibc platforms, where any name
10790         pollution is OK.
10791         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
10792         (struct stat64): Don’t worry about __GLOB_GNULIB.
10793         (glob, globfree, glob_pattern_p): Remove macros for
10794         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
10795         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
10796         but set errno.
10797         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
10798         removed since the glibc behavior works on null pointers.
10799         Do not include stdio.h; old SunOS is irrelevant now.
10800         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
10801         Include glob_internal.h.
10802         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
10803         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
10804         worked only coincidentally.
10805         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
10806         Remove macros; now done in glob.in.h.
10807         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
10808         (glob): Properly initialize glob structure with
10809         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
10810         Remove old code using SHELL since Bash no longer
10811         uses this.
10812         (glob, prefix_array): Separate MS code better.
10813         (glob, glob_in_dir): Use C99 decls before statements when glibc
10814         does.
10815         (glob_in_dir): Remove old Amiga and VMS code.
10816         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
10817         separate files.
10818         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
10819         (__glibc_unlikely):
10820         Move here from glob.c.
10821         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
10822         (weak_alias): New macro.
10823         (__size_t): Remove.  All uses replaced by size_t.
10824         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
10825         * modules/glob (Files): Add +lib/glob_internal.h,
10826         lib/glob_pattern_p.c, lib/globfree.c.
10827         (Depends-on): Remove snippet/arg-nonnull.
10829 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
10831         glob: port to clang's Undefined Sanitizer
10832         Problem reported by Tim Rühsen in:
10833         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
10834         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
10835         (glob_in_dir): Do not rely on undefined behavior in accessing
10836         struct members beyond their bounds.  Use a flexible array member
10837         instead.
10839 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
10841         vc-list-files: port to Solaris 10
10842         * build-aux/vc-list-files: Don't assume test -e works.
10844 2017-08-21  Karl Berry  <karl@freefriends.org>
10846         * doc/posix-functions/srandom.texi (srandom): typo }.
10848 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
10850         git-version-gen: port to Solaris 10
10851         Problem reported by Dagobert Michelsen in:
10852         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
10853         * build-aux/git-version-gen (v_from_git):
10854         Use expr instead of shell substitution.
10856 2017-08-19  Bruno Haible  <bruno@clisp.org>
10858         host-cpu-c-abi: Improve detection of MIPS ABI.
10859         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
10860         _MIPS_SIM.
10862 2017-08-17  Bruno Haible  <bruno@clisp.org>
10864         hypot tests: Fix test failure on FreeBSD 11.0/x86.
10865         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
10867 2017-08-17  Bruno Haible  <bruno@clisp.org>
10869         float: Fix LDBL_MIN value on FreeBSD/x86.
10870         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
10872 2017-08-17  Bruno Haible  <bruno@clisp.org>
10874         random: Fix test compilation failure on Cygwin 1.5.25.
10875         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
10876         HAVE_DECL_SETSTATE.
10877         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
10878         declared.
10879         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
10880         HAVE_DECL_SETSTATE.
10881         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
10882         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
10883         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
10884         * doc/posix-functions/random.texi: Likewise.
10885         * doc/posix-functions/setstate.texi: Likewise.
10886         * doc/posix-functions/srandom.texi: Likewise.
10888 2017-08-16  Bruno Haible  <bruno@clisp.org>
10890         stdnoreturn: Fix test compilation failure on Cygwin.
10891         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
10892         <stdnoreturn.h> replacement.
10893         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
10894         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
10896 2017-08-16  Bruno Haible  <bruno@clisp.org>
10898         thread: Fix conflict with pthread_sigmask module.
10899         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
10900         it's defined as a macro.
10901         * modules/thread (Depends-on): Add pthread_sigmask.
10903 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
10905         rename: port better to NetBSD
10906         * doc/posix-functions/rename.texi (rename): NetBSD 7
10907         does not have the link-count bug.
10908         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
10909         broken merely because rename ("a", "b") removes "a" when the two
10910         names are hard links to the same file.
10912 2017-08-16  Bruno Haible  <bruno@clisp.org>
10914         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
10915         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
10916         the target file names with '$(srcdir)/'.
10917         * modules/unicase/locale-language (Makefile.am): Likewise.
10918         * modules/unicase/special-casing (Makefile.am): Likewise.
10919         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
10920         * modules/unictype/category-byname (Makefile.am): Likewise.
10921         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
10922         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
10923         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
10924         * modules/unictype/property-byname (Makefile.am): Likewise.
10925         * modules/unictype/scripts (Makefile.am): Likewise.
10926         * modules/uninorm/composition (Makefile.am): Likewise.
10928 2017-08-16  Bruno Haible  <bruno@clisp.org>
10930         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
10931         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
10932         value for OpenBSD.
10934 2017-08-16  Bruno Haible  <bruno@clisp.org>
10936         rename, renameat: Update doc regarding NetBSD.
10937         * doc/posix-functions/rename.texi: Clarify that when using
10938         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
10939         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
10940         version.
10942 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10944         renameat2: port better to macOS
10945         * lib/renameat2.c (renameat2): Use renameatx_np if available.
10947         futimens: don’t assume struct timespec layout
10948         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
10949         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
10950         * tests/test-fdutimensat.c (main):
10951         * tests/test-futimens.h (test_futimens):
10952         * tests/test-lutimens.h (test_lutimens):
10953         * tests/test-utimens.h (test_utimens):
10954         * tests/test-utimensat.c (main):
10955         Don’t assume that struct timespec is a two-member structure in
10956         tv_sec, tv_nsec order.  Although this is true on all platforms we
10957         know about, POSIX does not guarantee it.
10959         rename: document+test NetBSD rename
10960         Test failure reported by Bruno Haible in:
10961         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
10962         This is an area where NetBSD is better-behaved than POSIX,
10963         so allow the NetBSD behavior in tests.
10964         * doc/posix-functions/rename.texi:
10965         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
10966         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
10968 2017-08-15  Bruno Haible  <bruno@clisp.org>
10970         renameat: Ensure declaration in <stdio.h> on NetBSD.
10971         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
10972         * doc/posix-functions/renameat.texi: Mention this problem.
10974 2017-08-15  Bruno Haible  <bruno@clisp.org>
10976         duplocale: Work around NetBSD 7.0 bug.
10977         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
10978         * lib/duplocale.c: Add comment about NetBSD problem.
10979         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
10981 2017-08-15  Bruno Haible  <bruno@clisp.org>
10983         duplocale tests: Verify use with *_l functions.
10984         * modules/duplocale-tests (configure.ac): Test for uselocale and
10985         some *_l functions.
10986         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
10987         from main.
10988         (get_locale_dependent_values_from, test_with_locale_parameter): New
10989         functions.
10990         (main): Test both test_with_uselocale and test_with_locale_parameter.
10992 2017-08-15  Bruno Haible  <bruno@clisp.org>
10994         extensions: Enable NetBSD specific extensions.
10995         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
10997 2017-08-14  Bruno Haible  <bruno@clisp.org>
10999         open, openat: Update doc about O_CLOEXEC.
11000         * doc/posix-functions/open.texi: More concrete list of platforms.
11001         * doc/posix-functions/openat.texi: Likewise.
11003 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11005         open: support O_CLOEXEC
11006         * NEWS, doc/posix-functions/open.texi:
11007         * doc/posix-functions/openat.texi: Document this.
11008         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
11009         (GNULIB_defined_O_CLOEXEC): New symbol.
11010         * lib/open.c: Include cloexec.h.
11011         (open): Support O_CLOEXEC.
11012         * lib/openat.c: Include cloexec.h.
11013         (rpl_openat): Support O_CLOEXEC.
11014         * lib/popen-safer.c: Do not include cloexec.h.
11015         (open_noinherit): Remove.
11016         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
11017         * lib/save-cwd.c: Do not include cloexec.h.
11018         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
11019         * m4/open-cloexec.m4: New file.
11020         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
11021         Replace 'open' if O_CLOEXEC is not present.
11022         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
11023         Replace 'openat' if O_CLOEXEC is not present.
11024         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
11025         * modules/open (Files): Add m4/open-cloexec.m4.
11026         (Depends-on): Depend on cloexec if replacing 'open'.
11027         * modules/openat (Files): Add m4/open-cloexec.m4.
11028         (Depends-on): Depend on cloexec if replacing openat.
11029         * modules/popen-safer (Depends-on): Remove cloexec.
11030         * modules/save-cwd (Depends-on): Remove cloexec, and add
11031         fd-safer-flag and 'open'.
11033 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
11035         reallocarray: minor fixes
11036         * doc/glibc-functions/reallocarray.texi: Update version numbers.
11037         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
11038         * modules/reallocarray (License): Change from GPL to LGPL.
11039         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
11040         Indent properly and don't use tabs.
11042 2017-08-13  Darshit Shah  <darnir@gnu.org>
11044         reallocarray: New module
11045         reallocarray is a new function in glibc 2.26 to safely allocate an array
11046         of memory locations with integer overflow protection.
11047         * MODULES.html.sh: Add reallocarray.
11048         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
11049         * lib/reallocarray.c: New file to implement module reallocarray.
11050         * lib/stdlib.in.h: Add function declarations for reallocarray.
11051         * m4/reallocarray.m4: New file.
11052         * m4/stdlib_h.m4: Declare reallocarray.
11053         * modules/reallocarray: New file.
11054         * modules/reallocarray-test: New file.
11055         * modules/stdlib: Coerce stdlib.h to export reallocarray.
11056         * tests/test-reallocarray.c: New test.
11058 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11060         dirent-safer: fix cloexec race
11061         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
11062         (opendir_safer): Use F_DUPFD_CLOEXEC.
11063         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
11064         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
11065         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
11066         instead of dup_safer.
11068         fts: fix cloexec races
11069         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
11070         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
11071         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
11072         (fd_ring_check): Set cloexec flag on new file descriptors.
11073         (fts_build, fd_ring_check): While we’re at it, make sure the
11074         resulting file descriptor is not 0, 1, or 2, since that is easy.
11076 2017-08-11  Bruno Haible  <bruno@clisp.org>
11078         fts tests: Fix link error.
11079         Reported by Tom G. Christensen in
11080         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
11081         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
11083 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11085         fts: port recent changes to CentOS 6
11086         Problem reported by Tom G. Christensen in:
11087         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
11088         * lib/fts.c (fsword): New type.
11089         (struct dev_type, filesystem_type): Use it.
11090         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
11091         Also, check for f_type only if fstatfs and sys/vfs.h work.
11093 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11095         tempname: do not depend on secure_getenv
11096         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
11097         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
11098         * modules/tempname (Depends-on): Remove secure_getenv.
11100 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
11102         extensions: add _OPENBSD_SOURCE
11103         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
11105 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
11106             Bruno Haible  <bruno@clisp.org>
11108         manywarnings: Add support for C++.
11109         * build-aux/g++-warning.spec: New file.
11110         * m4/manywarnings-c++.m4: New file.
11111         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
11112         redirects to manywarnings-c++.m4.
11113         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
11115 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
11117         git-version-gen: another fix for tags with "-"
11118         * build-aux/git-version-gen: Improve fix for tags containing "-".
11119         Suggested by Markus Armbruster in:
11120         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
11122 2017-08-06  Bruno Haible  <bruno@clisp.org>
11124         warnings, manywarnings: Add support for multiple languages, not just C.
11125         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
11126         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
11127         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
11128         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
11129         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
11130         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
11131         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
11132         of the current language. If C++ is the current language, modify
11133         WARN_CXXFLAGS instead of WARN_CFLAGS.
11134         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
11135         gl_MANYWARN_ALL_GCC.
11136         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
11138 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
11140         git-version-gen: Fix for tags containing '-'
11142         Really old versions of git-describe (before v1.5.0, Feb 2007)
11143         don't have the number of commits in their long format output,
11144         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
11145         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
11146         recognizes both patterns, and normalizes the old format to the new one.
11148         Unfortunately, this normalization code gets confused when the tag
11149         contains '-'.  Reproducer:
11151             $ git-tag -m test v0.2-rc1
11152             $ build-aux/git-version-gen .tarball-version; echo
11153             build-aux/git-version-gen: WARNING: git rev-list failed
11154             UNKNOWN
11156         We take exact tag "v0.2-rc1" for the old format, extract the presumed
11157         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
11158         commits since tha tag.  Fails, because tag "v0.2" does not exist.
11160         * git-version-gen: We could perhaps drop support for versions from
11161         more than a decade ago.  But tightening the pattern match is easy
11162         enough, so do that.  Still breaks when you use version tags ending in
11163         something matching -g????, but you arguably get what you deserve then.
11165 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
11167         valgrind-tests: use ls, and cache
11168         * m4/valgrind-tests.m4: Test ls, not bash.
11169         Problem reported by Reuben Thomas.
11170         Also, cache the result so that it can be overridden.
11172 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
11174         manywarnings: port to 64-bit GCC builds of Emacs
11175         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
11176         object size rather than hardwiring 2147483647.  This is needed to
11177         build GNU Emacs, which has one conditional (and used
11178         only-in-theory) call to malloc with a literal greater than
11179         2147483647.
11181 2017-08-04  Bruno Haible  <bruno@clisp.org>
11183         Relax the license of some modules with no runtime code.
11184         * modules/std-gnu11 (License): Set to 'unlimited'.
11185         * modules/c99 (License): Likewise.
11186         Reported by Reuben Thomas <rrt@sc3d.org>.
11187         * modules/d-ino (License): Set to 'LGPL'.
11188         * modules/host-os (License): Likewise.
11189         * modules/longlong (License): Likewise.
11191 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
11193         renameat2: port to RHEL 7 + NFS
11194         * lib/renameat2.c (renameat2) [SYS_renameat2]:
11195         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
11196         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
11198 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
11200         renameat2: port to non-renameat platforms
11201         Problem reported for MSVC-2015 by Gisle Vanem in:
11202         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
11203         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
11204         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
11206 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
11208         manywarnings: port to 32-bit GCC bug
11209         Problem reported by Pino Toscano in:
11210         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
11211         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
11212         not 2**63 - 1, to work around the following GCC bug:
11213         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
11215 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
11217         backupfile: new function to validate backup suffix
11218         * lib/backupfile.c (set_simple_backup_suffix): New function.
11219         (backupfile_internal): Use it.
11221         canonicalize: fix EOVERFLOW commentary
11222         Problem reported by Bruno Haible in:
11223         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
11224         * lib/canonicalize.c (canonicalize_filename_mode):
11225         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
11227         Don't interpret EOVERFLOW to mean nonexistence
11228         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
11229         may be EOVERFLOW; this is likely more useful than reporting the
11230         stat errno.
11231         * lib/glob.c (link_stat): Rename from link_exists2_p and
11232         return -1/0 instead of 0/1.  Caller changed.
11233         * lib/glob.c (link_exists_p):
11234         * lib/renameat2.c (rename_noreplace, renameat2):
11235         * lib/tempname.c (try_nocreate):
11236         If errno == EOVERFLOW then the directory entry exists, so do not
11237         act as if it does not exist.
11239         backup-rename: new module
11240         It is like backupfile, except it avoids some race conditions,
11241         and it does not output to stderr or exit.
11242         * MODULES.html.sh: Add backup-rename.
11243         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
11244         * modules/backup-rename: New files.
11245         * lib/backupfile.c: Turn this into an internals file, which
11246         contains code common to backupfile and backup_rename.  Include
11247         backupfile-internal.h instead of backupfile.h.  Do not include
11248         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
11249         renameat2.h and fcntl.h.
11250         (BACKUP_NOMEM): New constant.
11251         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
11252         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
11253         (backupfile_internal): Rename from find_backup_file_name.
11254         Support new arg RENAME.
11255         (backup_args, backup_types, get_version, xget_version):
11256         Move to lib/backup-find.c.
11257         * lib/backupfile.h (backup_file_rename): New decl.
11258         * modules/backupfile (Files): Add lib/backup-internal.h,
11259         lib/backup-find.c.
11260         (Depends-on): Add dirfd, fcntl, renameat2.
11261         (lib_SOURCES): Add backup-find.c.
11263         renameat2: port better to older Solaris
11264         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
11265         Add goto to use a label, to silence picky compilers.
11267         fts-tests: port to gcc -Wwrite-strings
11268         * tests/test-fts.c (base, base_d): New static vars.
11269         (argv, remove_tree, main): Use them.
11271 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
11273         relocatable-lib{,-lgpl}: improve documentation
11274         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
11275         Various other updates.
11277 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
11278             Bruno Haible  <bruno@clisp.org>
11280         relocatable-lib{,-lgpl}: add Valgrind suppressions
11281         * lib/relocatable.valgrind: New file.
11282         * modules/relocatable-lib (Files): Add relocatable.valgrind.
11283         * modules/relocatable-lib-lgpl: Likewise.
11285 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
11287         relocatable: Make the license on the sources the GPL.
11288         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
11289         LGPL, which was a special case so that the relocatable source files
11290         could be used without gnulib-tool, to GPL. They can still be used under
11291         the LGPL, using the --lgpl option to gnulib-tool.
11293 2017-07-30  Bruno Haible  <bruno@clisp.org>
11295         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
11296         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
11297         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
11298         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
11299         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
11301 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
11303         faccessat: document AT_SYMLINK_NOFOLLOW issue
11304         * doc/posix-functions/faccessat.texi: Modernize platform list.
11305         Document AT_SYMLINK_NOFOLLOW limitation.
11307         renameat2: port to Solaris 10
11308         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
11309         with AT_SYMLINK_NOFOLLOW (which is not portable).
11310         (renameat): Undef before using, to avoid endless recursion when
11311         the replacement renameat calls renameat2 which calls the
11312         replacement renameat.
11313         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
11314         * modules/renameat2 (Depends-on): Remove faccessat.
11315         * modules/renameat-tests (test_renameat_LDADD):
11316         * modules/renameat2-tests (test_renameat2_LDADD):
11317         Remove $(LIB_EACCESS).
11319         renameat2: new module
11320         Although the Linux syscall renameat2 is not in glibc (yet?), it is
11321         useful to have access to its RENAME_NOREPLACE flag.
11322         * MODULES.html.sh (func_all_modules): Add renameat2.
11323         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
11324         * modules/renameat2-tests, tests/test-renameat2.c: New files.
11325         * lib/renameat.c (renameat): Move most of the implementation
11326         to renameat2, and just call renameat2.
11327         * modules/renameat (Files): Remove lib/at-func2.c.
11328         (Depends-on): Depend only on renameat2.
11329         (Include): Remove <fcntl.h>.
11330         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
11331         since renameat (via renameat2) might use faccessat.
11333 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
11335         vc-list-files: Adjust the script to support git worktrees
11336         * build-aux/vc-list-files: Require existence, not directory.
11338 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
11340         doc: bring MODULES.html.sh up to date
11341         Somehow a few months ago we stopped updating MODULES.html.sh.
11342         I don’t recall explicitly deciding this, so I updated it now.
11343         Alternatively I suppose we could remove it.
11344         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
11345         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
11346         truncate, utime, utime-h, windows-stat-inodes,
11347         windows-stat-override, windows-stat-timespec, year2038.  Sort.
11349 2017-07-26  Jim Meyering  <meyering@fb.com>
11351         fprintftime: fix build-break caused by recent renaming
11352         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
11353         "strftime.c".
11354         * modules/fprintftime: Depend directly on nstrftime.
11356 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
11358         regex: work with GCC7's -Werror=implicit-fallthrough=
11359         * lib/regex_internal.h (FALLTHROUGH): New macro.
11360         * lib/regcomp.c (peek_token_bracket, parse_expression):
11361         * lib/regexec.c (check_node_accept): Use it.
11363 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11365         fts: simplify fts_build
11366         * lib/fts.c (fts_build): Simplify, and be lazier about
11367         calling leaf_optimization.
11369         fts: three levels of leaf optimization
11370         * lib/fts.c (enum leaf_optimization): New type with three values.
11371         (S_MAGIC_AFS): New macro.  Sort them.
11372         (leaf_optimization): Rename from leaf_optimization_applies, and
11373         return enum leaf_optimization instead of bool.  All uses changed.
11374         Add cases for unknown type and for AFS.
11375         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
11377         fts: cache dirent_inode_sort_may_be_useful too
11378         * lib/fts.c (struct dev_type): New struct.
11379         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
11380         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
11381         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
11382         Now takes FTSENT const *, not int.  All uses changed.  Use
11383         filesystem_type to cache.
11384         (link_count_optimize_ok): Remove.  Caller changed to use
11385         leaf_optimization_applies, which now uses shared cache.
11387         fts: introduce MIN_DIR_NLINK
11388         * lib/fts.c (MIN_DIR_NLINK): New constant.
11389         Use it instead of 2, whenever we are talking about link counts.
11391         fts: nlink_t signedness fixups
11392         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
11393         so that root need not be a special case later.
11394         (fts_read): Remove now-redundant test for fts_level.
11395         Do not assume that nlink_t is signed.
11396         (fts_build): Remove useless decrement of nlinks.
11397         (fts_stat): Avoid unlikely signed integer overflow later, if
11398         nlink_t is signed.
11400         fts-tests: new module
11401         * modules/fts-tests, tests/test-fts.c: New files.
11403 2017-07-23  Bruno Haible  <bruno@clisp.org>
11405         Rename module 'strftime' to 'nstrftime'.
11406         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
11407         * lib/nstrftime.c: Renamed from lib/strftime.c.
11408         * modules/nstrftime: Renamed from modules/strftime.
11409         (Files, Makefile.am): Update.
11410         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
11411         Fix comment.
11412         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
11413         (Files, Makefile.am): Update.
11414         * modules/strftime: New file, an obsolete indirection.
11415         * doc/posix-functions/strftime.texi: Update reference.
11416         * config/srclist.txt: Update info.
11417         * NEWS: Mention the change.
11419 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
11421         malloca: Silence a warning from clang's memory sanitizer.
11422         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
11423         (freea): Use it.
11425 2017-07-18  Bruno Haible  <bruno@clisp.org>
11427         host-cpu-c-abi: Fix detection of MIPS ABI.
11428         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
11429         ABI, not the CPU instruction set.
11431 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11433         explicit_bzero: new module
11434         The explicit_bzero function has been added to glibc.
11435         This module is intended to supports its use in GNU programs.
11436         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
11437         * m4/explicit_bzero.m4, modules/explicit_bzero:
11438         New files.
11439         * doc/gnulib.texi (Glibc string.h): Link to new doc.
11440         * lib/string.in.h (explicit_bzero): Declare.
11441         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
11442         * modules/string (string.h): Substitute its vars.
11444 2017-07-16  Bruno Haible  <bruno@clisp.org>
11446         threadlib: Support static linking.
11447         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
11448         set gl_cv_have_weak to 'no'.
11450 2017-07-16  Bruno Haible  <bruno@clisp.org>
11452         unicase/locale-language: Fix link dependencies.
11453         * modules/unicase/locale-language (Link): New section.
11454         * modules/unicase/locale-language-tests (Makefile.am): Link
11455         test-locale-language program with $(LIBTHREAD).
11457 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
11459         sys_socket: Add support for OpenVMS.
11460         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
11461         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
11463 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
11465         sys_resource: Add support for OpenVMS.
11466         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
11467         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
11469 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
11470             Bruno Haible  <bruno@clisp.org>
11472         math: Add support for OpenVMS.
11473         * lib/math.in.h [__VMS]: Include <fp.h>.
11474         * doc/posix-headers/math.texi: Mention OpenVMS issues.
11476 2017-07-15  Bruno Haible  <bruno@clisp.org>
11478         getdtablesize: Add minimal support for OpenVMS.
11479         Reported by John E. Malmberg <wb8tyw@qsl.net>.
11480         * modules/getdtablesize (Description): Fix.
11481         * lib/getdtablesize.c: Fix comment.
11482         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
11483         getdtablesize() function, even though the test fails.
11484         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
11485         limitation on OpenVMS.
11487 2017-07-13  Bruno Haible  <bruno@clisp.org>
11489         Revisit cross-compilation guesses.
11490         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
11492 2017-07-13  Bruno Haible  <bruno@clisp.org>
11494         Improve cross-compilation guesses for native Windows.
11495         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
11496         Windows.
11497         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
11498         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
11499         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
11500         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
11501         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
11502         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11503         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11504         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11505         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
11506         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
11507         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11508         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
11509         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
11510         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
11511         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
11512         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
11513         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
11514         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
11515         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
11516         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
11517         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11518         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11519         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
11520         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
11521         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
11522         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
11523         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
11524         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
11525         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11526         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
11527         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11528         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
11529         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
11530         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
11531         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
11532         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
11533         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
11534         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11535         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
11536         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11537         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11538         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11539         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
11540         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
11541         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
11542         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
11543         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
11544         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
11545         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
11546         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
11547         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
11548         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
11549         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
11550         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
11551         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
11552         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
11553         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
11554         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
11555         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
11556         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
11557         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
11558         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
11559         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
11560         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
11561         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
11562         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11563         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
11564         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
11565         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
11566         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
11567         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
11568         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
11569         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
11570         * m4/regex.m4 (gl_REGEX): Likewise.
11571         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
11572         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
11573         gl_FUNC_REMAINDERF_WORKS): Likewise.
11574         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
11575         gl_FUNC_REMAINDERL_WORKS): Likewise.
11576         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11577         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11578         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
11579         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11580         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11581         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11582         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11583         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11584         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
11585         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11586         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
11587         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
11588         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11589         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
11590         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
11591         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11592         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11593         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11594         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
11595         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
11596         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
11597         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
11598         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
11599         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
11600         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11601         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11602         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
11603         Likewise.
11604         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11605         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
11606         Windows. Enable also on Autoconf 2.70.
11607         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11608         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11609         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
11610         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
11611         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11612         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
11613         for native Windows.
11614         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
11615         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
11617 2017-07-13  Bruno Haible  <bruno@clisp.org>
11619         Improve cross-compilation guesses for native Windows.
11620         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
11621         Windows.
11622         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
11623         memchr.m4.
11624         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
11626 2017-07-13  Bruno Haible  <bruno@clisp.org>
11628         Improve cross-compilation guesses for native Windows.
11629         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
11630         native Windows.
11631         (gl_FUNC_FFLUSH): Update accordingly.
11632         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
11633         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
11635 2017-07-11  Bruno Haible  <bruno@clisp.org>
11637         More systematic m4 quoting and indentation.
11638         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
11639         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
11640         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
11641         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11642         * m4/host-os.m4 (gl_HOST_OS): Likewise.
11643         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
11644         gl_WINSIZE_IN_PTEM): Likewise.
11645         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
11646         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
11647         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
11648         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
11649         Correct indentation.
11650         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11651         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11652         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
11653         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11654         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
11655         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
11657 2017-07-10  Bruno Haible  <bruno@clisp.org>
11659         round, roundf: Avoid compiler warning in configure test.
11660         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
11661         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11663 2017-07-10  Bruno Haible  <bruno@clisp.org>
11665         getlogin tests: Avoid #ifdefs when sharing code between modules.
11666         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
11667         * modules/getlogin-tests (Files): Likewise. Remove
11668         tests/test-getlogin_r.c.
11669         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
11670         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
11671         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
11672         getlogin().
11674 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
11676         getlogin: don’t assume one name per uid
11677         Problem reported by Wolfgang F. Muthmann (Bug#27640).
11678         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
11679         (ttyname): Remove test.
11680         * modules/getlogin_r-tests (ttyname): Remove test.
11681         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
11682         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
11683         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
11684         getlogin rather than getlogin_r.  This avoids code duplication.
11685         (main): Use isatty and fstat rather than ttyname and stat.
11686         Use getpwnam instead of getpwuid, to be portable to test platforms
11687         that have multiple login names for the same uid.
11689 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
11690             Bruno Haible  <bruno@clisp.org>
11692         glob: Fix more memory leaks.
11693         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
11694         returning.
11695         Reported by Tim Rühsen.
11697 2017-07-10  Bruno Haible  <bruno@clisp.org>
11699         Make sure $host and $host_os are defined when used.
11700         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
11701         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
11702         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
11703         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11704         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11705         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
11706         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
11707         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
11708         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
11709         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
11710         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
11711         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
11712         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
11713         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
11714         m4_ifdef block.
11716 2017-07-09  Bruno Haible  <bruno@clisp.org>
11718         *printf: Fix cross-compilation guess for Solaris.
11719         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
11720         2010-12-21.
11722 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
11723             Bruno Haible  <bruno@clisp.org>
11725         vasnprintf: port to macOS 10.13
11726         Problem reported by comex in:
11727         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
11728         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
11730 2017-07-06  Bruno Haible  <bruno@clisp.org>
11732         imaxdiv tests: Fix logic.
11733         * tests/test-imaxdiv.c (main): Use == instead of =.
11734         Reported by Coverity.
11736 2017-07-06  Bruno Haible  <bruno@clisp.org>
11738         uninorm/filter: Fix use-after-free bug.
11739         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
11740         sortbuf == filter->sortbuf invariant.
11741         Reported by Coverity.
11743 2017-07-06  Bruno Haible  <bruno@clisp.org>
11745         glob: Fix more memory leaks.
11746         * lib/glob.c (glob): Free dirname before returning.
11747         Reported by Coverity and Tim Rühsen.
11749 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11751         parse-datetime: fix uninit var bug
11752         Reported by Bruno Haible in:
11753         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
11754         * lib/parse-datetime.y (parse_datetime2): Do not use
11755         uninitialized.
11757 2017-07-05  Bruno Haible  <bruno@clisp.org>
11759         doc: Update for MSVC 14.
11760         * doc/posix-headers/*.texi: Add info about MSVC 14.
11761         * doc/posix-functions/*.texi: Likewise.
11762         * doc/pastposix-functions/*.texi: Likewise.
11763         * doc/glibc-headers/*.texi: Likewise.
11764         * doc/glibc-functions/*.texi: Likewise.
11766 2017-07-05  Bruno Haible  <bruno@clisp.org>
11768         sched: Fix build failure on native Windows (regression from 2017-06-19).
11769         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
11771 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
11773         stdioext: Port to OpenVMS.
11774         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
11775         * lib/fpending.c (fpending): Remove non-working VMS specific code.
11776         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
11777         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
11778         * lib/fpurge.c (fpurge): Likewise.
11779         * lib/freadable.c (freadable): Likewise.
11780         * lib/freadahead.c (freadahead): Likewise.
11781         * lib/freading.c (freading): Likewise.
11782         * lib/freadptr.c (freadptr): Likewise.
11783         * lib/freadseek.c (freadseek): Likewise.
11784         * lib/fseeko.c (fseeko): Likewise.
11785         * lib/fseterr.c (fseterr): Likewise.
11786         * lib/fwritable.c (fwriteable): Likewise.
11787         * lib/fwriting.c (fwriting): Likewise.
11789 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
11791         glob: Declare variables at the very start of their scope.
11792         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
11793         its separate scope, so the functions will compile on Haiku.
11795 2017-07-01  Bruno Haible  <bruno@clisp.org>
11797         logbl: Work around a glibc bug on PowerPC64LE.
11798         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
11799         numbers.
11800         * doc/posix-functions/logbl.texi: Update.
11802 2017-06-29  Bruno Haible  <bruno@clisp.org>
11804         stat, fstat: Compile stat-w32.c only on platforms that need it.
11805         Suggested by Paul Eggert.
11806         * modules/stat (configure.ac): Request stat-w32.o only on native
11807         Windows.
11808         * modules/fstat (configure.ac): Likewise.
11810 2017-06-25  Bruno Haible  <bruno@clisp.org>
11812         stat: Improve last change.
11813         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
11815 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11817         stat: port to xlc 12.01
11818         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
11819         12.01 complains "Compilation unit is empty."
11821 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
11823         xalloc-oversized: port to icc
11824         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
11825         __builtin_mul_overflow if ICC is defined, as this results in
11826         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
11827         20170213.
11829 2017-06-19  Bruno Haible  <bruno@clisp.org>
11831         classpath: Avoid including config.h twice, as it produces warnings.
11832         Reported by John E. Malmberg <wb8tyw@gmail.com>.
11833         * lib/classpath.h: Conditionalize the include of config.h.
11835 2017-06-19  Bruno Haible  <bruno@clisp.org>
11836             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
11838         sched: Fix compilation failure on OpenVMS.
11839         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
11840         test whether <pthread.h> exists and defines struct sched_param.
11841         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
11843 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
11845         diffseq: port to GCC 7 with --enable-gcc-warnings
11846         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
11847         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
11848         not complain about big_snake being defined but not used.
11850 2017-06-15  Bruno Haible  <bruno@clisp.org>
11852         gettext-h: Update theoretical condition for use of variable size arrays.
11853         Reported by Paul Eggert.
11854         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
11855         to include the theoretical condition for availability of variable size
11856         arrays, if we could trust the value of __STDC_VERSION__.
11858 2017-06-12  Bruno Haible  <bruno@clisp.org>
11860         Relicense some modules under LGPLv2+.
11861         Daiki Ueno's approval is in
11862         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
11863         * modules/uniwidth/base (License): Change to LGPLv2+.
11864         * modules/uniwidth/width (License): Likewise.
11866 2017-06-11  Bruno Haible  <bruno@clisp.org>
11868         localename: Fix test failure on DragonFly BSD.
11869         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
11870         like FreeBSD.
11872 2017-06-11  Bruno Haible  <bruno@clisp.org>
11874         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
11875         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
11876         * lib/float.in.h: Likewise.
11877         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
11879 2017-06-11  Bruno Haible  <bruno@clisp.org>
11881         gnulib-tool: Clean up after autotools.
11882         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
11883         useless directory left over by the Autotools.
11885 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
11887         getopt-posix: port to glibc 2.25.90
11888         Problem reported by Daniel P. Berrange in:
11889         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
11890         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
11891         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
11892         #undef if __GETOPT_PREFIX is defined.
11894 2017-06-11  Bruno Haible  <bruno@clisp.org>
11896         strtod-obsolete: Fix license.
11897         * modules/strtod-obsolete (License): Change to LGPL.
11899 2017-06-10  Jim Meyering  <meyering@fb.com>
11901         maint: update to work with GCC7's -Werror=implicit-fallthrough=
11902         * lib/savewd.c (FALLTHROUGH): Define.
11903         (savewd_save, savewd_restore): Use this, rather than a comment,
11904         whenever one switch case falls through into the next.
11906 2017-06-08  Bruno Haible  <bruno@clisp.org>
11908         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
11909         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
11910         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
11911         case.
11913 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
11915         doc: remove robots, add prereqs
11916         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
11917         builds.  Simon's robot site does not seem to be up, so remove
11918         mentions of it for now.
11920 2017-06-08  Bruno Haible  <bruno@clisp.org>
11922         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
11923         * gnulib-tool (func_symlink_target): New function, extracted from
11924         func_symlink.
11925         (func_symlink, func_symlink_if_changed): Use it.
11927 2017-06-08  Bruno Haible  <bruno@clisp.org>
11929         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
11930         * gnulib-tool (func_ln_s): Determine cp_src correctly.
11932 2017-06-07  Bruno Haible  <bruno@clisp.org>
11934         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
11935         Reported by John E. Malmberg <wb8tyw@gmail.com> in
11936         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
11937         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
11938         override, pass 2 arguments to getcwd, not 3.
11940 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
11942         same-inode: port better to VMS 8.2 and later
11943         Problem reported by John E. Malmberg in:
11944         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
11945         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
11946         Use the usual POSIX definition.
11947         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
11949 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
11951         error: fix POSIX violation for va_end
11952         Problem reported by Bruno Haible in:
11953         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
11954         * lib/error.c (error_tail): Do not call va_end here.
11955         (error, error_at_line): Call it here instead.
11957 2017-05-28  Bruno Haible  <bruno@clisp.org>
11959         c-strtod: Make it usable in C++ mode.
11960         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
11962 2017-05-25  Jim Meyering  <meyering@fb.com>
11964         quotearg: fix compilation failure due to FALLTHROUGH misuse
11965         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
11966         macro back to /* fall through */ comment.  The macro can apply only
11967         to a following case statement.  Reported by Assaf Gordon.
11969 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
11971         intprops: port to recent icc
11972         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
11973         but does not support __builtin_add_overflow etc.
11974         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
11975         Define to 0.
11977 2017-05-23  Karl Berry  <karl@freefriends.org>
11979         * config/srclist.txt (iconv.m4): sync broken, comment out
11980         until (hopefully) the next gettext release.
11982 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
11984         Remove repeated words in comments.
11986 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
11988         fallthrough: reinstate a FALLTHROUGH instance in quotearg
11989         quotearg.c: Reinstate this instance which is significant
11990         when the if branch is not taken.
11992 2017-05-21  Bruno Haible  <bruno@clisp.org>
11994         gnulib-tool: Add options to create hard links.
11995         * gnulib-tool (func_usage): Document options --hardlink,
11996         --local-hardlink, --more-hardlinks.
11997         (func_symlink): Renamed from func_ln.
11998         (func_symlink_if_changed): Renamed from func_ln_if_changed.
11999         (func_hardlink): New function.
12000         (copymode, lcopymode): New variables.
12001         (symbolic, lsymbolic): Remove variables.
12002         (Options): Implement options --hardlink, --local-hardlink,
12003         --more-hardlinks.
12004         (func_should_link): Renamed from func_should_symlink. Set copyaction.
12005         (func_add_file, func_update_file): Update invocation of
12006         func_should_link. Invoke func_hardlink when appropriate.
12007         (func_import): Update comments.
12008         (func_create_testdir): Update invocation of func_should_link. Invoke
12009         func_hardlink when appropriate.
12010         Finally, invoke 'git update-index --refresh' to mitigate the effects of
12011         the hard links on git.
12013 2017-05-20  Bruno Haible  <bruno@clisp.org>
12015         argp: Simplify bit manipulation.
12016         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
12017         on a signed integer type.
12019 2017-05-20  Bruno Haible  <bruno@clisp.org>
12021         Avoid wrong configure results with gcc -fsanitize=address.
12022         This completes the work done on 2016-02-06 on this topic.
12023         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
12024         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12025         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12026         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12027         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
12028         returning.
12029         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
12030         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
12031         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12032         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
12033         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
12034         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
12035         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
12036         free allocated memory before returning.
12037         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12038         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
12039         objects before returning.
12040         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
12041         returning.
12043 2017-05-20  Bruno Haible  <bruno@clisp.org>
12045         gnulib-tool: Don't create hard links between gnulib and its testdirs.
12046         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
12048 2017-05-20  Bruno Haible  <bruno@clisp.org>
12050         argp, tsearch tests: Fix file list.
12051         * modules/argp-tests (Files): Add tests/macros.h.
12052         * modules/tsearch-tests (Files): Likewise.
12054 2017-05-20  Bruno Haible  <bruno@clisp.org>
12056         getopt-posix tests: Remove redundant include.
12057         * tests/test-getopt.h: Don't include "macros.h". It's already included
12058         by tests/test-getopt-main.h.
12060 2017-05-19  Jim Meyering  <meyering@fb.com>
12062         dfa: two small simplifications
12063         * lib/dfa.c (build_state): Avoid repeating longer expressions.
12065 2017-05-18  Jim Meyering  <meyering@fb.com>
12067         fallthrough: update for GCC 7/8
12068         * lib/quotearg.c (FALLTHROUGH): New macro.
12069         Use it whenever one switch case falls through into the next,
12070         replacing "/* Fall through */" comments.  This exposed one
12071         instance of an unwarranted "fall through" comment: unwarranted
12072         because it preceded a "goto" label not a case statement.
12073         * lib/freopen-safer.c (freopen_safer): Likewise.
12074         * lib/fts.c (leaf_optimization_applies): Likewise.
12075         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
12076         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
12077         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
12078         tests/macros.h for the definition.
12079         * tests/test-argp.c (group1_parser): Likewise.
12080         * tests/test-getopt.h (getopt_loop): Likewise.
12082 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12084         argp: fix shift bug
12085         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
12086         behavior on shift overflow, caught by gcc -fsanitize=undefined.
12088         argp: fix pointer-subtraction bug
12089         * lib/argp-help.c (hol_append): Don’t subtract pointers to
12090         different arrays, as this can run afoul of -fcheck-pointer-bounds.
12091         See the thread containing Bruno Haible’s report in:
12092         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
12094 2017-05-19  Bruno Haible  <bruno@clisp.org>
12096         printf-posix tests: Avoid test failure with "gcc --coverage".
12097         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
12098         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
12099         than 5000000.
12100         * tests/test-fprintf-posix2.c (main): Likewise.
12102 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12104         closeout: don’t close stderr when sanitizing
12105         * NEWS: Document this.
12106         * lib/closeout.c (__has_feature): New macro, if not already defined.
12107         (SANITIZE_ADDRESS): New constant.
12108         (close_stdout): Don’t close stderr if sanitizing addresses.
12110 2017-05-19  Bruno Haible  <bruno@clisp.org>
12112         get-rusage-data tests: Avoid failure on Linux/glibc.
12113         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
12114         on glibc systems.
12116 2017-05-18  Bruno Haible  <bruno@clisp.org>
12118         localename: Include necessary header files on Cygwin.
12119         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
12120         where NL_LOCALE_NAME is defined.
12122 2017-05-18  Bruno Haible  <bruno@clisp.org>
12124         gettext: Update macros from gettext git.
12125         * m4/intldir.m4: Require Autoconf >= 2.60.
12126         * m4/progtest.m4: Fix typos in copyright notice.
12128 2017-05-18  Bruno Haible  <bruno@clisp.org>
12130         copy-file tests: Fix link error (regression from 2017-05-01).
12131         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12132         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
12133         $(LIB_CLOCK_GETTIME).
12135 2017-05-18  Bruno Haible  <bruno@clisp.org>
12137         unicase/special-casing: Fix incompatibility with gperf-3.0.4
12138         (regression from 2017-02-13).
12139         * lib/unicase/special-casing.in.h: Renamed from
12140         lib/unicase/special-casing.h.
12141         * modules/unicase/special-casing (Files): Add
12142         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
12143         (Makefile.am): Add rule for generating unicase/special-casing.h.
12144         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
12145         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
12146         not "special-casing.h".
12147         * lib/unicase/u*.c: Likewise.
12149 2017-05-17  Bruno Haible  <bruno@clisp.org>
12151         README: Don't ask people to read a TeXinfo file.
12152         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
12153         * README: Tell people how to read the HTML formatted manual.
12155 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
12157         parse-datetime: Fix memleak
12158         * lib/parse-datetime.y (parse_datetime2): Cleanup on
12159         localtime_rz() failure.
12161 2017-05-16  Bruno Haible  <bruno@clisp.org>
12163         javacomp: Fix handle leak.
12164         Found by Coverity.
12165         * lib/javacomp.c (get_classfile_version): Close fd before returning.
12167 2017-05-16  Bruno Haible  <bruno@clisp.org>
12169         relocate: Make it easier to reclaim allocated memory.
12170         * lib/relocatable.h (relocate2): New declaration/macro.
12171         * lib/relocatable.c (relocate2): New function.
12172         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
12173         relocate2 function.
12174         * lib/localcharset.c (relocate2): Define fallback.
12175         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
12176         allocated memory.
12177         * lib/javaversion.c (relocate2): Define fallback.
12178         (javaexec_version): Invoke relocate2 instead of relocate. Free the
12179         allocated memory.
12181 2017-05-16  Bruno Haible  <bruno@clisp.org>
12183         relocate: Simplify EMX specific code.
12184         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
12185         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
12187 2017-05-16  Bruno Haible  <bruno@clisp.org>
12189         sigpipe tests: Fix file list.
12190         * modules/sigpipe-tests (Files): Add tests/macros.h.
12192 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12194         manywarnings: update for GCC 7
12195         * build-aux/gcc-warning.spec:
12196         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
12197         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
12198         requires a non-comment fallthrough attribute.  This is a bit
12199         cleaner than the comment versions.
12200         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
12201         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
12202         Use it whenever one switch case falls through into the next.
12203         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
12204         Use FALLTHROUGH macro.
12206 2017-05-15  Bruno Haible  <bruno@clisp.org>
12208         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
12209         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
12210         @ALLOCA@, not @LTALLOCA@.
12212 2017-05-15  Bruno Haible  <bruno@clisp.org>
12214         sys_select: Avoid "was expanded before it was required" warning.
12215         * modules/sys_select (configure.ac): Require, not invoke,
12216         gl_HEADER_SYS_SELECT.
12218 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
12220         gnulib-tool: improve GNU Make debugging
12221         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
12222         Report autoconf diagnostics when it fails, in the output makefile.
12224 2017-05-14  Bruno Haible  <bruno@clisp.org>
12226         stat-time tests: Improve comment.
12227         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
12229 2017-05-14  Bruno Haible  <bruno@clisp.org>
12231         same-inode: Adapt for windows-stat-inodes.
12232         * lib/same-inode.h: Include <sys/types.h>.
12233         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
12234         * modules/same-inode (Depends-on): Add sys_types.
12236 2017-05-14  Bruno Haible  <bruno@clisp.org>
12238         windows-stat-inodes: New module.
12239         * m4/windows-stat-inodes.m4: New file.
12240         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
12241         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
12242         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
12243         (_GL_WINDOWS_STAT_INODES): New macro.
12244         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
12245         (GetFileInformationByHandleExFunc): New variable.
12246         (initialize): Initialize it.
12247         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
12248         st_ino appropriately.
12249         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
12250         a fallback, because it does not provide st_dev and st_ino values.
12251         * modules/fstat (Depends-on): Add 'verify'.
12252         * modules/windows-stat-inodes: New file.
12253         * doc/windows-stat-inodes.texi: New file.
12254         * doc/gnulib.texi: Include it.
12255         * doc/posix-headers/sys_stat.texi: Mention the new module.
12257 2017-05-14  Bruno Haible  <bruno@clisp.org>
12259         stat-time tests: Workaround for native Windows.
12260         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
12261         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
12262         New variables.
12263         (initialize_filenames): New function.
12264         (main): Invoke it.
12265         (cleanup, prepare_test): Update.
12267 2017-05-14  Bruno Haible  <bruno@clisp.org>
12269         stat-time: Adapt for windows-stat-timespec.
12270         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
12271         entire st_ctim field.
12273 2017-05-13  Jim Meyering  <meyering@fb.com>
12275         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
12276         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
12277         file that uses the assume macro, claiming that verify.h is unused.
12279 2017-05-13  Bruno Haible  <bruno@clisp.org>
12281         Use symbolic values for _WIN32_WINNT.
12282         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
12283         * lib/sethostname.c (_WIN32_WINNT): Likewise.
12285 2017-05-13  Bruno Haible  <bruno@clisp.org>
12287         year2038: New module.
12288         * m4/year2038.m4: New file.
12289         * modules/year2038: New file.
12290         * doc/year2038.texi: New file.
12291         * doc/gnulib.texi: Include it.
12293 2017-05-13  Bruno Haible  <bruno@clisp.org>
12295         largefile: Simplify.
12296         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
12297         of _GL_WINDOWS_64_BIT_ST_SIZE.
12299 2017-05-13  Bruno Haible  <bruno@clisp.org>
12301         largefile: Improve and document.
12302         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
12303         the mingw headers already define 'stat' appropriately.
12304         * modules/largefile (Description): Clarify.
12305         * doc/largefile.texi: New file.
12306         * doc/gnulib.texi: Include it.
12307         * doc/posix-headers/sys_types.texi: Update.
12309 2017-05-13  Bruno Haible  <bruno@clisp.org>
12311         truncate: New module.
12312         * lib/unistd.in.h (truncate): New declaration.
12313         * lib/truncate.c: New file.
12314         * m4/truncate.m4: New file.
12315         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
12316         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
12317         REPLACE_TRUNCATE.
12318         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
12319         HAVE_TRUNCATE, REPLACE_TRUNCATE.
12320         * modules/truncate: New file.
12321         * tests/test-unistd-c++.cc (truncate): Test signature.
12322         * doc/posix-functions/truncate.texi: Mention the new module.
12324         * tests/test-truncate.c: New file.
12325         * modules/truncate-tests: New file.
12327 2017-05-13  Bruno Haible  <bruno@clisp.org>
12329         windows-stat-timespec: New module.
12330         * modules/windows-stat-timespec: New file.
12331         * m4/windows-stat-timespec.m4: New file.
12332         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
12333         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
12334         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
12335         fields st_atim, st_mtim, st_ctim.
12336         (st_atime, st_mtime, st_ctime): Define as macros.
12337         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
12338         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
12339         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
12340         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
12341         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
12342         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
12343         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
12344         FILETIME to 'struct timespec', not 'time_t'.
12345         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
12346         FILETIME to 'struct timespec', not 'time_t'.
12347         * lib/stat-time.h (STAT_TIMESPEC): Define also if
12348         _GL_WINDOWS_STAT_TIMESPEC.
12349         * doc/windows-stat-timespec.texi: New file.
12350         * doc/gnulib.texi: Include it.
12352 2017-05-13  Bruno Haible  <bruno@clisp.org>
12354         windows-stat-override: New module.
12355         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
12356         definition. Define GNULIB_defined_struct_stat.
12357         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
12358         link error if this symbol is used and the corresponding module is not
12359         in use.
12360         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
12361         GNULIB_OVERRIDES_STRUCT_STAT.
12362         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
12363         GNULIB_OVERRIDES_STRUCT_STAT.
12364         * modules/sys_stat (Makefile.am): Substitute
12365         GNULIB_OVERRIDES_STRUCT_STAT.
12366         * modules/windows-stat-override: New file.
12368 2017-05-13  Bruno Haible  <bruno@clisp.org>
12370         fstat: Fix module dependency conditions.
12371         * modules/fstat (Depends-on): Fix typo.
12373 2017-05-13  Bruno Haible  <bruno@clisp.org>
12375         stat, fstat: Complete removal of old native Windows code.
12376         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
12377         * lib/fstat.c: Likewise.
12378         * lib/stat-w32.c: Likewise.
12380 2017-05-13  Bruno Haible  <bruno@clisp.org>
12382         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
12383         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
12385 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
12387         getopt-posix: port to mingw
12388         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
12389         Problem reported by Daniel P. Berrage in:
12390         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
12392 2017-05-11  Bruno Haible  <bruno@clisp.org>
12394         gettimeofday: Increase precision on mingw.
12395         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
12396         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
12397         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
12398         GetSystemTimePreciseAsFileTime based implementation always.
12399         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
12400         mingw.
12402 2017-05-11  Bruno Haible  <bruno@clisp.org>
12404         poll: Fix confusion between SOCKETs and FDs on native Windows.
12405         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
12406         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
12408 2017-05-11  Bruno Haible  <bruno@clisp.org>
12410         doc: Clarify doc about socket functions on native Windows.
12411         This reworks doc that was added on 2008-09-29.
12412         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
12413         clearer wording.
12414         * doc/posix-functions/accept.texi: Use clearer wording.
12415         * doc/posix-functions/bind.texi: Likewise.
12416         * doc/posix-functions/connect.texi: Likewise.
12417         * doc/posix-functions/getpeername.texi: Likewise.
12418         * doc/posix-functions/getsockname.texi: Likewise.
12419         * doc/posix-functions/getsockopt.texi: Likewise.
12420         * doc/posix-functions/ioctl.texi: Likewise.
12421         * doc/posix-functions/listen.texi: Likewise.
12422         * doc/posix-functions/recv.texi: Likewise.
12423         * doc/posix-functions/recvfrom.texi: Likewise.
12424         * doc/posix-functions/send.texi: Likewise.
12425         * doc/posix-functions/sendto.texi: Likewise.
12426         * doc/posix-functions/setsockopt.texi: Likewise.
12427         * doc/posix-functions/shutdown.texi: Likewise.
12428         * doc/posix-functions/socket.texi: Likewise.
12430 2017-05-10  Bruno Haible  <bruno@clisp.org>
12432         poll: Fix link error on native Windows.
12433         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
12435 2017-05-10  Bruno Haible  <bruno@clisp.org>
12437         time: Fix missing initialization of HAVE_TIMEZONE_T.
12438         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
12439         here...
12440         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
12441         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
12442         gl_HEADER_SYS_TIME_H_DEFAULTS.
12443         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
12444         (configure.ac): Remove useless quoting.
12446 2017-05-10  Bruno Haible  <bruno@clisp.org>
12448         Implement a way to opt out from MSVC support, part 2.
12449         * modules/msvc-inval (Include): Document recommended idiom.
12450         * modules/msvc-nothrow (Include): Likewise.
12452         Implement a way to opt out from MSVC support.
12453         This is useful for Emacs.
12454         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
12455         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
12456         * lib/error.c: Likewise.
12457         * lib/fcntl.c: Likewise.
12458         * lib/flock.c: Likewise.
12459         * lib/fstat.c: Likewise.
12460         * lib/fsync.c: Likewise.
12461         * lib/ioctl.c: Likewise.
12462         * lib/isapipe.c: Likewise.
12463         * lib/lseek.c: Likewise.
12464         * lib/nonblocking.c: Likewise.
12465         * lib/poll.c: Likewise.
12466         * lib/select.c: Likewise.
12467         * lib/sockets.h: Likewise.
12468         * lib/sockets.c: Likewise.
12469         * lib/stdio-read.c: Likewise.
12470         * lib/stdio-write.c: Likewise.
12471         * lib/utimens.c: Likewise.
12472         * lib/w32sock.h: Likewise.
12473         * lib/w32spawn.h: Likewise.
12474         * tests/test-cloexec.c: Likewise.
12475         * tests/test-dup-safer.c: Likewise.
12476         * tests/test-dup2.c: Likewise.
12477         * tests/test-dup3.c: Likewise.
12478         * tests/test-fcntl.c: Likewise.
12479         * tests/test-pipe.c: Likewise.
12480         * tests/test-pipe2.c: Likewise.
12481         * lib/ftruncate.c: Likewise.
12482         (chsize_nothrow): Renamed from chsize.
12483         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
12484         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
12485         * lib/close.c: Likewise.
12486         * lib/dup.c: Likewise.
12487         * lib/fclose.c: Likewise.
12488         * lib/raise.c: Likewise.
12489         * tests/test-fgetc.c: Likewise.
12490         * tests/test-fputc.c: Likewise.
12491         * tests/test-fread.c: Likewise.
12492         * tests/test-fwrite.c: Likewise.
12493         * lib/getdtablesize.c: Likewise.
12494         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
12495         * lib/isatty.c: Don't include msvc-inval.h if
12496         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
12497         Include <io.h> as an alternative to msvc-nothrow.h.
12498         * lib/read.c: Likewise.
12499         * lib/write.c: Likewise.
12500         * lib/dup2.c: Likewise.
12501         (dup2_nothrow): New function.
12502         (ms_windows_dup2): Use it.
12503         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
12504         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
12505         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
12506         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
12507         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
12508         * m4/read.m4 (gl_FUNC_READ): Likewise.
12509         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
12510         * doc/windows-without-msvc.texi: New file.
12511         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
12512         section.
12514 2017-05-10  Bruno Haible  <bruno@clisp.org>
12516         wait-process: Adjust native Windows support.
12517         * lib/wait-process.c: Use the usual condition for recognizing a native
12518         Windows platform.
12520 2017-05-10  Bruno Haible  <bruno@clisp.org>
12522         doc: New chapter "Native Windows Support".
12523         * doc/gnulib.texi (Native Windows Support): New chapter.
12524         * doc/windows-libtool.texi: Small wording changes.
12525         * doc/windows-sockets.texi: Small wording and formatting changes.
12527 2017-05-10  Bruno Haible  <bruno@clisp.org>
12529         doc: Move section "Library version handling".
12530         * doc/gnulib.texi: Move section "Library version handling"
12531         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
12533 2017-05-10  Bruno Haible  <bruno@clisp.org>
12535         doc: Move section "Running self-tests under valgrind".
12536         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
12537         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
12539 2017-05-10  Bruno Haible  <bruno@clisp.org>
12541         doc: New chapter "Build Infrastructure Modules".
12542         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
12544 2017-05-10  Bruno Haible  <bruno@clisp.org>
12546         Prepare for reordering sections in the manual.
12547         * doc/gnulib.texi: Move several sections to separate files. Include
12548         these files.
12549         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
12550         * doc/obsolete.texi: Likewise.
12551         * doc/extra-tests.texi: Likewise.
12552         * doc/transversal.texi: Likewise.
12553         * doc/namespace.texi: Likewise.
12554         * doc/check-version.texi: Likewise.
12555         * doc/windows-sockets.texi: Likewise.
12556         * doc/windows-libtool.texi: Likewise.
12557         * doc/licenses-texi.texi: Likewise.
12558         * doc/build-automation.texi: Likewise.
12559         * doc/c-locale.texi: Likewise.
12561 2017-05-10  Bruno Haible  <bruno@clisp.org>
12563         Fix instructions how to update manual on www.gnu.org.
12564         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
12566 2017-05-09  Bruno Haible  <bruno@clisp.org>
12568         tzset: Expand comment about TZ problem on native Windows.
12569         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
12570         Paul Eggert.
12571         * lib/ctime.c (rpl_ctime): Likewise.
12572         * lib/localtime.c (rpl_localtime): Likewise.
12573         * lib/mktime.c (mktime): Likewise.
12574         * lib/strftime-fixes.c (rpl_strftime): Likewise.
12575         * lib/wcsftime.c (rpl_wcsftime): Likewise.
12577 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12579         intprops: don’t depend on ‘verify’
12580         Problem reported by Ævar Arnfjörð Bjarmason in:
12581         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
12582         * lib/intprops.h: Do not include verify.h, and move compile-time
12583         checks from here ...
12584         * tests/test-intprops.c (main): ... to here, if they’re not here
12585         already.  Check widths of other standard integer types.
12586         * modules/intprops (Depends-on): Remove ‘verify’.
12588 2017-05-07  Bruno Haible  <bruno@clisp.org>
12590         utimens: On native Windows, support 100ns resolution also if fd < 0.
12591         * lib/utime.in.h: Include <time.h>.
12592         (_gl_utimens_windows): New declaration.
12593         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
12594         (utime): Invoke it.
12595         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
12596         instead of utime.
12597         * modules/utime (Depends-on): Add 'time'.
12599 2017-05-07  Bruno Haible  <bruno@clisp.org>
12601         utimens: Improve error code on native Windows.
12602         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
12603         error code EACCES, not EINVAL.
12605 2017-05-07  Bruno Haible  <bruno@clisp.org>
12607         utime: Handle more Windows error codes.
12608         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
12609         Based on explanations by Billy O'Neal.
12611 2017-05-05  Bruno Haible  <bruno@clisp.org>
12613         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
12614         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
12615         union.
12616         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
12617         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
12618         value of cipher->IV.
12620 2017-05-05  Bruno Haible  <bruno@clisp.org>
12622         wctype-h-c++-tests: Update.
12623         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
12625 2017-05-05  Bruno Haible  <bruno@clisp.org>
12627         wchar-c++-tests: Update.
12628         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
12630 2017-05-05  Bruno Haible  <bruno@clisp.org>
12632         utime-h-c++-tests: New module.
12633         * tests/test-utime-h-c++.cc: New file.
12634         (utime): Declare, missing since 2017-04-30.
12635         * modules/utime-h-c++-tests: New file.
12637 2017-05-05  Bruno Haible  <bruno@clisp.org>
12639         unistd-c++-tests: Update.
12640         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
12641         (read): Declare, missing since 2011-04-15.
12642         (sethostname): Declare, missing since 2011-12-03.
12644 2017-05-05  Bruno Haible  <bruno@clisp.org>
12646         time-c++-tests: Update.
12647         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
12648         (localtime, gmtime): Declare, missing since 2017-04-30.
12649         (ctime): Declare, missing since 2017-04-30.
12650         (strftime): Declare, missing since 2017-04-30.
12651         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
12652         2015-07-24.
12654 2017-05-05  Bruno Haible  <bruno@clisp.org>
12656         sys_resource-c++-tests: New module.
12657         * tests/test-sys_resource-c++.cc: New file.
12658         (getrusage): Declare, missing since 2012-04-13.
12659         * modules/sys_resource-c++-tests: New file.
12661 2017-05-05  Bruno Haible  <bruno@clisp.org>
12663         strings-c++-tests: New module.
12664         * tests/test-strings-c++.cc: New file.
12665         (ffs): Declare, missing since 2011-07-12.
12666         * modules/strings-c++-tests: New file.
12668 2017-05-05  Bruno Haible  <bruno@clisp.org>
12670         string-c++-tests: Update.
12671         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
12672         (ffsll): Declare, missing since 2011-07-15.
12674 2017-05-05  Bruno Haible  <bruno@clisp.org>
12676         stdlib-c++-tests: Update.
12677         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
12678         2011-10-18.
12679         (ptsname_r): Declare, missing since 2011-11-07.
12680         (qsort_r): Declare, missing since 2014-08-29.
12681         (random, srandom, initstate, setstate): Declare, missing since
12682         2012-01-14.
12683         (secure_getenv): Declare, missing since 2013-02-05.
12685 2017-05-05  Bruno Haible  <bruno@clisp.org>
12687         stdio-c++-tests: Update.
12688         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
12690 2017-05-05  Bruno Haible  <bruno@clisp.org>
12692         signal-h-c++-tests: Update.
12693         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
12695 2017-05-05  Bruno Haible  <bruno@clisp.org>
12697         math-c++-tests: Update.
12698         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
12699         (fma): Declare, missing since 2011-10-17.
12700         (fmal): Declare, missing since 2011-10-17.
12702 2017-05-05  Bruno Haible  <bruno@clisp.org>
12704         locale-c++-tests: Update.
12705         * tests/test-locale-c++.cc (localeconv): Declare, missing since
12706         2012-03-25.
12708 2017-05-05  Bruno Haible  <bruno@clisp.org>
12710         inttypes-c++-tests: New module.
12711         * tests/test-inttypes-c++.cc: New file.
12712         (strtoimax): Declare, missing since 2012-01-05.
12713         (strtoumax): Declare, missing since 2012-01-05.
12714         * modules/inttypes-c++-tests: New file.
12716 2017-05-05  Bruno Haible  <bruno@clisp.org>
12718         dirent-c++-tests: Update.
12719         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
12720         (rewinddir): Declare, missing since 2011-09-13.
12721         (dirfd): Declare, missing since 2010-03-08.
12723 2017-05-04  Bruno Haible  <bruno@clisp.org>
12725         argp: Fix mistake in 2017-04-23 commit.
12726         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
12727         assume that strerror_r returns 'int', not 'char *'.
12729 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
12731         argp: Fix typo.
12732         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
12734 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
12736         utimens: port to Emacs + MS-Windows
12737         Skip the new MS-Windows-specific code if Emacs.
12738         * lib/utimens.c [EMACS_CONFIGUATION]:
12739         Avoid new MS-Windows-specific code.
12740         (USE_SETFILETIME): New macro.
12741         (fdutimens): Use it.
12743 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12745         tzset: update doc for TZ problems on MS-Windows
12746         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
12747         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
12748         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
12749         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
12750         * doc/posix-functions/wcsftime.texi:
12751         Mention some issues with TZ under MS-Windows.
12753 2017-05-01  Bruno Haible  <bruno@clisp.org>
12755         copy-file: Fix build error on mingw.
12756         * modules/copy-file (Depends-on): Add 'close'.
12758 2017-05-01  Bruno Haible  <bruno@clisp.org>
12760         tzset: Work around TZ problem on native Windows.
12761         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
12762         Windows, set REPLACE_TZSET to 1.
12763         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
12764         invoke '_tzset' instead of 'tzset'.
12765         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
12767         * modules/time_rz (Depends-on): Add tzset.
12768         * lib/time_rz.c (tzset): Remove fallback definition.
12769         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
12771 2017-05-01  Bruno Haible  <bruno@clisp.org>
12773         mktime: Fix dependencies.
12774         * modules/mktime (Depends-on): Add 'time'.
12776 2017-05-01  Bruno Haible  <bruno@clisp.org>
12778         New module 'localtime-buffer', split off from module 'gettimeofday'.
12779         * lib/localtime-buffer.h: New file.
12780         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
12781         * lib/time.in.h (tzset): New declaration.
12782         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
12783         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
12784         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
12785         moved to lib/localtime-buffer.c or lib/tzset.c.
12786         * m4/localtime-buffer.m4: New file.
12787         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
12788         HAVE_TZSET, REPLACE_TZSET.
12789         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
12790         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
12791         gl_LOCALTIME_BUFFER_NEEDED.
12792         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
12793         since 2007-01-18.
12794         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
12795         tzset.
12796         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
12797         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
12798         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
12799         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
12800         * modules/localtime-buffer: New file.
12801         * modules/time (Depends-on): Remove 'gettimeofday'.
12802         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
12803         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
12804         * modules/tzset (Description): Enable hyperlink to POSIX spec.
12805         (Files): Add lib/tzset.c.
12806         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
12807         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
12808         gl_TIME_MODULE_INDICATOR.
12809         * modules/gettimeofday (Depends-on): Add localtime-buffer.
12811 2017-05-01  Bruno Haible  <bruno@clisp.org>
12813         copy-file: Preserve sub-second time stamps.
12814         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
12815         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
12816         transport the time stamps from the original file to the destination
12817         file.
12818         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
12819         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
12820         utime-h.
12822 2017-05-01  Bruno Haible  <bruno@clisp.org>
12824         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
12825         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
12826         also on MSVC.
12827         Reported by Eli Zaretskii <eliz@gnu.org>.
12829 2017-05-01  Bruno Haible  <bruno@clisp.org>
12831         wchar: Fix compilation error with the original mingw.org mingw.
12832         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
12833         <stddef.h> instead.
12834         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
12835         gl_WCTYPE_H.
12836         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
12837         gl_TYPE_WINT_T_PREREQ instead.
12838         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
12839         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
12840         Reported by Eli Zaretskii <eliz@gnu.org>.
12842 2017-04-30  Bruno Haible  <bruno@clisp.org>
12844         utimecmp: Add support for native Windows.
12845         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
12847 2017-04-30  Bruno Haible  <bruno@clisp.org>
12849         utimens: Add support for native Windows.
12850         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
12851         (fdutimens): Provide a native Windows implementation, like utime.c with
12852         added tv_nsec support.
12853         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
12854         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
12856 2017-04-30  Bruno Haible  <bruno@clisp.org>
12858         wcsftime: New module.
12859         * lib/wchar.in.h (wcsftime): New declaration.
12860         * lib/wcsftime.c: New file.
12861         * m4/wcsftime.m4: New file.
12862         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
12863         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
12864         HAVE_WCSFTIME, REPLACE_WCSFTIME.
12865         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
12866         HAVE_WCSFTIME, REPLACE_WCSFTIME.
12867         * modules/wcsftime: New file.
12868         * doc/posix-functions/wcsftime.texi: Mention the new module.
12870 2017-04-30  Bruno Haible  <bruno@clisp.org>
12872         strftime-fixes: New module.
12873         * lib/time.in.h (strftime): New declaration.
12874         * lib/strftime-fixes.c: New file.
12875         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
12876         (gl_FUNC_STRFTIME): Remove macro.
12877         * m4/strftime-fixes.m4: New file.
12878         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
12879         REPLACE_STRFTIME.
12880         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
12881         REPLACE_STRFTIME.
12882         * modules/strftime-fixes: New file.
12883         * doc/posix-functions/strftime.texi: Mention the new module.
12885 2017-04-30  Bruno Haible  <bruno@clisp.org>
12887         mktime: Work around TZ problem on native Windows.
12888         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
12889         from the native Windows workaround.
12890         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
12891         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
12892         'guessing no'.
12893         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
12894         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
12895         NEED_MKTIME_WINDOWS.
12896         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
12897         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
12898         NEED_MKTIME_INTERNAL.
12899         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
12900         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
12901         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
12902         not REPLACE_MKTIME.
12903         * doc/posix-functions/mktime.texi: Mention the native Windows
12904         workaround.
12906 2017-04-30  Bruno Haible  <bruno@clisp.org>
12908         localtime: New module.
12909         * lib/time.in.h (localtime): Declare also if requested by module
12910         'localtime'.
12911         * lib/localtime.c: New file.
12912         * m4/localtime.m4: New file.
12913         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
12914         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
12915         * modules/localtime: New file.
12916         * doc/posix-functions/localtime.texi: Mention the new module.
12918 2017-04-30  Bruno Haible  <bruno@clisp.org>
12920         ctime: New module.
12921         * lib/time.in.h (ctime): New declaration.
12922         * lib/ctime.c: New file.
12923         * m4/ctime.m4: New file.
12924         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
12925         REPLACE_CTIME.
12926         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
12927         * modules/ctime: New file.
12928         * doc/posix-functions/ctime.texi: Mention the new module.
12930 2017-04-30  Bruno Haible  <bruno@clisp.org>
12932         gettimeofday: Provide higher resolution on native Windows.
12933         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
12934         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
12935         (initialize): Initialize it.
12936         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
12937         'struct timeval'. Don't use _ftime().
12938         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
12939         <sys/timeb.h> and _ftime.
12941 2017-04-30  Bruno Haible  <bruno@clisp.org>
12943         Document the problem with the Cygwin environment variable TZ.
12944         * doc/posix-functions/tzset.texi: Add note about TZ.
12945         * doc/posix-functions/ctime.texi: Likewise.
12946         * doc/posix-functions/localtime.texi: Likewise.
12947         * doc/posix-functions/mktime.texi: Likewise.
12948         * doc/posix-functions/strftime.texi: Likewise.
12949         * doc/posix-functions/wcsftime.texi: Likewise.
12950         * doc/pastposix-functions/ftime.texi: Likewise.
12952 2017-04-30  Bruno Haible  <bruno@clisp.org>
12954         utime-tests: New module.
12955         * tests/test-utime.c: New file, based on tests/test-utimens.h.
12956         * tests/test-utimens-common.h: Include <sys/stat.h>.
12957         * modules/utime-tests: New file.
12959 2017-04-29  Bruno Haible  <bruno@clisp.org>
12961         utime: New module.
12962         * lib/utime.in.h: Add comment for snippets.
12963         (utime): New declaration.
12964         * lib/utime.c: New file.
12965         * m4/utime.m4: New file.
12966         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
12967         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
12968         REPLACE_UTIME.
12969         * modules/utime-h (Depends-on): Add snippets.
12970         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
12971         Insert snippets.
12972         * modules/utime: New file.
12973         * doc/posix-functions/utime.texi: Mention the new module.
12975 2017-04-29  Bruno Haible  <bruno@clisp.org>
12977         utime-h: Modernize handling of 'struct utimbuf'.
12978         * lib/utime.in.h: Include next <utime.h> if it exists.
12979         (utimbuf): Define to _utimbuf on native Windows.
12980         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
12981         Set UTIME_H on native Windows.
12982         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
12983         * modules/utime-h (Depends-on): Add include_next.
12984         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
12985         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
12987         * lib/utimens.c (utimbuf): Remove fallback definition.
12988         * m4/utimens.m4 (gl_UTIMENS): Don't require
12989         gl_CHECK_TYPE_STRUCT_UTIMBUF.
12990         * m4/utimbuf.m4: Remove file.
12991         * modules/utimens (Files): Remove m4/utimbuf.m4.
12993 2017-04-29  Bruno Haible  <bruno@clisp.org>
12995         Make use of module 'utime-h'.
12996         * modules/copy-file (Depends-on): Add utime-h.
12997         * lib/copy-file.c: Assume that <utime.h> exists.
12998         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
13000         * modules/utimens (Depends-on): Add utime-h.
13001         * lib/utimens.c: Assume that <utime.h> exists.
13003 2017-04-29  Bruno Haible  <bruno@clisp.org>
13005         utime-h: New module.
13006         * m4/utime_h.m4: New file.
13007         * lib/utime.in.h: New file.
13008         * modules/utime-h: New file.
13009         * doc/posix-headers/utime.texi: Mention the new module.
13011         * tests/test-utime-h.c: New file.
13012         * modules/utime-h-tests: New file.
13014 2017-04-30  Bruno Haible  <bruno@clisp.org>
13016         Fix a few typos.
13017         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
13018         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
13019         * doc/posix-functions/fstat.texi: Fix a plural typo.
13020         * doc/posix-functions/stat.texi: Likewise.
13021         * m4/include_next.m4: Update comments.
13023 2017-04-29  Bruno Haible  <bruno@clisp.org>
13025         error: Fix mistake in 2017-04-23 commit.
13026         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
13027         assume that strerror_r returns 'int', not 'char *'.
13029 2017-04-29  Bruno Haible  <bruno@clisp.org>
13031         stat: Fix time_t values and other problems on native Windows platforms.
13032         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
13033         implementations of stat().
13034         * lib/stat.c: Include filename.h instead of dosname.h. Include
13035         malloca.h, stat-w32.h.
13036         (is_unc_root): New function.
13037         (rpl_stat): New implementation for native Windows. Remove
13038         REPLACE_FUNC_STAT_DIR code.
13039         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
13040         Don't define REPLACE_FUNC_STAT_DIR.
13041         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
13042         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
13043         (Depends-on): Remove dosname. Add filename, malloca.
13044         (configure.ac): Also compile lib/stat-w32.c.
13046 2017-04-29  Bruno Haible  <bruno@clisp.org>
13048         fstat: Fix time_t values on native Windows platforms.
13049         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
13050         * lib/stat-w32.h: New file.
13051         * lib/stat-w32.c: New file.
13052         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
13053         stat-w32.h instead.
13054         (fstat_nothrow): Remove function.
13055         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
13056         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
13057         always.
13058         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
13059         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
13060         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
13061         (configure.ac): Also compile lib/stat-w32.c.
13063 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
13065         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
13066         Problem reported by Assaf Gordon and Gavin Smith in:
13067         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
13068         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
13069         #define this, too.
13071 2017-04-29  Bruno Haible  <bruno@clisp.org>
13073         strerror_r-posix: Fixes for MSVC 14.
13074         * lib/strerror_r.c: Include <stdarg.h>.
13075         (strerror_r): Provide error messages for errno values 100...140.
13076         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
13078 2017-04-28  Bruno Haible  <bruno@clisp.org>
13080         noreturn: New module.
13081         * lib/noreturn.h: New file.
13082         * modules/noreturn: New file.
13083         * tests/test-noreturn.c: New file.
13084         * modules/noreturn-tests: New file.
13085         * tests/test-noreturn-c++.cc: New file.
13086         * modules/noreturn-c++-tests: New file.
13088 2017-04-27  Bruno Haible  <bruno@clisp.org>
13090         wctype-h: Fix compilation error with the original mingw.org mingw.
13091         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
13092         HAVE_CRTDEFS_H.
13093         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
13094         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
13095         <stddef.h> instead.
13096         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
13098 2017-04-26  Pádraig Brady  <P@draigBrady.com>
13100         nap.h: Fix compilation on non windows platforms
13101         * tests/nap.h: Move misplaced endif.
13103 2017-04-26  Pádraig Brady  <P@draigBrady.com>
13104         and Paul Eggert  <eggert@cs.ucla.edu>
13106         time_rz: fix heap buffer overflow vulnerability
13107         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
13108         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
13109         whether there is enough buffer space available, thus avoiding
13110         the problematic promotion of signed to unsigned causing an invalid
13111         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
13112         the start of the buffer.
13113         * tests/test-parse-datetime.c (main): Add a test case written by
13114         Paul Eggert, which overwrites enough of the heap so that
13115         standard glibc will fail with "free(): invalid pointer"
13116         without the patch applied.
13118 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
13120         xalloc: add missing integer overflow check
13121         * lib/xalloc.h (x2nrealloc): Also check for multiplication
13122         overflow when P is null.
13124 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
13126         parse-datetime: make it standalone
13127         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
13128         (_GL_ATTRIBUTE_FORMAT): New macro.
13129         These are needed to get './gnulib-tool --test parse-datetime' to work.
13131 2017-04-23  Bruno Haible  <bruno@clisp.org>
13133         nap.h: Port to native Windows.
13134         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
13135         use nap_fd instead. On native Windows, close and reopen nap_fd.
13136         (nap_works): Don't compare the ctimes, because on native Windows, these
13137         are the creation times.
13138         (nap): Update.
13140 2017-04-23  Bruno Haible  <bruno@clisp.org>
13142         nap.h: Fix logic.
13143         * tests/nap.h (nap): Avoid signed integer overflow in loop.
13145 2017-04-23  Bruno Haible  <bruno@clisp.org>
13147         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
13148         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
13149         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
13150         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
13151         * lib/argp-help.c (__argp_failure): Likewise.
13153 2017-04-23  Bruno Haible  <bruno@clisp.org>
13155         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
13156         * m4/strerror_r.m4: Revert changes since 2016-10-16.
13157         * lib/strerror_r.c: Likewise.
13159 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
13161         Target a C99 subset, not a C89 subset
13162         For many years Gnulib has targeted C89 and has resisted using C99
13163         features, as some Gnulib-using programs still wanted to target
13164         C89.  As this no longer seems to be the case, relax the porting
13165         requirements to allow some C99 features.  This is merely a change
13166         to the documentation, to give other Gnulib developers a chance to
13167         weigh in on the topic.
13168         * doc/extern-inline.texi (extern inline):
13169         * doc/gnulib-readme.texi (Portability guidelines):
13170         * doc/gnulib-tool.texi (Initial import):
13171         * doc/gnulib.texi (Header files):
13172         Modernize to talk about C99 and C11 instead of C89 and C99.
13173         * doc/gnulib-readme.texi (Portability guidelines):
13174         Now a section, not merely a subsection, so that it
13175         can be split up.  Modernize a bit.
13176         (C language versions, C99 features assumed)
13177         (C99 features avoided):
13178         New sections.
13180 2017-04-23  Bruno Haible  <bruno@clisp.org>
13182         doc: New section "Modules that modify the way other modules work".
13183         * doc/gnulib.texi (Modules that modify the way other modules work): New
13184         section.
13186 2017-04-23  Bruno Haible  <bruno@clisp.org>
13188         stat-time: Update comments.
13189         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
13190         * tests/test-utimens-common.h: Add reference regarding st_ctime on
13191         Windows.
13193 2017-04-01  Bruno Haible  <bruno@clisp.org>
13195         glob: Fix more memory leaks.
13196         * lib/glob.c (glob): Free allocated memory before returning.
13197         Reported by Coverity via Tim Rühsen.
13199 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13201         poll: improve fast check for out-of-range NFD
13202         * lib/poll.c: Do not include intprops.h.
13203         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
13204         * modules/poll (Depends-on): Remove intprops.
13206         ftoastr: cite a newer paper
13207         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
13208         instead of Loitsch 2010.
13210 2017-04-22  Bruno Haible  <bruno@clisp.org>
13212         poll: Enable argument check also in the Windows implementation.
13213         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
13214         Reported by Paul Eggert.
13216 2017-04-22  Bruno Haible  <bruno@clisp.org>
13218         getlogin_r: Work around bug in Mac OS X 10.12.
13219         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
13220         bug.
13221         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
13222         given size minus 1, call getlogin_r a second time, on a larger buffer.
13223         * modules/getlogin_r (Depends-on): Add malloca.
13224         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
13226 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13228         parse-datetime: fix %z and prefer signed int
13229         %z problem reported by Pádraig Brady in:
13230         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
13231         While fixing it, I decided to prefer signed ints to size_t, as
13232         they are less error-prone (e.g., ubsan catches overflow).
13233         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
13234         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
13235         counts, since signed integers make for better debugging.
13236         (date): Don’t assume %z works in printf formats.
13237         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
13238         sizes of buffers known to be small, e.g., because we’re using snprintf.
13239         (parse_datetime2): Simplify call to debug_mktime_not_ok.
13241 2017-04-22  Bruno Haible  <bruno@clisp.org>
13243         *printf: Work around rounding bug on Mac OS X.
13244         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
13245         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
13246         Mac OS X and FreeBSD.
13247         * doc/glibc-functions/*printf.texi: Likewise.
13249 2017-04-22  Bruno Haible  <bruno@clisp.org>
13251         vasnprintf tests: Avoid warnings.
13252         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
13253         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
13254         test.
13256 2017-04-22  Bruno Haible  <bruno@clisp.org>
13258         sys_file tests: Avoid warning.
13259         * tests/test-sys_file.c (main): Add a default clause to the switch
13260         statement.
13262 2017-04-22  Bruno Haible  <bruno@clisp.org>
13264         sethostname: Update doc.
13265         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
13266         Mac OS X.
13268 2017-04-22  Bruno Haible  <bruno@clisp.org>
13270         quotearg tests: Avoid warnings.
13271         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
13272         false.
13274 2017-04-22  Bruno Haible  <bruno@clisp.org>
13276         poll: Enable argument check.
13277         * lib/poll.c: Include intprops.h.
13278         (poll): Check value of nfd correctly.
13279         * modules/poll (Depends-on): Add intprops.
13281 2017-04-22  Bruno Haible  <bruno@clisp.org>
13283         get-rusage-data: Avoid warnings on Mac OS X.
13284         * lib/get-rusage-data.c: On Mac OS X, don't define
13285         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
13286         (get_rusage_data) [Mac OS X]: Just return 0.
13288 2017-04-22  Bruno Haible  <bruno@clisp.org>
13290         xbinary-io: Fix build error.
13291         * modules/xbinary-io (Depends-on): Add gettext-h.
13292         * lib/xbinary-io.c: Include gettext.h and define _().
13293         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
13294         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
13296 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13298         parse-datetime: overflow and debug cleanups
13299         This long patch was triggered by this bug report from Ruediger Meier:
13300         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
13301         I fixed the bug he noted, then found some others nearby, and then
13302         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
13303         up some of the code to follow GNU standards while I was at it.
13304         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
13305         use c_isdigit.
13306         (EPOCH_YEAR): Remove; unused.
13307         (TM_YEAR_BASE): Now an enum rather than a macro.
13308         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
13309         time zone offset, since timezones now are in terms of seconds and
13310         not minutes.
13311         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
13312         appropriate.  Verify that intmax_t is wide enough.
13313         (time_overflow, time_zone_str): New functions, used to deal
13314         more reliably with overflow.
13315         (dbg_printf): Add printf attribute, to help catch integer width errors.
13316         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
13317         (%union, to_hour, yylex, parse_datetime2):
13318         Use intmax_t instead of long int and/or long_time_t.
13319         All uses changed.
13320         (DBGBUFSIZE): Move earlier.
13321         (relative_time, set_hhmmss, parser_control):
13322         Just use int for nanoseconds and for time zones; that’s wide enough.
13323         (parser_control): Use bool for members like year_seen that can
13324         be booleans instead of counters.  All uses changed.
13325         Remove debug_default_input_timezone; no longer needed.
13326         All uses removed.
13327         (apply_relative_time): Return a bool overflow flag.
13328         All uses changed to check for overflow.
13329         (apply_relative_time, zone, date, relunit, relunit_snumber)
13330         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
13331         Check for integer overflow portably.
13332         (str_days): Use just int for N, as it’s wide enough.
13333         Prefer 2D char arrays to arrays of char * when it looks like
13334         2D is a win on typical platforms.
13335         Prefer snprintf to strncpy/strncat, for simplicity;
13336         all buffers are smaller than INT_MAX so this is safe.
13337         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
13338         (debug_print_current_time): Don’t assume tv_nsec is of type long,
13339         as this is not true on x32.  Output "." before any nanoseconds.
13340         (debug_print_current_time, parse_datetime2):
13341         Output local zones using a more-consistent format.
13342         (debug_print_current_time, date, parse_datetime2):
13343         (main) [TEST]:
13344         Don’t assume time_t is the same width as long.
13345         (print_rel_part): New function, replacing ...
13346         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
13347         (debug_print_relative_time): Use bool for boolean.
13348         (local_zone): dsts_seen now counts only tDST instances.
13349         (date): Fix printf of size_t to use %z.  Do not assume numeric
13350         tokens have negative values merely because the context suggests
13351         a syntax with "-" separating tokens.
13352         (time_zone_hhmm): Return bool success indicator, which checks for
13353         overflow.  Store result into PC->time_zone instead.  All callers
13354         changed.
13355         (tm_year_str): New function.  Return a bool success indicator and
13356         store the result into a buffer.  All callers changed.  Output the
13357         numerically correct string even if adding 1900 to the year would
13358         overflow.
13359         (to_tm_year): New function, replacing the old to_year.  All
13360         callers changed.
13361         (tm_diff): Sync with glibc.
13362         (lookup_word): Use to_uchar instead of doing it by hand.
13363         (TZBUFSIZE): Now local to the only function that needs it.
13364         (debug_strfdatetime): Simplify now that time zones are int seconds.
13365         (debug_strfdate): Work even if tm_year + 1900 would overflow.
13366         (get_effective_timezone): Remove.  All uses removed.
13367         (parse_datetime2): Use fprintf in pieces instead of snprintfing
13368         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
13369         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
13370         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
13371         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
13372         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
13373         * modules/parse-datetime (Depends-on): Add inttypes.
13375 2017-04-21  Bruno Haible  <bruno@clisp.org>
13377         gettext-h: Avoid -Wundef warning.
13378         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
13379         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
13380         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
13382 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
13384         error: Avoid "function declaration isn't a prototype" warning.
13385         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
13387 2017-04-21  Bruno Haible  <bruno@clisp.org>
13389         vasnprintf: Fix for MSVC 14.
13390         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
13391         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
13392         of !HAVE_SNPRINTF_RETVAL_C99.
13394 2017-04-21  Bruno Haible  <bruno@clisp.org>
13396         mbrtowc tests: Fix test failures on MSVC 14.
13397         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
13398         behaviour for invalid input.
13400 2017-04-21  Bruno Haible  <bruno@clisp.org>
13402         mbsinit: Fix for MSVC 14.
13403         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
13404         implementation that is in sync with mbrtowc.c. On other platforms, use
13405         an adequate ad-hoc implementation.
13407 2017-04-21  Bruno Haible  <bruno@clisp.org>
13409         Fix test-mbrtowc5.sh failure on native Windows.
13410         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
13411         "C".
13413 2017-04-21  Bruno Haible  <bruno@clisp.org>
13415         Avoid accidental use of native Windows APIs on Cygwin.
13416         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
13417         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
13418         * lib/localename.c (WINDOWS_NATIVE): Likewise.
13420 2017-04-20  Bruno Haible  <bruno@clisp.org>
13422         Remove red warnings from the generated MODULES.html.
13423         * modules/fcntl (Description): Disambiguate function references.
13424         * modules/getcwd-lgpl (Description): Likewise.
13425         * modules/hostent (Description): Likewise.
13426         * modules/servent (Description): Likewise.
13427         * modules/tempname (Description): Likewise.
13429 2017-04-20  Bruno Haible  <bruno@clisp.org>
13431         verify tests: Fix spurious failure with parallel make.
13432         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
13433         EXTRA_PROGRAMS.
13434         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
13435         * tests/test-verify-try.c: New file.
13436         * modules/verify-tests (Files): Add it.
13437         (EXTRA_PROGRAMS): Add test-verify-try.
13438         (MOSTLYCLEANFILES): Update accordingly.
13439         Reported by Adam James Stewart <ajstewart@anl.gov>.
13441 2017-04-18  Bruno Haible  <bruno@clisp.org>
13443         vma-iter: Fix compilation error on Solaris 7.
13444         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
13445         like on IRIX, OSF/1.
13446         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13448 2017-04-18  Bruno Haible  <bruno@clisp.org>
13450         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
13451         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
13452         included.
13453         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
13454         <sys/procfs.h>.
13455         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
13456         <sys/procfs.h> cannot be included.
13457         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13459 2017-04-18  Bruno Haible  <bruno@clisp.org>
13461         getopt-gnu: Add comments.
13462         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
13463         * modules/getopt-gnu (configure.ac): Likewise.
13465 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
13467         regex: port better to Solaris 10
13468         Solaris 10 <locale.h> includes <libintl.h>, which #defines
13469         gettext, and this causes a double #define.
13470         Problem reported by Gavin Smith in:
13471         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
13472         * lib/regex_internal.h (gettext): #undef before #defining.
13474 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
13476         intprops: improve comments
13477         * lib/intprops.h: Improve and shorten commentary.
13478         For the record, if we ever run into a pedantic compiler that
13479         behaves differently from GCC when converting an out-of-range value
13480         to a signed integer, we can work around the problem with something
13481         like the following code, where UCT is the signed counterpart of T
13482         (UCT is sometimes narrower than UT) and all callers are changed
13483         accordingly:
13484         #if __SUNPRO_C <= 0x5120
13485         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
13486            ((t) ((ut) (a) op (ut) (b)))
13487         #else
13488         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
13489            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
13490             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
13491                + TYPE_MINIMUM (t)) \
13492             : (t) (uct) ((ut) (a) op (ut) (b)))
13493         #endif
13495 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
13497         intprops: try to avoid tickling similar bugs
13498         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
13499         needs to be the same width as T; it can be wider.
13500         Change callers so that UT is at least as wide as unsigned int,
13501         as I suspect that this is less likely to run into compiler bugs.
13503         intprops: port to Oracle Studio 12.3 x86
13504         Problem reported by Gavin Smith in:
13505         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
13506         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
13507         Convert unsigned to signed via the usual rather than the standard way,
13508         to avoid a compiler bug in Oracle Studio 12.3 x86.
13510 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
13512         getopt: prefer - to _ in new file names
13513         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
13514         * lib/getopt-core.h: Rename from lib/getopt_core.h.
13515         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
13516         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
13517         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
13518         All uses changed.
13520         getopt: port recent getopt changes to macOS
13521         Problem reported by Harald Maier (Bug#26398).
13522         The macOS C compiler uses __nonnull for its own purposes and that
13523         clashes with glibc's __nonnull.
13524         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
13525         * lib/getopt_cdefs.in.h (__nonnull): Remove.
13526         * lib/getopt_core.h (getopt):
13527         * lib/getopt_ext.h (getopt_long, getopt_long_only):
13528         Use _GL_ARG_NONNULL, not __nonnull.
13529         * lib/unistd.in.h: Move snippet hooks to before where the getopt
13530         .h files are included, so that _GL_ARG_NONNULL is defined in time.
13531         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
13532         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
13534 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
13536         getopt-gnu: omit some duplicate code
13537         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
13538         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
13539         gnulib-tool already does this.
13540         * modules/getopt-gnu (configure.ac): Omit code duplicated from
13541         getopt-posix, which we depend on.
13543         getopt-posix: use angle-bracket include
13544         * lib/getopt1.c: Include <config.h>, not "config.h".
13546 2017-04-06  Zack Weinberg  <zackw@panix.com>
13548         getopt: annotate files with relationship to glibc
13550         As the final act in this patchset, adjust the message at the top of
13551         each file to indicate which files are synced with glibc.  (This has
13552         already been done for most of the headers.)
13554         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
13555         Mention in top-of-file boilerplate that these files are shared
13556         between glibc and gnulib.
13559         getopt: split up getopt.in.h and eliminate __need_getopt
13561         Over in glibc, all of the __need macros are being phased out in favor
13562         of small headers that declare only the necessary components, as this
13563         is much simpler and less prone to bugs.  As getopt is shared with
13564         glibc, gnulib needs to do the same for __need_getopt.
13566         __need_getopt is misnamed; what it really means is "we want only the
13567         getopt features specified in POSIX, not the GNU extensions".  glibc
13568         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
13569         these files can be shared verbatim with gnulib.  The portability
13570         wrapper, on the other hand, they have renounced altogether; glibc's
13571         getopt.h will no longer be shared with gnulib at all.  In exchange,
13572         certain glibc-specific quirks (having to do with __posix_getopt) no
13573         longer need appear in gnulib's headers at all.
13575         This patch merges getopt_core.h and getopt_ext.h from glibc, and
13576         splits up the current gnulib-side portability wrapper into three
13577         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
13578         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
13579         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
13580         unistd.in.h just use them.  All new files are clearly marked with
13581         whether they are shared with glibc.
13583         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
13584         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
13585         with glibc, and ...
13586         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
13587         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
13588         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
13589         instead of defining __need_getopt and including the full getopt.h.
13591         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
13592         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
13593         * modules/getopt-posix (Files): Add new headers and sort list.
13594         (Depends-on): No longer need snippet/arg-nonnull.
13595         (Makefile.am): Generate getopt_cdefs.h.
13598         getopt: better handling of ambiguous options
13600         glibc's getopt uses alloca to construct a linked list of possibilities
13601         for an "ambiguous" long option.  In gnulib, malloc should be used
13602         instead.  Providing for both cases complicates things a fair bit.
13604         This patch rewrites ambiguous-option handling to use a boolean vector
13605         instead of a linked list.  There is then only one allocation that
13606         might need freeing; in glibc it can honor __libc_use_alloca as usual,
13607         and in gnulib we define __libc_use_alloca to always be false, so we
13608         don't need ifdefs in the middle of the function.  This should also be
13609         slightly more efficient in the normal case of long options being fully
13610         spelled out -- I think most people aren't even aware they _can_
13611         sometimes abbreviate long options.
13613         One interesting consequence is that the list of possibilities is now
13614         printed in exactly the order they appear in the list of long options,
13615         instead of the first possibility being shuffled to the end.
13617         (The patch looks bigger than it really is because there's a fair bit
13618         of reindentation and code rearrangement.)
13620         * lib/getopt.c: When used standalone, define __libc_use_alloca
13621         as always false and alloca to abort if called.
13622         (process_long_option): Rewrite handling of ambiguous long options
13623         to use a single boolean vector, not a linked list; use
13624         __libc_use_alloca to decide whether to allocate this using alloca.
13627         getopt: refactor long-option handling
13629         There were two copies of the bulk of the code to handle long options.
13630         Now there is only one.
13632         This change temporarily removes the logic to avoid using alloca when
13633         standalone; the next patch in the series will restore it.
13635         * lib/getopt.c (process_long_option): New function split out
13636         from _getopt_internal_r.
13637         (_getopt_internal_r): Replace both copies of the long-option
13638         processing code with calls to process_long_option.
13641         getopt: tidy up _getopt_initialize a bit
13643         _getopt_data.__posixly_correct is completely redundant to
13644         _getopt_data.__ordering, and some work that logically belongs in
13645         _getopt_initialize was being done by _getopt_internal_r, making the
13646         code harder to understand.
13648         As a side effect, getenv will no longer be called if the first
13649         character of the options string is '+' or '-', which is probably a
13650         Good Thing.  (Perhaps we should have a flag character that
13651         specifically asks for the permutation behavior?)
13653         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
13654         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
13655         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
13658         getopt: merge from glibc: repetition reduction
13660         The definitions of the entry point functions 'getopt' and
13661         '__posix_getopt' can be made substantially less repetitive with a
13662         helper macro.
13664         While I was merging the const-correctness changes from gnulib into
13665         glibc I noticed there are still some unnecessary casts in
13666         _getopt_internal_r.
13668         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
13669         a macro.  Consistently cast 'argv' to 'char **' when calling
13670         _getopt_internal.
13671         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
13674         getopt: clean up error reporting
13676         getopt can print a whole bunch of error messages, and when used
13677         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
13678         cancellation point and getopt isn't, and also applying fprintf to a
13679         stream in wide-character mode is not allowed.  So every single error
13680         reporting case has an #ifdef _LIBC block in which it calls internal
13681         libc functions instead.  The counterpart patch series in glibc makes
13682         it possible to simplify all of that down to a set of #defines at the
13683         top of the file; core code is written as if it is safe to just call
13684         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
13685         call any *other* stdio functions.)
13687         * lib/getopt.c: When _LIBC is defined, define fprintf to
13688         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
13689         to _IO_funlockfile.  When neither _LIBC nor
13690         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
13691         funlockfile as no-ops.
13692         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
13693         standalone error-printing code can now be used for libc as well.
13694         Add an flockfile/funlockfile pair around one case where the error
13695         message is printed in several chunks.  Don't use fputc.
13698         getopt: fix fencepost error in ambiguous-W-option handling
13700         getopt_long contains an undocumented (AFAICT) feature in which, if you
13701         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
13702         treated as equivalent to '--foo'.  This is implemented with a partial
13703         second copy of the code for handling long options, and that code
13704         increments optind one too many times when recovering from an ambiguous
13705         abbreviated option, which can cause the main loop to walk past the end
13706         of argv and crash.
13708         I discovered this while writing a test case that tries to exercise all
13709         of getopt's error reporting paths; I wouldn't be surprised to learn
13710         that this feature is never used by real applications.
13712         * lib/getopt.c (_getopt_internal_r): Don't increment
13713         d->optind a second time when reporting ambiguous -W options.
13716         getopt: clean up getopt.c and getopt1.c file headers
13718         In getopt.c, there is no need to include wchar.h at all, and it is
13719         safe nowadays to assume that stdlib.h does declare getenv (several
13720         other gnulib modules make this assumption).
13722         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
13723         by using "" inclusions consistently, and there is no actual need to
13724         include stdlib.h (except in the #ifdef TEST block, where it should be
13725         unconditional), nor to provide a backup definition of NULL at all.
13727         * lib/getopt1.c: Simplify #ifdeffage at top of file.
13728         Move inclusion of stdlib.h to #ifdef TEST block and make
13729         unconditional.  Do not define NULL.
13730         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
13731         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
13732         * modules/getopt-gnu, modules/getopt-posix: Don't call
13733         gl_PREREQ_GETENV.
13736         getopt: harmonize comments with glibc
13738         The comments explaining how the behavior of 'getopt' varies depending
13739         on whether it's the standalone version and whether there are special
13740         characters at the beginning of the options string were inconsistent
13741         between gnulib and glibc, and also out of sync with the code.
13743         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
13746         getopt: remove USE_NONOPTION_FLAGS
13748         getopt includes code to parse an environment variable named
13749         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
13750         in decimal); but all of it has been #ifdefed out since 2001, with no
13751         official way to turn it back on.
13753         According to commentary in glibc's config.h.in, bash version 2.0
13754         set this environment variable to indicate argv elements that were
13755         the result of glob expansion and therefore should not be treated
13756         as options, but the feature was "disabled later" because "it
13757         caused problems".  According to bash's CHANGES file, "later" was
13758         release 2.01; it gives no more detail about what the problems
13759         were.
13761         Version 2.0 of bash was released on the last day of 1996, and version
13762         2.01 in June of 1997.  Twenty years later, I think it is safe to
13763         assume that this environment variable isn't coming back.
13765         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
13766         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
13767         __libc_argc and __libc_argv externs, which were only used by
13768         #ifdef USE_NONOPTION_FLAGS blocks.
13771         getopt: tabify, in preparation for merge with glibc
13773         glibc sticks to the GNU default of indenting with a mix of
13774         8-column tabs and spaces; make the gnulib copy match.
13776         getopt.h is not included because it is *not* going to be merged in its
13777         present form.
13779         * getopt.c, getopt1.c, getopt_int.h: Tabify.
13781 2017-04-02  Bruno Haible  <bruno@clisp.org>
13783         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
13784         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
13785         like it was done in modules/relocatable-lib on 2011-05-21 and in
13786         modules/relocatable-prog on 2011-08-15.
13787         Reported by Reuben Thomas <rrt@sc3d.org>.
13789 2017-03-31  Bruno Haible  <bruno@clisp.org>
13791         glob: Fix invalid free() call.
13792         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
13793         static storage to home_dir.
13794         Reported by Coverity via Tim Rühsen.
13796 2017-03-31  Bruno Haible  <bruno@clisp.org>
13798         glob: Fix memory leaks.
13799         * lib/glob.c (glob): Free allocated memory before returning.
13800         Reported by Coverity via Tim Rühsen.
13802 2017-03-31  Bruno Haible  <bruno@clisp.org>
13804         md5, sha1, sha256, sha512: Add comments regarding correctness.
13805         * lib/md5.h (buflen): Add comments regarding range.
13806         * lib/sha1.h (buflen): Likewise.
13807         * lib/sha256.h (buflen): Likewise.
13808         * lib/sha512.h (buflen): Likewise.
13809         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
13810         * lib/sha1.c (sha1_process_bytes): Likewise.
13811         * lib/sha256.c (sha256_process_bytes): Likewise.
13812         * lib/sha512.c (sha512_process_bytes): Likewise.
13813         Reported by Coverity via Tim Rühsen.
13815 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
13817         getopt: merge from glibc
13818         This does not change anything substantial; it merely simplifies
13819         hypothetical merges back to glibc.
13820         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
13821         Change copyright notice to match what is in glibc.
13822         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
13823         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
13824         __open_memstream rather than open_memstream and __glibc_likely
13825         instead of __builtin_expect.
13826         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
13828 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
13830         dfa: make [0-9] faster in non-C locales
13831         Problem reported by John P. Linderman (Bug#26193).
13832         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
13833         If both ends of the range are ASCII digits, do not worry about
13834         multi-character collating sequences and the like.  Be consistent
13835         about using isalpha as a precondition for setbit_case_fold_c.
13837 2017-03-19  Bruno Haible  <bruno@clisp.org>
13839         lock: Fix compilation error with HP-UX IA64 cc.
13840         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
13841         weak on non-glibc platforms.
13843 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13845         stdalign: tweak version# and test for HP-UX IA64
13846         Problems reported by Bruno Haible in:
13847         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
13848         * lib/stdalign.in.h (_Alignas):
13849         * m4/stdalign.m4 (gl_STDALIGN_H):
13850         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
13851         used octal (as that is how they document it), but it is decimal in
13852         practice now and the ancient implementations no longer matter.
13853         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
13855 2017-03-19  Bruno Haible  <bruno@clisp.org>
13857         vma-iter: Add support for Solaris.
13858         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
13859         approach.
13860         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
13861         * lib/get-rusage-as.c: Update comment about Solaris.
13862         * lib/get-rusage-data.c: Likewise.
13864 2017-03-19  Bruno Haible  <bruno@clisp.org>
13866         vma-iter: Prefer HP-UX specific API on HP-UX.
13867         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
13868         * lib/vma-iter.h: Update.
13869         Just in case HP-UX ever implements mquery().
13871 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
13873         stdalign: restore previous behavior for HP-UX IA64
13874         See Bruno Haible's email in:
13875         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
13876         which cites p 150 of a manual saying that 'aligned' works on Itanium.
13877         * lib/stdalign.in.h (_Alignas):
13878         Assume the '061200' applies to Itanium, not to PA-RISC.
13879         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
13881 2017-03-17  Bruno Haible  <bruno@clisp.org>
13883         stat-time, timespec: Support use of the header files in C++ mode.
13884         * lib/stat-time.h: Add "C" linkage declaration.
13885         * lib/timespec.h: Likewise.
13887 2017-03-17  Bruno Haible  <bruno@clisp.org>
13889         stdalign: Make it work with HP-UX cc.
13890         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
13891         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
13892         for HP-UX cc.
13894 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
13896         flexmember: try to detect HP-UX 11.31 cc bug
13897         Problem reported by Bruno Haible in:
13898         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
13899         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
13900         Attempt to detect bug in HP-UX 11.31 cc.
13902 2017-03-16  Bruno Haible  <bruno@clisp.org>
13904         stdint: Fix test compilation failure with HP-UX 11 cc.
13905         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
13906         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
13907         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
13908         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
13910 2017-03-14  Bruno Haible  <bruno@clisp.org>
13912         gnulib-tool: Don't produce a tests directory with only snippet .h files.
13913         * gnulib-tool (func_modules_transitive_closure_separately): If
13914         testsrelated_modules ends up with no "real" modules, aside from
13915         modules with applicability 'all', set it to empty.
13917 2017-03-14  Bruno Haible  <bruno@clisp.org>
13919         vma-iter: Add support for HP-UX.
13920         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
13921         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
13922         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
13923         * lib/get-rusage-as.c: Update comment about HP-UX.
13924         * lib/get-rusage-data.c: Likewise.
13925         (get_rusage_data): Use get_rusage_data_via_setrlimit.
13927 2017-03-14  Bruno Haible  <bruno@clisp.org>
13929         limits-h: Make it work with HP-UX cc.
13930         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
13931         defined.
13933 2017-03-14  Bruno Haible  <bruno@clisp.org>
13935         Fix test failures on DragonFlyBSD.
13936         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
13937         * tests/test-select.h (test_bad_fd): Likewise.
13938         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
13940 2017-03-14  Bruno Haible  <bruno@clisp.org>
13942         freadahead: Silence warning on DragonFlyBSD.
13943         * lib/freadahead.c (__sreadahead): Declare ourselves.
13945 2017-03-14  Bruno Haible  <bruno@clisp.org>
13947         vma-iter: Add comment about AIX.
13948         * lib/vma-iter.c: Add comment about why this module is not implemented
13949         on AIX.
13951 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
13953         snippets: move unadjusted snippet sources to lib
13954         Problem reported by Michal Privoznik in:
13955         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
13956         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
13957         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
13958         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
13959         * lib/unused-parameter.h: Rename from
13960         build-aux/snippet/unused-parameter.h.
13961         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
13962         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
13963         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
13964         * modules/snippet/c++defs (Files:, CXXDEFS_H):
13965         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
13966         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
13967         Adjust to file renamings.
13969 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
13971         gnulib-tool: don't automatically distribute files from top/
13972         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
13973         not distribute top/README-release by default, don't distribute files
13974         from top/ unconditionally.
13975         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
13976         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
13978 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
13980         gnulib-tool: fix typo in comment output
13981         * gnulib-tool (func_import): Fix typo with previous change.
13983         snippets: work around GNU Make 3.82 VPATH
13984         When using 'gnulib-tool --gnu-make' on Emacs, and building
13985         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
13986         an out-of-source (VPATH) build failed because the sans-copyright
13987         snippet file was not built before the file that used it.
13988         Presumably this is some sort of VPATH thing.  Work around the
13989         problem by using the original snippet, i.e., don’t bother to
13990         remove its copyright notice.
13991         * modules/snippet/_Noreturn, modules/snippet/link-warning:
13992         Don’t assume Automake in comments.  Omit long-incorrect comment.
13993         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
13994         (MOSTLYCLEANFILES):
13995         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
13996         (MOSTLYCLEANFILES):
13997         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
13998         (MOSTLYCLEANFILES):
13999         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
14000         (MOSTLYCLEANFILES):
14001         Remove.
14002         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
14003         * modules/snippet/c++defs (CXXDEFS_H):
14004         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
14005         * modules/snippet/warn-on-use (WARN_ON_USE_H):
14006         Don’t bother to remove the copyright notice; just use the
14007         original snippet as-is.
14009 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
14011         gnulib-tool: minor --gnu-make fixups
14012         * gnulib-tool (func_emit_lib_Makefile_am):
14013         Remove useless code that was a blind alley during implementation.
14014         Problem reported by Thien-Thi Nguyen in:
14015         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
14016         (func_import): Note the "--gnu-make" option in the output comment.
14018 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
14020         gnulib-tool: new option --gnu-make
14021         This is for applications like GNU Emacs that use GNU Make
14022         features instead of Automake.
14023         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
14024         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
14025         Do not assume Automake.
14026         * gnulib-tool (func_determine_path_separator)
14027         (func_modules_transitive_closure, func_update_file)
14028         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
14029         (func_import): Add support for --gnu-make.
14031 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
14033         gnulib-common.m4: avoid aclocal.m4 bloat
14034         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
14035         Hide AM_PROG_AR from aclocal, so that aclocal does not
14036         install irrelevant macro definitions into aclocal.m4.
14038 2017-03-10  Bruno Haible  <bruno@clisp.org>
14040         vma-iter: Let callers know about error.
14041         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
14042         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
14044 2017-03-05  Bruno Haible  <bruno@clisp.org>
14046         Fix value of LD for 64-bit compilers on AIX.
14047         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
14048         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
14050 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
14052         dtotimespec: simplify
14053         * lib/dtotimespec.c (dtotimespec): Simplify.
14055 2017-03-04  Bruno Haible  <bruno@clisp.org>
14057         test-calloc-gnu: Reenable test also for GCC 7.
14058         * tests/test-calloc-gnu.c (eight): New function.
14059         (main): Don't skip test; use eight() instead.
14061 2017-03-04  Jim Meyering  <meyering@fb.com>
14063         test-calloc-gnu: port to GCC7
14064         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
14065         that attempts to calloc more than SIZE_MAX bytes, because GCC7
14066         and newer would detect that at compilation time.
14068 2017-03-04  Bruno Haible  <bruno@clisp.org>
14070         tests: Avoid compiler warning about uses of null_ptr.
14071         * tests/null-ptr.h: New file.
14072         * tests/test-canonicalize.c: Include null-ptr.h.
14073         (null_ptr): Remove function.
14074         * tests/test-canonicalize-lgpl.c: Likewise.
14075         * tests/test-memmem.c: Likewise.
14076         * tests/test-ptsname_r.c: Likewise.
14077         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
14078         * modules/canonicalize-lgpl-tests: Likewise.
14079         * modules/memmem-tests: Likewise.
14080         * modules/ptsname_r-tests: Likewise.
14081         Reported by Jim Meyering.
14083 2017-03-03  Bruno Haible  <bruno@clisp.org>
14085         doc: Mention Mac OS X deficiencies regarding semaphores.
14086         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
14087         * doc/posix-functions/sem_destroy.texi: Likewise.
14088         * doc/posix-functions/sem_getvalue.texi: Likewise.
14090 2017-03-03  Bruno Haible  <bruno@clisp.org>
14092         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
14093         Reported by Assaf Gordon <assafgordon@gmail.com> via
14094         Pádraig Brady <P@draigBrady.com>.
14095         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
14096         semaphores.
14097         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
14098         (atomic_int_semaphore): New macro.
14100 2017-02-28  Bruno Haible  <bruno@clisp.org>
14102         perror tests: Tweak for z/OS.
14103         Reported by Daniel Richard G. <skunk@iskunk.org>.
14104         * tests/test-perror.sh: Don't fail z/OS style perror output.
14106 2017-02-26  Bruno Haible  <bruno@clisp.org>
14108         nproc: Refactor large function.
14109         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
14110         from num_processors.
14111         (num_processors): In this function, only deal with OMP.
14113 2017-02-26  Pádraig Brady  <P@draigBrady.com>
14115         nproc: adjust handling of OpenMP environment variables
14116         to match the return value from omp_get_num_threads(), i.e.:
14117          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
14118          - Treat 0 as an invalid value and ignore
14119         Also remove the call to omp_get_num_threads() because
14120         it's ineffective without the omp pragmas in place.
14121         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
14122         so that it can be ignored.
14123         (num_processors): Honor OMP_THREAD_LIMIT even without
14124         OMP_NUM_THREADS being set.  Also fix a typo in the environment
14125         variable being checked, from the previous recent commit.
14127 2017-02-26  Pádraig Brady  <P@draigBrady.com>
14129         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
14130         * lib/nproc.c (parse_omp_threads): A new function refactored
14131         from num_processors() to support parsing both of the
14132         above environment variables.
14133         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
14134         to accurately reflect the current OpenMP nesting level.
14135         Also support the OMP_THREAD_LIMIT environment variable
14136         to limit the max value determined from OMP_NUM_THREADS.
14137         * modules/nproc: Depend on minmax header.
14138         Suggested by Oliver Heimlich.
14140 2017-02-25  Bruno Haible  <bruno@clisp.org>
14142         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
14143         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
14145 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14147         ftoastr: port to -Wdouble-promotion
14148         Work around -Wdouble-promotion false alarm in recent GCCs.
14149         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
14150         (ftoastr_snprintf, FTOASTR): Use it.
14152 2017-02-21  Bruno Haible  <bruno@clisp.org>
14154         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
14155         Reported by Rene Saavedra <rennes@openmailbox.org> in
14156         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
14157         * lib/glthread/lock.h: On glibc systems without
14158         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
14159         implementation of rwlocks.
14160         * lib/glthread/lock.c: Likewise.
14162 2017-02-20  Bruno Haible  <bruno@clisp.org>
14164         lock tests: Fix build failure on z/OS.
14165         Reported by Daniel Richard G. <skunk@iskunk.org>.
14166         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
14167         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
14168         exist.
14170 2017-02-19  Bruno Haible  <bruno@clisp.org>
14172         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
14173         This helps when CC=clang.
14174         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
14175         of /usr/bin/gcc.
14177         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
14178         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
14180 2017-02-19  Bruno Haible  <bruno@clisp.org>
14182         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
14183         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
14184         --with-tests --single-configure is specified.
14186 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
14188         users.txt: Update links, use HTTPS where possible
14189         * users.txt: Updated to HTTPS where possible,
14190         fixed some links to new locations.
14192 2017-02-16  Bruno Haible  <bruno@clisp.org>
14194         xbinary-io: Fix inlining.
14195         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
14197 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14199         xbinary-io: rename from xsetmode
14200         This patch is taken from suggestions by Bruno Haible in:
14201         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
14202         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
14203         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
14204         not ENOTTY, when it is an inappropriate device.
14205         * lib/binary-io.h (SET_BINARY): Resurrect.
14206         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
14207         (xset_binary_mode_error): Rename from xsetmode_error.
14208         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
14209         (xset_binary_mode): Rename from xsetmode.
14210         All uses changed.
14211         * modules/xbinary-io: Rename from modules/xsetmode.
14212         Update file names.
14213         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
14214         * NEWS: Update to match revised behavior.
14216 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14218         tests: Adjust to recent SET_BINARY change
14219         * tests/test-binary-io.c (main):
14220         * tests/test-binary-io.sh: Remove test for SET_BINARY.
14221         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
14222         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
14223         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
14225         xsetmode: new module
14226         This is to fix a problem noted by Eric Blake.
14227         Code was using xfreopen to change files to binary mode, but this
14228         fails for stdout when in append mode.  Such code should use
14229         xsetmode instead.
14230         * NEWS: Document incompatible changes to binary-io module.
14231         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
14232         New function.
14233         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
14234         (set_binary_mode): New function, which also checks for tty.
14235         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
14237 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
14239         headers: fix begin-end typos
14240         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
14241         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
14243         selinux-h: port to PGI 16.10
14244         * lib/se-selinux.in.h: Don't assume that include_next skips over
14245         duplicate -I DIR options.
14247         argp: port to PGI 16.10
14248         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
14250 2017-02-13  Darshit Shah  <darnir@gnu.org>
14252         unicase: Update function protoype to match definition.
14253         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
14254         uses 'size_t' as the datatype for the 'len' parameter in the functions
14255         it generates. Update the prototype specified here to match the newly
14256         generated function.
14258 2017-02-12  Bruno Haible  <bruno@clisp.org>
14260         times test: Avoid gcc warnings on Linux/x32.
14261         * tests/test-times.c (main): Really cast printf arguments from clock_t
14262         to 'long int'.
14264 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14266         glob: port better to emscripten
14267         Problem reported by Bruno Haible in:
14268         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
14269         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
14271 2017-02-11  Bruno Haible  <bruno@clisp.org>
14273         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
14274         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
14275         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
14276         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
14277         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
14278         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
14279         Distinguish hppa64 from hppa.
14281 2017-02-10  Bruno Haible  <bruno@clisp.org>
14283         search: Don't assume that tsearch() exists if 'VISIT' is defined.
14284         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
14285         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
14286         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
14288 2017-02-09  Bruno Haible  <bruno@clisp.org>
14290         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
14291         * doc/gnulib.texi (Libtool and Windows): Recommend
14292         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
14293         Reported by Reuben Thomas <rrt@sc3d.org>.
14295 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14297         stddef-tests: port to SIZE_MAX <= INT_MAX
14298         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
14299         Do not assume that INT_MAX < SIZE_MAX.
14301 2017-02-01  Bruno Haible  <bruno@clisp.org>
14303         lock tests: Fix link error.
14304         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
14305         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14307 2017-01-31  Bruno Haible  <bruno@clisp.org>
14309         lock: Fix link error (regression from 2017-01-05).
14310         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
14311         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
14312         pthread_rwlockattr_destroy weak.
14313         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14315 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
14317         Port to PGI 16.10 x86-64
14318         This patch fixes one real bug in gl_anylinked_list2.h, along with
14319         some minor glitches that are not bugs.  It does not silence PGI’s
14320         thousands of bogus warnings when compiling test-intprops.c.
14321         Fortunately, the warnings do not cause a failure.
14322         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
14323         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
14324         My goodness, PGI goes back a long ways - this predates C89!
14325         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
14326         For example, ASYNCSAFE (const void *) should expand to
14327         ‘const void *volatile’, not to ‘volatile const void *’.
14328         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
14329         * lib/verify.h (verify) [!__GNUC__]:
14330         Use shorter albeit meaningless string to bypass silly compiler limits.
14331         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
14332         * tests/nan.h (NaNf, NaNd, NaNl):
14333         Use static functions to avoid misguided compiler diagnostics.
14334         Is there some reason we don’t use static functions on all platforms?
14336 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14338         parse-datetime: handle timezones reentrantly
14339         This API change was prompted by a report by Pádraig Brady in:
14340         https://bug.debian.org/851934#10
14341         To help fix the bug, make parse_datetime2 more reentrant.
14342         * NEWS: Document this incompatible change.
14343         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
14344         Add two arguments, the timezone and the timezone name.
14345         All callers changed.  If TZ="..." is specified, use it for
14346         calculating defaults.
14347         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
14348         this code should be usable in a library.
14349         (mktime_ok, get_effective_timezone):
14350         Accept timezone arg too.  All callers changed.
14351         (get_tz): Remove.
14352         (get_effective_timezone): Check for failures.
14354 2017-01-20  Eric Blake  <eblake@redhat.com>
14356         localename: port to cygwin 2.6
14357         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
14358         Cygwin.
14359         * modules/localename (Depends-on): Add extensions, since
14360         NL_LOCALE_NAME() is not visible without it.
14362 2017-01-17  Pádraig Brady  <P@draigBrady.com>
14364         parse-datetime: fix dependence on AC_PROG_SED
14365         * modules/parse-datetime: Use `sed` directly like all other modules.
14366         Reported by J William Piggott
14368 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
14370         intprops: update doc URLs
14371         * doc/intprops.texi (Integer Range Overflow): Update URLs.
14373 2017-01-16  Bruno Haible  <bruno@clisp.org>
14375         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
14376         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
14377         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
14378         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
14379         distinguish s390 and s390x.
14380         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
14381         * NEWS: Mention the change regarding 'armel'.
14383 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
14385         localeinfo: case_folded_counterparts and WEOF
14386         * NEWS: Document this.
14387         * lib/localeinfo.c (case_folded_counterparts):
14388         First arg is now wint_t, not wchar_t.  This generalizes the
14389         function to also work on WEOF, where it returns 0.
14391         dfa: port to gcc -fsanitize=undefined
14392         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
14393         as this runs afoul of gcc -fsanitize=undefined.
14395 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
14397         strftime: %z is -00 if unknown
14398         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
14399         the caller's responsibility to set 'negative_number'.  All uses changed.
14400         (__strftime_internal): Put '-' before a zero UTC offset if the time
14401         zone abbreviation starts with "-", which is the recently-introduced
14402         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
14403         * tests/test-strftime.c: Test for this.
14405 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
14407         dfa: port to older GCC
14408         Problem reported by Assaf Gordon in:
14409         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
14410         * modules/c99: New module.  This merely attempts to use the latest
14411         C version, which should be enough to solve this particular problem.
14412         The idea is to document which Gnulib modules assume C99 or later.
14413         * modules/dfa (Depends-on): Add it.
14415 2017-01-10  Bruno Haible  <bruno@clisp.org>
14417         Update DEPENDENCIES.
14418         * DEPENDENCIES: List only https URLs. Update recommended version for
14419         autoconf, automake, gperf.
14421 2017-01-10  Jim Meyering  <meyering@fb.com>
14423         maint.mk: enforce spelling of "timestamp" (i.e., no space)
14424         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
14425         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
14427 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
14429         dfa: minor simplification with emptyset
14430         * lib/dfa.c (build_state): Simplify by using emptyset.
14432 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
14434         dfa: shrink constraints from 4 bits to 3
14435         * lib/dfa.c (newline_constraint, letter_constraint)
14436         (other_constraint, prev_newline_dependent)
14437         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
14438         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
14439         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
14440         Constraints need only 3 bits, not 4.  Using smaller integers
14441         shrinks the code a bit and makes grep a tad faster on x86-64.
14443         dfa: omit unnecessary ptrdiff_t check
14444         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
14445         overflow, since xnmalloc does that now.
14447         dfa: omit unnecessary allocation
14448         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
14449         an all-zero follow set works just fine.
14451         dfa: omit unused local
14452         * lib/dfa.c (build_state): Fix up recent change.
14454         maint: remove stray .texi files
14455         Although these were superseded by other files like
14456         doc/posix-functions/ctime.texi, the old files were not removed.
14457         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
14459 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
14461         getprogname: fix port to IRIX
14462         * lib/getprogname.c (getprogname) [__sgi]:
14463         Don't dump core if malloc returns NULL.
14465         dfa: fix reallocation bug when matching newlines
14466         Problem reported for sed by S. Gilles (Bug#25390).
14467         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
14468         (dfastate): Reallocate before moving any newline transition ...
14469         (build_state): ... instead of reallocating here, where it is too late.
14471 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
14473         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
14474         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
14476 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
14478         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
14479         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
14481 2017-01-07  Bruno Haible  <bruno@clisp.org>
14483         stdioext: Port to Minix 3.2 and newer.
14484         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
14485         * lib/fseeko.c (fseeko): Likewise.
14486         Reported by Nelson Beebe via Paul Eggert.
14488 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
14490         getprogname: port to IRIX
14491         * lib/getprogname.c (getprogname): Port to IRIX.
14492         Based on an idea by Bastien Roucariès at:
14493         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
14494         via code from Bruno Haible at:
14495         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
14497         localename-tests: port to NetBSD 7
14498         Problem reported by Nelson H. F. Beebe.
14499         * tests/test-localename.c:
14500         Test newlocale and uselocale only if both exist.
14502         glob, intprops, xalloc: work around Clang bug
14503         Work around LLVM bug 16404, which is still not fixed.
14504         https://llvm.org/bugs/show_bug.cgi?id=16404
14505         Problem reported by Nelson H. F. Beebe.
14506         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
14507         Remove.
14508         * lib/glob.c (size_add_wrapv):
14509         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
14510         * lib/xalloc-oversized.h (xalloc_oversized):
14511         Do not use overflow builtins if Clang.
14513         dfa: fix 'return' typo
14514         Problem reported by Nelson H. F. Beebe.
14515         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
14517 2017-01-05  Pádraig Brady  <P@draigBrady.com>
14519         parse-datetime: fix generated paths for coverage files
14520         * modules/parse-datetime: Adjust the paths for parse-datetime.y
14521         within parse-datetime.c, so that gcc generates appropriate .gcno
14522         files, allowing lcov to proceed without error.  Previously it
14523         would error trying to find "lib/lib/parse-datetime.y".
14525 2017-01-05  Pádraig Brady  <P@draigBrady.com>
14527         maint.mk: support parallel execution of coverage
14528         * top/maint.mk (coverage): Run dependencies serially,
14529         thus supporting parallel processing of each one,
14530         particularly build-coverage, which builds and runs tests.
14532 2017-01-05  Bruno Haible  <bruno@clisp.org>
14534         lock tests: Prefer semaphore over mutex.
14535         * tests/test-lock.c (USE_SEMAPHORE): New constant.
14536         (struct atomic_int, init_atomic_int, get_atomic_int_value,
14537         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
14538         Suggested by Torvald Riegel <triegel@redhat.com>.
14540 2017-01-05  Bruno Haible  <bruno@clisp.org>
14542         lock: Provide guarantee to avoid writer starvation for rwlocks.
14543         The rationale is: 1) Read-preferring read-write locks are prone to
14544         writer starvation if the number of reader threads multiplied by the
14545         percentage of time they have the lock held is too high. 2) Write-
14546         preferring read-write locks are the only reliable way to avoid this.
14547         3) There have been reports of 'test-lock' hanging on glibc systems
14548         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
14549         and glibc indeed implements read-preferring rwlocks by default, see
14550         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
14551         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
14552         * m4/pthread_rwlock_rdlock.m4: New file.
14553         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
14554         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
14555         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
14556         of rwlock initialization on glibc systems without
14557         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
14558         of rwlocks altogether on non-glibc systems without
14559         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
14560         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
14561         * lib/glthread/lock.c [USE_POSIX_THREADS]
14562         (glthread_rwlock_init_for_glibc): New function.
14563         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
14564         comment.
14565         [USE_PTH_THREADS]: New implementation of rwlocks.
14566         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
14567         readers.
14568         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
14569         (Depends-on): Add 'extensions'.
14570         * tests/test-rwlock1.c: New file.
14571         * lock-tests (Files): Add it.
14572         (Depends-on): Add usleep.
14573         (Makefile.am): Add test-rwlock1 to the tests.
14575 2017-01-05  Bruno Haible  <bruno@clisp.org>
14577         thread: Fix pth port.
14578         * lib/glthread/thread.h (pth_init): Declare weak.
14579         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
14580         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
14581         function.
14583 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
14585         parse-datetime: fix debug message on lone year number
14586         Input dates such as
14587           date -d "Apr 11 22:59:00 2011"
14588         are parsed as date (Apr 11, with default year 2016), then time, then a
14589         number (2011). Based on the combination of previously seen tokens,
14590         'digits_to_date_time' determines 2011 to be a year value.
14591         This fixes the debug messages to correctly show the updated year.
14592         Before:
14593             $ date --debug -d 'Apr 11 22:59:00 2011'
14594             date: parsed date part: (Y-M-D) 2016-04-11
14595             date: parsed time part: 22:59:00
14596             date: parsed number part: today/this/now
14597         After:
14598             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
14599             date: parsed date part: (Y-M-D) 2016-04-11
14600             date: parsed time part: 22:59:00
14601             date: parsed number part: year: 2011
14602         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
14603         'debug_year_seen' member fields.
14604         (digits_to_date_time): Update 'year_seen' as needed.
14605         (debug_print_current_time): Inform about year updates.
14606         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
14608         parse-datetime: fix local timezone debug messages
14609         "Local timezones" are strings that affect only DST relative to the
14610         default timezone. The debug messages in parse-datetime.y printed
14611         wrong information when encountering local timezones.
14612         Examples:
14613         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
14614              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
14615              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
14616         When the default timezone relates to the zone strings, EET/EEST are
14617         parsed as local timezones (tLOCAL_ZONE), and only change the DST
14618         value (0/1, respectively):
14619              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
14620              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
14621         * lib/parse-datetime.y (debug_print_current_time): If local timezone
14622         was seen, inform about DST change, don't print actual timezone.
14623         (debug_strfdatetime): If local timezone was seen, use default timezone
14624         (and adjust as needed) instead of using incorrect timezone.
14625         (parse_datetime2): Use correct time-zone source string, and adjust
14626         default timezone as needed.
14628         parse-datetime: add debug warning about DST changes
14629         Incorrect date arithmetic due to daylight saving time (DST) are a
14630         common (false) bug report in coreutils.
14631         Detect two such cases and print a warning:
14632         1. year/month/day adjustments (performed on 'struct tm'),
14633            where 'mktime' returns a different isdst value.
14634         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
14635            where the result of 'localtime(3)' on the value will return a
14636            different isdst value.
14637         Note: DST changes could be harmless or unnoticeable.
14638         Examples (with 'TZ=America/New_York'):
14639         Unnoticeable: result is 2016-Dec-14
14640            $ date -d '2016-06-15 EDT + 6 months' +%b
14641            Dec
14642         Unnoticeable: result is 2016-Dec-15 11:00:00
14643            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
14644            2016-12-15
14645         This is unexpected:
14646            $ date -d '2016-06-01 EDT + 6 months' +%F
14647            2016-11-30
14648         The new debug warnings will show:
14649            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
14650            ...
14651            date: warning: daylight saving time changed after date adjustment
14652            ...
14653         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
14654         print an appropriate warning message.
14656         parse-datetime: add debug warning about date arithmetic
14657         Date arithmetic are done directly on the fields of 'struct tm',
14658         which can result in invalid dates. Normalization with 'mktime(3)'
14659         will then produce a different date - which might cause unexpected
14660         results.
14661         Examples:
14662           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
14663           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
14664         Note that date normalization is not inherently wrong and not rejected,
14665         as it has legitimate uses:
14666           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
14667         If the user asked to adjust months but 'mday' changed,
14668         or user asked to adjust years but 'month' changed - warn about it.
14669             $ ./src/date --debug -d '2016-10-31 - 1 month'
14670             ...
14671             date: warning: when adding relative months/years, \
14672                            it is recommended to specify the 15th of the month
14673             ...
14674             date: warning: month/year adjustment resulted in shifted dates:
14675             date:      adjusted Y M D: 2016 09 31
14676             date:    normalized Y M D: 2010 10 01
14677             ...
14678         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
14679         a warning message. Improve recommendation of when to use 15 of the
14680         month or noon for date arithmetic.
14682         parse-datetime: fix debug message of relative part after timezone
14683         Relative part (e.g '+8 days') after a timezone string was not
14684         reported (was only reported after a timezone number). Due to the
14685         parser's structure, timezone strings with numbers were handled
14686         separately.
14687         before:
14688              # Timezone number + relative part: OK
14689              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
14690              ...
14691              date: parsed relative part: -8 day(s)
14692              # Timezone string + relative part: missing
14693              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
14694              [ missing message ]
14695         After: messages are printed in both cases.
14696         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
14698         parse-datetime: fix incorrect debug message on lone number
14699         A lone number is an absolute value, not a relative time part.
14700         before:
14701            $ date --debug -d '20130101'
14702            date: parsed number part: today/this/now
14703         After:
14704            $ ./src/date --debug -d '20130101'
14705            date: parsed number part: (Y-M-D) 2013-01-01
14706         * lib/parse-datetime.y ('item'/'number' tokens): Call
14707         'debug_print_current_time' instead of 'debug_print_relative_time'.
14709 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
14711         doc: modernize for C11 etc.
14712         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
14713         for C11, MinGW, etc.  This responds to Paul Smith's question in:
14714         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
14716         dfa: prefer functions to FETCH_WC macro
14717         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
14718         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
14719         wint_t result into DFA->lex.wctok instead of to a separate arg.
14720         All callers changed.  Move more local decls closer to where
14721         they're used.
14723         dfa: narrow more local var scopes
14724         * lib/dfa.c: Move more local decls to be more local.
14726         dfa: remove duplicate assignment
14727         Problem reported by Bruno Haible in:
14728         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
14729         * lib/dfa.c (parse_bracket_exp): Simplify.
14731 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
14733         dfa: simplify constraint-dependency checking
14734         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
14735         (prev_other_constraint): Remove.
14736         (prev_newline_dependent, prev_letter_dependent):
14737         Simplify, to avoid an unnecessary bitwise AND operation.
14739         dfa: prefer functions and constants to macros
14740         * lib/dfa.c: Prefer constants to macros where either will do.
14741         (streq, isasciidigit, newline_constraint)
14742         (letter_constraint, other_constraint, succeeds_in_context)
14743         (prev_newline_constraint, prev_letter_constraint)
14744         (prev_other_constraint, prev_newline_dependent)
14745         (prev_letter_dependent, accepting, accepts_in_context):
14746         Now static functions instead of function-like macros.
14747         Use lower-case names accordingly.  All uses changed.
14749         dfa: narrow more local var scopes
14750         * lib/dfa.c: Move some more local decls down to nearer where
14751         they're needed.
14753 2016-12-31  Jim Meyering  <meyering@fb.com>
14755         dfa: narrow the scope of many local variables
14756         * lib/dfa.c: Now that we are no longer constrained to c89, move
14757         declarations of many variables (often indices) "down" into the
14758         scope(s) where used or to the point of definition.  This is a
14759         no-semantic-change diff.
14761 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
14763         version-etc: new year
14764         * build-aux/gendocs.sh (version):
14765         * doc/gendocs_template:
14766         * doc/gendocs_template_min:
14767         * doc/gnulib.texi:
14768         * lib/version-etc.c (COPYRIGHT_YEAR):
14769         Update copyright dates by hand in templates and the like.
14770         * all files: Run 'make update-copyright'.
14772 2016-12-31  Eric Blake  <eblake@redhat.com>
14774         do-release-commit-and-tag: avoid shell syntax error
14775         * build-aux/do-release-commit-and-tag (curr_br): $branch can
14776         contain spaces when rebasing.
14778         maint.mk: hoist gnulib_dir definition earlier
14779         * top/maint.mk (gnulib_dir): Move near top of file.
14781 2016-12-31  Jim Meyering  <meyering@fb.com>
14783         maint.mk: do not always evaluate intprops-related shell
14784         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
14785         using gnulib_dir undefined (gnulib_dir is defined later in the
14786         file, which will be fixed separately), and besides, there is no
14787         need to incur the cost of this shell invocation for every single
14788         use of this .mk file.  Reported by Eric Blake in
14789         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
14791 2016-12-30  Jim Meyering  <meyering@fb.com>
14793         maint.mk: improve sc_prohibit_intprops_without_use
14794         * top/maint.mk (_intprops_names): Don't hard-code the list of
14795         symbol names.  Instead, derive it on the fly.
14797 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
14799         dfa: shorten sbit, success
14800         * lib/dfa.c (struct regex_syntax.sbit):
14801         (struct dfa.success): Use char, not int, for array elements, since
14802         they are all in the range 0..7.
14804         dfa: simplify multibyte_prop etc.
14805         This follows up on a change made when dfa.c was in grep, namely grep
14806         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
14807         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
14808         That earlier simplification allows for some more simplification
14809         and trimming down here.
14810         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
14811         (struct lexer_state): New mamber brack.
14812         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
14813         since they must be in the range 0..3 now.
14814         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
14815         the brack member now supersedes them.
14816         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
14817         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
14818         (dfaparse): Remove unnecessary initializations of already-0 storage.
14819         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
14820         (dfassbuild): No need to clear sup->mbcsets.
14822         dfa: minor performance tweak
14823         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
14825         dfa: wrap charclass inside a struct
14826         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
14827         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
14828         about 5% faster, where list.txt is generated by 'aspell dump
14829         master | head -n 100000 >list.txt'.  See Bug#22239.
14830         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
14831         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
14832         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
14833         Adjust to this, e.g., by using charclass * rather than charclass.
14834         All callers changed as needed.
14835         (copyset): Remove.  All uses changed to simple assignment.
14836         (parse_bracket_exp): Use zeroset instead of memset.
14838 2016-12-30  Jim Meyering  <meyering@fb.com>
14840         maint.mk: update list of intprops.h symbol names
14841         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
14842         This avoids a false failure of the sc_prohibit_intprops_without_use
14843         rule in grep.
14845 2016-12-29  Eric Blake  <eblake@redhat.com>
14847         getopt: fix parallel test failure
14848         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
14849         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
14850         * tests/test-getopt-main.h (main): Use different file names
14851         in case test-getopt-gnu and test-getopt-posix run in parallel.
14853 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
14855         xalloc: x2nrealloc check for ptrdiff_t overflow
14856         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
14857         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
14859 2016-12-24  Bruno Haible  <bruno@clisp.org>
14861         lock test: Fix performance problem on multi-core machines.
14862         * tests/test-lock.c (USE_VOLATILE): New macro.
14863         (struct atomic_int): New type.
14864         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
14865         functions.
14866         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
14867         as 'struct atomic_int'.
14868         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
14869         reclock_checker_thread, test_recursive_lock): Use the new functions.
14870         Reported by Eric Blake in
14871         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
14872         and by Pádraig Brady in
14873         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
14875 2016-12-19  Bruno Haible  <bruno@clisp.org>
14877         vma-iter: Fix endless loop on 64-bit Windows.
14878         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
14879         'unsigned long'.
14881 2016-12-19  Bruno Haible  <bruno@clisp.org>
14883         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
14884         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
14885         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
14886         Invoke gt_TYPE_WINT_T instead.
14887         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
14888         * modules/stdint (Files): Add m4/wint_t.m4.
14889         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
14890         * modules/wctype-h (Makefile.am): Likewise.
14891         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
14892         not only on MSVC.
14893         * lib/wctype.in.h (wint_t): Likewise.
14895 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14897         getopt-posix-tests: fix Makefile typo
14898         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
14899         Fix typo: the last ‘_’ was missing in the name.
14900         I suspect that the typo explains this build failure:
14901         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
14902         although I can’t reproduce the problem on Solaris 10 sparc.
14904 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14906         dfa: improve worst-case 'replace' performance
14907         See my note in Bug#22357#71.
14908         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
14909         (merge_constrained): New function, which is like
14910         the old 'merge' function, except with a new argument C2.
14911         Simplify the body by avoiding the need for different sections
14912         of code depending on whether one input is exhausted.
14913         (merge): Use the new function.
14914         (delete): Return the constraint of the deleted position,
14915         not the entire position.  Caller changed.
14916         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
14918 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
14920         dfa: performance improvement for removal of epsilon closure
14921         See Bug#22357#32.
14922         * lib/dfa.c (delete): Use binary search to find deleted index.
14923         (replace): New function.  It replaces a position with the followed set.
14924         (epsclosure): Replace it with a new algorithm.  Update caller.
14926 2016-12-18  Bruno Haible  <bruno@clisp.org>
14928         Split tests for getopt-posix and getopt-gnu.
14929         * tests/test-getopt-posix.c: New file.
14930         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
14931         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
14932         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
14933         GNULIB_TEST_GETOPT_GNU.
14934         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
14935         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
14936         (Makefile.am): Test test-getopt-posix instead of test-getopt.
14937         * modules/getopt-gnu-tests: New file.
14938         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
14940 2016-12-18  Bruno Haible  <bruno@clisp.org>
14942         posix-modules: Add options for specific platforms.
14943         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
14944         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
14945         Invoke func_tmpdir. Filter out the excludes.
14947 2016-12-18  Bruno Haible  <bruno@clisp.org>
14949         getopt: Fix link error for users of getopt() in <unistd.h>.
14950         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
14951         __need_getopt is defined. Undefine all macros before defining them.
14952         * modules/getopt (Include): Clarify that including <unistd.h> is also
14953         OK.
14954         * tests/test-getopt.c: Add comment.
14956 2016-12-17  Bruno Haible  <bruno@clisp.org>
14958         getaddrinfo tests: Avoid compilation error on MSVC.
14959         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
14960         getaddrinfo on native Windows.
14962 2016-12-17  Bruno Haible  <bruno@clisp.org>
14964         getlogin, getlogin_r: Fix link errors on MSVC.
14965         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
14966         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
14967         (Link): New section.
14968         * modules/getlogin_r (Files): Add m4/getlogin.m4.
14969         (configure.ac): Require gl_LIB_GETLOGIN.
14970         (Link): New section.
14971         * NEWS: Mention the new link requirements.
14972         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
14973         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
14975 2016-12-17  Bruno Haible  <bruno@clisp.org>
14977         Un-deprecate the 'progname' module.
14978         * NEWS: Describe the appropriate use-cases of 'progname' versus
14979         'getprogname'. Based on discussion summary at
14980         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
14982 2016-12-17  Bruno Haible  <bruno@clisp.org>
14984         Reorganize NEWS a bit.
14985         * NEWS: Move some not so important changes away from section
14986         "Important Notes".
14988 2016-12-17  Bruno Haible  <bruno@clisp.org>
14990         tanhf: Avoid redefinition error on MSVC.
14991         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
14992         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
14993         may be defined as an inline function.
14994         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
14995         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
14997 2016-12-17  Bruno Haible  <bruno@clisp.org>
14999         tanf: Avoid redefinition error on MSVC.
15000         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
15001         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
15002         may be defined as an inline function.
15003         * modules/math (Makefile.am): Substitute REPLACE_TANF.
15004         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
15006 2016-12-17  Bruno Haible  <bruno@clisp.org>
15008         sqrtf: Avoid redefinition error on MSVC.
15009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
15010         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
15011         may be defined as an inline function.
15012         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
15013         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
15015 2016-12-17  Bruno Haible  <bruno@clisp.org>
15017         sinhf: Avoid redefinition error on MSVC.
15018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
15019         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
15020         may be defined as an inline function.
15021         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
15022         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
15024 2016-12-17  Bruno Haible  <bruno@clisp.org>
15026         sinf: Avoid redefinition error on MSVC.
15027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
15028         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
15029         may be defined as an inline function.
15030         * modules/math (Makefile.am): Substitute REPLACE_SINF.
15031         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
15033 2016-12-17  Bruno Haible  <bruno@clisp.org>
15035         logf: Avoid redefinition error on MSVC.
15036         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
15037         may be defined as an inline function.
15039 2016-12-17  Bruno Haible  <bruno@clisp.org>
15041         log10l: Avoid redefinition error on MSVC.
15042         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
15043         may be defined as an inline function.
15045 2016-12-17  Bruno Haible  <bruno@clisp.org>
15047         log10f: Avoid redefinition error on MSVC.
15048         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
15049         may be defined as an inline function.
15051 2016-12-17  Bruno Haible  <bruno@clisp.org>
15053         hypotl: Avoid redefinition error on MSVC.
15054         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
15055         may be defined as an inline function.
15057 2016-12-17  Bruno Haible  <bruno@clisp.org>
15059         hypotf: Avoid redefinition error on MSVC.
15060         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
15061         may be defined as an inline function.
15063 2016-12-17  Bruno Haible  <bruno@clisp.org>
15065         fmodl: Avoid redefinition error on MSVC.
15066         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
15067         may be defined as an inline function.
15069 2016-12-17  Bruno Haible  <bruno@clisp.org>
15071         fmodf: Avoid redefinition error on MSVC.
15072         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
15073         may be defined as an inline function.
15075 2016-12-17  Bruno Haible  <bruno@clisp.org>
15077         expf: Avoid redefinition error on MSVC.
15078         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
15079         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
15080         may be defined as an inline function.
15081         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
15082         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
15084 2016-12-17  Bruno Haible  <bruno@clisp.org>
15086         coshf: Avoid redefinition error on MSVC.
15087         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
15088         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
15089         may be defined as an inline function.
15090         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
15091         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
15093 2016-12-17  Bruno Haible  <bruno@clisp.org>
15095         cosf: Avoid redefinition error on MSVC.
15096         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
15097         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
15098         may be defined as an inline function.
15099         * modules/math (Makefile.am): Substitute REPLACE_COSF.
15100         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
15102 2016-12-17  Bruno Haible  <bruno@clisp.org>
15104         atan2f: Avoid redefinition error on MSVC.
15105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
15106         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
15107         may be defined as an inline function.
15108         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
15109         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
15111 2016-12-17  Bruno Haible  <bruno@clisp.org>
15113         atanf: Avoid redefinition error on MSVC.
15114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
15115         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
15116         may be defined as an inline function.
15117         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
15118         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
15120 2016-12-17  Bruno Haible  <bruno@clisp.org>
15122         asinf: Avoid redefinition error on MSVC.
15123         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
15124         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
15125         may be defined as an inline function.
15126         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
15127         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
15129 2016-12-17  Bruno Haible  <bruno@clisp.org>
15131         acosf: Avoid redefinition error on MSVC.
15132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
15133         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
15134         may be defined as an inline function.
15135         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
15136         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
15138 2016-12-17  Bruno Haible  <bruno@clisp.org>
15140         Avoid redefinition errors on MSVC.
15141         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
15142         the function may be defined as an inline function.
15143         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
15144         the function may be defined as an inline function.
15146 2016-12-17  Bruno Haible  <bruno@clisp.org>
15148         Avoid redefinition errors on MSVC.
15149         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
15150         * lib/unistd.in.h: Include <stdio.h> when necessary.
15152 2016-12-17  Bruno Haible  <bruno@clisp.org>
15154         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
15155         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
15156         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
15157         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
15158         WINT_MAX.
15160 2016-12-17  Bruno Haible  <bruno@clisp.org>
15162         Avoid autoconf warning.
15163         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
15164         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
15166 2016-12-17  Bruno Haible  <bruno@clisp.org>
15168         fpending: Revert workaround against Emacs bug.
15169         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
15170         The Emacs bug is fixed by Eli Zaretskii in
15171         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
15173 2016-12-17  Bruno Haible  <bruno@clisp.org>
15175         getlogin_r tests: Port to mingw.
15176         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
15177         regression introduced on 2014-05-19.
15179 2016-12-17  Bruno Haible  <bruno@clisp.org>
15181         getlogin: Port to newer mingw.
15182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
15183         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
15184         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
15185         HAVE_GETLOGIN.
15186         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
15187         HAVE_GETLOGIN.
15188         * doc/posix-functions/getlogin.texi: Mention the issue.
15189         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
15190         regression introduced on 2014-05-14.
15192 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
15194         builtin-expect: improve port to IBM XL C
15195         Problem reported for z/OS by Daniel Richard G. in:
15196         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
15197         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
15198         Test for <builtins.h> directly.
15200         builtin-expect: 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/msg00074.html
15203         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
15204         Also allow __builtin_expect defined via a standard include file.
15206         regex: fix dependency
15207         Problem reported by Bruno Haible in:
15208         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
15209         * modules/regex: Depend on builtin-expect.
15211         builtin-expect: new module
15212         Fix fnmatch to use it.
15213         Problem reported for z/OS by Daniel Richard G.
15214         * lib/fnmatch.c (__builtin_expect):
15215         * lib/glob.c (__builtin_expect):
15216         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
15217         * lib/memmem.c (__builtin_expect) [!_LIBC]:
15218         * lib/scandir.c (__builtin_expect):
15219         * lib/strstr.c (__builtin_expect) [!_LIBC]:
15220         Remove macro; config.h now does this.
15221         * lib/gl_anytreehash_list1.h (add_to_bucket):
15222         * lib/regex_internal.h (BE):
15223         Assume __builtin_expect.
15224         * m4/builtin-expect.m4, modules/builtin-expect: New files.
15225         * modules/avltreehash-list, modules/fnmatch, modules/glob:
15226         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
15227         * modules/scandir, modules/strstr-simple:
15228         Depend on builtin-expect.
15230 2016-12-15  Bruno Haible  <bruno@clisp.org>
15232         init.sh: Add possibility to not delete temporary files.
15233         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
15234         to yes, don't erase the temporary directory.
15236 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
15238         regex: fix integer-overflow bug in never-used code
15239         Problem reported by Clément Pit–Claudel in:
15240         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
15241         * lib/regex_internal.h: Include intprops.h.
15242         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
15243         behavior on integer overflow.
15244         * modules/regex (Depends-on): Add intprops.
15246         fpending: fix port to MinGW on Emacs
15247         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
15248         Problem reported by Eli Zaretskii in:
15249         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
15250         Is Plan 9 still a valid porting target, anyway?
15252 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
15254         safe-alloc: use xalloc-oversized
15255         * lib/safe-alloc.c: Include xalloc-oversized.h.
15256         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
15257         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
15259         xalloc: do not exceed PTRDIFF_MAX
15260         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
15261         xalloc_oversized check, since objects larger than PTRDIFF_MAX
15262         bytes have pointer-subtraction problems.
15264         malloca: do not exceed PTRDIFF_MAX
15265         * lib/malloca.h: Include xalloc-oversized.
15266         (nmalloca): Use xalloc_oversized instead of rolling our own.
15267         * modules/malloca (Depends-on):
15268         * modules/relocatable-prog-wrapper (Depends-on):
15269         Add xalloc-oversized.
15271         quotearg: pacify GCC better
15272         * modules/quotearg (Depends-on): Add minmax, stdint.
15273         * lib/quotearg.c: Include minmax.h, stdint.h.
15274         (nslots): Now int, as there seems little point to going to extra
15275         work merely to support the INT_MAX slot, which nobody ever uses.
15276         (quotearg_n_options): Redo size-overflow checks to pacify GCC
15277         and to catch (mostly-theoretical) ptrdiff_t problems too.
15278         This can be done via one comparison.
15280 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
15282         xalloc-oversized: check for PTRDIFF_MAX too
15283         This avoids undefined behavior when subtracting pointers to
15284         objects containing more than PTRDIFF_MAX bytes.
15285         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
15286         Also return 1 if the result would exceed PTRDIFF_MAX>
15287         * modules/xalloc-oversized (Depends-on):
15288         Add stdint.
15290         dfa: fix glitches in previous commit
15291         Sorry, I don't know how I managed to commit the wrong version.
15292         * lib/dfa.c (MIN): Move up.
15293         (xpalloc): Now static.
15295         dfa: fix some unlikely integer overflows
15296         I found these while reviewing the recent Coverity-related fix.
15297         This patch changes part of dfa.c to prefer ptrdiff_t instead of
15298         size_t for object counts.  Using ptrdiff_t is the style typically
15299         used in Emacs; although it wastes a sign bit as sizes can never be
15300         negative, it makes -fsanitize=undefined more likely to catch
15301         integer overflows in index calculation, and nowadays the upside is
15302         typically more important than the downside.  Although perhaps the
15303         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
15304         of dfa.c already does, since it uses state_num which is signed),
15305         that is a bigger change and is not needed to fix the bugs I found.
15306         * lib/dfa.c: Include stdint.h and intprops.h.
15307         (TOKEN_MAX): New macro.
15308         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
15309         (charclass_index, parse_bracket_exp, addtok, insert, merge)
15310         (realloc_trans_if_necessary, free_mbdata):
15311         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
15312         This is safe because xpalloc checks that the sizes do not exceed
15313         either SIZE_MAX or PTRDIFF_MAX.
15314         (xpalloc): New function, mostly taken from Emacs.
15315         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
15316         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
15317         (charclass_index): Check for integer overflow in computing
15318         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
15319         added to it later.
15320         (alloc_position_set): Check for integer overflow.  On typical
15321         platforms this check has zero overhead, since the constant
15322         expression is false.
15323         (realloc_trans_if_necessary):
15324         Remove assertion, which I hope Coverity no longer needs.
15326         * modules/dfa (Depends-on): Add intprops, stdint.
15328 2016-12-12  Jim Meyering  <meyering@fb.com>
15330         dfa: add an assertion to avoid coverity false positive
15331         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
15332         warned that "newalloc1 - 2" could overflow.
15334 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
15336         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
15337         * dfa.h (DFA_CASE_FOLD): Remove.
15338         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
15340 2016-12-13  John W. Eaton  <gnu@jweaton.org>
15342         link: fix test to declare use of rename()
15343         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
15344         -Werror=implicit-function-declaration
15346 2016-12-12  Bruno Haible  <bruno@clisp.org>
15348         fpending: Port to native Windows with MSVC.
15349         * lib/fpending.c: Include stdio-impl.h.
15350         (__fpending): Include all known implementations. Err out if it's not
15351         ported.
15352         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
15353         * modules/fpending (Files): Add lib/stdio-impl.h.
15354         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
15356 2016-12-12  Bruno Haible  <bruno@clisp.org>
15358         stdioext: Port to native Windows with MSVC.
15359         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
15360         (struct _gl_real_FILE): New type.
15361         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
15362         Windows.
15363         * lib/fbufmode.c (fbufmode): Add code for native Windows.
15364         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
15365         other SystemV derived implementations.
15366         * lib/fpurge.c (fpurge): Likewise.
15367         * lib/freadable.c (freadable): Likewise.
15368         * lib/freadahead.c (freadahead): Likewise.
15369         * lib/freading.c (freading): Likewise.
15370         * lib/freadptr.c (freadptr): Likewise.
15371         * lib/freadseek.c (freadptrinc): Likewise.
15372         * lib/fseeko.c (fseeko): Likewise.
15373         * lib/fseterr.c (fseterr): Likewise.
15374         * lib/fwritable.c (fwritable): Likewise.
15375         * lib/fwriting.c (fwriting): Likewise.
15376         Reported by Gisle Vanem <gvanem@yahoo.no>.
15378 2016-12-11  Jim Meyering  <meyering@fb.com>
15380         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
15381         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
15382         to work with most shells, but not with the one provided by many
15383         Solaris 10 systems, so running configure with such a /bin/sh evokes
15384         e.g., "./configure: syntax error at line 33602: `(' unexpected".
15385         Reported by Assaf Gordon in
15386         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
15388 2016-12-10  Bruno Haible  <bruno@clisp.org>
15390         threadlib: Optimize out runtime test on Solaris >= 10.
15391         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
15392         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
15393         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
15395 2016-12-10  Bruno Haible  <bruno@clisp.org>
15397         stdint: Update doc about Solaris 9.
15398         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
15400 2016-12-09  Bruno Haible  <bruno@clisp.org>
15402         c-ctype tests: Fix link error on Solaris 9.
15403         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
15404         Reported at <https://savannah.gnu.org/bugs/?46827>.
15406 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
15408         dfa: fix performance bug that recomputes trans
15409         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
15410         25 on-demand changes.  The bug caused build_state to reset all
15411         d->trans elements to -2 even when d->trans was already non-null.
15412         Use C99 style decls after statements in this function.
15414         same-inode: port to MinGW
15415         Here st_ino is always 0, so change the definition of SAME_INODE so
15416         that 1 means the two files are the same, 0 with st_ino != 0 means
15417         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
15418         reported by Bruno Haible (Bug#25146).
15419         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
15420         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
15422 2016-12-04  Bruno Haible  <bruno@clisp.org>
15424         javacomp-script: Support Java 7 and 8.
15425         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
15426         target-version 1.7, 1.8.
15428 2016-12-02  Daiki Ueno  <ueno@gnu.org>
15430         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
15431         GPLv2" rewriting.
15433 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
15435         * gnulib-tool (func_import): Adhere to the license guideline when
15436         rewriting the license text to "LGPLv3+ or GPLv2":
15437         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
15439 2016-12-02  Bruno Haible  <bruno@clisp.org>
15441         localcharset: Avoid theoretical buffer overrun.
15442         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
15443         return value from setlocale if it would lead to a buffer overrun.
15445 2016-12-01  Bruno Haible  <bruno@clisp.org>
15447         Relicense some modules under LGPLv2+.
15448         Kevin Cernekee's approval is in
15449         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
15450         * modules/fseterr (License): Change to LGPLv2+.
15451         * modules/mbchar (License): Likewise.
15452         * modules/mbiter (License): Likewise.
15453         * modules/mbsnlen (License): Likewise.
15454         * modules/wcwidth (License): Likewise.
15456 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
15458         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
15459         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
15460         OS/2 kLIBC.
15462 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
15464         alphasort, scandir: Port to OS/2 kLIBC
15465         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
15466         declaration.
15467         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
15469 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
15471         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
15472         * lib/relocatable.c (relocate): Do not touch pathname if it is started
15473         with '/@unixroot'.
15475 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
15477         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
15478         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
15479         OS/2 kLIBC unless TCPV40HDRS is defined.
15481 2016-11-29  Jim Meyering  <meyering@fb.com>
15483         dfa: avoid new infinite loop
15484         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
15485         * lib/dfa.c (dfastate): When constructing a new state table, we could
15486         initially declare that we had found a match, and later find that
15487         constraints eliminate that possibility, yet continue to use the
15488         now stale "matched" indicator.  That would lead to an infinite loop.
15489         The solution is to update "matched" when necessary.
15490         Introduced by commit v0.1-983-g403adf1.
15492 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
15494         dfa: avoid match middle in multibyte character
15495         * lib/dfa.c (transit_state): If fails in matching single byte characters
15496         on a state including period expression in non-UTF8 multibyte locales,
15497         skip trailing bytes.
15498         (dfa_supported): Revert previous change.
15500 2016-11-27  Jim Meyering  <meyering@fb.com>
15502         dfa: avoid false match in non-UTF8 multibyte locales
15503         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
15504         as "not supported" so that callers will resort to using regex-based
15505         matcher.  This will surely hurt performance, but correctness trumps
15506         performance here, and the affected locales are less and less relevant,
15507         these days.  See grep's bug report https://bugs.gnu.org/24975.
15509 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
15511         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
15512         * lib/ptsname_r.c: Include the appropriate headers.
15513         [__sun]: Delete sys/sysmacros.h include.
15514         [_AIX || __osf__]: Likewise.
15515         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
15517 2016-11-27  Pádraig Brady  <P@draigBrady.com>
15519         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
15520         * lib/md4.c (md4_process_bytes): The existing define is made internal
15521         in recent versions of glibc, so also use this new public define.
15522         * lib/md5.c (md5_process_bytes): Likewise.
15523         * lib/sha1.c (sha1_process_bytes): Likewise.
15524         * lib/sha256.c (sha256_process_bytes): Likewise.
15525         * lib/sha512.c (sha512_process_bytes): Likewise.
15527 2016-11-27  Pádraig Brady  <P@draigBrady.com>
15529         maint: use a more standard return from mbrtowc test
15530         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
15531         from the test program as this often indicates an
15532         unhandled case in the test program.
15533         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
15534         (gl_MBRTOWC_SANITYCHECK): Likewise.
15535         (gl_MBRTOWC_NULL_ARG2): Likewise.
15536         (gl_MBRTOWC_NUL_RETVAL): Likewise.
15538 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
15540         freopen: work around glibc bug with closed fd
15541         Work around glibc bug#15589, where freopen mishandles the case
15542         where stdin etc. are already closed.
15543         * doc/posix-functions/freopen.texi (freopen): Document the bug.
15544         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
15545         instead of __need_FILE, as the latter does not work with glibc.
15546         Include <fcntl.h>, for open flags.
15547         (rpl_freopen): Work around glibc bug.
15548         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
15549         * modules/freopen (Depends-on): Add fcntl-h.
15550         * tests/test-freopen.c (main): Test for bug.
15552 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15554         fnmatch: fix typo introduced on 2016-08-17
15555         This fixes the port to non-GCC compilers that lack __builtin_expect.
15556         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
15558         dfa: simplify with new function fillset
15559         * lib/dfa.c (fillset): New function.
15560         Use it for clarity when applicable.
15562         dfa: fix glitches with on-demand states
15563         Also, adjust commentary to better match new code.
15564         Some of these glitches predate the recent change.
15565         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
15566         only non-initial states.
15567         (dfastate): Rename locals to better match new roles.
15568         Move them into nested scopes if this is easy.
15569         Omit unnecessary calls to zeroset.
15570         Simplify test for whether to throw in the positions of state 0.
15571         Omit C99-ism (decl after statement) since Gawk still wants C89.
15572         (build_state): Omit unnecessary test and assignment.
15573         Fix some confusion that counted transition tables inaccurately
15574         and could cause a memory leak.
15575         (dfaexec_main): Redo to make it clearer to the compiler that
15576         -1 and -2 are the only negative state numbers here.
15578 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
15580         dfa: addition of new state on demand
15581         * src/dfa.c (dfastate): Add argument UC, the current input character.
15582         Fill only a group including the character in transition table.
15583         (realloc_trans_if_necessary): Add the dummy state which means that a
15584         transition table is assigned but the next state is not assigned.
15585         (build_state): Return the next state.  All callers updated.
15586         (transit_state_singlebyte): If we get the dummy state,
15587         fill the transition table.
15588         (dfaexec_main): Handle the dummy state.
15589         (free_mbdata, dfafree): Consider the dummy state.
15591 2016-11-24  Daiki Ueno  <ueno@gnu.org>
15593         srclist: sync with released gettext
15594         * config/srclist.txt: Set "release" option to the files under
15595         $GETTEXT.
15597 2016-11-24  Daiki Ueno  <ueno@gnu.org>
15599         srclist: add "release" option
15600         * config/srclist.txt: Change the format so that the first column
15601         of each line points to the top-level directory of the source
15602         archive.
15603         * config/srclist-update: Accept "release" option that checks files
15604         from the most recently tagged revision in the source archive.
15606 2016-11-21  Bruno Haible  <bruno@clisp.org>
15608         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
15609         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
15610         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
15611         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
15612         Inline and remove member function 'rpl ()' of the wrapper struct.
15614 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15616         dfa: fix logic typo
15617         Problem reported by Stephane Chazelas (Bug#24973).
15618         * lib/dfa.c (using_simple_locale): Fix typo that caused some
15619         non-simple locales like fr_FR to be treated as simple.
15621 2016-11-20  Jim Meyering  <meyering@fb.com>
15623         fix test driver leaks: exclude, malloc, realloc
15624         * tests/test-exclude.c (main): Fix trivial leak.
15625         * tests/test-malloc-gnu.c (main): Likewise.
15626         * tests/test-realloc-gnu.c (main): Likewise.
15627         With these changes, grep's tests are now leak free.
15628         I.e., running them with ASAN elicits no failure:
15629           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
15630             AM_LDFLAGS='-fsanitize=address -static-libasan' check
15632 2016-11-11  Bruno Haible  <bruno@clisp.org>
15634         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
15635         * modules/libunistring: (License): Change from LGPL to
15636         "LGPLv3+ or GPLv2".
15637         * modules/libunistring-optional: Likewise.
15638         * modules/unicase/*: Likewise.
15639         * modules/uniconv/*: Likewise.
15640         * modules/unictype/*: Likewise.
15641         * modules/unigbrk/*: Likewise.
15642         * modules/unilbrk/*: Likewise.
15643         * modules/uniname/*: Likewise.
15644         * modules/uninorm/*: Likewise.
15645         * modules/unistdio/*: Likewise.
15646         * modules/unistr/*: Likewise.
15647         * modules/uniwbrk/*: Likewise.
15648         * modules/uniwidth/*: Likewise.
15650 2016-11-12  Bruno Haible  <bruno@clisp.org>
15652         Relicense some modules under LGPLv2+.
15653         Paul Eggert's approval is in
15654         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
15655         Eric Blake's approval is in
15656         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
15657         Ludovic Courtès's approval is in
15658         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
15659         * modules/isnand-nolibm (License): Change to LGPLv2+.
15660         * modules/isnanf-nolibm (License): Likewise.
15661         * modules/isnanl-nolibm (License): Likewise.
15663 2016-11-19  Bruno Haible  <bruno@clisp.org>
15665         Relicense some modules under LGPLv2+.
15666         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
15667         modules/vasnprintf.
15668         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
15669         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
15670         All other significant changes to the files in lib/ of these modules
15671         are from me.
15672         * modules/memcmp2 (License): Change to LGPLv2+.
15673         * modules/amemxfrm (License): Likewise.
15674         * modules/fpieee (License): Likewise.
15675         * modules/fpucw (License): Likewise.
15676         * modules/frexp-nolibm (License): Likewise.
15677         * modules/frexpl-nolibm (License): Likewise.
15678         * modules/printf-frexp (License): Likewise.
15679         * modules/printf-frexpl (License): Likewise.
15680         * modules/printf-safe (License): Likewise.
15681         * modules/signbit (License): Likewise.
15683 2016-11-17  Bruno Haible  <bruno@clisp.org>
15685         Enable Unicode decoder safety unconditionally.
15686         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
15687         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
15688         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
15689         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
15690         * lib/unistr/u8-prev.c (u8_prev): Likewise.
15691         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
15692         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
15693         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
15694         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
15695         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
15696         * lib/unistr/u16-prev.c (u16_prev): Likewise.
15697         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
15698         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
15699         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
15700         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
15701         * lib/unistr/u32-prev.c (u32_prev): Likewise.
15702         * lib/unistr/u32-next.c (u32_next): Likewise.
15703         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
15704         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
15705         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
15706         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
15707         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
15708         CONFIG_UNICODE_SAFETY tests unconditionally.
15709         * tests/unistr/test-u32-mblen.c (main): Likewise.
15710         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
15711         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
15712         * tests/unistr/test-u32-next.c (main): Likewise.
15713         * tests/unistr/test-u32-strmblen.c (main): Likewise.
15714         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
15715         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
15716         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
15717         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
15718         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
15719         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
15720         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
15721         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
15722         * lib/unistr/u16-check.c (u16_check): Update comment.
15723         * NEWS: Mention the changes that callers should be aware of.
15725 2016-11-19  Bruno Haible  <bruno@clisp.org>
15727         relocatable-prog-wrapper: Fix breakage on Cygwin.
15728         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
15729         (Depends-on): Remove intprops.
15730         * lib/relocwrapper.c: Update dependency tree.
15731         (strerror): Undefine.
15732         * build-aux/install-reloc (func_create_wrapper): Do not compile
15733         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
15735 2016-11-19  Bruno Haible  <bruno@clisp.org>
15737         strerror: Make it compile in C++ mode.
15738         * lib/strerror.c (strerror): Ignore the return value of memcpy().
15740 2016-11-15  Pedro Alves  <palves@redhat.com>
15742         sys_time: add gnulib::timeval for C++
15743         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
15744         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
15745         timeval macro.
15747 2016-11-14  Pedro Alves  <palves@redhat.com>
15749         snippet/c++defs: fix real-floating arg functions in C++ mode
15750         Also, define isfinite, isinf, isnan, signbit in the gnulib
15751         namespace instead of in the global namespace.
15752         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
15753         (_GL_END_NAMESPACE): New.
15754         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
15755         (isfinite, isinf, isnan, signbit) [__cplusplus &&
15756         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
15757         instead of in the global namespace.
15758         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
15759         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
15760         of in the global namespace.
15762 2016-11-13  Jim Meyering  <meyering@fb.com>
15764         strftime: don't use __THROW
15765         Each use of __THROW would provoke this from gcc-7-to-be:
15767           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
15768             on unit local functions [-Wattributes]
15769           static int iso_week_days (int, int) __THROW;
15770           ^~~~~~
15771         * lib/strftime.c (__THROW): Don't define.
15772         Remove each use of __THROW.
15773         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
15774         (tm_diff, iso_week_days, __strftime_internal): Likewise.
15776 2016-11-14  Paul Eggert  <eggert@union>
15778         obstack: port to gcc -fcheck-pointer-bounds
15779         Problem found by 'make check' failure on bleeding-edge coreutils
15780         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
15781         6.2.0-5ubuntu12), configured via "./configure
15782         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
15783         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
15784         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
15785         New macro, copied from fts_.h.
15786         (struct _obstack_chunk.contents): Use it.
15788 2016-11-14  Eric Blake  <eblake@redhat.com>
15790         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
15791         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
15792         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
15794 2016-11-14  Pádraig Brady  <P@draigBrady.com>
15796         strptime: fix compile error in recent change
15797         * lib/strptime.c (__strptime_internal): Fix ported code.
15799 2016-11-11  Bruno Haible  <bruno@clisp.org>
15801         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
15802         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
15803         (func_import): Extend determination of license_incompatibilities.
15804         (func_create_testdir): Extend table of license compatibility. Handle
15805         also the licenses GPLv3+, GPL, LGPLv3+.
15807 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
15809         strftime: tune %q
15810         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
15812         Merge strftime.c changes from glibc
15813         This incorporates:
15814         2007-10-16 [BZ #5184] Add tzset_called argument
15815         2008-06-13 [BZ #6612] pass reference to tzset_called around
15816         2009-10-30 Implement Burmese language locale for Myanmar
15817         2010-01-09 Add support for XPG7 testing
15818         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
15819         2015-10-20 Convert miscellaneous function definitions to prototype style
15820         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
15821         it anyway and this lessens the difference between gnulib and glibc.
15822         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
15823         (__THROW): Define if standard headers do not.
15824         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
15825         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
15826         Declare with __THROW.
15827         (__strftime_internal): Rename from strftime_case_. Add arg for
15828         whether tzset is called.  All uses changed.  Call tzset at most
15829         once.  Allow %OC, for Burmese.
15830         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
15831         Don't assume values are in range.
15833 2016-11-12  Eric Blake  <eblake@redhat.com>
15835         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
15836         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
15837         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
15838         different value.
15840 2006-11-12  Pedro Alves  <palves@redhat.com>
15842         Fix gnulib C++ namespace support and std::frexp
15843         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
15844         _GL_CXXALIASWARN.
15846 2006-11-12  Pedro Alves  <palves@redhat.com>
15848         GNULIB_NAMESPACE::func need not pull in rpl_func
15849         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
15850         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
15851         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
15852         struct instead of a function pointer.
15854 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
15856         manywarnings: fix -Wno-missing-field-initializers detection
15857         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
15858         to be independent of -Wunused-variable.  I.E. ensure the latter
15859         warning doesn't occur so that detection of the former is accurate.
15861 2016-11-05  Pádraig Brady  <pbrady@fb.com>
15863         strftime,strptime: support %q to represent the quarter
15864         * lib/strftime.c (strftime_case_): Add %q case.
15865         * lib/strptime.c (__strptime_internal): Likewise.
15866         * tests/test-strftime.c (quarter_test): A new test case.
15868 2016-11-03  Eric Blake  <eblake@redhat.com>
15870         bootstrap: Fix get_version() for AIX 5.3
15871         * build-aux/bootstrap (get_version): Factor out sed script, since
15872         indented comments choke AIX 5.3 sed.
15873         Reported-by: Michael Felt <aixtools@gmail.com>
15875 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15877         intprops: port to older XL C
15878         Problem reported by Alexander Samoilov in:
15879         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
15880         http://savannah.nongnu.org/bugs/?49448
15881         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
15882         Define to 1 only for XL C 12.1 or later, since this bug
15883         occurs in XL C for AIX 6.0 but not in 12.1.
15885 2016-11-02  Pádraig Brady  <P@draigBrady.com>
15887         backupfile: initialize default suffix within the implementation
15888         * lib/backupfile.c (find_backup_file_name): Initialize the
15889         global variable here, to simplify usage, and to only call
15890         getenv() when needed.
15892 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
15894         futimens: remove FIXME for old Linux kernels
15895         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
15896         this in 2012" FIXME, like that for utimensat.
15898         utimensat: remove FIXME for old Linux kernels
15899         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
15900         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
15901         this in 2012" FIXME, by assuming the file system bug is absent
15902         unless demonstrated to be present.  We no longer need to worry
15903         about Linux kernel 2.6.32 when building with newer kernels.
15905 2016-10-16  Bruno Haible  <bruno@clisp.org>
15907         qsort_r: Fix macrology for platforms that lack the function.
15908         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
15909         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
15910         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
15911         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
15912         not exist.
15913         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
15914         the function exists.
15915         * modules/qsort_r: Add comments.
15917 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
15919         sys_types: fix Texinfo typos
15920         * doc/glibc-functions/gnu_dev_major.texi:
15921         * doc/glibc-functions/gnu_dev_makedev.texi:
15922         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
15924 2016-10-26  John David Anglin  <dave.anglin@bell.net>
15926         getprogname: port to HP-UX
15927         See Bug#24805.
15928         * lib/getprogname.c (getprogname) [__hpux]: Port.
15929         * tests/test-getprogname.c (STREQ) [__hpux]:
15930         Special-case for HP-UX limitations on program name length.
15932 2016-10-20  Bruno Haible  <bruno@clisp.org>
15934         Update doc about target platforms.
15935         * doc/gnulib-intro.texi (Target Platforms): Update list.
15937 2016-10-15  Bruno Haible  <bruno@clisp.org>
15939         opendir, readdir, closedir: Relicense under LGPLv2+.
15940         * modules/opendir (License): Change to LGPLv2+.
15941         * modules/readdir (License): Likewise.
15942         * modules/closedir (License): Likewise.
15944 2016-10-16  Bruno Haible  <bruno@clisp.org>
15946         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
15947         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
15948         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
15949         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
15950         HAVE_DECL_STRERROR_R.
15952 2016-10-16  Bruno Haible  <bruno@clisp.org>
15954         Make the 'argp' module work without the 'error' module.
15955         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
15957 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
15959         diffseq: restore TOO_EXPENSIVE heuristic
15960         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
15961         (Bug#24715).  The simplest solution is to restore the
15962         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
15963         using a higher threshold to avoid Bug#16848 on smaller files.
15964         * lib/diffseq.h (struct context): Restore member too_expensive.
15965         (struct partition): Restore members lo_minimal, hi_minimal.
15966         (diag, compareseq): Restore arg find_minimal.  All uses changed.
15967         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
15968         1993 to make 'diff' run faster (but not as well) on large inputs,
15969         but use a threshold of 4096 instead of the old 256.
15970         * lib/fstrcmp.c (strcmp_bounded):
15971         * lib/git-merge-changelog.c (compute_differences):
15972         Adjust to diffseq.h changes.
15974 2016-10-22  Bruno Haible  <bruno@clisp.org>
15976         iconv: Avoid compilation error when bootstrapping GNU libiconv.
15977         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
15978         declaration yet, define ICONV_CONST to empty.
15980 2016-10-15  Bruno Haible  <bruno@clisp.org>
15982         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
15983         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
15984         module.
15986 2016-10-16  Bruno Haible  <bruno@clisp.org>
15988         system-quote tests: Avoid compiler warning on AIX.
15989         * tests/test-system-quote-child.c (fopen): Redefine like the system's
15990         <stdio.h> does.
15992 2016-10-16  Bruno Haible  <bruno@clisp.org>
15994         Fix some "gcc -Wall" warnings.
15995         * tests/test-ffsl.c (main): Use variable x, not i.
15996         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
15997         freopen.
15998         * tests/test-sethostname1.c (main): Explicitly ignore the return value
15999         of sethostname.
16001 2016-10-16  Bruno Haible  <bruno@clisp.org>
16003         gnulib-tool: Make --create-testdir on all modules work again.
16004         * gnulib-tool (func_create_testdir): Don't include the
16005         non-recursive-gnulib-prefix-hack module.
16007 2016-10-21  Daiki Ueno  <ueno@gnu.org>
16009         libunistring: change the maintainer to 'all'
16010         * modules/gen-uni-tables, modules/libunistring:
16011         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
16012         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
16013         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
16014         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
16015         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
16016         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
16017         * modules/uniwidth/*: Change the maintainer to 'all'.
16019 2016-10-16  Bruno Haible  <bruno@clisp.org>
16021         Simplify "configure: checking ..." messages.
16022         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
16023         AC_MSG_NOTICE.
16024         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
16026 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
16028         quotearg-tests: pacify gcc -Wall
16029         Problem reported by Bruno Haible in:
16030         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
16031         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
16032         * tests/test-quotearg.h: ... from here.
16034 2016-10-20  Pádraig Brady  <P@draigBrady.com>
16036         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
16037         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
16038         Needed on Centos <= 4.
16040 2016-10-20  Jim Meyering  <meyering@fb.com>
16042         printf.m4: fix a bug in detecting printf %j support
16043         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
16044         uintmax_t is defined in neither stdint.h nor inttypes.h.
16045         Before, this macro might have mistakenly set
16046         gl_cv_func_printf_sizes_c99=yes on such a system.
16047         Spotted by Zev Weiss.
16049 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
16051         sched: substitute HAVE_SYS_CDEFS_H too
16052         Problem reported by Tom G. Christensen in:
16053         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
16054         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
16055         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
16057 2016-10-19  Pádraig Brady  <P@draigBrady.com>
16059         quotearg: never write beyond the returned length
16060         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
16061         scan of the string when we initially encounter a single quote when
16062         shell quoting, so that if we then switch to a more concise quoting method
16063         we will not have written beyond that returned length.
16064         This is significant for sh-quote, which has separate routines
16065         to determine the length and do the actual quoting.
16066         * tests/test-quotearg.h: Reinstate the buffer bounds checking
16067         now that we never write more than the returned length.
16069 2016-10-18  Bruno Haible  <bruno@clisp.org>
16071         getprogname tests: Avoid failure in packages that use libtool.
16072         * tests/test-getprogname.c (main): Strip "lt-" prefix.
16073         Based on a patch by Jim Meyering.
16075 2016-10-16  Bruno Haible  <bruno@clisp.org>
16077         getprogname: Fix test failure on Cygwin. Comments.
16078         * lib/getprogname.h: Add comments.
16079         * lib/getprogname.c: Add comments. Fix #elif indentation.
16080         * tests/test-getprogname.c (main): On Cygwin, expect a result without
16081         ".exe" suffix.
16083 2016-10-16  Bruno Haible  <bruno@clisp.org>
16085         Make sure the libunistring detection rejects older versions with a
16086         known bug.
16087         * modules/unistr/u8-strtok (configure.ac): Bump required version.
16088         * modules/unistr/u16-strtok (configure.ac): Likewise.
16089         * modules/unistr/u32-strtok (configure.ac): Likewise.
16091 2016-10-18  Bruno Haible  <bruno@clisp.org>
16093         sh-quote, system-quote: revert regression of unit test.
16094         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
16095         * tests/test-system-quote-main.c (check_one): Likewise.
16097 2016-10-16  Pádraig Brady  <P@draigBrady.com>
16099         quotearg: fix stale tests
16100         * tests/test-quotearg.c [locale_results]: Add the missing str7
16101         entries to the expected results.
16102         * tests/test-system-quote-main.c (check_one): Don't enforce that we
16103         don't write beyond the returned length, since that's no longer the
16104         case if we switch to a more concise quoting style.
16105         * tests/test-sh-quote.c (check_one): Likewise.
16106         (main): Adjust for the new more concise quoting style.
16107         Reported by Bruno Haible.
16109 2016-10-16  Jim Meyering  <meyering@fb.com>
16111         non-recursive-gnulib-prefix-hack: fix inconsequential typo
16112         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
16113         to "$1".  This macro is always invoked with $1 == lib.
16114         Spotted by Bruno Haible
16116 2016-10-16  Bruno Haible  <bruno@clisp.org>
16118         Fix a test crash.
16119         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
16120         fails.
16122 2016-10-16  Pádraig Brady  <P@draigBrady.com>
16124         test-limits-h: suppress -Woverlength-strings
16125         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
16127 2016-10-15  Bruno Haible  <bruno@clisp.org>
16129         gettime, timespec, utimens: Relicense under LGPL.
16130         * modules/gettime (License): Change to LGPL.
16131         * modules/timespec (License): Likewise.
16132         * modules/utimens (License): Likewise.
16134 2016-10-14  Bruno Haible  <bruno@clisp.org>
16135             Pádraig Brady  <P@draigBrady.com>
16137         canonicalize-lgpl: Support the case path_max > INT_MAX.
16138         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
16139         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
16141 2016-10-13  Jim Meyering  <meyering@fb.com>
16143         getprogname: IBM z/OS: avoid NULL-dereference
16144         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
16145         upon strdup failure.
16147 2016-10-12  Jim Meyering  <meyering@fb.com>
16149         test-stdint: use _GL_VERIFY rather than "verify" for some tests
16150         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
16151         and an abbreviated diagnostic rather than verify with the full one,
16152         because the full-length strings would evoke warnings from gcc with
16153         -Woverlength-strings.
16155 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
16157         stdint: port SIZE_MAX to glibc s390
16158         Problem reported by Eric Blake in:
16159         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
16160         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
16161         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
16162         correct type, if possible.
16164 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
16166         getprogname: port to IBM z/OS
16167         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
16169 2016-10-11  Jim Meyering  <meyering@fb.com>
16171         maint: remove stray space after "." in AC_DEFINE comment.
16172         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
16173         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
16175 2016-10-05  Jim Meyering  <meyering@fb.com>
16177         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
16178         * lib/long-options.c (parse_long_options): Add a break statement
16179         to avoid this new warning/failure:
16180         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
16181           --create-testdir --dir=/t/x --with-tests --test long-options
16182         ../../gllib/long-options.c: In function 'parse_long_options':
16183         ../../gllib/long-options.c:66:12: error: this statement may \
16184           fall through [-Werror=implicit-fallthrough]
16185                    (*usage_func) (EXIT_SUCCESS);
16186                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
16188 2016-10-05  Jim Meyering  <meyering@fb.com>
16190         utimecmp: avoid new GCC 7 warning from -Wbool-operation
16191         Testing this module would fail when using GCC 7 like this:
16192         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
16193           --dir=/tmp/x --with-tests --test utimecmp
16194         ../../gllib/utimecmp.c: In function ‘utimecmp’:
16195         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
16196           [-Werror=bool-operation]
16197                          time_t s = src_s & ~ (res == 2 * BILLION);
16198                                             ^
16199         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
16200           [-Werror=bool-operation]
16201                src_s &= ~ (res == 2 * BILLION);
16202                         ^
16203         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
16204         Instead, make it explicit that we intend to apply it to 0 or 1.
16206 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
16208         dfa: save memory for states
16209         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
16210         states if dfa has a lot of caches.
16212 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
16214         wchar, wctype-h: fix for MinGW 3.22.2
16215         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
16216         special invocation, to fix issues with MinGW 3.22.2 wchar.h
16217         when included from <string.h>.
16218         * lib/wctype.in.h [__MINGW32__]: Add special invocation
16219         convention for MinGW 3.22.2, to solve issues with their
16220         wctype.h when included from <ctype.h>.
16222 2016-10-05  Jim Meyering  <meyering@fb.com>
16224         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
16225         * lib/long-options.c (parse_long_options): Add a break statement
16226         to avoid this new warning/failure:
16227         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
16228           --create-testdir --dir=/t/x --with-tests --test long-options
16229         ../../gllib/long-options.c: In function ‘parse_long_options’:
16230         ../../gllib/long-options.c:66:12: error: this statement may \
16231           fall through [-Werror=implicit-fallthrough]
16232                    (*usage_func) (EXIT_SUCCESS);
16233                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
16235         utimecmp: avoid new GCC 7 warning from -Wbool-operation
16236         Testing this module would fail when using GCC 7 like this:
16237         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
16238           --dir=/tmp/x --with-tests --test utimecmp
16239         ../../gllib/utimecmp.c: In function ‘utimecmp’:
16240         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
16241           [-Werror=bool-operation]
16242                          time_t s = src_s & ~ (res == 2 * BILLION);
16243                                             ^
16244         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
16245           [-Werror=bool-operation]
16246                src_s &= ~ (res == 2 * BILLION);
16247                         ^
16248         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
16249         Instead, make it explicit that we intend to apply it to 0 or 1.
16251 2016-10-03  Pádraig Brady  <P@draigBrady.com>
16253         quotearg: minimize shell quoting using double quotes
16254         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
16255         quote in encountered then use double quotes (c style quoting)
16256         when possible, as it simplifies the quoting.
16257         * tests/test-quotearg-simple.c: Add test cases.
16258         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
16259         for the fact we now may write beyond the returned length.
16261 2016-10-02  Jim Meyering  <meyering@fb.com>
16263         vasnprintf.c: avoid spurious warning from GCC 7
16264         The presence of cpp directives renders this "FALLTHROUGH" comment
16265         ineffective, so does not suppress the -Wimplicit-fallthrough warning
16266         from GCC 7 built from git on 2016-10-02.
16267         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
16268         directives, so that it takes effect once again.  This is clearly
16269         not a proper change, and I will revert it once this bug is fixed:
16270         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
16272 2016-10-01  Jim Meyering  <meyering@fb.com>
16274         getprogname: correct the test for a __progname variable
16275         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
16276         and AC_LINK_IFELSE to check for a global __progname.  If found,
16277         define HAVE_VAR___PROGNAME.
16278         * lib/getprogname.c (getprogname): Reflect the new name of the
16279         feature- checked preprocessor symbol:
16280         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
16282 2016-09-28  Jim Meyering  <meyering@fb.com>
16284         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
16285         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
16286         fall-through case with a /* fallthrough */ comment.
16288         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
16289         * lib/dfa.c (dfassbuild): Mark the end of this case with a
16290         /* fallthrough */ comment.
16292         getprogname: avoid __progname vs program_invocation_short_name pitfall
16293         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
16294         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
16295         not with Fedora 24's glibc-2.23.1-10.
16296         * lib/getprogname.c (__progname): Move this declaration down...
16297         (getprogname): ... into the #elif block where used, and make it
16298         explicitly "extern".
16300         getprogname: port to OpenBSD 5.1
16301         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
16302         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
16303         * modules/getprogname (configure.ac): Move most of this code...
16304         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
16305         increment serial number, and add a test for __progname.
16306         https://bugs.gnu.org/24562
16307         Reported by Nelson H. F. Beebe.
16309 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
16311         sched: port to GCC 6.2.1 on macOS Sierra
16312         Problem reported by Denis Davydov in:
16313         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
16314         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
16315         Include <sys/cdefs.h> before <sched.h>.
16316         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
16317         so that we needn’t worry about the sched.h include bug here.
16318         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
16319         and include it before <sched.h> if it exists, when
16320         checking for <sched.h>.
16322         tests/init.sh: port Alpine fix to AIX 7.1
16323         * tests/init.sh (compare_): When attempting to use diff -U3,
16324         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
16325         diff -u not outputting a space after leading '+', as the users
16326         of 'compare' should not be that picky about its output format.
16327         In the AIX 7.1 case, return with diff exit status (or with 2 if
16328         trouble), instead of some random nonzero exit status.
16329         * tests/test-init.sh (test_compare): Remove space after leading
16330         '+', so that AIX 7.1 'diff' passes the test.
16332 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16334         nl_langinfo: pacify GCC
16335         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
16336         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
16338         stdint: also set GL_GENERATE_LIMITS_H
16339         Problem reported by Jim Meyering in:
16340         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
16341         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
16343         limits-h, stdint: Don't assume extensions, fix typo
16344         * m4/limits-h.m4 (gl_LIMITS_H):
16345         * m4/stdint.m4 (gl_STDINT_H):
16346         Don't assume AC_USE_SYSTEM_EXTENSIONS.
16347         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
16348         reported by Jim Meyering in:
16349         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
16351 2016-09-21  Jim Meyering  <meyering@fb.com>
16353         getprogname: port to AIX
16354         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
16355         and strdup to obtain a short program name string.  Using code from
16356         Bruno Haible and an idea from Bastien ROUCARIÈS, in
16357         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
16358         Assaf Gordon reported that this new file would fail to compile on
16359         AIX-7.1 32bit.
16361 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16363         extensions: fix typo in comment
16364         * m4/extensions.m4: Sync from Autoconf master.
16366         stdint: support new _WIDTH macros
16367         * doc/posix-headers/stdint.texi: Document this.
16368         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
16369         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
16370         support for INTMAX_WIDTH, etc. as well as for support for just C99.
16371         * modules/stdint (Depends-on): Add limits-h.
16372         (Makefile.am): Substitute HAVE_C99_STDINT_H.
16373         * modules/stdint-tests (Depends-on): Add extensions, so that
16374         INTMAX_MAX etc. are defined.
16375         * tests/test-stdint.c: Verify the new macros.
16377         limits-h: new module
16378         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
16379         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
16380         * doc/posix-headers/limits.texi: Document new module.
16381         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
16382         * modules/limit-h-tests, tests/test-limits-h.c: New files.
16384         stdio: don't redefine __USE_MINGW_ANSI_STDIO
16385         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
16386         if it is already defined.  Apparently GNU Emacs relies on this.  See:
16387         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
16389 2016-09-15  Eric Blake  <eblake@redhat.com>
16391         sys_types: avoid glibc 2.25 warnings about major()
16392         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
16393         older autoconf.
16394         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
16395         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
16396         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
16397         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
16399         mountlist: include sysmacros.h for glibc
16400         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
16401         AC_HEADER_MAJOR.
16402         * lib/mountlist.c (includes): Use correct headers.
16404 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
16406         extensions: port to more ISO C TSes
16407         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
16408         master, to add support for more recent ISO C TRs and TSes.
16410 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16412         intprops: new macro TYPE_WIDTH
16413         * lib/intprops.h (TYPE_WIDTH): New macro.
16414         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
16415         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
16416         * lib/parse-datetime.y (parse_datetime2):
16417         Use it.
16419         extensions: port to recent ISO C TRs
16420         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
16421         Sync from Autoconf master, to add support for recent ISO C TRs.
16422         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
16423         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
16424         the MinGW option is not an extension.
16426 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
16428         dfa: port to Solaris 9
16429         Problems reported by Tom G. Christensen in:
16430         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
16431         * modules/dfa (Depends-on): Add isblank.
16432         * modules/dfa-tests (dfa_match_aux_LDADD):
16433         Rename from test_stat_LDADD, to fix typo.
16434         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
16436 2016-09-10  Jim Meyering  <meyering@fb.com>
16438         strverscmp: avoid link failure on OS X
16439         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
16440         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
16442 2016-08-16  Jim Meyering  <meyering@fb.com>
16444         dfa: new module, importing grep's DFA matcher
16445         Since grep's DFA matcher is now being used by two gnulib-enabled
16446         projects, grep and sed, it makes sense to version-control its
16447         sources and unit tests in one place: here.
16448         * modules/dfa: New module.
16449         * modules/dfa-tests: New file.
16450         * lib/dfa.c: New file, from grep.
16451         * lib/dfa.h: Likewise.
16452         * lib/localeinfo.c: Likewise.
16453         * lib/localeinfo.h: Likewise.
16454         * tests/dfa-match-aux.c: Likewise.
16455         * tests/dfa-invalid-char-class.sh: Likewise.
16456         * tests/dfa-match.sh: Likewise, with minor changes.
16457         * MODULES.html.sh (Misc): Add "dfa" to this list.
16459 2016-09-09  Jim Meyering  <meyering@fb.com>
16461         getprogname-tests: don't depend on assert-h
16462         * modules/getprogname-tests (Depends-on): Remove assert-h.
16463         It was not needed, and in fact would cause build failure for
16464         coreutils on some systems.  Reported by Assaf Gordon in https:
16465         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
16467 2016-09-07  Jim Meyering  <meyering@fb.com>
16469         getprogname-tests: work also when EXEEXT is nonempty
16470         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
16471         * tests/test-getprogname.c (main): Use it.
16472         Suggested by Gisle Vanem.
16474 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
16476         getprogname: fix errors in previous change
16477         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
16478         s/program_invocation_name/base/
16479         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
16481 2016-09-08  Pádraig Brady  <P@draigBrady.com>
16483         parse-datetime: restrict debug output to input string
16484         * lib/parse-datetime.y (parse_datetime2): If we parse
16485         all of the input but determine it's invalid, ensure
16486         we don't output the now invalid input pointer.
16487         This issue was seen with `date -d 'now +1'`.
16489 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
16491         flexmember: new macro FLEXALIGNOF
16492         * lib/flexmember.h: Include <stddef.h>, for offsetof.
16493         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
16494         this macro.  Update comments.
16496 2016-09-07  Jim Meyering  <meyering@fb.com>
16498         getprogname: port to systems with __argv (mingw, msvc)
16499         * lib/getprogname.c (getprogname): Include "dirname.h" and use
16500         last_component: more general than open coding it with hard-coded "/".
16501         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
16502         * modules/getprogname (Depends-on): Add dirname-lgpl.
16503         (configure.ac): Check for __argv in <stdlib.h>.
16504         * modules/getprogname-tests: New file.
16505         * tests/test-getprogname.c: New file.
16506         Suggested by Gisle Vanem in
16507         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
16509 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
16511         flexmember: port better to GCC + valgrind
16512         With a char[] flexible array member in a struct with nontrivial
16513         alignment, GCC-generated code can access past the end of the
16514         array, because GCC assumes there are padding bytes to get the
16515         struct aligned.  So the common idiom of malloc (offsetof (struct
16516         s, m), n) does not properly allocate an n-byte trailing member, as
16517         malloc’s argument should be the next multiple of alignof (struct s).
16518         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
16519         Although C11 apparently permits this GCC optimization (i.e., there
16520         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
16521         See the thread containing:
16522         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
16523         * lib/flexmember.h: New file.
16524         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
16525         * lib/localename.c, lib/time_rz.c:
16526         Include flexmember.h.
16527         * lib/fnmatch_loop.c (struct patternlist):
16528         * lib/localename.c (struct hash_node):
16529         Use FLEXIBLE_ARRAY_MEMBER.
16530         * lib/fnmatch_loop.c (EXT):
16531         * lib/fts.c (fts_alloc):
16532         * lib/glob.c (glob_in_dir):
16533         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
16534         * lib/localename.c (gl_lock_define_initialized):
16535         * lib/time_rz.c (tzalloc):
16536         Use FLEXSIZEOF instead of offsetof.
16537         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
16538         Check that the size of the struct can be taken.
16539         * modules/flexmember (Files): Add lib/flexmember.h.
16540         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
16541         Add flexmember.
16543 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
16545         getprogname: port to Solaris 10
16546         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
16547         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
16548         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
16550         stdalign: correct mistake in alignof doc
16551         Problem reported by Joseph Myers in:
16552         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
16553         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
16554         alignof(S) where S is a structure containing a flexible array
16555         member.  The Gnulib substitute does not support this, but C11 does.
16557 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
16559         main.mk: remove sc_program_name, since there is no more need to
16560         use set_program_name in tools (getprogname is enough for most
16561         of the cases).
16562         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
16563         * top/maint.mk (sc_program_name): Remove.
16565 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
16567         Port tests away from progname, since modules that need the
16568         program name already depend on getprogname.
16569         * modules/acl-tests (Depends-on): Remove progname.
16570         * modules/argmatch (Depends-on): Likewise.
16571         * modules/argmatch-tests (Depends-on): Likewise.
16572         * modules/argp-tests (Depends-on): Likewise.
16573         * modules/argp-version-etc-tests (Depends-on): Likewise.
16574         * modules/array-list-tests (Depends-on): Likewise.
16575         * modules/array-oset-tests (Depends-on): Likewise.
16576         * modules/avltree-list-tests (Depends-on): Likewise.
16577         * modules/avltree-oset-tests (Depends-on): Likewise.
16578         * modules/avltreehash-list-tests (Depends-on): Likewise.
16579         * modules/carray-list-tests (Depends-on): Likewise.
16580         * modules/copy-file-tests (Depends-on): Likewise.
16581         * modules/exclude-tests (Depends-on): Likewise.
16582         * modules/fchownat-tests (Depends-on): Likewise.
16583         * modules/fdopendir-tests (Depends-on): Likewise.
16584         * modules/filenamecat-tests (Depends-on): Likewise.
16585         * modules/fstatat-tests (Depends-on): Likewise.
16586         * modules/fstrcmp-tests (Depends-on): Likewise.
16587         * modules/linked-list-tests (Depends-on): Likewise.
16588         * modules/linkedhash-list-tests (Depends-on): Likewise.
16589         * modules/mkdirat-tests (Depends-on): Likewise.
16590         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
16591         * modules/nonblocking-socket-tests (Depends-on): Likewise.
16592         * modules/obstack-printf-tests (Depends-on): Likewise.
16593         * modules/openat-tests (Depends-on): Likewise.
16594         * modules/parse-datetime-tests (Depends-on): Likewise.
16595         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
16596         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
16597         * modules/quotearg-simple-tests (Depends-on): Likewise.
16598         * modules/quotearg-tests (Depends-on): Likewise.
16599         * modules/rbtree-list-tests (Depends-on): Likewise.
16600         * modules/rbtree-oset-tests (Depends-on): Likewise.
16601         * modules/rbtreehash-list-tests (Depends-on): Likewise.
16602         * modules/spawn-pipe-tests (Depends-on): Likewise.
16603         * modules/system-quote-tests (Depends-on): Likewise.
16604         * modules/uniname/uniname-tests (Depends-on): Likewise.
16605         * modules/uninorm/nfc-tests (Depends-on): Likewise.
16606         * modules/uninorm/nfd-tests (Depends-on): Likewise.
16607         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
16608         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
16609         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
16610         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
16611         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
16612         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
16613         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
16614         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
16615         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
16616         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
16617         * modules/unlinkat-tests (Depends-on): Likewise.
16618         * modules/version-etc-tests (Depends-on): Likewise.
16619         * modules/xalloc-die-tests (Depends-on): Likewise.
16620         * modules/xmemdup0-tests (Depends-on): Likewise.
16621         * modules/xprintf-posix-tests (Depends-on): Likewise.
16622         * modules/xvasprintf-tests (Depends-on): Likewise.
16623         * tests/test-argmatch.c: Do not include progname.h.
16624         (main) Stop calling set_program_name.
16625         * tests/test-argp-version-etc.c: Likewise.
16626         * tests/test-argp.c: Likewise.
16627         * tests/test-argv-iter.c: Likewise.
16628         * tests/test-array_list.c: Likewise.
16629         * tests/test-array_oset.c: Likewise.
16630         * tests/test-avltree_list.c: Likewise.
16631         * tests/test-avltree_oset.c: Likewise.
16632         * tests/test-avltreehash_list.c: Likewise.
16633         * tests/test-carray_list.c: Likewise.
16634         * tests/test-copy-acl.c: Likewise.
16635         * tests/test-copy-file.c: Likewise.
16636         * tests/test-exclude.c: Likewise.
16637         * tests/test-fchownat.c: Likewise.
16638         * tests/test-fdopendir.c: Likewise.
16639         * tests/test-filenamecat.c: Likewise.
16640         * tests/test-fstatat.c: Likewise.
16641         * tests/test-fstrcmp.c: Likewise.
16642         * tests/test-linked_list.c: Likewise.
16643         * tests/test-linkedhash_list.c: Likewise.
16644         * tests/test-mkdirat.c: Likewise.
16645         * tests/test-nonblocking-pipe-main.c: Likewise.
16646         * tests/test-nonblocking-socket-main.c: Likewise.
16647         * tests/test-obstack-printf.c: Likewise.
16648         * tests/test-openat.c: Likewise.
16649         * tests/test-parse-datetime.c: Likewise.
16650         * tests/test-pipe-filter-gi1.c: Likewise.
16651         * tests/test-pipe-filter-gi2-main.c: Likewise.
16652         * tests/test-pipe-filter-ii1.c: Likewise.
16653         * tests/test-pipe-filter-ii2-main.c: Likewise.
16654         * tests/test-quotearg-simple.c: Likewise.
16655         * tests/test-quotearg.c: Likewise.
16656         * tests/test-rbtree_list.c: Likewise.
16657         * tests/test-rbtree_oset.c: Likewise.
16658         * tests/test-rbtreehash_list.c: Likewise.
16659         * tests/test-sameacls.c: Likewise.
16660         * tests/test-set-mode-acl.c: Likewise.
16661         * tests/test-spawn-pipe-main.c: Likewise.
16662         * tests/test-system-quote-main.c: Likewise.
16663         * tests/test-unlinkat.c: Likewise.
16664         * tests/test-version-etc.c: Likewise.
16665         * tests/test-xalloc-die.c: Likewise.
16666         * tests/test-xfprintf-posix.c: Likewise.
16667         * tests/test-xmemdup0.c: Likewise.
16668         * tests/test-xprintf-posix.c: Likewise.
16669         * tests/test-xvasprintf.c: Likewise.
16670         * tests/uniname/test-uninames.c: Likewise.
16671         * tests/uninorm/test-u32-nfc-big.c: Likewise.
16672         * tests/uninorm/test-u32-nfd-big.c: Likewise.
16673         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
16674         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
16675         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
16676         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
16677         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
16678         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
16679         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
16680         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
16681         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
16682         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
16683         * tests/test-c-stack.c: (program_name): Do not define.
16684         (main): Do not set program_name.
16685         * tests/test-closein.c: Likewise.
16686         * tests/test-xstrtol.c: Likewise.
16687         * tests/test-yesno.c: Likewise.
16689 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
16691         Port modules to use getprogname explicitly, instead of requiring
16692         progname to be used (or program_name to be provided).
16693         * lib/argmatch.c: Do not include progname.h.
16694         [TEST] (program_name): Do not define.
16695         [TEST] (main): Call getprogname instead of using program_name.
16696         * lib/c-stack.c: Do not include progname.h.
16697         (program_name): Do not define.
16698         (die): Call getprogname instead of using program_name.
16699         * lib/chdir-long.c: Do not include progname.h.
16700         [TEST_CHDIR] (main): Do not set program_name.
16701         * lib/error.c [!_LIBC]: Include progname.h.
16702         [!_LIBC] (program_name): Define using getprogname.
16703         * lib/euidaccess.c: Do not include progname.h.
16704         [TEST] (main): Do not set program_name.
16705         * lib/git-merge-changelog.c: Include getprogname.h instead of
16706         progname.h.
16707         (usage): Call getprogname instead of using program_name.
16708         (main): Likewise.  Stop calling set_program_name.
16709         * lib/group-member.c: Do not include progname.h.
16710         [TEST] (main): Do not set program_name.
16711         * modules/argmatch (Depends-on): Add getprogname.
16712         * modules/c-stack (Depends-on): Likewise.
16713         * modules/error (Depends-on): Likewise.
16714         * modules/git-merge-changelog (Depends-on): Likewise.
16715         Also remove progname.
16717 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
16719         * NEWS: Document the deprecation of the 'progname' module.
16721 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
16723         getprogname: new module
16724         This provides a LGPL module for getting the name of the current
16725         program, using the same API found on *BSD systems.
16726         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
16727         * modules/getprogname: New files.
16728         * MODULES.html.sh (Misc): Add getprogname.
16730 2016-09-02  Jim Meyering  <meyering@fb.com>
16732         manywarnings: add -fno-common
16733         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
16734         to the list.  Quoting the manual, "Compiling with -fno-common is
16735         useful on targets for which it provides better performance, or if
16736         you wish to verify that the program will work on other systems that
16737         always treat uninitialized variable declarations this way [putting
16738         it in the data section]."  If diffutils had been using this sooner,
16739         it would have prevented this duplicate declaration issue:
16740         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
16742 2016-08-31  Simon Josefsson  <simon@josefsson.org>
16744         parse-datetime: Fix typo.
16745         * lib/parse-datetime.y (parse_datetime2): Fix typo.
16747 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
16749         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
16750         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
16751         GCC 5 and 6 that have __builtin_sub_overflow but not
16752         __builtin_sub_overflow_p.  With the recent changes, these
16753         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
16754         implementation than with INT_SUBTRACT_OVERFLOW implementation,
16755         since the former needs just one runtime comparison whereas the
16756         latter needs two.
16758         strverscmp: sync with glibc
16759         Although this doesn't exactly synchronize with glibc
16760         byte-for-byte, it makes the code behave the same as glibc.
16761         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
16762         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
16763         difference shouldn't matter in practical use.  All uses changed
16764         back to isdigit.
16765         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
16766         (next_state): Now unsigned char array; redo elements.
16767         (result_type): Now signed char array; redo elements.
16768         (__strverscmp): Fix glibc bug 9913 by using new states.
16769         * tests/test-strverscmp.c (main): Test glibc bug 9913.
16771 2016-08-29  Jim Meyering  <meyering@fb.com>
16773         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
16774         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
16775         similarly to how it was done to intprops.h.
16777 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
16779         intprops.h: port recent changes to GCC 6.2.0
16780         * lib/intprops.h (__has_builtin): Move earlier.
16781         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
16782         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
16783         the last argument can be null.  All uses changed.
16784         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
16785         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
16786         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
16787         and it's not clear which GCC versions it works for.
16788         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
16789         its definiens.
16791         intprops.h: use __typeof__ with GCC 7
16792         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
16793         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
16794         This avoids computing the expression's value (which might overflow!).
16796 2016-08-29  Jim Meyering  <meyering@fb.com>
16798         intprops.h, xalloc-oversized.h: work with gcc 7
16799         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
16800         __builtin_mul_overflow each accept a NULL pointer as the third
16801         argument.  However in gcc 7, that is no longer accepted.
16802         Instead, one must use the "_p"-suffixed names, with which, the
16803         third parameter is no longer a pointer.
16804         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
16805         the definition: not true for gcc 7 and subsequent.
16806         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
16807         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
16808         Provide new definitions for gcc 7 and subsequent.
16809         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
16810         that works with gcc-7.
16812         intprops.h: fix missing-backslash problems
16813         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
16814         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
16816 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16818         intprops: fix paren typo on old platforms
16819         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
16820         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
16821         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
16822         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
16823         && !defined LLONG_MAX]:
16824         Remove stray paren.
16826         intprops: port to OpenVMS
16827         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
16828         * doc/posix-headers/limits.texi: Document the problem.
16829         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
16830         Define if not already defined.
16832 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
16834         parse-datetime: improve debug implementation
16835         Follow-up to commit 12ad79069 ("add optional debug printing").
16836         Improve parse-datetime's debug implementation: remove macros,
16837         replace global debug flag variable with a function parameter,
16838         use nstrftime for formatting.
16839         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
16840         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
16841         (parse_datetime2): New function, accepts 'flags' parameter, supporting
16842         debug flag. Existing interface 'parse_datetime' left unmodified.
16843         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
16844         (struct parser_control): add 'parse_datetime_debug' member variable.
16845         (parse_datetime): Call new function 'parse_datetime2' without debug.
16846         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
16847         pc.parse_datetime_debug variable as needed.
16848         (to_year): Accept new flags parameter, instead of using global variable.
16849         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
16850         use struct 'debug' variable instead of global variable.
16851         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
16852         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
16853         correspnding functions directly instead of using macros.
16854         * modules/parse-datetime: Add gnulib's strftime module.
16856 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
16858         c-strcase-tests: port to EBCDIC
16859         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
16860         which assume ASCII encoding semantics to run only in ASCII
16861         mode, as they fail in EBCDIC.
16863         sigpipe-tests: fix typo
16864         * tests/test-sigpipe.sh: C, not B.
16866 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
16868         canonicalize-lgpl: fix errno after malloca fails
16869         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
16870         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
16871         * lib/canonicalize-lgpl.c (__realpath):
16872         Don't assume malloca sets errno on failure.
16874 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
16876         strtod: port errno handling to z/OS
16877         * lib/strtod.c (strtod): Save and restore errno more reliably.
16879 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
16881         strtod: port to z/OS
16882         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
16883         implementation.
16885 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
16887         strtod: port to z/OS
16888         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
16889         implementation.
16891         regex, string: rename to avoid '__string'
16892         * lib/regex.h, lib/string.in.h: Do not use the identifier
16893         '__string', as it is effectively reserved by string.h on z/OS.
16895         c-strcase-tests, wcwidth-tests: depend on c-ctype
16896         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
16897         Add c-ctype.
16899 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
16901         thread: port to z/OS
16902         * lib/glthread/thread.c, lib/glthread/thread.h:
16903         Rudimentary gl_thread support for z/OS.
16905         maint: port tests to z/OS errno behavior
16906         * tests/test-nonblocking-reader.h:
16907         * tests/test-nonblocking-writer.h:
16908         Accommodate z/OS errno code preferences. (I believe this should
16909         still be within spec; IBM is good at following the letter if not
16910         the spirit of such things.)
16912         maint: preprocessor changes to support z/OS
16913         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
16914         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
16915         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
16916         * tests/test-nonblocking-pipe.h:
16918         fclose, strstr-simple, wchar: port to z/OS
16919         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
16920         Changes to the Autoconf M4 code to support z/OS.  Note that
16921         fclose() is broken in a different way on z/OS than it is on other
16922         systems, thus the special-case in fclose.m4.
16924         iconv_open-utf-tests, iconv-tests: port to EBCDIC
16925         * tests/test-iconv-utf.c, tests/test-iconv.c:
16926         Added appropriately conditional #pragmas so that the test strings
16927         in test-iconv-utf.c are correctly interpreted in ASCII instead of
16928         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
16929         addressed in a more portable way by simply rewriting all the ASCII
16930         literal characters as octal escapes, but then you would lose the
16931         partial readability that the strings have now. Also, iconv_open()
16932         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
16934         c-strcase-tests, wcwidth-tests: port to EBCDIC
16935         * tests/test-c-strcasecmp.c: Include c-ctype.h.
16936         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
16937         * tests/test-wcwidth.c: Likewise.
16939 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
16941         stdbool: don't require _Bool for C++
16942         Problem reported by David Seifert in:
16943         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
16944         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
16945         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
16946         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
16947         stricter about checking that bool and _Bool are compatible in C.
16949 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
16951         getdelim: remove dependency on realloc-posix
16952         * lib/canonicalize-lgpl.c (alloc_failed)
16953         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
16954         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
16955         Use __set_errno where needed, for consistency.
16956         * lib/getdelim.c (alloc_failed): New function.
16957         (getdelim): Use it.
16959 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
16961         parse-datetime: add optional debug printing
16962         Print parsing information, warnings, and errors to stderr.
16963         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
16964         * lib/parse-datetime.y:
16965         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
16966         (PROGRESS*): Same as DEBUG, for progress reporting.
16967         (dbg_printf): Print message to stderr, with 'date' prefix.
16968         (struct parser_control): Add 'debug_*_seen' variables.
16969         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
16970         (debug_print_current_time, debug_print_relateive_time): Prints the
16971         current/relative date/time value of parser_control.
16972         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
16973         (to_year): Warn about 2-digit year parsing.
16974         (yylex):   Warn about unrecognized words.
16975         (get_effective_timezone): Returns current timezone in minutes.
16976         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
16977         clearly and unambigiously as possible.
16978         (debug_mktime_not_ok): Print detailed information about failed
16979         date/time values.
16980         (parse_datetime): Add DEBUG messages for failures, warnings. Add
16981         PROGRESS messages for status messages.
16982         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
16984 2016-08-06  Jim Meyering  <meyering@fb.com>
16986         tests/init.sh: exclude dash with bad "local" semantics
16987         * tests/init.sh (gl_shell_test_script_): Add a function to
16988         eliminate a shell like "dash" (unlike bash, zsh) that has
16989         surprising/risky "local var='...'" semantics.  Inspired by
16990         the problem and discussion in https://bugs.gnu.org/24116#11.
16992 2016-08-02  Ján Tomko  <jtomko@redhat.com>
16994         maint.mk: expand the prohibit_doubled_word regex
16995         This check has a static list of words that are checked for
16996         repetitions.  Expand it before running the perl script to
16997         avoid using expensive captures.  This decreases the cost
16998         for libvirt from 1.66s to 0.66s.
16999         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
17000         (sc_prohibit_doubled_word): Use it.
17002 2016-07-26  Ján Tomko  <jtomko@redhat.com>
17004         useless-if-before-free: skip non-matching lines early
17005         * build-aux/useless-if-before-free: First match each line with the
17006         simple/quick /\bif\b/ and reject if there is no match. This often
17007         saves the cost of the much more involved regular expression.
17008         For libvirt, this decreases the cost from 1.44s to 1.02s.
17010 2016-07-26  Ján Tomko  <jtomko@redhat.com>
17012         maint.mk: speed up sc_po_check
17013         sc_po_check would skip files based on their names, or on the
17014         existence of files with derived names. Rewrite it to use perl
17015         instead of shell to make the check faster.
17016         * top/maint.mk (perl_translatable_files_list_): Define.
17017         (sc_po_check): Use it.
17019 2016-07-30  Ján Tomko  <jtomko@redhat.com>
17021         maint.mk: speed up require_config_h_first
17022         Instead of spawning three processes per file,
17023         rewrite the check in perl and run it once for all the files.
17024         * top/maint.mk (perl_config_h_first_): Define.
17025         (sc_require_config_h_first): Use it in place of shell code.
17027 2016-07-26  Ján Tomko  <jtomko@redhat.com>
17029         maint.mk: speed up sc_po_check
17030         sc_po_check would skip files based on their names, or on the
17031         existence of files with derived names. Rewrite it to use perl
17032         instead of shell to make the check faster.
17033         * top/maint.mk (perl_translatable_files_list_): Define.
17034         (sc_po_check): Use it.
17036 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
17038         obstack: pacify GCC 6 with -Wnull-dereference
17039         Problem reported by Assaf Gordon in:
17040         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
17041         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
17042         Declare with __attribute_noreturn__.
17043         * lib/obstack.h (__attribute_noreturn__): New macro.
17045 2016-07-13  Eric Blake  <eblake@redhat.com>
17047         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
17048         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
17049         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
17051 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
17053         doc: mention glibc SSIZE_MAX buglet
17054         * doc/posix-headers/limits.texi (limits.h): Document the bug.
17056 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
17058         printf-posix: Fix mingw build
17059         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
17060         expression for detecting C symbol prefixes but forgot to qoute square
17061         brackets in the command line arguments for grep.  That way when
17062         building with mingw the condition was false although it ought to be
17063         true instead.  In particular scenarios this led to the following
17064         compile error:
17066             Cannot export rpl_printf: symbol not found
17067             Cannot export rpl_scanf: symbol not found
17068             collect2: error: ld returned 1 exit status
17070         Fix this by properly quoting square brackets.
17072 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
17074         mktime: call tzset as per POSIX
17075         Problem reported by Ludovic Courtès in:
17076         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
17077         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
17078         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
17080 2016-06-26  Pádraig Brady  <P@draigBrady.com>
17082         fts: handle readdir() errors
17083         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
17084         but also upon error when it will also set errno.  Therefore
17085         flag the error case from readdir().  We treat the case where
17086         no items are read the same as if the dir can't be accessed,
17087         i.e. by setting fts_errno to FTS_DNR.
17089 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
17091         intprops: port better to GCC 7
17092         GCC 7 __builtin_add_overflow supports a new usage form, where the
17093         last argument is a null pointer, and which merely returns 1 if an
17094         overflow would occur.  This is a constant expression if all
17095         arguments are constants, and should generate faster code when code
17096         needs to be generated.
17097         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
17098         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
17099         Use builtin operations if available.
17100         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
17101         operations are available, as it's almost surely faster.
17103 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
17105         intprops-test: port to GCC 6
17106         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
17107         since the bug is not fixed in GCC 6.1.
17109 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
17111         xalloc-oversized: port to GCC 7; fewer warnings
17112         GCC 7 will have a better way to deal with integer overflow.
17113         Plus, fix a warnings problem reported by Tim Ruehsen in:
17114         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
17115         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
17116         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
17117         For GCC 5, use __xalloc_oversized if both args are constants,
17118         or if pedantic.
17120 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
17122         regex: port to Sun C
17123         Reported by Daiki Ueno.
17124         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
17125         __restrict, in prototype.  This fixes a problem I introduced in
17126         the 2016-02-19 merge from glibc.
17128 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
17130         stdbool: Restore __bool_true_false_are_defined check
17131         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
17132         __bool_true_false_are_defined is still defined, even with C++11.
17134 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
17136         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
17137         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
17139 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
17141         Use GCC_LINT, not lint
17142         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
17143         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
17144         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
17145         Document problem with lint and _Noreturn.
17146         * lib/diffseq.h (IF_LINT, IF_LINT2):
17147         * lib/fts.c (sccsid):
17148         * lib/getndelim2.c (IF_LINT):
17149         * lib/gl_anylinked_list2.h (gl_linked_iterator)
17150         (gl_linked_iterator_from_to):
17151         * lib/gl_anytree_list2.h (gl_tree_iterator)
17152         (gl_tree_iterator_from_to):
17153         * lib/gl_anytree_oset.h (gl_tree_iterator):
17154         * lib/gl_array_list.c (gl_array_iterator)
17155         (gl_array_iterator_from_to):
17156         * lib/gl_array_oset.c (gl_array_iterator):
17157         * lib/gl_carray_list.c (gl_carray_iterator)
17158         (gl_carray_iterator_from_to):
17159         * lib/idcache.c:
17160         * lib/inet_ntop.c (IF_LINT):
17161         * lib/regcomp.c (build_charclass_op, create_tree):
17162         * lib/regex_internal.c (re_acquire_state)
17163         (re_acquire_state_context):
17164         * lib/trigl.c (rcsid):
17165         * lib/trim.c (IF_LINT):
17166         * lib/vasnprintf.c (IF_LINT):
17167         * lib/verify.h (assume):
17168         Treat GCC_LINT like lint.
17170 2016-05-29  Bruno Haible  <bruno@clisp.org>
17172         secure_getenv: Port to many more platforms.
17173         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
17174         functions.
17175         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
17176         for non-BSD Unix platforms and for native Windows.
17177         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
17178         Prompted by a request from Nikos Mavrogiannopoulos.
17180 2016-05-27  Eric Blake  <eblake@redhat.com>
17182         canonicalize: Fix broken probe for realpath.
17183         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
17184         in logic introduced in 54615b95.
17186 2016-05-26  Eric Blake  <eblake@redhat.com>
17188         unsetenv: relax to LGPLv2+
17189         * modules/unsetenv (License): Match setenv license.
17191 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
17193         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
17194         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
17195         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
17196         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
17197         (commonarg, dirargs, dirs, infoarg, generate_ascii)
17198         (generate_html, generate_info, generate_tex, outdir)
17199         (source_extra, split, srcfile, texarg): Move above 'version'.
17200         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
17202 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
17204         manywarnings: update for GCC 6.1
17205         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
17206         Add GCC 6.1 options that apply to C.
17207         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
17208         do not apply to C, are obsolescent, etc.
17210 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
17212         glob: size_t overflow checks
17213         * lib/glob.c (__has_builtin): New macro.
17214         (size_add_wrapv, glob_use_alloca): New static functions.
17215         (glob, glob_in_dir): Check for size_t overflow in several places,
17216         and fix some size_t checks that were not quite right.
17218         glob: don't assume INT_MAX < SIZE_MAX
17219         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
17220         latter is not portable to (probably theoretical) hosts where
17221         SIZE_MAX <= INT_MAX.
17223 2016-05-09  Bruno Haible  <bruno@clisp.org>
17225         Fix undefined behaviour in gettext.h.
17226         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
17227         pointer's value after the storage it points to has been freed.
17228         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
17229         Spotted by Coverity.
17231 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
17233         git-version-gen: avoid undefined shift
17234         Problem reported by Mosè Giordano in:
17235         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
17236         * build-aux/git-version-gen: Avoid undefined behavior if invoked
17237         with --prefix or --fallback but without a later argument.  While
17238         we're at it, omit unnecessary quotes.
17240 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
17242         glob: merge glibc changes into lib/glob.c
17243         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
17244         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
17245         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
17246           struct dirent [BZ #19779]
17247         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
17248           callback gl_readdir
17249         2015-10-20 Convert miscellaneous function definitions to prototype style
17250         2015-10-20 Convert 113 more function definitions to prototype style
17251           (files with assertions)
17252         2015-06-12 Fix getlogin_r namespace (bug 18527).
17253         2014-02-10 Use glibc_likely instead __builtin_expect.
17254         2013-10-20 When glob pattern contains a trailing slash match only
17255           directories. Fixes bug 10278.
17256         2013-09-04 glob: silence -Wattribute warnings
17257         2013-06-07 Avoid use of "register" as optimization hint.
17258         2012-09-25 Use size_t instead of int for internal variables in glob
17259           (bug 14621)
17260         2011-07-20 Check for overflows in expressions
17261         2011-05-28 Remove unused variable
17262         2011-05-22 Add a few more alloca size checks
17263         2010-03-27 Whitespace fixes
17264         2010-03-27 Fix one more issue with the glob patch
17265         2010-03-24 Fix glob with empty pattern
17266         2008-05-27 Remove useless more "if" tests before "free"
17267         * modules/glob (Depends-on): Add stdint.
17269 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
17271         mktime: port to stricter signed overflow checking
17272         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
17273         (long_int): Require width for INT_MAX * 3 * (seconds per year),
17274         instead of merely for INT_MAX * 2.  In practice platforms that
17275         do the latter also do the former.
17276         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
17277         (shr): New static function, replacing SHR.  All uses changed.
17278         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
17279         and TIME_T_MAX.  All uses changed.
17280         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
17281         Use long_int, not time_t.
17282         (long_int_avg): New static function, replacing time_t_avg.
17283         All uses changed.  Round toward positive infinity, as that
17284         generates slightly better code.
17285         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
17286         by INT_ADD_WRAPV.
17287         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
17288         (convert_time): New static function.
17289         (ranged_convert): Use it
17290         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
17291         Use simpler test for loop exit.
17292         (__mktime_internal): Store negative of guessed offset, to simplify
17293         overflow checking.  Remove no-longer-needed test for small time_t
17294         overflows.
17296         mktime: speed up DEBUG_MKTIME benchmarks
17297         Call tzset just once, at the start, rather than for every test
17298         case.  This lets us measure the CPU cost of mktime as opposed to
17299         that of tzset.  This is relevant when TZ is not set and glibc is
17300         being used.  This speeds up tests by a factor of 40 on my Fedora
17301         23 x86-64 platform.
17302         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
17303         to call tzset and as a sanity check.  Later on, use localtime_r
17304         instead of localtime.
17306         mktime: resurrect DEBUG_MKTIME testing
17307         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
17308         Include <string.h>, for strcmp.
17310         mktime: simplify DEBUG_MKTIME
17311         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
17312         Simplify later usage accordingly.
17314         Port mktime_internal offset to unsigned time_t
17315         This avoids some assumptions about wraparound arithmetic on
17316         signed integer overflow.
17317         * lib/mktime-internal.h (mktime_offset_t): New type.
17318         (mktime_internal): Use it in decl.
17319         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
17321         * lib/mktime.c (__mktime_internal, localtime_offset):
17322         * lib/timegm.c (timegm): Use it.
17323         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
17324         (gl_FUNC_MKTIME): Require it.
17326 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
17328         xstrtol: prohibit monstrosities like "1bB"
17329         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
17330         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
17331         "B" only if the first suffix needs a base.
17332         * tests/test-xstrtol.sh: Test this.
17334 2016-04-21  Pádraig Brady  <P@draigBrady.com>
17336         xstrtod: reinstate setting of *result upon ERANGE
17337         * lib/xstrtod.c (XSTRTOD): The user may decide to use
17338         the returned limits upon ERANGE, so allow and document that.
17340 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
17342         xstrtod: modify *result only if no errors
17343         * lib/xstrtod.c (XSTRTOD).
17345 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
17347         btowc: document problems in C locale
17348         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
17349         with mbrtowc.  See: http://bugs.gnu.org/23269#32
17351 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
17353         mktime: improve integer overflow checking
17354         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
17355         (WRAPV): Remove; no longer needed.
17356         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
17357         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
17358         Remove.  Use intprops.h defns instead.
17359         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
17360         Use bool for Boolean, for clarity.
17361         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
17362         detect integer overflow.
17363         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
17365         intprops: check two's complement assumption
17366         Suggested by Eric Blake in:
17367         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
17368         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
17369         short, int, long, and (if available) long long are two's complement.
17370         * modules/intprops (Depends-on): Add 'verify'.
17372         intprops, mktime, strtol: assume two's complement
17373         These macros were not portable to every conforming C11 ones'
17374         complement platform.  It's not worth the hassle of porting to some
17375         platforms that use ones' complement or signed magnitude, as such
17376         platforms are almost purely theoretical nowadays and porting even
17377         to some of them makes the code harder to review for little
17378         practical benefit.  Problem reported by Florian Weimer in:
17379         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
17380         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
17381         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
17382         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
17383         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
17384         (TYPE_SIGNED_MAGNITUDE):
17385         Remove.  All uses rewritten to assume two's complement, which is
17386         all we can reasonably test nowadays anyway.
17387         * top/maint.mk (_intprops_names): Remove the removed macros.
17389 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
17391         stdint: port to strict C11 left shift
17392         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
17393         Pacify clang -Wshift-negative-value, which should be an issue only
17394         on clang setups where stdint.h does not conform to C11 or to C++11.
17395         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
17397 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
17399         mbrtowc: work around glibc bug#19932
17400         Fix mbrtowc so that it never returns -1 in the C locale,
17401         as this conflicts with a future version of POSIX
17402         http://austingroupbugs.net/view.php?id=663#c2738
17403         and causes problems with GNU grep: http://bugs.gnu.org/23234
17404         See glibc bug 19932:
17405         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
17406         * doc/posix-functions/mbrlen.texi (mbrlen):
17407         * doc/posix-functions/mbrtowc.texi (mbrtowc):
17408         Document the glibc bug.
17409         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
17410         Include hard-locale.h, locale.h.
17411         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
17412         if the bug is possible.
17413         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
17414         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
17415         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
17416         * modules/mbrtowc (Depends-on): Add hard-locale.
17417         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
17418         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
17419         * tests/test-mbrtowc5.sh: New file.
17421 2016-04-03  Pedro Alves  <palves@redhat.com>
17423         stdint: detect good enough pre-C++11 stdint.h in C++ mode
17424         When gnulib is configured in C++ mode for a system with a working C99
17425         implementation of stdint.h that predates C++11, gnulib ends up
17426         substituting stdint.h anyway.  This works on most targets, but on e.g.,
17427         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
17428         MinGW is LLP64.  Instead of trying to detect the right types, detect
17429         good-enough-pre-C++11 stdint.h and in such case define
17430         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
17431         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
17432         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
17433         conforms to C99.  If it does, check whether it hides symbols
17434         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
17435         does, define those macros in config.h.
17437 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
17439         argp: merge changes from glibc
17440         Among other things, this should fix problems found by a Coverity
17441         scan and reported by Andrei Borzenkov:
17442         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
17443         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
17444         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
17445         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
17446         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
17447         * lib/argp.h:
17448         Merge changes from glibc.
17449         * tests/test-argp-2.sh: Adjust to match new behavior.
17451 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
17453         stddef: support configuring with g++
17454         Problem reported by Ángel González in:
17455         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
17456         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
17457         Do not define if _GCC_MAX_ALIGN_T is defined.
17459 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
17461         test-framework-sh: minor cleanups
17462         * tests/init.sh (testdir_prefix_): Output a trailing newline,
17463         since strictly speaking POSIX requires this.
17464         (setup_): Do not use the variable 'fail', as that makes the
17465         trace output harder to read ('fail' is typically used by
17466         tests to mean the test failed).  Treat // portably.
17467         Check that new directory is not merely a sibling of the tmp dir.
17468         Avoid unnecessary invocation of tr.
17470         test-framework-sh: revert port to NetBSD 7.0
17471         It was a false alarm; I misinterpreted Assaf Gordon's report.
17472         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
17473         Restore.
17474         (test_dir_): Adjust to mktempd_ change.
17475         (mktempd_): Restore 2nd arg.  Use -t again.
17476         (base_template_, template_, nx_): Resurrect old code.
17478         Port better to Alpine Linux
17479         Its diff implementation does not support -c, but does support -U3.
17480         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
17481         * tests/init.sh (diff_opt_): New var.
17482         (compare_): Prefer diff -U3 to diff -c to plain diff.
17484 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17486         test-framework-sh: port to NetBSD 7.0
17487         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
17488         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
17489         Remove.  All uses removed.
17490         (test_dir_): Adjust to mktempd_ change.
17491         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
17492         (base_template_, template_, nx_): Simplify by hardcoding.
17494 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
17496         gitlog-to-changelog: suppress ignored chatter
17497         * build-aux/gitlog-to-changelog: Do not warn about skipping
17498         an SHA if it would have been ignored anyway.
17500 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
17502         setlocale: add "sv" to Windows language table
17503         * lib/setlocale.c (language_table) [W32]: Add "sv".
17504         Reported in <https://savannah.gnu.org/bugs/?44588>.
17506 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
17508         sys_select: port to new Cygwin
17509         Problem reported by Ken Brown in:
17510         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
17511         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
17512         diagnostics.
17514 2016-03-17  Jim Meyering  <meyering@fb.com>
17516         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
17517         * tests/test-userspec.c (main): Remove unnecessary braces and fix
17518         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
17519           test-userspec.c:176:9: error: statement is indented as if it were \
17520             guarded by... [-Werror=misleading-indentation]
17521                    {
17522                    ^
17523           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
17524                  if (!diag && !T[i].result)
17525                  ^~
17527 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
17529         time_rz: port to clang -Wunused-const-variable
17530         * lib/time_rz.c (TZ): Remove.  All uses removed.
17532         std-gnu11: improve clang support
17533         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
17534         2016-03-15 Also try clang
17535         2016-03-15 Port C11 and C++11 testing to clang
17537         select: port more to Intel 2016.1.150 compiler
17538         Problem reported by Balázs Hajgató in:
17539         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
17540         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
17542 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
17544         select: try to port to 2016.1.150 compiler
17545         Problem reported by Balázs Hajgató in:
17546         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
17547         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
17548         POSIX specifies 'restrict'.
17550 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
17552         localename-tests: memory allocation fixes
17553         * tests/test-localename.c (test_locale_name)
17554         (test_locale_name_thread): Don't call freelocale on a locale
17555         that was the base of a successful newlocale, as that
17556         results in a double free.  Problem reported by Assaf Gordon.
17557         (test_locale_name_thread): Free saved names after use, to pacify
17558         gcc -fsanitize=address.
17560 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
17562         intprops: make .h file license match module
17563         * lib/intprops.h: Change the license wording to match glibc format.
17564         This is what is in modules/intprops anyway.  See:
17565         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
17567 2016-03-08  Eric Blake  <eblake@redhat.com>
17569         acl: fix missing return on Cygwin
17570         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
17571         fall off end of function. Fixes http://bugs.gnu.org/22949
17573 2016-03-05  Bruno Haible  <bruno@clisp.org>
17575         extern-inline: port to PGI CC
17576         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
17577         keyword 'inline'.
17578         Reported by Adam James Stewart in:
17579         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
17581 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
17583         signbit: port back to pre-C++11 GCC
17584         * lib/math.in.h (signbit): Do previous change only if
17585         __cplusplus < 201103.  See Jonathan Wakely in:
17586         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
17588 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
17590         mountlist: recognize autofs-mounted remote file systems, too
17591         Originally reported at: https://bugzilla.redhat.com/1309247
17592         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
17593         "-hosts" because it is used by autofs to mount remote file systems.
17595 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
17597         signbit: port to C++ with GCC 6
17598         * lib/math.in.h (signbit) [__cplusplus]:
17599         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
17600         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
17602         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
17604         regex: make it closer to libc
17605         Make Idx a signed type, rather than possibly unsigned.
17606         The unsignedness was not really buying us anything, since the code
17607         overflows for other reasons before getting to PTRDIFF_MAX.  Making
17608         it signed allows us to use -1 and -2 with abandon, like libc does,
17609         thus lessening the number of differences between gnulib and libc.
17610         Also, it should help avoid gratuitous warnings like the one
17611         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
17612         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
17615         regex: merge patches from libc
17617         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
17618         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
17619         Convert miscellaneous function definitions to prototype style.
17620         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
17621         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
17622         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
17623         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
17624         (re_search_internal):
17625         Convert to prototype-style function definition.
17626         Use internal_function for internal functions.
17628 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
17630         stdalign: port to older HP and IBM cc
17631         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
17632         C compilers, by checking their version numbers.  These version
17633         numbers appear in MariaDB and in Qt code that dates way back and
17634         that conditiionally uses the 'aligned' attribute.
17636 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
17638         stdalign: port to clang 3.7.0
17639         Problem reported by Herbert J. Skuhra in:
17640         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
17641         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
17642         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
17643         https://llvm.org/bugs/show_bug.cgi?id=26547
17645 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
17647         readdir_r: now obsolescent
17648         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
17649         * lib/mountlist.c (read_file_system_list): Add a FIXME.
17651 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
17653         misc: port better to gcc -fsanitize=address
17654         Without these patches, ./configure CFLAGS='-fsanitize=address'
17655         would compute incorrect values.  This patch fixes some (but not all)
17656         test failures with recent glibc, with this configuration.
17657         * m4/acl.m4 (gl_ACL_GET_FILE):
17658         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
17659         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
17660         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
17661         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
17662         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
17663         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
17664         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
17665         * m4/getline.m4 (gl_FUNC_GETLINE):
17666         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
17667         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
17668         * m4/regex.m4 (gl_REGEX):
17669         * m4/strndup.m4 (gl_FUNC_STRNDUP):
17670         * tests/test-calloc-gnu.c (main):
17671         * tests/test-duplocale.c (main):
17672         * tests/test-getgroups.c (main):
17673         * tests/test-getline.c (main):
17674         * tests/test-inttostr.c (main):
17675         * tests/test-localename.c (test_locale_name)
17676         (test_locale_name_thread, test_locale_name_environ)
17677         (test_locale_name_default):
17678         * tests/test-regex.c (main):
17679         * tests/test-setlocale1.c (main):
17680         * tests/test-stat.h (test_stat_func):
17681         Free heap-allocated storage before exiting.
17682         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
17683         Don't match *_foo symbols inserted by AddressSanitizer.
17684         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
17686 2016-02-02  Jim Meyering  <meyering@fb.com>
17688         verify-tests: also remove stray test-verify.Tpo
17689         * modules/verify-tests (Makefile.am): Arrange for "make clean"
17690         to remove the test-verify.Tpo file that is left behind by
17691         the automake-generated rule upon compilation failure.
17692         Otherwise, that .Tpo file would cause a failed "make distcheck"
17693         at least for grep.
17695 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
17697         std-gnu11: new module
17698         This makes it easier for applications to prefer C11 and C++11
17699         to older variants, when compiling C and C++ code.
17700         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
17701         a nontrivial chunk of GPLed Autoconf source code.
17702         * COPYING: Mention the m4/*.m4 copyright situation.
17703         * MODULES.html.sh (std-gnu11): New module.
17704         * m4/std-gnu11.m4, modules/std-gnu11: New files.
17706 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
17708         get-permissions, strftime: fix grammar in comments
17709         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
17710         some grammar fixes Alan Mackenzie made to GNU Emacs.
17712 2016-01-25  Daiki Ueno  <ueno@gnu.org>
17714         gettext: mark as obsolete
17715         Suggested by Paul Eggert in:
17716         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
17717         * modules/gettext (Status): Mark as obsolete.
17718         (Notice): Suggest to use 'gettext-h' instead.
17719         * modules/gettext-h (Description): Suggest GNU gettext, instead of
17720         the 'gettext' module.
17722 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
17724         gnulib-tool: don't give up on ln -s so easily
17725         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
17726         because an earlier one failed.  The targets could be on different
17727         file systems.  Problem reported by KO Myung-Hun in:
17728         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
17730         closedir: fix OS/2-related typos
17731         Problem reported by KO Myung-Hun in:
17732         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
17733         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
17734         in the last couple of changes.
17736 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
17738         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
17739         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
17740         copying a directory.
17742 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
17744         regex: treat [x] as x if x is a unibyte encoding error
17745         Problem reported by Aharon Robbins in:
17746         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
17747         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
17748         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
17750         closedir, dirfd, opendir: port to OpenSolaris 5.10
17751         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
17752         * m4/dirfd.m4 (gl_FUNC_DIRFD):
17753         * m4/opendir.m4 (gl_FUNC_OPENDIR):
17754         Don't use ${word##pat} substitution, as it doesn't work in
17755         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
17756         http://bugs.gnu.org/22443#11
17758 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17760         bootstrap: use American spelling
17761         * build-aux/bootstrap: Honor American spelling.
17763 2016-01-22  Karl Berry  <karl@freefriends.org>
17765         * doc/posix-functions/localtime.texi,
17766         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
17768 2016-01-21  Bruno Haible  <bruno@clisp.org>
17770         hash-pjw-bare: fix comment
17771         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
17773         wcwidth: Replace also on OpenBSD 5.8
17774         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
17775         * doc/posix-functions/wcwidth.texi: Update.
17777 2016-01-20  Pádraig Brady  <P@draigBrady.com>
17779         gnu-web-doc-update: fix addition of new files
17780         If there were already added (emnpty) dirs,
17781         then cvs aborts the add with the message:
17782           cvs [add aborted]: there is a version in <./dirname> already
17783         * build-aux/gnu-web-doc-update: Add directories separately
17784         to the addition of files, to avoid the above issue
17785         impacting the addition of files.
17787 2016-01-19  Daiki Ueno  <ueno@gnu.org>
17789         utimens-tests: avoid pulling gettext .m4 files
17790         Although this is not the right fix to the original problem:
17791         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
17792         it makes it possible again for consumer projects to use arbitrary
17793         version of gettext, through the steps described at:
17794         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
17795         See here for details:
17796         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
17797         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
17798         'gettext'.
17799         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
17800         'gettext'.
17802 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
17804         regex: pacify static checkers
17805         Problem and draft fix reported by Aharon Robbins in:
17806         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
17807         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
17808         Clear memory to pacify static checkers.
17810         regex: fix [ diagnostic
17811         Problem and fix reported by Aharon Robbins in:
17812         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
17813         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
17815         regex: fix memory leaks
17816         Problem and draft fix reported by Aharon Robbins in:
17817         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
17818         * lib/regcomp.c (build_range_exp, build_charclass_op)
17819         * lib/regex_internal.c (re_dfa_add_node):
17820         Fix memory leak on failure.
17822 2016-01-18  Pádraig Brady  <P@draigBrady.com>
17824         fts: don't unconditionally use leaf optimization for NFS
17825         NFS st_nlink are not accurate on all implementations,
17826         leading to aborts() if that assumption is made.
17827         See <https://bugzilla.redhat.com/1299169>
17828         * lib/fts.c (leaf_optimization_applies): Remove NFS from
17829         the white list, and document the issue.
17831 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
17832             KO Myung-Hun  <komh@chollian.net>
17834         gnulib-tool: don't assume ln -s works
17835         * gnulib-tool (func_ln_s): New function.
17836         (func_ln): Use it.
17838 2016-01-15  KO Myung-Hun  <komh@chollian.net>
17840         utimes: detect utimes() correctly on OS/2 kLIBC
17841         utimes() of OS/2 kLIBC has some limitations.
17842         1. OS/2 itself supports a file date since 1980 year in local time.
17843         2. OS/2 itself supports only even seconds for a file time.
17844         3. utimes() of OS/2 kLIBC does not work on an opened file.
17845         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
17846         * doc/posix-functions/utimes.texi: Document the above limitations of
17847         utimes() on OS/2 kLIBC.
17849 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
17850             KO Myung-Hun  <komh@chollian.net>
17852         openat_proc_name: port to OS/2 kLIBC
17853         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
17854         instead of /proc/self/fd.
17855         * lib/openat-proc.c (openat_proc_name):
17856         Don't assume file name length is less than INT_MAX.
17857         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
17859 2016-01-14  KO Myung-Hun  <komh@chollian.net>
17861         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
17862         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
17863         definitions of intptr_t and uintptr_t (which use int and unsigned)
17864         to avoid clashes with declarations of system functions like sbrk.
17865         * lib/stdint.in.h (intptr_t, uintptr_t): Check
17866         _INTPTR_T_DECLARED before defining them.
17868         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
17869         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
17870         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
17871         Declare on kLIBC.
17872         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
17873         fd associated with dirp.
17874         (_gl_register_dirp_fd): New. Register fd associated with dirp to
17875         dirp_fd_list.
17876         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
17877         (dirfd): Implemented for kLIBC.
17878         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
17879         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
17880         succeeds.
17881         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
17882         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17883         (REPLACE_DIRFD): Define to 1 if replaced.
17884         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
17885         * modules/closedir (Depends-on): Add dirfd.
17886         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
17887         condition.
17888         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
17889         * modules/opendir (Depends-on): Add dirfd.
17891         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
17892         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
17893         * lib/dup.c (dup_nothrow): New.
17894         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
17895         (klibc_dup2): New.
17896         * lib/fcntl.c (klibc_fcntl): New.
17897         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
17898         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
17899         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
17900         fd.
17902         pipe_filter_ii_execute: port to OS/2 kLIBC
17903         Pipes on kLIBC do not support O_NONBLOCK like Win32.
17904         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
17905         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
17906         Reuse Win32 code on OS/2 kLIBC.
17907         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
17908         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
17910         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
17911         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
17912         static inline function.  The implementation of wcwidth in wcwidth.c
17913         causes a "conflicting types" error.
17914         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
17916         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
17917         spawn() on OS/2 kLIBC is not silly like one on Windows
17918         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
17919         empty string on OS/2 kLIBC.
17921         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
17922         On OS/2 kLIBC, select() works only on sockets.
17923         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
17925         binary-io: don't put fd in binary mode if it is a console on EMX
17926         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
17927         a console on EMX.
17929 2016-01-15  Pádraig Brady  <P@draigBrady.com>
17931         doc: mention unfixed issues with unsupported localtime() values
17932         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
17933         returns nonsense for localtime(2^56).
17934         * doc/posix-functions/localtime_r.texi: Likewise.
17936 2016-01-14  Pádraig Brady  <P@draigBrady.com>
17938         doc: mention setlocale() issues on OpenBSD
17939         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
17940         never fails, and the need to check categories individually.
17942 2016-01-14  Pádraig Brady  <P@draigBrady.com>
17944         sig2str: list all signals on FreeBSD >= 7
17945         FreeBSD >= 7 is contravening POSIX by not defining NSIG
17946         to the maximal statically defined signal value.
17947         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
17948         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
17949         where available, even when NSIG is defined.
17951 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
17953         acl-permissions: port to USE_ACL==0 platforms
17954         I ran into this problem when building bleeding-edge GNU Emacs
17955         with gcc -fsanitize=address on Fedora 23.  On this platform
17956         the ACL library does not pass the 'configure' test and Emacs
17957         then does not build due in part to what appear to be typos in the
17958         ACL part of Gnulib.
17959         * lib/acl-internal.c (free_permission_context):
17960         * lib/acl-internal.h (struct permission_context):
17961         Test whether USE_ACL is nonzero, not whether it is defined.
17963 2016-01-12  Martin Sebor  <msebor@redhat.com>
17965         mktime: rename macro to avoid glibc clash
17966         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
17967         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
17969 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
17971         Port "$@" to OpenIndiana ksh93
17972         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
17973         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
17974         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
17975         bug long-dead shells, so remove the workaround.
17976         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
17977         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
17978         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
17979         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
17980         Use "$@" instead of ${1+"$@"}.
17982         Port Universal Time settings to strict POSIX
17983         * build-aux/announce-gen, build-aux/bootstrap:
17984         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
17985         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
17986         * build-aux/gnupload, build-aux/mkinstalldirs:
17987         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
17988         * build-aux/update-copyright, build-aux/useless-if-before-free:
17989         * build-aux/vc-list-files, tests/test-strftime.c:
17990         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
17991         but POSIX says the behavior of TZ="UTC" is undefined.
17993 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
17995         msvc-inval: fix problem with unset shell var
17996         Problem reported by Karl Berry in:
17997         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
17998         * modules/msvc-inval (Depends-on):
17999         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
18000         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
18002 2016-01-01  Pádraig Brady  <P@draigBrady.com>
18004         tests: for compare_(), use cmp -s where available
18005         * tests/init.sh (compare_): Only fall back to cmp without
18006         the POSIX defined -s option, where this is not available.
18008 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
18010         version-etc: new year
18011         * build-aux/gendocs.sh (version):
18012         * doc/gendocs_template:
18013         * doc/gendocs_template_min:
18014         * doc/gnulib.texi:
18015         * lib/version-etc.c (COPYRIGHT_YEAR):
18016         Update copyright dates by hand in templates and the like.
18017         * all files: Run 'make update-copyright'.
18019 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
18021         human: fix output buffer overrun by 1
18022         * lib/human.c (human_readable): Fix off-by-one typo in buffer
18023         calculation that could lead to a one-byte buffer overrun.
18025 2015-12-28  Daiki Ueno  <ueno@gnu.org>
18027         maint: fix operator precedence in mbrtowc test
18028         This is a fix for test breakage introduced by commit 45228d96; the
18029         equality expression must be parenthesized when negated with '!',
18030         otherwise we always get:
18032           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
18034         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
18035         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
18037 2015-12-23  James Youngman  <jay@gnu.org>
18039         regexprops-generic: update from regex.h
18040         * doc/regexprops-generic.texi: update by running the regexprops binary
18041         from findutils (the command line is 'regexprops "Regular Expressions"
18042         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
18043         gnulib with GNU grep had made this document out-of-date.
18045 2015-12-23  Pádraig Brady  <P@draigBrady.com>
18047         strftime-tests: avoid false failure on OS X
18048         * tests/test-strftime.c (struct localtime_rz_test): Add an
18049         ahistorical member which is used to warn rather than fail
18050         when tm_isdst isn't set for such entries.  This is the case for
18051         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
18053 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
18055         fts: ensure leaf optimization is used for NFS
18056         NFS provides usable dirent.d_type but not necessarily for all entries
18057         of large directories.  See <https://bugzilla.redhat.com/1252549>
18058         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
18060 2015-12-20  Pádraig Brady  <P@draigBrady.com>
18062         fts: enable leaf optimization for XFS
18063         XFS provides usable dirent.d_type only for DT_DIR,
18064         but the noleaf optimization still applies.
18065         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
18067 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
18069         intprops: comment fix
18070         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
18071         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
18073         intprops-test: work around GCC bug 68971
18074         Problem reported by Pádraig Brady in:
18075         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
18076         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
18077         (main): Add a case that better tests 64-bit long in this area.
18079 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
18081         gnulib-tool: allow multiple --local-dir usage
18082         * gnulib-tool: Use --local-dir to construct compound
18083         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
18084         PATH_SEPARATOR early.
18085         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
18086         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
18087         func_determine_path_separator because that needs to be detected
18088         earlier now.
18089         (func_determine_path_separator): New function.
18090         (func_path_foreach, func_path_foreach_inner): New functions.
18091         (func_path_prepend, func_path_append): Likewise.
18092         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
18093         (func_lookup_file, func_all_modules): Use new functions to work
18094         with local_gnulib_path.
18095         (func_modules_in_dir, func_exists_module): New callbacks for
18096         func_path_foreach.
18097         (func_exists_module, func_get_tests_module): Likewise.
18098         (func_is_local_file, func_should_symlink): New helper methods.
18099         (func_add_file, func_update_file): Use new func_should_symlink
18100         instead, DRY.
18101         (func_reconstruct_cached_local_gnulib_path): New helper.
18102         (func_reconstruct_cached_dir): New callback.
18103         (func_import): The cached_local_gnulib_dir renamed to
18104         cached_local_gnulib_path similarly to local_gnulib_dir.
18105         Use new func_reconstruct_cached_local_gnulib_path.
18106         (func_count_relative_local_gnulib_path): New sub-method.
18107         (func_create_testdir): Use func_should_symlink, DRY.
18108         (func_create_megatestdir): Use new functions to work with
18109         local_gnulib_path correctly.
18110         (func_append_local_dir): New helper.
18112 2015-12-08  Pádraig Brady  <P@draigBrady.com>
18114         fix freadptr to work with ungetc on all uClibc configs
18115         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
18116         where GNU coreutils cut(1) generates invalid output on uClibc
18117         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
18118         * lib/freadptr.c (freadptr): Return NULL if there are
18119         ungotten chars.  In this case freadseek() will iterate
18120         again to process the ungotten character.
18122 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
18124         xalloc-oversized: improve performance with GCC 5
18125         * lib/xalloc-oversized.h (xalloc_oversized):
18126         Improve performance with GCC 5 by using __builtin_mul_overflow.
18128 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
18130         intprops: new public macro EXPR_SIGNED
18131         Emacs can use this macro, so make it public.
18132         * doc/intprops.texi (Arithmetic Type Properties): Rename from
18133         'Integer Type Determination', since some of these macros apply
18134         to non-integer types.  Clarify what kinds of constant expressions
18135         these macros return.  Say when the arguments can be non-integers.
18136         Mention newly published macro EXPR_SIGNED.
18137         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
18138         make it public.  All uses changed.
18140         intprops: fix typo in clang port
18141         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
18142         '__builtin_add_overflow' that is not caught by compiler.
18144 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
18146         test-timespec: fix typo in previous change
18147         * tests/test-timespec.c (main): Fix typo that reduced test quality.
18149         timespec-sub: fix overflow bug; add tests
18150         * lib/timespec-add.c (timespec_add):
18151         * lib/timespec-sub.c (timespec_sub):
18152         Work even if time_t is narrower than int (a theoretical
18153         possibility).  Redo code for a bit more clarity.
18154         * lib/timespec-sub.c (timespec_sub):
18155         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
18156         * modules/timespec-tests, tests/test-timespec.c: New files.
18158         intprops-test: suppress -Woverlength-strings
18159         Problem reported by Pádraig Brady in:
18160         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
18161         It is not worth the hassle to port this test to compilers that
18162         cannot handle long strings in diagnostics.
18163         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
18165 2015-11-03  Pádraig Brady  <P@draigBrady.com>
18167         quotearg: add quotearg_n_style_colon()
18168         This quotes with default options of the specified style,
18169         but with quoting enabled for instances of ':'.
18170         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
18171         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
18173 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
18175         intprops: revise _WRAPV macros, revert _OVERFLOW
18176         The incompatible changes to the _OVERFLOW macros were too much of
18177         a hassle in practice, so revert them.  Instead, change the new
18178         _WRAPV macros to make them closer in behavior to GCC 5's new
18179         builtin_add_overflow etc. functions.  No other software was using
18180         these newly-added macros yet, so this should be OK.
18181         * NEWS: Revert previous change, since the incompatible change
18182         has been reverted, and nobody used the incompatible version.
18183         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
18184         Document revised behavior.
18185         (Integer Range Overflow): Adjust example to match above revisions.
18186         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
18187         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
18188         these can be used in integer constant expressions again.
18189         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
18190         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
18191         needed.
18192         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
18193         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
18194         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
18195         Remove, as they did not seem that useful.
18196         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
18197         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
18198         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
18199         Support new semantics.
18200         (__has_builtin): New macro, if not alreay defined.
18201         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
18202         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
18203         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
18204         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
18205         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
18206         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
18207         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
18208         New macros.
18209         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
18211 2015-11-03  Jim Meyering  <meyering@fb.com>
18213         intprops: add parentheses for when OP has precedence lower than "-"
18214         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
18215         "a OP b" must be parenthesized for when OP is like "<<", which has
18216         lower precedence than the following "-". Reported by Pádraig Brady.
18218 2015-11-03  Pádraig Brady  <P@draigBrady.com>
18220         quotearg: constify get_quoting_style parameters
18221         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
18222         * lib/quotearg.c (get_quoting_style): Likewise.
18224 2015-11-02  Pádraig Brady  <P@draigBrady.com>
18226         quotearg: add support for $'' shell escaping
18227         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
18228         items and descriptions.
18229         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
18230         above types by quoting like "shell", but using $'...' syntax
18231         for non printable characters, which should provide unambiguous
18232         printable output for any input.
18233         * tests/test-quotearg-simple.c: Update accordingly.
18235 2015-11-02  Pádraig Brady  <P@draigBrady.com>
18237         maint: use a more standard return from mbrtowc test
18238         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
18239         from the test program as this is non standard and often
18240         indicates an unhandled case in the test program.
18241         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
18243 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
18245         intprops: add WRAPV and const flavors for GCC 5
18246         If available, use GCC 5's builtin functions for efficient integer
18247         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
18248         and safely compute the low-order bits of the correct answer.
18249         A downside of these efficient functions is that they cannot be
18250         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
18251         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
18252         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
18253         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
18254         Document the changes.
18255         (Wraparound Arithmetic): New section.
18256         (Integer Range Overflow):
18257         Put this subsection last, since it's least useful.
18258         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
18259         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
18260         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
18261         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
18262         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
18263         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
18264         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
18265         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
18266         New macros.
18267         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
18268         Generate calls to GCC builtins if available, for speed.
18269         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
18270         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
18271         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
18272         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
18273         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
18274         (CHECK_QUOTIENT, CHECK_REMAINDER):
18275         Test WRAPV and CONST flavors (when available) too.
18277 2015-10-30  Pádraig Brady  <P@draigBrady.com>
18279         doc: use extended timezone format in iso-8601 example
18280         * doc/parse-datetime.texi: The standard states that extended format
18281         is to be used consistently throughout.
18282         Note that lib/parse-datetime.y can handle either tz format.
18284 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
18286         stdalign: port to Sun C 5.9
18287         * doc/posix-headers/stdalign.texi: Document this.
18288         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
18289         __attribute__ ((__aligned__ (...))).
18291 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
18293         time_rz: fix comment about tzalloc
18294         * lib/time_rz.c (tzalloc): Fix comment.
18296 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
18298         stdalign: work around pre-4.9 GCC x86 bug
18299         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
18300         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
18301         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
18303 2015-10-18  Pádraig Brady  <P@draigBrady.com>
18305         maint.mk: sc_tight_scope: remove extraneous expressions
18306         * top/maint.mk (tight_scope): This is not really required since
18307         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
18308         that matches all nm entries.  But it does remove extraneous entries
18309         that may be confusing or cause issue in future maintenance.
18311 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
18313         time_rz: return NULL if localtime_r fails
18314         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
18315         while still attempting to pacify bleeding-edge GCC.
18317         fts: port to C11 alignof
18318         * doc/posix-headers/stdalign.texi (stdalign.h):
18319         Document the C11 restriction.
18320         * lib/fts.c: Include stddef.h, for max_align_t.
18321         (fts_alloc): Align using max_align_t, not FTSENT.
18322         * modules/fts (Depends-on): Add stddef.
18324 2015-10-18  Jim Meyering  <meyering@fb.com>
18326         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
18327         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
18328         would see this:
18330         lib/time_rz.c: In function 'localtime_rz':
18331         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
18332           [-Werror=nonnull]
18333                    if (tm && !save_abbr (tz, tm))
18334                        ^
18336         That was complaining about "tm" because it is a parameter that was
18337         declared with the __nonnull__ attribute.
18338         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
18339         result of localtime_r.
18341 2015-10-17  Jim Meyering  <meyering@fb.com>
18343         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
18344         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
18345         name-extraction regexp mistakenly used \S+, and would mistakenly
18346         extract "*F" from "extern int *F()" rather than the desired "F".
18347         Use \w+ instead.
18349 2015-10-17  Jim Meyering  <meyering@fb.com>
18351         maint.mk: sc_tight_scope: factor and support OS X
18352         * top/maint.mk (_gl_tight_scope): Address three issues:
18353         - factor out four instances of code that wraps a string in "^...$"
18354         - allow nm-reported symbol names to have an optional leading "_"
18355         - add "main" to the list of ignored variable names, because on os x,
18356         "main" has nm-reported type "S" in the variable-checking section.
18358 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
18360         safe-alloc-tests: fix typo in license header
18361         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
18363 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
18365         copy-file: fix mem leak in error case
18366         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
18367         upon error opening or performing I/O to the src and dest files.
18369 2015-10-15  Mike Frysinger  <vapier@chromium.org>
18371         localename: control langinfo.h inclusion
18372         This header is only used to work around buggy behavior in old
18373         versions of glibc, so do not include it all the time.  Otherwise
18374         we get build failures on systems that do not provide langinfo.h.
18375         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
18376         in the source later on.
18377         The patch was originally submitted to gettext as:
18378         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
18380 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18382         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
18383         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
18384         * lib/u64.c, lib/unistd.c:
18385         Append 'typedef int dummy;', to pacify compilers that are picky
18386         about empty translation units.
18388 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
18390         accept4-tests: fix to avoid non portable flags
18391         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
18392         as they are the only documented ones, and passing others may trigger
18393         EINVAL (seen on FreeBSD 10.1-RELEASE).
18394         * doc/glibc-functions/accept4.texi: Mention that we don't provide
18395         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
18397 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
18399         gnulib-tool: fix tests of 'extensions' module
18400         This complements f8fe25fab60e3c687a124 commit.
18401         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
18402         emitting of initial gl_EARLY macros.
18403         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
18404         replaced with func_emit_pre_early_macros call.
18406 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18408         unicase/locale-language: fix typo in utf-8 cookie
18409         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
18410         Problem reported by Zbigniew Jędrzejewski-Szmek.
18412 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18414         xalloc: do not worry about GCC 5 warning on 32 bit
18415         * lib/xalloc.h: Revert previous change.
18416         I found a better way to fix this in coreutils.
18418 2015-10-02  Pádraig Brady  <P@draigBrady.com>
18420         xalloc: avoid GCC 5.1 warning on 32 bit
18421         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
18422         xalloc_oversized(), which was seen to give this warning
18423         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
18424         when simplifying conditional".
18426 2015-10-02  Daiki Ueno  <ueno@gnu.org>
18428         uniname/uniname-tests: avoid compiler warnings
18429         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
18430         unused local variables.
18431         (test_alias_lookup): Fix alias name display in failure cases.
18433 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
18435         c-ctype: do not worry about EBCDIC + char signed
18436         Drop support for EBCDIC with char being signed, as this breaks too
18437         many programs.  Problem reported by Ben Pfaff in:
18438         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
18439         * lib/c-ctype.h: Verify that we are not using EBCDIC with
18440         char being signed.
18441         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
18442         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
18443         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
18444         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
18445         * tests/test-c-ctype.c (test_all):
18446         Simplify by assuming standard char values cannot be negative.
18447         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
18449 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
18451         c-ctype: port better to z/OS EBCDIC
18452         Problems reported by Daniel Richard G. in:
18453         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
18454         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
18455         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
18456         (_C_CTYPE_OTHER_CNTRL): New macro.
18457         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
18458         from SCHAR_MIN, as the functions are defined only from values
18459         promoted from char or from unsigned char, not necessarily from
18460         signed char.
18462 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
18464         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
18466         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
18467         and ARFLAGS variables.  Doing this unconditionally could break
18468         later Automake's AM_PROG_AR invocation (at least it's
18469         AC_CHECK_TOOLS call to detect correct 'ar' binary).
18471         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
18472         Amsterdam Compiler Kit, so make the previous code to have effects
18473         only on ACK, and rather automatically call the Automake's
18474         AM_PROG_AR as soon as possible to decide other cases.
18476         References:
18477         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
18479         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
18480         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
18481         is possible, keep setting AR/ARFLAGS to reasonable defaults.
18482         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
18483         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
18484         'extensions' module is used.
18485         * modules/extensions (configure.ac-early): Remove as this snippet
18486         is added to gnulib-comp.m4 earlier anyway.
18488 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
18490         sockets: MS Windows initalization fixes
18491         Problem reported by Test User in:
18492         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
18493         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
18494         Correct the endianness.
18495         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
18496         number mismatch, not just on <.  Cleanup before any such failure.
18498 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
18500         gc: fix detection of installed libgcrypt version
18501         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
18502         at least as recent as 1.4.4.  The previously used macro is not
18503         available now, since modules were removed in version 1.6.0.
18505 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
18507         c-ctype: rewrite to use inline functions
18508         This simplifies maintenance, since it makes for just one
18509         implementation of each function, letting the compiler have the fun
18510         of optimization.  In practice this works well nowadays with GCC.
18511         E.g., c_isascii might need only three instructions even though the
18512         source code lists every ASCII character individually in a large
18513         switch statement.
18514         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
18515         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
18516         * NEWS: Document the API change.
18517         * lib/c-ctype.c: Drastically simplify, since this now just expands
18518         inline functions.
18519         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18520         (C_CTYPE_INLINE): New macro.
18521         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
18522         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
18523         Verify that either ASCII or EBCDIC is being used.
18524         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
18525         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
18526         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
18527         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
18528         New private macros.
18529         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
18530         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
18531         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
18532         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
18533         (c_tolower, c_toupper): When converting, return the unsigned char,
18534         as that is what z/OS does.
18535         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
18536         of some c-ctype.h macros.
18537         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
18538         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
18539         c_tolower promotion to be compatible with z/OS.
18541 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
18543         gitlog-to-changelog: trim only trailing whitespaces
18544         This is fix for --format regression introduced by commit
18545         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
18546         doubled %n string) had no effect anymore.  This format
18547         specification has been used e.g. by GNU paxuitils (commit
18548         edfd8bcc3).
18550         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
18551         newlines in commmit messages.
18553 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
18555         Test that c_iscntrl agrees with iscntrl, etc.
18556         Suggested by Daniel Richard G. in:
18557         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
18558         * modules/c-ctype-tests (Depends-on): Add ctype.
18559         * tests/test-c-ctype.c: Include <ctype.h>.
18560         (NCHARS): New constant.
18561         (test_agree_with_C_locale): New function.
18562         (main): Use it.
18563         (test_all): Use named constants.
18565         c-ctype: improve c_isascii testing
18566         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
18567         Add a test to count the number of ASCII characters.
18569 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18571         savewd: remove SAVEWD_CHDIR_READABLE
18572         It was problematic in the light of file systems that ignore umask.
18573         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
18574         * NEWS: Document this.
18575         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
18576         successful, -1 (setting errno) on failure, rather than something
18577         more complicated than that.
18578         * lib/mkdir-p.c (make_dir_parents):
18579         Do not use SAVEWD_CHDIR_READABLE.
18580         * lib/savewd.c (savewd_chdir):
18581         Remove support for SAVEWD_CHDIR_READABLE.
18582         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
18584         c-ctype: port better to EBCDIC
18585         Problems reported by Daniel Richard G. in
18586         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
18587         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
18588         Include "verify.h".
18589         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
18590         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
18591         Define as enum constants with value false, if not defined, so that
18592         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
18593         code more portable, as both branches of the 'if' are compiled on
18594         all platforms.
18595         (C_CTYPE_EBCDIC): New constant.
18596         Verify that the character set is either ASCII or EBCDIC.
18597         (to_char): New static function.
18598         (c_isascii, c_iscntrl):
18599         Assume standard control-character assignments for EBCDIC.
18600         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
18601         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
18602         Rewrite to use 'if' instead of 'ifdef'.
18603         Use to_char if non-ASCII.  Prefer <= to >=.
18604         Prefer true and false to 1 and 0, for booleans.
18605         (c_iscntrl): Use 'if', not 'ifdef'.
18606         * modules/c-ctype (Depends-on): Add verify.
18607         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
18608         (to_char): New function.
18609         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
18611 2015-09-21  Pádraig Brady  <P@draigBrady.com>
18613         nanosleep: fix return code for interrupted replacement
18614         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
18615         that we return -1 in the case the call is interrupted by a signal,
18616         rather than the current value of 1.
18617         Diagnosed and tested by Daniel Richard G.
18619 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
18621         Diagnose ERE '()|\1'
18622         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
18623         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
18624         track of the set of previously-completed subexpressions available
18625         before the first alternative, and restore this set just before
18626         parsing each subsequent alternative.  This lets us diagnose the
18627         invalid back-reference in the ERE '()|\1'.
18629         regex: merge patches from libc
18631         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
18632         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
18633         * lib/regex_internal.h:
18634         Include <libc-lock.h> instead of <bits/libc-lock.h>.
18636         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
18637         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
18638         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
18639         wcscoll.
18640         * lib/regexec.c (check_node_accept_bytes): Likewise.
18642         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
18643         Fix regex wcrtomb namespace (bug 18496).
18644         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
18645         instead of wcrtomb.
18647         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
18648         Fix regex wctype namespace (bug 18495).
18649         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
18650         instead of towlower.
18651         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
18652         instead of iswlower.  Call __towupper instead of towupper.
18653         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
18654         instead of iswalnum.
18656         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
18657         * lib/regcomp.c (parse_bracket_exp): Initialize type to
18658         COLL_SYM in a couple of places to avoid uninitialized variable
18659         wanings on tilegx gcc 4.8.2.
18661         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
18662         * lib/regex_internal.h: Remove NOT_IN_libc.
18664         2014-11-17  Andreas Schwab  <schwab@suse.de>
18665         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
18667         2014-09-11  Roland McGrath  <roland@hack.frob.com>
18668         Move findidx nested functions to top-level.
18669         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
18670         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
18671         Pass new arguments to findidx.
18672         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
18673         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
18674         Don't #include it inside the function.  Pass new arguments to findidx.
18675         * lib/regex_internal.h:
18676         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
18677         (re_string_elem_size_at): Don't #include it inside the function.
18678         Pass new arguments to findidx.
18680         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
18681         Check if DEBUG is defined in regex_internal.c
18682         * lib/regex_internal.c: Check if DEBUG is defined and is set.
18684 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
18686         ceill: detect buggy OpenBSD implementation
18687         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
18688         which returns zero for small values.  Discussed here:
18689         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
18691 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
18693         mountlist: add me_mntroot field on Linux machines
18694         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
18695         mount_entry so Linux machines based on /proc/self/mountinfo can
18696         distinguish between bind mounts and original mounts.  In reality bind
18697         mounts aren't treated differently than mountroot=/ mounts by the
18698         kernel, but the user often wants these bind mounts distinguished.
18699         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
18700         More details at https://pad.lv/1432871
18702 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
18704         doc: Describe to use multiple instances of gnulib
18705         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
18706         instances of gnulib with different modules can be used, for example one
18707         for a lib and another one for associated tools.
18709 2015-09-01  Pádraig Brady  <P@draigBrady.com>
18711         base32: mark function as __attribute__ const
18712         * lib/base32.h (isbase32): Mark __attribute__ const as
18713         suggested by GCC, and consistent with the base64 module.
18715 2015-08-20  Daiki Ueno  <ueno@gnu.org>
18717         gnulib-tool: don't transform binary files with sed
18718         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
18719         .mo and .class files.
18720         Reported by Denis Denisov.
18722 2015-08-10  Daiki Ueno  <ueno@gnu.org>
18724         gperf: respect silent rules
18725         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
18726         V_GPERF_0 for silent rules.
18727         * modules/iconv_open (Makefile.am): Use V_GPERF.
18728         * modules/unicase/locale-language (Makefile.am): Likewise.
18729         * modules/unicase/special-casing (Makefile.am): Likewise.
18730         * modules/unictype/category-byname (Makefile.am): Likewise.
18731         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
18732         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
18733         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
18734         * modules/unictype/property-byname (Makefile.am): Likewise.
18735         * modules/unictype/scripts (Makefile.am): Likewise.
18736         * modules/uninorm/composition (Makefile.am): Likewise.
18738 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
18740         Improve port of stdalign to C++11
18741         Problem reported by Sundaram in:
18742         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
18743         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
18744         (__alignas_is_defined): Define if C++11 or newer.
18746 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
18748         pmccabe2html: fix gawk regex escaping
18749         * build-aux/pmccabe2html: Add one more backslash to properly
18750         escape the gsub replacement value.  Fixes this error:
18751         gawk: ./build-aux/pmccabe2html:425: \
18752         warning: escape sequence `\&' treated as plain `&'
18754 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
18756         time_rz: port to pedantic memcpy
18757         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
18758         that reject memcpy (..., NULL, 0).
18760 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
18762         time_rz: port better to MinGW
18763         Don't change tzname, as this makes MinGW dump core (Bug#21020).
18764         Instead, store the tzname copy in the struct tm_zone object.
18765         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
18766         * lib/strftime.c [!_LIBC]:
18767         * lib/time_rz.c: Include time-internal.h.
18768         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
18769         name from *TZ rather than from TZNAME, doable because *TZ now has
18770         a tzname_copy member.
18771         * lib/time-internal.h: New file, with contents taken from
18772         lib/time_rz.c.  It's separate because strftime.c now accesses
18773         struct tm_zone members.
18774         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
18775         New member tzname_copy.
18776         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
18777         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
18778         Initialize tzname_copy member.
18779         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
18780         in tzname_copy member.
18781         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
18782         (restore_tzname): Remove; no longer needed.  All calls removed.
18783         * modules/time_rz (Files): Add lib/time-internal.h.
18785         time: port __need_time_t to MinGW
18786         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
18787         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
18789 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
18791         strftime: fix newly-introduced bug on Solaris
18792         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
18793         consistently at the start, rather than doing some of the setup at
18794         the start and some in the %Z format spec.  This is cleaner, and
18795         works better with time_rz on platforms like Solaris where struct
18796         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
18797         mktime_z and localtime_rz can mess up the tzname cache.
18799         test-strftime: test for Solaris bug
18800         * modules/strftime-tests (Depends-on): Add strerror.
18801         * tests/test-strftime.c: Include <errno.h>.
18802         (posixtm_test): New function, containing the old 'main'.
18803         (struct tzalloc_test, struct localtime_rz_test): New types.
18804         (TZ, LT): New static vars.
18805         (tzalloc_test): New function.
18806         (main): Rewrite in terms of posixtm_test and tzalloc_test.
18808         time_rz: port to Solaris etc.
18809         Works around a tzname problem on platforms like Solaris that have
18810         tzname but not tm_zone, by setting tzname at the appropriate time
18811         and restoring it later.
18812         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
18813         New static vars.
18814         (save_abbr) [HAVE_TZNAME]: Set them.
18815         (revert_tz) [HAVE_TZNAME]: Clear or use them.
18816         (restore_tzname): New function.
18817         (localtime_rz, mktime_z): Use it.
18819         time_rz: now LGPL
18820         * modules/time_rz (License): Now LGPL, because strftime depends on it.
18822         time_rz: make a constant 'const'
18823         * lib/time_rz.c (local_tz): Now const.
18825         time_rz: fix off-by-one typo
18826         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
18828 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
18830         fprintftime, strftime: use timezone_t args
18831         * NEWS: Document the change.
18832         * lib/fprintftime.h (fprintftime):
18833         * lib/strftime.c (extra_args) [my_strftime]:
18834         * lib/strftime.h (nstrftime):
18835         Time zone arg is now of type timezone_t, not int.
18836         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
18837         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
18838         (my_strftime) [emacs && !my_strftime]:
18839         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
18840         Remove; Emacs doesn't need this any more.
18841         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
18842         fprintftime and nstrftime to call tzset.
18843         (ut) [!my_strftime]: Remove, replacing with ...
18844         (tz) [!my_stftime]: ... this new macro.  All uses changed.
18845         (strftime_case_): Use localtime_rz and mktime_z instead
18846         of localtime_r and mktime.
18847         * modules/fprintftime (Depends-on): Add time_rz.
18848         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
18849         * tests/test-strftime.c (main): Adjust to new nstrftime API.
18851         time_rz: new module
18852         * MODULES.html.sh: Add time_rz.
18853         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
18854         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
18855         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
18856         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
18857         New var HAVE_TIMEZONE_T (default 0).
18858         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
18859         New var GNULIB_TIME_RZ (default 0).
18860         * modules/time (time.h): Substitute the new vars.
18862         flexmember: license is now unlimited
18863         * modules/flexmember (License): Change to unlimited,
18864         since its only source file gives an unlimited license.
18866 2015-07-15  Eric Blake  <eblake@redhat.com>
18868         maint: update copyright paper procedures
18869         * config/srclist.txt: Drop outdated files.
18870         * doc/Copyright/conditions.txt: Update to latest.
18871         * doc/Copyright/assign.changes.manual: Delete.
18872         * doc/Copyright/assign.future.manual: Likewise.
18873         * doc/Copyright/assign.manual: Likewise.
18874         * doc/Copyright/assign.translation.manual: Likewise.
18875         * doc/Copyright/disclaim.changes.manual: Likewise.
18876         * doc/Copyright/disclaim.manual: Likewise.
18877         * doc/Copyright/disclaim.program: Likewise.
18879 2015-07-07  Daiki Ueno  <ueno@gnu.org>
18881         localename: fix link error on Illumos
18882         Illumos defines __sun, but does not have getlocalename_l nor the
18883         equivalent.  This partially reverts commit 387c214.
18884         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
18885         available, as well as uselocale.
18886         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
18887         use getlocalename_l if it is not available.
18889 2015-07-07  Daiki Ueno  <ueno@gnu.org>
18891         unistr/uN-strtok-tests: avoid a trivial leak
18892         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
18893         input and delim after the multibyte delimiter tests.
18895 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
18897         file-has-acl, acl-permissions: fix HP-UX typos
18898         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
18899         * lib/file-has-acl.c (file_has_acl):
18900         * lib/set-permissions.c (context_acl_from_mode)
18901         (context_aclv_from_mode, set_acls):
18902         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
18903         They were introduced by the recent ACL changes.
18905         regex: match current GNU grep behavior
18906         These symbols have not matched GNU grep behavior for quite some time.
18907         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
18908         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
18909         Change to match current GNU behavior.
18910         Simplify by expressing it as differences from POSIX BREs and EREs.
18911         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
18913 2015-07-03  Jim Meyering  <meyering@fb.com>
18915         set-permissions.c: adjust acl_from_mode's cpp guard
18916         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
18917         directives identical to those guarding the sole use.
18918         Otherwise, on some systems, we'd get a warning about
18919         the function being defined but not used.
18920         Also, filter through cppi to correct misleading indentation
18921         of cpp directives.
18923 2015-07-03  Pádraig Brady  <P@draigBrady.com>
18925         tests: restrict shells to those that support 'local'
18926         The local keyword is very widely supported and used
18927         in tests in coreutils and grep at least.  Therefore
18928         restrict to testing with shells that support it.
18929         This mainly excludes /bin/sh on Solaris.
18930         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
18932 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
18933         and Daiki Ueno  <ueno@gnu.org>
18935         unistr/uN-strtok: handle multibyte delimiters
18936         Previously, uN_strtok moved PTR to the next unit to the token end.
18937         When DELIM contained a multibyte character, the new position could
18938         be a middle of a multibyte character.
18939         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
18940         after the token.
18941         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
18942         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
18943         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
18944         * modules/unistr/u8-strtok (Depends-on): Depend on
18945         unistr/u8-strmblen.
18946         * modules/unistr/u16-strtok (Depends-on): Depend on
18947         unistr/u16-strmblen.
18948         * modules/unistr/u32-strtok (Depends-on): Depend on
18949         unistr/u32-strmblen.
18950         * tests/unistr/test-u-strtok.h: New file.
18951         * tests/unistr/test-u8-strtok.c: New file.
18952         * tests/unistr/test-u16-strtok.c: New file.
18953         * tests/unistr/test-u32-strtok.c: New file.
18954         * modules/unistr/u8-strtok-tests: New file.
18955         * modules/unistr/u32-strtok-tests: New file.
18956         * modules/unistr/u16-strtok-tests: New file.
18958 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
18960         update-copyright: fix test failure with perl >= 5.22 (trivial)
18961         * build-aux/update-copyright: Escape a literal left curly bracket,
18962         required with perl >= 5.22
18964 2015-07-02  Daiki Ueno  <ueno@gnu.org>
18966         u{16,32}-strstr-tests: relax timeout condition
18967         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
18968         tests can take longer than 5 seconds to complete.
18969         Reported by Dagobert Michelsen in:
18970         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
18971         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
18972         seconds to 10 seconds.
18973         * tests/unistr/test-u32-strstr.c (main): Likewise.
18975 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
18977         gnulib-common.m4: change the ARFLAGS default to 'cr'
18978         In some GNU/Linux distributions people started to compile 'ar'
18979         binary with --enable-deterministic-archives (binutils project).
18980         That, however, in combination with previous autotools long time
18981         working default AR{_,}FLAGS=cru causes warnings on such
18982         installations:
18983         ar: `u' modifier ignored since `D' is the default (see `U')
18984         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
18985         set already.
18987 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
18989         selinux-h: avoid double free after *getfilecon()
18990         Originally reported by Ben Shelton on bug-tar:
18991         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
18992         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
18993         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
18994         param should be freed by freecon(3) (regardless the return value).
18996 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
18998         fix pty related tests issues on Windows (trivial)
18999         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
19000         however it's still present in tests/ subdirectory of the final project.
19001         Therefore avoid it to pass `make check`.
19002         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
19003         will just return -ENOSYS, so avoid this non applicable test allowing
19004         the build to proceed.
19006 2015-07-01  Pádraig Brady  <P@draigBrady.com>
19008         acl: fix definition of acl_from_mode on FreeBSD
19009         This was causing basic coreutils copy operations to fail
19010         with ENOTSUP or ENOENT error messages.
19011         * lib/acl-internal.h (acl_from_mode): Only define when
19012         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
19013         of acl_from_mode() defined in lib/set-permissions.c to
19014         be used on FreeBSD at least.
19015         * lib/set-permissions.c: Fix up comment spelling,
19016         and a redundant variable assignment; noticed in passing.
19018 2015-06-30  Pádraig Brady  <P@draigBrady.com>
19020         readutmp: port to FreeBSD >= 9
19021         * lib/readutmp.h: Map utmpxname() to setutxdb().
19022         With that coreutils who(1) and pinky(1) tests pass.
19024 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
19026         mgetgroups: port to strict OS X
19027         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
19028         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
19029         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
19030         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
19032 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
19034         mgetgroups: port to strict OS X
19035         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
19036         Document the getgrouplist problem.
19037         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
19038         New macro.
19039         (mgetgroups): Use it.
19040         * m4/mgetgroups.m4 (gl_MGETGROUPS):
19041         Check for OS X signature for getgrouplist.
19043 2015-06-29  Jim Meyering  <meyering@fb.com>
19045         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
19046         It started like this when building coreutils' latest on OS X,
19047         invoking ./configure with a nonempty --cache=.cache:
19049           lib/linkat.c:46:42: error: operator '||' has no right operand
19050           lib/linkat.c: In function 'rpl_linkat':
19051           lib/linkat.c:330:27: error: #if with no expression
19053         Here's linkat.c's line 46:
19055           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
19057         Here's some context:
19059           $ grep linkat_nofoll .cache
19060           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
19061           $ grep LINKAT_SYM lib/config.h
19062           #define LINKAT_SYMLINK_NOTSUP
19064         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
19065         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
19066         but that violates a tenet of AC_CACHE_CHECK: it must
19067         have no side effect other than setting its cache variable.
19069         What happens is that when the cache is set, we'd skip the
19070         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
19071         defined to whatever value it happened to have in configure's
19072         environment.  In my case, it was not defined, so this later code:
19074           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
19075             [Define to 1 if linkat can create hardlinks to symlinks])
19077         would emit code with an empty RHS.
19079         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
19080         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
19082 2015-06-28  Jim Meyering  <meyering@fb.com>
19084         mountlist: avoid an unused-label warning on OS X
19085         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
19086         Building on OS X, I saw a warning about the "free_then_fail" label
19087         being unused.  Give it the _GL_UNUSED_LABEL attribute.
19089         error.c: correct printf-style format: %d -> %u
19090         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
19091         rather than %d, to match the type of "line_number", unsigned int.
19093 2015-06-25  Pádraig Brady  <P@draigBrady.com>
19095         fts: avoid reading beyond the heap allocation
19096         GCC 5.1.1 with -O2 and -fsanitize=address reports
19097         a read of size 4 from a heap object of size 3 is indeed invalid,
19098         though this may be due to incorrect padding assumptions by GCC, see:
19099         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
19100         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
19101         * modules/fts: Depend on stdalign.
19103 2015-06-24  Pádraig Brady  <P@draigBrady.com>
19105         savedir: avoid undefined behavior in qsort call
19106         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
19107         "runtime error: null pointer passed as argument 1,
19108          which is declared to never be null"
19109         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
19111 2015-06-24  Pádraig Brady  <P@draigBrady.com>
19113         userspec: avoid undefined behavior in gettext call
19114         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
19115         "runtime error: null pointer passed as argument 2,
19116          which is declared to never be null"
19117         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
19119 2015-06-20  Glenn Morris  <rgm@gnu.org>
19121         gitlog-to-changelog: improve gitmerge.el commits
19122         Let the Emacs ChangeLog generation process exclude "skipped"
19123         messages from merge commits (Bug#20717).
19124         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
19126 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
19128         wchar: fix MinGW compilation warnings
19129         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
19130         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
19131         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
19133 2015-06-20  Daiki Ueno  <ueno@gnu.org>
19135         uniname/uniname-tests: use pristine data files
19136         For copyright and maintenance reasons, use the data files from UCD
19137         without modification.
19138         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
19139         (getfield): Remove.
19140         (aliases_count): New global variable.
19141         (fill_names): Skip comments and empty lines in the input.  Don't
19142         use getfield.
19143         (fill_aliases): Likewise.
19144         (main): Change the expected command line arguments to:
19145         NAMES... ["--" ALIASES...].
19146         * tests/uniname/test-uninames.sh: Adjust to the change in
19147         test-uninames.c.
19148         * tests/uniname/UnicodeDataNames.txt: Remove.
19149         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
19150         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
19151         file from Unicode 8.0.0.
19153 2015-06-19  Pádraig Brady  <P@draigBrady.com>
19155         linked-list, linkedhash-list: avoid compiler warnings
19156         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
19157         -Werror=suggest-attribute=pure (from GCC 5.1.1).
19159 2015-06-19  Daiki Ueno  <ueno@gnu.org>
19161         libunistring: bump minimum version to 0.9.6
19162         * all modules depending on updated Unicode data: Regenerate.
19163         The modules are listed by a script that does:
19164         - for each file listed by: git show --oneline --name-only 705f4efc
19165           - deduce the containing modules, based on "Files:"
19166         - deduce the modules which depend on the containing modules, based
19167           on "Depends-on:"
19169 2015-06-18  Daiki Ueno  <ueno@gnu.org>
19171         uniname/uniname: update to Unicode 8.0.0
19172         * lib/uniname/uninames.h: Regenerate.
19173         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
19174         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
19176 2015-06-18  Daiki Ueno  <ueno@gnu.org>
19178         libunistring: update to Unicode 8.0.0
19179         * lib/gen-uni-tables.c (SIZEOF): New macro.
19180         (output_numeric): Increase the maximum number of fractions from
19181         128 to 160.  Increase the level3 value width from 7 bits to 8
19182         bits.  Use SIZEOF instead of a hard-coded integer.
19183         (output_blocks): Decrease the cut-off threshold from 0x30000 to
19184         0x28000.
19185         (fill_blocks): Increase the maximum number of blocks from 256 to
19186         384.  Use SIZEOF instead of a hard-coded integer.
19187         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
19188         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
19189         value width.
19190         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
19191         a new case added to LBP22.
19192         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
19193         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
19194         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
19195         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
19196         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
19197         * tests/uniwidth/test-uc_width2.sh: Same updates as in
19198         lib/uniwidth/width.c.
19199         * all generated files under lib/uni* and tests/uni*: Regenerate.
19201 2015-06-16  Pádraig Brady  <P@draigBrady.com>
19203         gnu-web-doc-update: add --mirror to remove stale files
19204         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
19205         out of date files from the CVS server.  Since this is usually
19206         appropriate, a prompt is given when the option is not specified,
19207         along with the `cvs remove` command that would be run.
19209 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
19211         acl-permissions: pacify -Wsuggest-attribute=const
19212         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
19213         * lib/acl-internal.h (free_permission_context):
19214         Declare with attribute const if ! (defined USE_ACL &&
19215         (HAVE_ACL_GET_FILE || defined GETACL)).
19217         fsync: document AIX misbehavior
19218         * doc/posix-functions/fsync.texi (fsync):
19219         Document failure on AIX with read-only file descriptor.
19221 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
19223         stdio: Don't redefine gets when using C++
19224         * lib/stdio.in.h (gets): Disable warning on C++.
19226 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
19228         acl-permissions: port to AIX, C89 HP-UX
19229         Problems reported by Michael Felt.
19230         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
19231         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
19232         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
19233         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
19234         Add cast for AIX, whose system calls are declared to accept
19235         char * even though the arguments are really char const *.
19236         * lib/get-permissions.c (get_permissions):
19237         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
19238         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
19239         that broke a build.
19240         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
19241         Rework types to pacify xlc.
19243 2015-06-03  Pádraig Brady  <P@draigBrady.com>
19245         vasprintf-posix: avoid compiling vasnprintf where possible
19246         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
19247         module where not required.  For example on a GNU/Linux system
19248         when gnulib-tool is run with the --conditional-dependencies option.
19250 2015-06-02  Pádraig Brady  <P@draigBrady.com>
19252         file-has-acl: fix build on Mac OS X 10
19253         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
19254         which has an incompatible 6 parameter getxattr() call.
19255         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
19256         call on Mac OS X >= 10.4.
19257         * doc/glibc-functions/fgetxattr.texi: Likewise.
19258         * lib/file-has-acl.c: Revert to more complete combined check.
19259         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
19260         Reported by Jack Howarth.
19262 2015-06-02  Pádraig Brady  <P@draigBrady.com>
19264         prefix-gnulib-mk: remove no longer needed special case
19265         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
19266         continued lib_SOURCES lines are no longer present,
19267         so special case handling of such entries is not required.
19269 2015-06-01  Pádraig Brady  <P@draigBrady.com>
19271         acl: don't depend on the deprecated qacl module
19272         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
19274 2015-06-01  Pádraig Brady  <P@draigBrady.com>
19276         gnulib-tool: concatenate lib_SOURCES to a single line
19277         * gnulib-tool: Refactor the line merging sed logic,
19278         and use that to output a single lib_SOURCES line for each module.
19279         gnulib using projects often postprocess this output to prepend
19280         subdir paths to each item, and having a single line simplifies this
19281         processing allowing better decoupling from the gnulib-tool output.
19283 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
19285         pthread_sigmask: discount system version if a simple macro (trivial)
19286         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
19287         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
19288         function to ensure it's available.
19290 2015-05-31  Pádraig Brady  <P@draigBrady.com>
19292         readlinkat: avoid OS X 10.10 trailing slash bug
19293         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
19294         has this bug.
19295         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
19296         that OS X 10.10 has this function.
19297         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
19298         as done for readlink().
19299         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
19300         trailing slash bug, and assume readlinkat() has the same issue.
19301         Also fix a typo where $gl_cv_decl_readlink_works was tested,
19302         rather than the correct $gl_cv_decl_readlinkat_works.
19304 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
19306         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
19307         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
19308         module rewrite.
19310         acl-permissions: Fix build on Solaris and Cygwin
19311         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
19312         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
19313         ace_entries variables have moved into struct permission_context but
19314         they were still accessed as local variables here.
19316 2015-05-29  Pádraig Brady  <P@draigBrady.com>
19318         linkat: avoid OS X 10.10 trailing slash with symlink bug
19319         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
19320         causes the symlink to be dereferenced, and if it points
19321         to a non existent file, that file will be created as
19322         a hard link to "path1".
19323         This fixes a test failure in test-linkat.c.
19324         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
19325         this case.  The existing workaround in linkat.c for
19326         trailing slash issues, suffices for this case.
19327         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
19328         the list of platforms with trailing slash issues.
19330 2015-05-28  Pádraig Brady  <P@draigBrady.com>
19332         unlinkat: handle ignoring of ".." on Darwin 14
19333         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
19334         on Mac OS X 10.10, where it ignores paths with a trailing "..",
19335         so handle in the same manner.
19336         * m4/unlinkat.m4: Comment on this Darwin issue.
19337         * doc/posix-functions/unlink.texi: Update the latest version
19338         where the issue was seen.
19339         * doc/posix-functions/unlinkat.texi: Mention this issue.
19340         Fixes a test failure in test-unlinkat.c.
19342 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
19344         qacl: split into qcopy-acl and qset-acl
19345         Emacs needs the former, but not the latter.
19346         * modules/acl-permissions: New file, containing most of the old qacl.
19347         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
19348         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
19349         * modules/qcopy-acl, modules/qset-acl: New files.
19350         * MODULES.html.sh (File system functions):
19351         Mention the new modules, and mention qacl while we're at it.
19353 2015-05-27  Glenn Morris  <rgm@gnu.org>
19355         gitlog-to-changelog: new option --ignore-line
19356         (This patch is imported from the GNU Emacs master.)
19357         This option ignores individual commit lines matching a pattern.
19358         * build-aux/gitlog-to-changelog: Add --ignore-line option.
19360 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
19362         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
19363         Implement get_permissions and set_permissions primitives for getting all
19364         the permissions of a file, storing them, and later setting them. (In the
19365         minimal case, the permissions consist only of a file mode.) Reimplement
19366         qset_acl and qcopy_acl based on these new primitives: this avoids code
19367         duplication and makes error handling more consistent.
19368         The Solaris and Cygwin code still uses duplicate code paths for setting
19369         a file mode while making sure that no acls exist and setting an explicit
19370         acl; this is no worse than before, but could be cleaned up.  The AIX
19371         code still doesn't read ACLs, it only makes sure that acls don't get in
19372         the way when setting a file mode.
19373         * lib/acl-internal.h (struct permission_context): New data structure.
19374         (get_permissions, set_permissions, free_permission_context): Declare.
19375         * lib/acl-internal.c (free_permission_context): New helper function.
19376         * lib/get-permissions.c (get_permissions): New helper function split off
19377         from qcopy_acl.
19378         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
19379         AIX, set a file's permissions based only on a file mode.
19380         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
19381         other platforms construct a temporary acl from the file mode and set
19382         that acl in the same way as setting an acl read from the source file.
19383         This should help avoid code duplication and inconsistent / buggy
19384         behavior.
19385         (set_acls): New helper function Split off from qcopy_acl.
19386         (chmod_or_fchmod): Moved here from qset-acl.c.
19387         (set_permissions): New helper function.
19388         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
19389         set_permissions.
19390         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
19391         * modules/qacl: Add get-permissions.c and set-permissions.c.
19393         file-has-acl: Split feature tests again (Bug#20667)
19394         * lib/file-has-acl.c: Instead of testing for
19395         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
19396         define them when needed.
19397         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
19398         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
19400 2015-05-27  Pádraig Brady  <P@draigBrady.com>
19402         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
19403         This avoids a conflict with "FORTIFY_SOURCE" variants
19404         of the string functions when they're replaced on NetBSD-6.0.1
19405         and Darwin-14.3.0 at least.
19406         * lib/string.in.h: Avoid including our "lib/string.h" while
19407         including the system <string.h>.
19409 2015-05-26  Eric Blake  <eblake@redhat.com>
19411         stdio: limit __gnu_printf__ witness to gcc 4.4+
19412         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
19413         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
19415         error: use correct printf attributes on mingw
19416         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
19418         inttypes: force correct mingw PRIdMAX even without <stdio.h>
19419         * modules/inttypes (Depends-on): Require extensions, so that mingw
19420         always uses GNU style inttypes.
19421         * lib/inttypes.in.h: On mingw, include <stdio.h>.
19423         stdio: fix probe on mingw under gcc 5.1
19424         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
19425         around new gcc preprocessor rules.
19427 2015-05-07  Glenn Morris  <rgm@gnu.org>
19429         gitlog-to-changelog: parse "Tiny-change"
19430         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
19431         "Copyright-paperwork-exempt".  (Bug#20324)
19433 2015-05-06  Pádraig Brady  <P@draigBrady.com>
19435         doc: document glibc posix_fallocate() issues
19436         * doc/posix-functions/posix_fallocate.texi: Mention the
19437         glibc efficiency problems and issues with NFS.
19439 2015-05-05  Karl Berry  <karl@freefriends.org>
19441         * build-aux/gendocs.sh (usage): document new css default
19442         for HTML (--htmlarg).
19444 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
19446         extern-inline: no need for workaround in GCC 5.1
19447         * doc/extern-inline.texi (extern inline):
19448         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
19449         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
19450         around these bugs in GCC 5.1 and later.  Maybe in a decade or
19451         two we can remove these workarounds.
19453 2015-04-28  Pádraig Brady  <P@draigBrady.com>
19455         eealloc, pagealign_alloc, xalloc: avoid clang warnings
19456         Avoid [-Wunknown-attributes] warnings like:
19457         warning: unknown attribute '__alloc_size__' ignored
19458         * lib/xalloc.h: Don't use the __alloc_size__  attribute
19459         with clang, as support has been fully removed as of clang 3.5:
19460         https://github.com/llvm-mirror/clang/commit/c047507a
19461         * lib/eealloc.h: Likewise.
19462         * lib/pagealign_alloc.h: Likewise.
19464 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
19466         tests: pacify GCC 5.1's stricter printf checking
19467         * tests/test-dirname.c (main):
19468         * tests/test-getaddrinfo.c (simple):
19469         * tests/test-getlogin.c (main):
19470         * tests/test-getndelim2.c (main):
19471         * tests/test-inttostr.c (CK):
19472         * tests/test-md5.c (main):
19473         * tests/test-read-file.c (main):
19474         * tests/test-sha1.c (main):
19475         Fix mismatches between printf format and value signedness.
19476         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
19477         Remove, as CAST_VAL always returned a value of type uintmax_t.
19479         fts: port to GCC 5.1 with --enable-gcc-warnings
19480         Without this fix, GCC 5.1 (correctly) warns about a subscript
19481         error on the fts_name component of FTSENT.  It's actually a
19482         flexible member, so define it that way on C99 or later hosts.
19483         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
19484         structure that now has a flexible array member.
19485         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
19486         (FTSENT): fts_name is now flexible on C99-or-later platforms.
19487         * modules/fts (Depends-on): Add flexmember.
19489 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
19491         file-has-acl: port to CentOS 6
19492         Problem reported by Tom G. Christensen in:
19493         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
19494         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
19495         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
19496         HAVE_GETXATTR.
19497         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
19498         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
19499         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
19500         file-has-acl.c actually needs.
19502 2015-04-26  Pádraig Brady  <P@draigBrady.com>
19504         file-has-acl: always return false when ACLs aren't supported
19505         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
19506         change the GNU/Linux getxattr path, to transform "not supported"
19507         errors to a false return rather than an error.  This is handled
19508         within file_has_acl() due to the platform specific tests to
19509         determine if ACLs are not supported.
19511 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
19513         gettext: propagate po/Makefile.in.in too
19514         * build-aux/po/Makefile.in.in: Copy from latest gettext.
19515         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
19516         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
19517         between Makefile.in.in and the gettext-runtime m4 files.
19519 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
19521         file-has-acl: new module, split from acl
19522         And add a new module file-has-acl-tests to match.
19523         I ran into a problem with the recent changes to the acl module,
19524         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
19525         When using the fixed version with Emacs, I discovered that
19526         file-has-acl wasn't separated out well enough for Emacs (e.g., it
19527         had multiple libraries, but needed only one), so I fixed that too.
19528         * NEWS: Document this incompatible change.
19529         * modules/file-has-acl, modules/file-has-acl-tests: New files.
19530         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
19531         Initialize gl_need_lib_has_acl.
19532         (gl_FUNC_ACL): Require it.
19533         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
19534         Move the file-has-acl.c-relevant stuff to ...
19535         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
19536         use_xattrs = 0' typo, and omit some needless work.  Set
19537         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
19538         when gl_FUNC_ACL is called.
19539         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
19540         (Link): Remove $(LIB_HAS_ACL).
19541         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
19542         (check_PROGRAMS): Move stuff relevant to file-has-acl to
19543         modules/file-has-acl-tests.
19544         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
19546         manywarnings: add GCC 5.1 warnings
19547         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
19548         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
19549         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
19550         -Wsuggest-override, -Wuse-without-only.  Change
19551         -Wnormalized=... operands to match 5.1.
19552         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
19553         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
19554         -Wdiscarded-qualifiers, -Wformat-signedness,
19555         -Wincompatible-pointer-types, -Wint-conversion,
19556         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
19557         -Wshift-count-negative, -Wshift-count-overflow,
19558         -Wsizeof-array-argument, -Wsuggest-final-methods,
19559         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
19560         and add -Warray-bounds=2 as a special case.
19562 2015-04-21  Simon Josefsson  <simon@josefsson.org>
19564         doc: update FDL template to match FDL examples.
19565         * doc/alloca-opt.texi:
19566         * doc/alloca.texi:
19567         * doc/c-ctype.texi:
19568         * doc/c-strcase.texi:
19569         * doc/c-strcaseeq.texi:
19570         * doc/c-strcasestr.texi:
19571         * doc/c-strstr.texi:
19572         * doc/c-strtod.texi:
19573         * doc/c-strtold.texi:
19574         * doc/ctime.texi:
19575         * doc/error.texi:
19576         * doc/gcd.texi:
19577         * doc/gnulib-tool.texi:
19578         * doc/inet_ntoa.texi:
19579         * doc/intprops.texi:
19580         * doc/lib-symbol-visibility.texi:
19581         * doc/maintain.texi:
19582         * doc/parse-datetime.texi:
19583         * doc/quote.texi:
19584         * doc/regexprops-generic.texi:
19585         * doc/standards.texi: Remove spurious 'with' in FDL license
19586         template.
19588 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
19590         lstat: fix cross-compilation 'ln -s' problem
19591         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
19592         Have the test program call 'symlink' rather than a separate
19593         script run 'ln -s'; this is more likely to work in
19594         cross-compilation environments.  Reported by Pavel Fedin in:
19595         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
19597 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
19599         gendocs.sh: default to a common CSS style sheet for HTML output
19600         * build-aux/gendocs.sh (htmlarg): Change default value.
19602 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
19604         gnulib-tool: output bold attribute more portably
19605         * gnulib-tool (func_show_module_list): Change hexadecimal
19606         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
19607         encoded numbers as arguments to `printf' is not portable,
19608         and is not claimed by POSIX.  This is the case with FreeBSD.
19610 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
19612         qacl: Simplify HP-UX acl_nontrivial check
19613         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
19614         acl_nontrivial. Check if the acl has at most three entries instead (it must
19615         have exactly three entries according to the HP-UX documentation). Ignore
19616         uids and gids as long as an entry is either for a user (i.e., the owner),
19617         a group (i.e., the owning group), or others.
19618         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
19619         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
19621 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
19623         acl: On Linux, check for acls without libacl
19624         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
19625         library function to check for the presence of acls, avoiding a library.
19626         * lib/file-has-acl.c: Include xattr headers if we have them.
19627         (file_has_acl): On Linux, use getxattr().
19628         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
19629         file_has_acl(). Check for xattr headers and getxattr().
19631 2015-04-14  Ángel González  <keisial@gmail.com>
19633         tempname: avoid unused parameter warnings (trivial)
19634         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
19635         (try_nocreate): Likewise.
19637 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
19639         fseeko: fix build failure on NetBSD >= 6 (trivial)
19640         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
19641         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
19643 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19645         gitlog-to-changelog: port to MS-Windows
19646         * build-aux/gitlog-to-changelog (git_dir_option):
19647         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
19648         MS-Windows Perl.  Reported by Eli Zaretskii in:
19649         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
19651 2015-04-07  Karl Berry  <karl@gnu.org>
19653         gendocs: new option --tex for passing args to texi2dvi.
19654         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
19655         (TEXI2DVI): cut to just command name.
19656         (usage): mention new option, and update copyright.
19657         <generate_tex>: use it.
19659 2015-04-07  Karl Berry  <karl@gnu.org>
19661         * config/srclistvars.sh (GETTEXT): new definition.
19662         * config/srclist.txt: use it for gettext .m4 files.
19663         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
19664         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
19665         and continuing into April.
19667 2015-04-07  Daiki Ueno  <ueno@gnu.org>
19669         uniname/uniname-tests: fix failure due to alias
19670         Reported by Jack Howarth in:
19671         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
19672         * tests/uniname/test-uninames.c (name_has_alias): New function.
19673         (test_inverse_lookup): Exclude character name with valid alias,
19674         from randomly generated character names.
19675         (main): Fill unicode_aliases before calling test functions.
19677 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
19679         hash: remove deprecated hash_insert0 function
19680         * lib/hash.h (hash_insert0): Remove deprecated function.
19681         * lib/hash.c (hash_insert0): Likewise.
19683 2015-04-02  Pádraig Brady  <P@draigBrady.com>
19685         mountlist: remove dependency on libmount
19686         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
19687         directly, rather than depending on libmount, which has many
19688         dependencies due to its dependence on libselinux, as detailed at:
19689         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
19690         Note we restrict this to __linux__ as that's probably where this
19691         interface will remain.  If ever porting, it would be best
19692         to first pull the makedev() wrapper from coreutils to a gnulib module.
19693         Note also we don't add a getline dependency to the mountlist module,
19694         as all Linux versions are sufficient.
19696 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
19698         stddef: port to pre-C11 GCC on x86
19699         On this platform, max_align_t should have an alignment of 8 even
19700         though the storage alignments of double, long, etc. max out at 4.
19701         Inspired by a comment of Andreas Schwab's here:
19702         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
19703         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
19704         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
19705         * tests/test-stddef.c: Test __alignof__ too, if available.
19707 2015-03-24  Pádraig Brady  <P@draigBrady.com>
19709         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
19710         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
19712 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
19714         yesno: make EOL optional in ENABLE_NLS case also (trival)
19715         * lib/yesno.c (yesno): Check for EOL before replacing.
19716         * tests/test-yesno.sh: Add a test case (test along with gettext).
19718 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
19720         fdopendir-tests: test it does not close its arg
19721         * tests/test-fdopendir.c (main): Test that fdopendir does not
19722         close its argument.  From a suggestion by David Grayson in:
19723         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
19725 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19727         gitlog-to-changelog: trim trailing white space
19728         * build-aux/gitlog-to-changelog (main):
19729         Trim trailing white space from commit message lines.
19730         This is helpful for processing the GNU Emacs repository,
19731         which dates back to 1985 and contains a lot of such lines.
19733         gitlog-to-changelog: new option --ignore-matching
19734         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
19735         Support new option --ignore-matching=PAT, which ignores all
19736         commit messages whose first line matches PAT.
19738 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19740         fdopendir: port better to MinGW
19741         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
19742         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
19743         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
19744         * modules/fdopendir (Depends-on): Add dirfd.
19746 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
19748         fdopendir: fix typo in comment
19749         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
19751 2015-03-09  Eric Blake  <eblake@redhat.com>
19753         error: document all entry points provided
19754         * doc/glibc-functions/error_print_progname.texi
19755         (error_print_progname): Mention the error module.
19756         * doc/glibc-functions/error_at_line.texi (error_at_line):
19757         Likewise.
19758         * doc/glibc-functions/error_message_count.texi
19759         (error_message_count): Likewise.
19760         * doc/glibc-functions/error_one_per_line.texi
19761         (error_one_per_line): Likewise.
19763 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
19765         vasnprintf: pacify clang 3.5.0
19766         Problem reported by Werner Lemberg in:
19767         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
19768         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
19769         The casts aren't needed, since the characters in question are ASCII.
19771 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19773         glob, etc.: port to MSVC v18 on MS-Windows 8.1
19774         * lib/dirent--.h (GNULIB_defined_opendir):
19775         * lib/dirent.in.h (GNULIB_defined_opendir)
19776         (GNULIB_defined_closedir):
19777         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
19778         #undef only if Gnulib defined it.
19780         poll: port to MSVC v18 on MS-Windows 8.1
19781         Problem reported by Gisle Vanem in:
19782         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
19783         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
19784         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
19785         Add sys_socket.
19787 2015-02-24  Pádraig Brady  <P@draigBrady.com>
19789         tests: support stderr verification with returns_()
19790         * tests/init.sh (returns_): Disable tracing for this wrapper
19791         function, so that stderr of the wrapped command is unchanged,
19792         allowing for verification of the contents.
19794 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
19796         passfd: avoid valgrind uninitalised data warning
19797         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
19798         to include just the fd we've initialized, rather than including
19799         the extra space used for alignment.
19801 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
19803         uniwbrk/u32-wordbreaks-tests: fix copyright
19804         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
19806         dup2: doc and test for Android bug
19807         Reported by Kevin Cernekee in:
19808         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
19809         * doc/posix-functions/dup2.texi (dup2): Document the bug.
19810         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
19812 2015-02-23  Kevin Cernekee  <cernekee@google.com>
19814         Replace dup2() on Android
19815         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
19816         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
19817         fails.  Using rpl_dup2() fixes this because it has an explicit test
19818         for this condition.
19820 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
19822         Android doesn't define RLIM_SAVED_*
19823         Portability problem reported by Kevin Cernekee in:
19824         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
19825         * doc/posix-headers/sys_resource.texi (sys/resource.h):
19826         Mention the portability problem.
19827         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
19828         Define if not defined.
19829         * m4/dup2.m4 (gl_FUNC_DUP2):
19830         * m4/fcntl.m4 (gl_FUNC_FCNTL):
19831         Likewise.
19833 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
19835         vasnprintf-posix-tests: use consistent test
19836         * tests/test-vasnprintf-posix.c (test_function):
19837         Use "<" in assert instead of "<=", for consistency with other tests.
19839 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19841         printf, isinf, etc.: noncanonical != NaN
19842         Do not require that isinf, printf, etc. treat noncanonical
19843         values as NaNs.  Instead, require only that they do not crash.
19844         Problem reported by Joseph Myers in:
19845         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
19846         * doc/posix-functions/dprintf.texi (dprintf):
19847         * doc/posix-functions/fprintf.texi (fprintf):
19848         * doc/posix-functions/isfinite.texi (isfinite):
19849         * doc/posix-functions/isinf.texi (isinf):
19850         * doc/posix-functions/isnan.texi (isnan):
19851         * doc/posix-functions/printf.texi (printf):
19852         * doc/posix-functions/snprintf.texi (snprintf):
19853         * doc/posix-functions/sprintf.texi (sprintf):
19854         * doc/posix-functions/vdprintf.texi (vdprintf):
19855         * doc/posix-functions/vfprintf.texi (vfprintf):
19856         * doc/posix-functions/vprintf.texi (vprintf):
19857         * doc/posix-functions/vsnprintf.texi (vsnprintf):
19858         * doc/posix-functions/vsprintf.texi (vsprintf):
19859         Document this.
19860         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
19861         * m4/isinf.m4 (gl_ISINFL_WORKS):
19862         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
19863         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
19864         * tests/test-isfinite.c (test_isfinitel):
19865         * tests/test-isinf.c (test_isinfl):
19866         * tests/test-isnan.c (test_long_double):
19867         * tests/test-isnanl.h (main):
19868         * tests/test-snprintf-posix.h (test_function):
19869         * tests/test-sprintf-posix.h (test_function):
19870         * tests/test-vasnprintf-posix.c (test_function):
19871         * tests/test-vasprintf-posix.c (test_function):
19872         Test only that noncanonical values do not cause crashes, not that
19873         they are treated as NaNs.  In some cases this means a larger
19874         output buffer is needed.
19876 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
19878         fts: remove redundant close() (trivial)
19879         * lib/fts.c (fts_read): Remove redundant call to close().
19880         Spotted by coverity.
19882 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19884         getdtablesize: port better for Android
19885         Problem reported by Kevin Cernekee in:
19886         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
19887         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
19888         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
19889         Instead, just use getrlimit, taking care to avoid Cygwin bug.
19891         poll: fixes for large fds
19892         * lib/poll.c (poll): Don't check directly for NFD too large.
19893         Don't rely on undefined behavior in FD_SET when an arg exceeds
19894         FD_SETSIZE.  Always set revents afterwards, even if to zero.
19895         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
19896         as that makes the test a bit stricter.
19898 2015-02-19  Kevin Cernekee  <cernekee@google.com>
19900         fcntl: Fix cross compiling
19901         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
19902         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
19904 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19906         dup2, fcntl: cross-compile better for Android
19907         Problem reported by Kevin Cernekee in:
19908         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
19909         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
19910         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
19911         there's little need to cross-compile for older kernels nowadays.
19912         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
19913         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
19915 2015-02-18  Pádraig Brady  <P@draigBrady.com>
19917         getopt: don't crash on memory exhaustion
19918         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
19919         memory exhaustion.  In the _LIBC case we use alloca() as is
19920         already done in glibc, so we don't need to consider the separate
19921         error path in that awkward case.  Also fix a memory leak when
19922         ambiguous options are present.
19923         Reported by Tobias Stoeckmann
19925 2015-02-17  Mike Miller  <mtmiller@ieee.org>
19927         tempname: allow compilation with C++ (trivial)
19928         * lib/tempname.h [C++]: Specify extern "C" linkage.
19929         * lib/tempname.h (try_tempname):
19930         * lib/tempname.c (__try_tempname, __gen_tempname):
19931         Rename 'try' to 'tryfunc'.
19933 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19935         dup2, fcntl: port to AIX
19936         * m4/dup2.m4 (gl_FUNC_DUP2):
19937         * m4/fcntl.m4 (gl_FUNC_FCNTL):
19938         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
19939         The former works on AIX 7.1 but the latter does not.
19940         Also, this may work better with Android; see:
19941         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
19943 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19945         getdtablesize, dup2, fcntl: port to Android
19946         Problem reported by Kevin Cernekee in:
19947         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
19948         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
19949         Mention that getdtablesize doesn't work on Android.
19950         * lib/getdtablesize.c: Use getrlimit substitute only if
19951         getdtablesize is declared.  This should suffice for Cygwin
19952         while not breaking Android.
19953         * m4/dup2.m4 (gl_FUNC_DUP2):
19954         * m4/fcntl.m4 (gl_FUNC_FCNTL):
19955         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
19956         standardized but the latter is not, and sysconf works on Android.
19957         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
19958         Also check that getdtablesize is declared.
19959         This removes the need for a special case for Android.
19961 2015-02-16  Kevin Cernekee  <cernekee@google.com>
19963         localename: Implement gl_locale_name_thread_unsafe for Android
19964         * lib/localename.c: Android API level >= 21 supports two hardcoded
19965         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
19966         the internal __locale_t struct.
19968 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
19970         fts: avoid crash when a cycle is added while traversing
19971         This could be triggered by auto-mounting a recursive bind mount.
19972         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
19973         * lib/fts.c (fts_read): Avoid removing the original hash table item
19974         when leaving a directory that caused a cycle, and preserve the FTS_DC
19975         flag.
19977 2015-02-16  Daiki Ueno  <ueno@gnu.org>
19979         uniname/uniname: support character alias
19980         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
19981         Generate one-way mapping from aliases to codepoints in the
19982         generated tables.  Special case variation selectors to reduce
19983         table size.
19984         * lib/uniname/uniname.c (unicode_character_name): Special case
19985         variation selectors.
19986         (unicode_name_character): Special case variation selectors and
19987         their aliases.
19988         * lib/uniname/uninames.h: Regenerate.
19989         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
19990         * modules/uniname/uniname-tests (Files): Add
19991         tests/uniname/NameAliases.txt.
19992         * tests/uniname/test-uninames.c: Mark as static.
19993         (ALIASLEN): Define.
19994         (struct unicode_alias): New struct.
19995         (unicode_aliases): New variable.
19996         (fill_aliases): New function.
19997         (test_alias_lookup): New test function.
19998         (main): Run the 'test_alias_lookup' test if the second argument is
19999         given.
20000         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
20001         second argument.
20003 2015-02-11  Kevin Cernekee  <cernekee@google.com>
20005         Fix FILE struct compatibility with Android API level >= 21
20006         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
20007         __sferror.  Recent versions of Bionic's stdio.h no longer define
20008         __sferror.
20009         * lib/fbufmode.c: Likewise.
20010         * lib/fflush.c: Likewise.
20011         * lib/fpurge.c: Likewise.
20012         * lib/freadable.c: Likewise.
20013         * lib/freadahead.c: Likewise.
20014         * lib/freading.c: Likewise.
20015         * lib/freadptr.c: Likewise.
20016         * lib/freadseek.c: Likewise.
20017         * lib/fseeko.c: Likewise.
20018         * lib/fseterr.c: Likewise.
20019         * lib/fwritable.c: Likewise.
20021         Assume unbroken ungetc() on Android
20022         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
20023         test case passed when running on an Android host, and the code
20024         hasn't really changed since 2009.
20026         getdtablesize: Fix Android build
20027         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
20028         versions have this symbol in the .so library (at least 32-bit
20029         platforms) but are missing the declaration in the header file,
20030         causing the m4 logic to guess incorrectly.
20032         localename: Fix Android build
20033         * modules/localename (Depends-on): Add langinfo.
20035         getugroups: Fix Android build
20036         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
20037         functions.
20039         euidaccess: Fix Android build
20040         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
20041         AT_EACCESS gets declared.
20043         linkat_nofollow: Add fallback case for cross compiling
20044         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
20046         net_if: Handle content-free <net/if.h> system headers
20047         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
20048         struct if_nameindex.  If not, enable the replacement header.
20050         signal_h: Fix Android build
20051         * lib/signal.in.h: Add Android to the list of platforms that declare
20052         pthread_sigmask() in <pthread.h> instead of <signal.h>.
20054         duplocale: Fix Android build of duplocale-tests
20055         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
20056         is included by test-duplocale.c (but not by duplocale.c).
20057         * modules/duplocale-tests (configure.ac): Check for monetary.h.
20058         * tests/test-duplocale.c: Skip test if monetary.h is absent.
20059         * doc/posix-headers/monetary.texi: Add Android to the list of
20060         platforms missing monetary.h.
20062 2015-02-11  Pádraig Brady  <P@draigBrady.com>
20064         tests: avoid recent -Werror=unused-variable regression in test-locale
20065         * tests/test-locale.c (main): Reference the variable to avoid the
20066         "unused variable" warning.
20068 2015-02-11  Pádraig Brady  <P@draigBrady.com>
20070         maint: various whitespace cleanups in tempname
20071         * lib/tempname.c: Normalize spacing and line length.
20072         * lib/tempname.h: Likewise.
20073         * modules/tempname: Likewise.
20075 2015-02-11  Pádraig Brady  <P@draigBrady.com>
20077         tests: provide returns_() to simplify exit status checking
20078         * tests/init.sh (returns_): A new function for use in tests,
20079         to allow for easier checking of return values, where you expect
20080         a command to exit with failure status.  By checking for a particular
20081         exit code, you don't hide any crashes for example.
20083 2015-02-11  Pádraig Brady  <P@draigBrady.com>
20085         mountlist: only use libmount when specified
20086         There are currently many shared libs dependencies introduced by
20087         libmount with associated runtime and virt mem overhead.
20088         Therefore don't enable by default.
20089         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
20091 2015-02-08  Daiki Ueno  <ueno@gnu.org>
20093         uniname/unimame-tests: don't link with -lunistring
20094         * modules/uniname/uniname-tests (Makefile.am): Don't link against
20095         $(LIBUNISTRING).  Document the rationale why we need to
20096         conditionalize the test.
20098 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20100         fstrcmp: don't assume strlen < INT_MAX
20101         * lib/fstrcmp.c: Include stddef.h and stdint.h.
20102         (uintptr_t): Remove, as we're now assuming stdint.
20103         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
20104         Prefer ptrdiff_t to int when the value could exceed INT_MAX
20105         if the input string is long.
20106         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
20107         uintptr_t to size_t when the underlying value is a pointer casted
20108         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
20109         * modules/fstrcmp (Depends-on): Add stdint.
20111         diffseq: prefer ptrdiff_t to ssize_t
20112         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
20113         ptrdiff_t is the natural type for signed indexes.
20114         On a few older platforms, ssize_t is narrower than size_t.
20116         xalloc: fix typo that suppressed warnings
20117         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
20118         This typo, introduced a couple of years ago, mistakenly suppressed
20119         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
20120         -Wmissing-declarations warnings.
20122         full-read: fix license notice typo
20123         * lib/full-read.h: Remove a stray line in the license notice.
20124         Reported by Sam Ellis in: http://bugs.gnu.org/19808
20126         crypto/gc: fix a -Wswitch warning
20127         Reported by Bruce Korb in:
20128         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
20129         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
20131 2015-02-03  Pádraig Brady  <P@draigBrady.com>
20133         gnulib-tool: fix handling of patch(1) diagnostics
20134         * gnulib-tool: Send diagnostics from patch(1) to stderr,
20135         as otherwise gnulib-tool will reparse that output and attempt
20136         to lookup modules.
20138 2015-02-03  Pádraig Brady  <P@draigBrady.com>
20140         bootstrap: exit immediately upon gnulib-tool failure
20141         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
20142         This was noticed when gnulib-tool exited early due to failure
20143         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
20144         but various confusing errors were then given as the build proceeded.
20146 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
20148         symlinkat: include all required header files
20149         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
20150         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
20151         Reported at https://savannah.gnu.org/bugs/index.php?44151
20152         and by Jack Howarth.
20154 2015-01-29  Pádraig Brady  <P@draigBrady.com>
20156         localename: support Solaris 12 and illumos
20157         * lib/localename.c (gl_locale_name_thread_unsafe): call
20158         getlocalename_l() on newer __sun platforms.
20159         Reported by Alexander Pyhalov.
20160         Fix suggested by Rich Burridge.
20162 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
20164         locale: fix tests on illumos (trivial)
20165         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
20166         so move from global scope to main().
20168 2015-01-24  Daiki Ueno  <ueno@gnu.org>
20170         unictype: avoid undefined left-shift behavior
20171         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
20172         gcc's -fsanitize=shift and running its tests triggered:
20173           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
20174             places cannot be represented in type 'int'
20175         Cast LHS to 'unsigned int' after integer promotion.
20176         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
20177         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
20179 2015-01-20  Daiki Ueno  <ueno@gnu.org>
20181         libunistring: bump version of unitypes dependants
20182         Due to the header file search order, all the headers which depend
20183         on unitypes.h need to be generated, when the preinstalled
20184         libunistring is older.
20185         * modules/unicase/base (configure.ac): Bump minimum version to
20186         0.9.4.
20187         * modules/uniconv/base (configure.ac): Likewise.
20188         * modules/unilbrk/base (configure.ac): Likewise.
20189         * modules/uninorm/base (configure.ac): Likewise.
20190         * modules/unistdio/base (configure.ac): Likewise.
20191         * modules/unistr/base (configure.ac): Likewise.
20192         * modules/uniwbrk/base (configure.ac): Likewise.
20193         * modules/uniwidth/base (configure.ac): Likewise.
20195 2015-01-20  Daiki Ueno  <ueno@gnu.org>
20197         unictype/category-none: fix link with libunistring
20198         Since _UC_CATEGORY_NONE is not a public symbol, it will be
20199         prefixed with "libstring_" when compiled as part of libunistring.
20200         To avoid undefined symbol at link time, increase the minimum
20201         version when the dependant modules are updated.
20202         * modules/unictype/category-none (configure.ac): Bump minimum
20203         version to 0.9.5.
20205 2015-01-20  Daiki Ueno  <ueno@gnu.org>
20207         unitypes: fix build with installed libunistring
20208         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
20209         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
20210         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
20212 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
20214         time: port to MinGW32 3.21
20215         Problem reported by Eli Zaretskii in:
20216         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
20217         * lib/time.in.h:
20218         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
20219         * modules/time (Depends-on):
20220         Fall back on unistd.h if the other include files don't define
20221         struct timespec.
20223         update-copyright: apply to self
20224         * build-aux/update-copyright: Fix copyright date.  How ironic!
20226 2015-01-15  Daiki Ueno  <ueno@gnu.org>
20228         libunistring: update to Unicode 7.0.0
20229         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
20230         Manichaean names.
20231         * lib/unictype/joininggroup_name.h: Likewise.
20232         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
20233         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
20234         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
20235         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
20236         (fill_arabicshaping, joining_group_as_c_identifier): Support those
20237         enum values.
20238         (is_property_alphabetic): Accept newly added characters to
20239         cuneiform numeric signs.
20240         (is_property_default_ignorable_code_point): Reject U+0605.
20241         (FIELDLEN): Increase from 120 to 160.
20242         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
20243         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
20244         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
20245         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
20246         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
20247         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
20248         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
20249         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
20250         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
20251         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
20252         U+1E8D0..U+1E8D6.
20253         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
20254         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20255         lib/uniwidth/width.c.
20256         * all generated files under lib/uni* and tests/uni*: Regenerate.
20258 2015-01-14  Daiki Ueno  <ueno@gnu.org>
20260         libunistring: update to Unicode 6.3.0
20261         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
20262         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
20263         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
20264         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
20265         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
20266         Update WB5, WB9, WB10, WB13a, and WB13b.
20267         * tests/uniwbrk/test-uc-wordbreaks.c
20268         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
20269         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
20270         (UC_BIDI_PDI): New enumeration values.
20271         (bidi_category_byname): Support those enum values.
20272         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
20273         dedicated property assigned.
20274         (is_property_case_ignorable): Check 0x0027.
20275         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
20276         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
20277         (output_wbp): Support those enum values.
20278         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
20279         (UC_BIDI_PDI): New enumeration values.
20280         * lib/unictype/bidi_byname.gperf: Add those property names.
20281         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
20282         U+180E, U+1A1B, and U+2066..U+2069.
20283         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20284         lib/uniwidth/width.c.
20285         * all generated files under lib/uni* and tests/uni*: Regenerate.
20287 2015-01-14  Daiki Ueno  <ueno@gnu.org>
20289         libunistring: update to Unicode 6.2.0
20290         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
20291         (unilbrk_table): Adjust table size.
20292         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
20293         for LBP_RI.
20294         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
20295         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
20296         Normalize table index skipping ignored properties.
20297         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
20298         WBP_EXTEND and WBP_FORMAT, which are now computed without using
20299         the table.
20300         * lib/uniwbrk/wbrktable.h: Adjust table size.
20301         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
20302         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
20303         Support rule GB8a.
20304         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
20305         * tests/unigbrk/test-uc-is-grapheme-break.c
20306         (graphemebreakproperty_to_string): Support GBP_RI.
20307         * tests/uniwbrk/test-uc-wordbreaks.c
20308         (wordbreakproperty_to_string): Support WBP_RI.
20309         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
20310         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
20311         (output_lbp): Support LBP_RI.  Adjust some characters changed from
20312         LBP_AL to LBP_ID.
20313         (output_lbp): Support LBP_RI.
20314         (WBP_RI): New enumeration value.
20315         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
20316         (output_wbp): Support WBP_RI.
20317         (GBP_RI): New enumeration value.
20318         (output_gbp_test, fill_org_gbp): Support GBP_RI.
20319         * all generated files under lib/uni* and tests/uni*: Regenerate.
20321 2015-01-14  Daiki Ueno  <ueno@gnu.org>
20323         libunistring: update to Unicode 6.1.0
20324         * lib/gen-uni-tables.c (output_joining_group): Switch to
20325         3-level table to accommodate joining groups defined with higher
20326         codepoint value.  Since there are only 88 groups defined in
20327         Unicode 7.0.0, use 7-bit packed format for level3 entries.
20328         (get_lbp): Update for Unicode 6.1.0.
20329         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
20330         3-level table.
20331         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
20332         joining group name.
20333         * lib/unictype/joininggroup_name.h: Likewise.
20334         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
20335         (unilbrk_table): Adjust table size.
20336         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
20337         for LBP_HL.
20338         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
20339         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
20340         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
20341         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
20342         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
20343         U+302E..U+302F.
20344         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20345         lib/uniwidth/width.c.
20346         * all generated files under lib/uni* and tests/uni*: Regenerate.
20347         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
20349 2015-01-15  Daiki Ueno  <ueno@gnu.org>
20351         uniwbrk/u32-wordbreaks-tests: add conformance test
20352         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
20353         tests/uniwbrk/test-uc-wordbreaks.c,
20354         tests/uniwbrk/test-uc-wordbreaks.sh, and
20355         tests/uniwbrk/WordBreakTest.txt.
20356         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
20357         test-uc-wordbreaks to $(check_PROGRAMS), and define
20358         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
20359         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
20360         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
20362 2015-01-15  Daiki Ueno  <ueno@gnu.org>
20364         uniwbrk: ignore Extended/Format characters at BOL not BOS
20365         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
20366         characters if the previous character property is one of
20367         WBP_NEWLINE, WBP_CR, and WBP_LF.
20369 2015-01-11  Jim Meyering  <meyering@fb.com>
20371         test-strstr.c: avoid a trivial leak
20372         * tests/test-strstr.c (main): Free haystack.
20374         update-copyright: recognize groff's \(co marker
20375         * build-aux/update-copyright (circle_c_re): Also accept
20376         uses of \(co, as found in gzip.1.
20378 2015-01-08  Pádraig Brady  <P@draigBrady.com>
20380         maint.mk: fix compatibility with OS X nm
20381         * top/maint.mk (_gl_tight_scope): Use the -g option to
20382         show exported items rather than the -e option which is
20383         ignored on all platforms except OS X where it gives an error.
20384         Reported by Assaf Gordon.
20386 2015-01-07  KO Myung-Hun  <komh@chollian.net>
20388         localcharset: improve charset detection on OS/2
20389         Use system codepage when appropriate.  Map OS/2 codepages to
20390         GNU canonical charset names if possible.
20391         * lib/config.charset: Don't output aliases if "$os" is os2*.
20392         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
20393         result for OS/2.
20394         (locale_charset) [OS2]: Use system codepage if codeset is omitted
20395         from the locale name which is neither "C" nor "POSIX".
20397 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
20399         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
20400         This reverts the last patch but one, as it shouldn't be needed now
20401         that the typo is fixed.
20402         * lib/count-leading-zeros.h (count_leading_zeros_ll):
20403         * lib/count-trailing-zeros.h:
20404         * lib/count-one-bits.h:
20405         Go back to using 64-bit intrinsics.
20407         count-leading-zeros: fix pragma typos
20408         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
20409         Fix typos in declaration of intrinsics when _MSC_VER.
20411 2015-01-06  Pádraig Brady  <P@draigBrady.com>
20413         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
20414         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
20415         intrinsics in this case.
20416         * lib/count-trailing-zeros.h: Likewise.
20417         * lib/count-one-bits.h: Likewise.
20419 2015-01-06  Daiki Ueno  <ueno@gnu.org>
20421         uniname/uniname: update to Unicode 7.0.0
20422         To accommodate new characters added since Unicode 5.1.0, this
20423         changes the internal representation of codepoint ranges.
20424         Previously, we grouped codepoint ranges by manually assigned 4-bit
20425         tag, which only allowed 16 groups.  This removes the limitation by
20426         switching to binary search on a table.  For the detail rationale
20427         and the benchmark results, see:
20428         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
20429         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
20430         to INDEX, as it no longer represents a codepoint.
20431         (range): New struct.
20432         (main): Switch to intervals list from a bit-pattern based
20433         classification.
20434         * lib/uniname/uninames.h: Regenerate.
20435         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
20436         * modules/uniname/base (configure.ac): Bump minimum version to
20437         0.9.5.
20438         * modules/uniname/uniname (configure.ac): Bump minimum version to
20439         0.9.5.
20441 2015-01-05  Eric Blake  <eblake@redhat.com>
20443         doc: update INSTALL from autoconf
20444         * doc/install.texi: Resync from autoconf.
20445         * doc/INSTALL: Reflect recent autoconf update.
20446         * doc/INSTALL.ISO: Likewise.
20447         * doc/INSTALL.UTF-8: Likewise.
20449         stdio: fix use of PRIdMAX on modern mingw
20450         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
20451         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
20452         to work with modern mingw.
20454 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
20456         pthread: detect git mingw builds with only partial pollution
20457         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
20458         pollution, as seen temporarily in Fedora 21.
20460 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
20462         lib-symbol-versions: cache script check
20463         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
20464         Cache the check for linker version scripts.
20465         From a suggestion by Christophe Curis in:
20466         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
20468 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
20470         maint: fix grammar nits in propername (trivial change)
20471         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
20472         and use an adequate verb and tense.
20474 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
20476         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
20477         * module/gendocs: Add 'doc/gendocs_template_min'.
20479         * build-aux/gendocs.sh: Change email addresses and upstream URLs
20480         from to Gnulib's.
20481         (scripturl, templateurl): Adjust accordingly.
20483 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
20485         gendocs: copyright date and version fix
20486         Reported by Karl Berry in:
20487         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
20488         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
20489         Fix copyright date.
20490         * build-aux/gendocs.sh (scriptversion): Update.
20492 2015-01-01  Karl Berry  <karl@gnu.org>
20494         * doc/install.texi,
20495         * build-aux/mdate-sh,
20496         * build-aux/depcomp,
20497         * build-aux/config.guess,
20498         * build-aux/config.sub,
20499         * build-aux/ar-lib,
20500         * build-aux/compile: revert copyright updates (some from last
20501         year) in slaved files.
20503 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
20505         version-etc: new year
20506         * doc/gnulib.texi:
20507         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
20508         * all files: Run 'make update-copyright'.
20510 2014-12-30  Pádraig Brady  <P@draigBrady.com>
20512         xstrtol: ensure errno is reset
20513         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
20514         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
20516         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
20518 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
20520         utimens: fix dependency typo
20521         * modules/utimens (Depends-on): Remove 'assure'.
20522         This bug was introduced in the recent 'assure' patch.
20524 2014-12-22  Eric Blake  <eblake@redhat.com>
20526         docs: mention why libgen.h is bad
20527         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
20529 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
20531         assure: new module
20532         This works better than 'assert' when compiling with -DNDEBUG,
20533         as it avoids some compiler diagnostics in that case.
20534         Reported by Norihiro Tanaka in:
20535         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
20536         * MODULES.html.sh (func_all_modules): Add 'assure'.
20537         * lib/assure.h, modules/assure: New files.
20538         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
20539         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
20540         Prefer 'assure' to 'assert'.
20541         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
20542         * modules/chdir-long, modules/cycle-check, modules/fchdir:
20543         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
20544         Depend on 'assure'.
20546 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
20548         stdalign: port better to HP compilers
20549         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
20550         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
20552         stdalign: work around Apple GCC 4.0 bug
20553         Reported by David Fang in:
20554         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
20555         * lib/stdalign.in.h (_Alignas):
20556         * m4/stdalign.m4 (gl_STDALIGN_H):
20557         Do not use aligned attribute with GCC 4.0 on Apple.
20559 2014-12-16  Pádraig Brady  <P@draigBrady.com>
20561         getcwd: fix test failure on OS X 10.9
20562         * m4/getcwd-path-max.m4: Avoid the replacement if it
20563         won't be effective due to the PATH_MAX limitation of lstat().
20564         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
20565         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
20566         for this case for use in tests, and also exclude this
20567         case when setting REPLACE_GETCWD.
20568         * tests/test-getcwd.c (test_long_name): Restrict the
20569         tested path length so that lstat() will not be passed
20570         a path greater than PATH_MAX.
20571         Also key a test condition on HAVE_OPENAT_SUPPORT rather
20572         than AT_FDCWD, since the latter is set unconditionally
20573         since Sep 2009 in commit 52c658e9.
20575 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
20577         parse-datetime: avoid a compiler warning with byacc (trivial)
20578         * lib/parse-datetime.y (yylex): Use the same prototype in the
20579         function definition as the declaration, to avoid a -Wstrict-prototypes
20580         warning seen when using byacc.
20582 2014-12-12  Daiki Ueno  <ueno@gnu.org>
20584         unicase/locale-language-tests: fix LOCALE_FR test
20585         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
20586         a French locale with traditional encoding.
20587         Reported by umerqayam in:
20588         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
20590 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
20592         stddef: support C11's max_align_t
20593         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
20594         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
20595         Do not undef, as that might cause max_align_t to be defined twice.
20596         Instead, change use to check for _GL_STDDEF_WINT_T too.
20597         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
20598         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
20599         Check for max_align_t.
20600         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
20601         * modules/stddef-tests (Depends-on): Add stdalign.
20602         * tests/test-stddef.c: Test max_align_t.
20604 2014-12-11  Daiki Ueno  <ueno@gnu.org>
20606         unistd: fix iOS check conditional
20607         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
20608         as 0 or 1 in <TargetConditionals.h>, and the previous check always
20609         yielded true on non-iOS environment.
20610         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
20611         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
20612         they are defined.
20614 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
20616         posixtm: avoid compiler warning in a better way
20617         * lib/posixtm.c (IF_LINT): Remove.
20618         (year, posix_time_parse):
20619         Return true (not 0) if successful.  All callers changed.
20620         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
20622 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
20624         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
20625         started with '/' on EMX.
20627 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
20629         freopen: workaround freopen() on OS/2 kLIBC
20630         * lib/freopen.c (rpl_freopen): Workaround.
20631         * m4/freopen.m4: Add os2* case.
20633         get_shared_library_fullname: port to EMX
20634         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
20635         on EMX, respectively.
20636         (_DLL_InitTerm): New on EMX.
20637         (get_shared_library_fullname): Implement on EMX.
20639         find_executable: port to EMX
20640         * lib/progreloc.c (find_executable): Implement on EMX.
20642         sched: check struct sched_param in spawn.h as well
20643         * lib/sched.in.h: Include spawn.h on kLIBC.
20644         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
20646 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
20648         bootstrap: Allow perl modules in $buildreq
20649         * build-aux/bootstrap: Add case for perl modules.
20651 2014-12-08  Pádraig Brady  <P@draigBrady.com>
20653         apply _GL_ATTRIBUTE_PURE to some inline functions
20654         clang 3.4.2 flagged these inline functions as pure
20655         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
20656         * lib/sig-handler.h (get_handler): Likewise.
20657         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
20658         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
20660 2014-12-06  Pádraig Brady  <P@draigBrady.com>
20662         vasnprintf: fix potential use after free
20663         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
20664         flagged by clang-analyzer 3.4.2.
20666 2014-12-05  Pádraig Brady  <P@draigBrady.com>
20668         filevercmp, posixtm: avoid compiler warnings with -O3
20669         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
20670         * lib/posixtm.c: (IF_LINT): Define.
20671         (posix_time_parse): Use it to void a "may be used uninitialized"
20672         warning, seen only with -O3.
20674 2014-12-05  Bruno Haible  <bruno@clisp.org>
20676         Fix LDBL80_WORDS macro on big endian platforms.
20677         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
20678         LDBL80_WORDS macro.
20679         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
20680         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20681         * tests/test-isfinite.c (test_isfinitel): Likewise.
20682         * tests/test-isinf.c (test_isinfl): Likewise.
20683         * tests/test-isnan.c (test_long_double): Likewise.
20684         * tests/test-isnanl.h (main): Likewise.
20685         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
20686         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
20687         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
20688         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
20689         Reported by Pádraig Brady.
20691 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
20693         git-version-gen: do not print new line characters
20694         * build-aux/git-version-gen: Use printf instead of echo and tr.
20696         gnulib-tool: recognize x:* as an absolute path
20697         * gnulib-tool (func_gnulib_dir): Add ?:* case.
20698         (func_relconcat): Likewise.
20700 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
20702         argp: avoid extraneous translation and mem leak with empty pre doc
20703         * lib/argp-help.c (argp_doc): Never translate the empty string,
20704         when "\v" is the first or last character of the string, as that
20705         has a reserved meaning to return the header info from a po file.
20706         This also fixes a small memory leak in the !post case.
20707         The issue can be seen with this command for example:
20708         LC_MESSAGES=en_US grub2-mknetdir --help
20710 2014-11-27  Daiki Ueno  <ueno@gnu.org>
20712         uniname/uniname-tests: skip if system's libunistring is used
20713         * modules/uniname/uniname-tests (Makefile.am): Skip test if
20714         uniname/uniname module is not compiled.
20716 2014-11-27  Pádraig Brady  <P@draigBrady.com>
20718         printf: fix configure check on big endian systems
20719         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
20721 2014-11-22  Daiki Ueno  <ueno@gnu.org>
20723         pipe-filter-gi, pipe-filter-ii: port to AIX
20724         On AIX 7.1, 'select' is defined as static and cannot be referred
20725         to from inline function.
20726         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
20727         the definition...
20728         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
20729         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
20731 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20733         gitlog-to-changelog: add --until
20734         * build-aux/gitlog-to-changelog: Support new --until option.
20735         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
20737 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
20739         extern-inline: update commentary about GCC bugs
20740         * m4/extern-inline.m4: Add another GCC bug number to comments.
20742 2014-11-13  Daiki Ueno  <ueno@gnu.org>
20744         gen-uni-tables: untabify
20745         * lib/gen-uni-tables.c: Untabify.
20747 2014-11-13  Daiki Ueno  <ueno@gnu.org>
20749         gen-uni-tables: check out-of-range values added to 3-level tables
20750         * lib/gen-uni-tables.c (output_category, output_bidi_category)
20751         (output_joining_type, output_ident_category): Check out-of-range
20752         values added to 3-level tables.
20754 2014-11-13  Daiki Ueno  <ueno@gnu.org>
20756         gen-uni-tables: utilize 'assert'
20757         * lib/gen-uni-tables.c: Include <assert.h>.
20758         (output_category, output_combclass, output_decimal_digit_test)
20759         (output_decimal_digit, output_digit_test, output_digit)
20760         (output_numeric, get_mirror_value, fill_properties)
20761         (fill_property30, is_property_alphabetic)
20762         (is_property_default_ignorable_code_point)
20763         (is_property_uppercase, is_property_lowercase)
20764         (is_property_cased, is_property_case_ignorable)
20765         (is_property_changes_when_lowercased, is_property_iso_control)
20766         (is_property_math, fill_arabicshaping, output_joining_group)
20767         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
20768         (output_wbp, fill_org_gbp, get_decomposition)
20769         (output_decomposition, fill_composition_exclusions)
20770         (debug_output_composition_tables, output_composition_tables)
20771         (redistribute_casefolding_rules, output_casing_rules): Use
20772         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
20773         reporting.
20775 2014-11-13  Daiki Ueno  <ueno@gnu.org>
20777         gen-uni-tables: cosmetic improvements
20778         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
20779         variables specification.
20780         (is_outdigit): Remove unused function.
20782 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
20784         fcntl-h-tests: port to PA-RISC GNU/Linux
20785         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
20787 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
20789         fts: port to C89
20790         Problem reported for MSVC 16 by Gisle Vanem in:
20791         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
20792         * lib/fts.c (fts_build): Avoid declaration before statement.
20794 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20796         unistd: port to iOS
20797         Problem reported by André Klitzing in:
20798         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
20799         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
20801 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
20803         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
20804         Problem reported by Alan Modra in:
20805         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
20806         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
20807         Always cast the function arg, reverting this part of the previous
20808         change.
20810 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
20812         obstack: avoid potentially-nonportable function casts
20813         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
20814         Remove, replacing with ...
20815         (call_chunkfun, call_freefun): New static functions.
20816         All uses changed.  Avoid potentially-nonportable casts.
20817         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
20818         (_obstack_begin_worker): Omit last two args, since they
20819         rely on potentially-nonportable casts.  All callers changed.
20820         * lib/obstack.h (_OBSTACK_CAST): New macro.
20821         Use it everywhere the old API used a potentially-nonportable cast.
20822         The new API doesn't cast.
20823         (struct obstack): Use unions rather than requiring
20824         potentially-nonportable casts.
20825         (obstack_chunkfun, obstack_freefun): Return void.
20827 2014-11-03  Alan Modra  <amodra@gmail.com>
20829         obstack: fix macro return values
20830         * lib/obstack.h (obstack_next_free): Return void *.
20831         (obstack_1grow_fast, obstack_blank_fast): Return void.
20832         For __GNUC__ macros:
20833         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
20834         For !__GNUC__ macros:
20835         (obstack_make_room, obstack_grow, obstack_grow0)
20836         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
20838 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
20840         obstack: do not assume system-supplied obstack is size_t safe
20841         * m4/obstack.m4: New file.
20842         * modules/obstack (Files): Add it.
20844         obstack: port to platforms that #define __alignof__
20845         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
20846         not if !_LIBC.  We don't know of any platforms that #define
20847         __alignof__, but it might be useful in tests.  Conversely,
20848         glibc assumes GCC.
20850 2014-11-03  Pádraig Brady  <P@draigBrady.com>
20852         linkat: don't unconditionally replace on GNU/Linux
20853         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
20854         was redundant for a few reasons.  It was present to support compiling
20855         on new systems but running on the old narrow window of Linux 2.6.1[67].
20856         It setup and cleaned up test files which weren't actually used.
20857         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
20858         implicit in the following check.
20860 2014-11-03  Pádraig Brady  <P@draigBrady.com>
20862         linkat: wrap to handle symlinks on OS X 10.10
20863         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
20864         but not usable because it doesn't support creating hardlinks
20865         to symlinks.  Therefore add a generic test for this capability
20866         and fallback to our emulation if linkat() fails with ENOTSUP.
20868 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
20870         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
20871         * doc/posix-functions/open.texi (open):
20872         * doc/posix-functions/openat.texi (openat):
20873         Document that these functions do not set errno to ELOOP when
20874         a symlink is opened with O_NOFOLLOW.
20876 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
20878         obstack: add NEWS entry for recent incompatible changes
20879         * NEWS: Describe recent changes.
20881 2014-10-30  Pádraig Brady  <P@draigBrady.com>
20883         mountlist: don't use libmount to decide on dummy/remote
20884         * lib/mountlist.c (read_file_system_list): Don't use the libmount
20885         routines to determine whether a file system is dummy or remote,
20886         as they're not currently compatible.  For example the remoteness
20887         is determined on file system type (for which the list seems incomplete),
20888         rather than simply checking for a ':' in the device name.
20889         Also libmount currently determines that 'tmpfs' is a dummy file system
20890         even though it has associated storage.
20892 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
20894         obstack: prefer __alignof__ to alignof
20895         This is for portability to pre-4.7 GCC when compiling glibc.
20896         See Joseph S. Myers in:
20897         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
20898         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
20899         New macro, defined by including and using <alignof.h>.
20900         (MAX): New macro.
20901         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
20902         Do not use enums as they are not portable to some broken compilers.
20903         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
20905         obstack: prefer alignof to calculating alignments by hand
20906         * lib/obstack.c: Include <stdalign.h>.
20907         (struct fooalign): Remove.
20908         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
20909         * modules/obstack (Depends-on): Add stdalign.
20911 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
20913         obstack: use size_t alignments and check for overflow
20914         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
20915         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
20916         * lib/obstack.h (struct obstack.alignment_mask):
20917         Use _OBSTACK_SIZE_T, not int, for alignments.
20918         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
20919         overflows, e.g., when adding the alignment.
20921 2014-10-29  Alan Modra  <amodra@gmail.com>
20923         obstack: 64-bit obstack support, part 3
20924         This finally enables full 64-bit obstack support.  The glibc
20925         shared library specific code is removed from obstack.c too, and
20926         the error handling code conditionally compiled under control of
20927         another macro, _OBSTACK_NO_ERROR_HANDLER.
20928         * lib/obstack.h: Include string.h earlier.
20929         (_OBSTACK_INTERFACE_VERSION): Define.
20930         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
20931         * lib/obstack.c: Don't include shlib-compat.h.
20932         (OBSTACK_INTERFACE_VERSION): Delete.
20933         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
20934         glibc code is compatible with version 2.  Don't include stdio.h for
20935         __GNU_LIBRARY.
20936         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
20937         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
20938         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
20939         glibc shared library specific source.
20941         obstack: 64-bit obstack support, part 2
20942         This gets us 4G obstack support, without changing ABI
20943         compatibility, apart from possibly introducing some
20944         signed/unsigned comparison warnings in code that uses obstack.h.
20945         a) Replace "int" size parameters, return values, and macro local vars
20946            with _OBSTACK_SIZE_T, an "unsigned int" for now.
20947         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
20948         c) Make all obstack macros checking available room use obstack_room.
20949            "next_free + desired > chunk_limit" may wrap the lhs for chunks
20950            allocated near the top of memory.
20951         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
20952         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
20953         in place of "int" size parameters, return values and local vars.
20954         (_CHUNK_SIZE_T): Define.
20955         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
20956         union use an _OBSTACK_SIZE_T integer type.
20957         For __GNUC__ versions of the following macros...
20958         (obstack_room): Rename local var.
20959         (obstack_make_room): Use obstack_room.
20960         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
20961         obstack_int_grow, obstack_blank): Likewise.
20962         (obstack_finish): Use unsigned comparison when comparing aligned
20963         next_free against chunk_limit.
20964         (obstack_free): Cast OBJ to remove possible const qualifier.
20965         For !__GNUC__ versions of the following macros...
20966         (obstack_make_room): Use obstack_room.
20967         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
20968         obstack_int_grow, obstack_blank): Likewise.
20969         (obstack_finish): Use unsigned comparision when comparing aligned
20970         next_free against chunk_limit.
20971         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
20972         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
20973         _OBSTACK_SIZE_T.
20974         (_obstack_begin, _obstack_begin_1): Likewise.
20975         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
20976         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
20978         obstack: 64-bit obstack support, part 1
20979         a) Correct calls to alloc function, to use a size_t arg.  "long" is
20980            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
20981            and "size_t" 64 bits.
20982         b) Consolidate _obstack_begin and _obstack_begin1 code.
20983         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
20984         use "size_t" rather than "long".
20985         (_obstack_begin, _obstack_begin1): Likewise.
20986         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
20987         obstack_chunkfun): Update alloc function casts.
20988         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
20989         (chunkfun_type, freefun_type): New typdefs.
20990         (_obstack_begin_worker): Split out from ..
20991         (_obstack_begin, _obstack_begin_1): ..here.
20993         obstack: tidy part 2
20994         a) Don't be concerned about "not polluting the namespace with stddef.h
20995            symbols" in obstack.h, since gnulib string.h includes stddef.h
20996            anyway, and it seems unlikely that anyone would care.
20997         b) Don't roll our own slow memcpy in _obstack_newchunk.
20998         c) Rename obstack_free to _obstack_free.  This makes the naming
20999            consistent with other obstack functions and obviates the need for
21000            __obstack_free.  Ancient obstack.c defined both obstack_free and
21001            _obstack_free.  We continue to do that for _LIBC via an alias.
21002         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
21003            is clever, but nowadays gcc warns on undefined macros.  You'll get
21004            an undefined macro warning if simulating an old gcc with -U__GNUC__
21005            -U__GNUC_MINOR__ -D__GNUC__=1.
21006         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
21007         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
21008         (__obstack_free): Delete, update refs.
21009         (_obstack_free): Rename from obstack_free.
21010         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
21011         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
21012         * lib/obstack.c: Don't include stddef.h.
21013         (COPYING_UNIT): Delete.
21014         (_obstack_begin): Formatting fix.
21015         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
21016         (_obstack_free): Rename from __obstack_free, update alias.  Move
21017         undef of obstack_free to where it is needed.
21019         obstack: tidy part 1
21020         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
21021            to me, and result in overlong lines after later patches.
21022         b) Move error handling code, to avoid a forward declaration and to
21023            simplify later patches in this series.
21024         * lib/obstack.h (struct obstack <temp>): Rename fields of union
21025         and update all uses.
21026         * lib/obstack.c: Include stdlib.h earlier.
21027         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
21028         in file.
21029         (print_and_abort): Remove now redundant forward declaration.
21031 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21033         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
21034         Without this change, in bleeding-edge fileutils Autoconf complains
21035         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
21036         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
21037         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
21038         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
21040 2014-10-24  Daiki Ueno  <ueno@gnu.org>
21042         iconv: avoid false detection of non-working iconv
21043         The INBUF arguments of iconv can be either 'const char **'
21044         or 'char **'.  If CC is g++, the difference causes a compile error
21045         and thus leads to a false detection of non-working iconv.
21046         Reported by Eli Zaretskii and Werner LEMBERG in:
21047         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
21048         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
21049         iconv.  Bump serial number.
21051 2014-10-23  Pádraig Brady  <P@draigBrady.com>
21053         bootstrap: print more diagnostics for missing programs
21054         * build-aux/bootstrap: only suppress stderr when checking for
21055         alternative program names.  This supports programs issuing non
21056         standard error messages.
21058 2014-10-23  Pádraig Brady  <P@draigBrady.com>
21060         bootstrap: only update the gnulib submodule
21061         * build-aux/bootstrap: Restrict the "submodule update" command
21062         to the gnulib path.
21064 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
21066         symlinkat: port to AIX 7.1
21067         * doc/posix-functions/symlinkat.texi (symlinkat):
21068         Mention AIX porting problem.
21069         * lib/symlinkat.c: Always include errno.h.
21070         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
21071         * lib/unistd.in.h (symlinkat): Add replacement machinery.
21072         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
21073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
21074         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
21075         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
21076         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
21078         readlinkat: port to AIX 7.1
21079         * doc/posix-functions/readlink.texi (readlink):
21080         * doc/posix-functions/readlinkat.texi (readlinkat):
21081         Mention AIX porting problem.
21082         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
21083         New function.
21084         * lib/unistd.in.h (readlinkat): Add replacement machinery.
21085         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
21086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
21087         * modules/readlinkat (configure.ac): Also compile replacement
21088         if REPLACE_READLINKAT.
21089         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
21091 2014-10-12  Karl Berry  <karl@gnu.org>
21093         * doc/posix-functions/dirname.texi: remove spurious {.
21095 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
21097         basename, dirname: Improve documentation.
21098         * doc/posix-functions/basename.texi: Mention dirname module and
21099         base_name() function.
21100         * doc/posix-functions/dirname.texi: Mention dir_name() and
21101         mdir_name() functions.
21102         Suggested by Werner LEMBERG <wl@gnu.org>.
21104 2014-09-24  Jim Meyering  <meyering@fb.com>
21106         exclude: declare exclude_patopts static
21107         * lib/exclude.c (exclude_patopts): Declare static,
21108         to avoid triggering a -Wmissing-prototypes warning.
21109         The alternative (declaring it in the .h file) would
21110         require publicizing the private "struct patopts".
21112 2014-09-21  Werner Lemberg  <wl@gnu.org>
21114         dirname: support compilation with C++
21115         * lib/dirname.h: Add necessary C linkage declarations.
21117 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21119         qsort_r: include <config.h>
21120         Problem reported by Tom G. Christensen in:
21121         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
21122         * lib/qsort.c [!_LIBC]: Include <config.h> first.
21124 2014-09-16  Dylan Cali  <calid1984@gmail.com>
21126         avltree-list: avoid compiler warnings (trivial)
21127         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
21128         -Werror=suggest-attribute=pure.
21129         * lib/gl_array_list.c: Likewise.
21130         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
21131         declaration to avoid -Werror=missing-prototypes.  This is not added
21132         to a header as only exported for tests.  Add (void) to the
21133         check_invariants() call to indicate we're discarding the result
21134         in this context which avoids -Werror=unused-value.  Note we don't
21135         use ignore_value here to avoid a dependency as we know we'll not
21136         be adding __attribute__((warn_unused_result)) to check_invariants().
21137         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
21139 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21141         qsort_r: new module, for GNU-style qsort_r
21142         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
21144 2014-09-15  Werner LEMBERG  <wl@gnu.org>
21146         strerror_r-posix: support compilation with C++
21147         * lib/strerror_r.c: Add necessary C linkage declarations.
21149 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
21151         fcntl-h: fix compilation with Intel C++ compiler (trivial)
21152         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
21154 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
21156         mountlist: use /proc/self/mountinfo when available
21157         Use libmount to propagate device IDs provided by Linux in
21158         /proc/self/mountinfo.  This will give more accurate output when
21159         using df in chroot'ed environments as the device IDs are not
21160         determined by stat() which may be inaccurate within the chroot.
21161         * lib/mountlist.c (read_file_system_list): Use the libmount routines
21162         from util-linux to parse "/proc/self/mountinfo" or fall back to
21163         standard getmntent() processing.
21164         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
21165         getmntent() is used, as is the case on GNU/Linux.
21167 2014-09-07  Eric Wong  <normalperson@yhbt.net>
21169         users.txt: add cmogstored
21170         cmogstored has used gnulib since the beginning in 2012 to support
21171         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
21173 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
21175         Trivial change.
21176         * gnulib-tool: Use same options as build-aux/bootstrap to download
21177         PO files.
21179 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
21181         Trivial change.
21182         * gnulib-tool: Fallback to wget when rsync of PO files fails.
21184 2014-09-04  Eric Blake  <eblake@redhat.com>
21186         maintainer-makefile: add syntax check for useless ';;'
21187         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
21189 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
21191         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
21192         Problem reported by Assaf Gordon in:
21193         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
21194         Apparently Ubuntu is doing some fancy link-time optimization
21195         that doesn't work with -lpthread but does work with -pthread.
21196         Work around the bug by preferring -pthread to -lpthread.
21197         * m4/pthread.m4 (gl_PTHREAD_CHECK):
21198         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
21199         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
21200         Treat -pthread like -lpthread.
21202 2014-09-04  Eric Blake  <eblake@redhat.com>
21204         error: drop spurious semicolon
21205         * lib/error.c (__error_at_line): Fix ';;'.
21207 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21209         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
21210         * m4/gnulib-common.m4 (AC_C_RESTRICT):
21211         Override AC_C_RESTRICT unconditionally.
21212         Update from autoconf, incorporating:
21213         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
21214         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
21216 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21218         manywarnings: add GCC 4.9 warnings
21219         Also, make it easier to maintain this in the future.
21220         * build-aux/gcc-warning.spec: Add -Wabi-tag,
21221         -Wconditionally-supported, -Wdelete-incomplete,
21222         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
21223         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
21224         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
21225         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
21226         only for older GCC versions that need them.  Handle
21227         -Wnormalized=nfc specially, so that the 'comm' command used
21228         for maintenance doesn't get confused.
21230 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21232         vasnprintf: fix bugs in width computation
21233         * lib/vasnprintf.c (VASNPRINTF):
21234         Rework previous change, which introduced a bug,
21235         to avoid the warning in a different way.
21236         Avoid undefined behavior if the width arg is less than -INT_MAX.
21237         Avoid unnecessary use of HAS_WIDTH local.
21239 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
21241         vasnprintf: Avoid signed/unsigned comparison warning.
21242         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
21243         compare end addr of generated string w/ maximum end addr.
21245 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
21247         parse-datetime: Avoid pointer difference.
21248         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
21249         instead of calculating difference of pointers.  This removes an
21250         annoying warning, devoid of any use.
21252 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21254         qsort_r: new module, for GNU-style qsort_r
21255         This works even on FreeBSD, which has an incompatible qsort_r API.
21256         * MODULES.html.sh: Add it.
21257         * doc/glibc-functions/qsort_r.texi: It's now supported.
21258         * lib/qsort.c: New file, taken from glibc with minor changes
21259         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
21260         removed.
21261         * lib/qsort_r.c: New file, compiled only on FreeBSD.
21262         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
21263         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
21264         * modules/qsort_r, modules/qsort_r-tests: New files.
21265         * modules/stdlib (Makefile): Set up its defaults.
21266         * tests/test-qsort_r.c: New file.
21268 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
21270         vla: new module
21271         GNU RCS can use this, mostly for documentation I expect.  See:
21272         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
21273         * MODULES.html.sh: Add vla.
21274         * lib/vla.h, modules/vla: New files.
21276 2014-08-07  Daiki Ueno  <ueno@gnu.org>
21278         localename: make gl_locale_name_thread really thread-safe on Windows
21279         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
21280         "glthread/lock.h".
21281         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
21282         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
21284 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
21286         getpass: don't assume struct termios
21287         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
21288         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
21289         * lib/getpass.c (getpass): Port to systems lacking struct termios.
21291         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
21292         Problem reported by Jonas 'Sortie' Termansen in:
21293         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
21294         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
21295         Implement via sysconf for platforms that lack getdtablesize.
21297         vararrays: modernize AC_C_VARARRAYS for C11
21298         This backports a change I recently made to Autoconf.
21299         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
21300         VLAs are not supported, as this is what C11 does.  The old macro
21301         HAVE_C_VARARRAYS is still defined if they are supported, but is
21302         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
21304 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
21306         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
21307         * build-aux/install-reloc (func_create_wrapper): Also wrap
21308         strerror-override, stat, stat.
21310 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
21312         sys_select: fix FD_ZERO problem on Solaris 10
21313         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
21314         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
21315         to expand to an expression that invoked memset without necessarily
21316         including <string.h>.  The problem was that the first include
21317         defined _SYS_TIME_H, causing the second include to short-circuit.
21318         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
21319         Also, fix what appears to be a cut-and-paste typo, by replacing
21320         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
21321         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
21323         accept: document Solaris 10 type glitch
21324         * doc/posix-functions/accept.texi (accept): Mention that
21325         Solaris 10 'accept' takes void * last arg, not socklen_t *.
21327 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
21329         extern-inline: port to FreeBSD, DragonFly
21330         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
21331         is present if either __DragonFly__ or __FreeBSD__ is defined.
21332         FreeBSD problem reported by Andrey Borzenkov in:
21333         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
21334         Also, worry about __APPLE__ only if __MACH__ is also defined,
21335         as this is more consistent with the rest of gnulib.
21336         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
21337         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
21339 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
21341         regex: Make #if/#ifdef usage consistent for DEBUG
21342         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
21343         of the inconsistent usage of #if and #ifdef as that works with
21344         both Glibc and Gnulib's style.
21346 2014-07-31  Eric Blake  <eblake@redhat.com>
21348         openat-die: use _Noreturn markup
21349         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
21350         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
21351         _Noreturn.
21353 2014-07-30  Eric Blake  <eblake@redhat.com>
21355         test-open: port to cygwin, which lacks Fortify
21356         * tests/test-open.h (ALWAYS_INLINE): New macro.
21357         (__always_inline): Don't abuse internal symbol on non-glibc.
21359 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
21361         localename: Enforce declarations before statements.
21362         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
21363         first statement.
21365 2014-07-18  Jim Meyering  <meyering@fb.com>
21367         test-userspec: don't look up numeric user names
21368         * tests/test-userspec.c: I found a system for which getpwnam("0")
21369         returned a pointer to a non-root user's entry, and that made the
21370         test fail.
21371         (T): Prefix each numeric input with "+", to inhibit lookup.
21373 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
21375         localcharset, localename: MS-Windows support for non-default locales
21376         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
21377         falling back on the default system codepage, try extracting
21378         the codepage from what 'setlocale' returns.  This allows to
21379         take into account changes of the codeset due to non-default
21380         locale set by a previous call to 'setlocale'.
21381         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
21382         Define if not already defined.
21383         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
21384         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
21385         current locale by calling 'setlocale', then converting the
21386         locale name into LCID by calling 'get_lcid'.  This allows to
21387         take into account changes in the current locale from the
21388         default one, in contrast to GetThreadLocale.
21390 2014-07-14  Daiki Ueno  <ueno@gnu.org>
21392         announce-gen: avoid failure when Digest::SHA is installed
21393         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
21394         Digest::SHA1->new in print_checksums fails.
21395         * build-aux/announce-gen (digest_classes): New associative array
21396         for available message digest implementations.
21397         (print_locations): Use it.
21399 2014-07-13  Pádraig Brady  <P@draigBrady.com>
21401         gettext: revert "update macros to version 0.19"
21402         This reverts commit 9b9370ca, as it currently requires that
21403         developers of any project that explicitly uses the gettext module
21404         or implicitly uses it through the utimens-tests or
21405         futimens-tests modules, use gettext >= 0.19.
21406         However there are some stability and availablity issues with
21407         that version at present.  We can reinstate this soon, when stability
21408         is addressed and packages are more readily available.
21410 2014-07-12  Jim Meyering  <meyering@fb.com>
21412         regex: don't deref NULL upon heap allocation failure
21413         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
21414         failure in one more place.
21415         To trigger the segfault, configure grep -with-included-regex,
21416         build it, and run these commands:
21417         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
21418         I discovered this while replying to a private report from
21419         Jens Schleusener about excessive memory consumption by grep
21420         when using a regular expression like the one above.
21422 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
21424         regex: fix memory leak in compiler
21425         Fix by Andreas Schwab in:
21426         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
21427         * lib/regcomp.c (parse_reg_exp): Deallocate partially
21428         constructed tree before returning error.
21430 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
21432         announce-gen: avoid perl warnings
21433         * build-aux/announce-gen: add two minor checks to avoid
21434         "use of uninitialized value" warnings when command-line parameters are
21435         missing.
21437 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
21439         localename: avoid -Wsuggest-attribute={const,pure} warnings
21440         * lib/localename.c (string_has): Tag internal function as pure.
21441         * lib/localename.h (gl_locale_name_default): Tag extern declaration
21442         as const when appropriate.
21444 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
21446         nl_langinfo: Fix last change.
21447         * lib/nl_langinfo.c (includes): Drop redundant include.
21449 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
21451         error: Fix -Wundef warnings in glibc
21452         * lib/error.c [_LIBC]: Define default macros for
21453         glibc.
21454         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
21455         Check _LIBC before STRERROR_R_CHAR_P.
21457         error: Sync from glibc master
21458         * lib/error.c [_LIBC]: Remove INTUSE usage.
21459         (error_tail): Remove unused macro ALLOCA_LIMIT.
21460         Fix potential buffer overflow.  Fix potential NULL dereference
21461         in strcmp.
21463 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
21465         nl_langinfo: fix build under mingw
21466         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
21468 2014-07-09  Andrew D Warshall  <warshall@99main.com>
21470         mountlist: do not classify a bind-mounted dir entry as "dummy"
21471         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
21472         1-argument getmntent() (instead of assuming absence).
21474 2014-07-08  Eric Blake  <eblake@redhat.com>
21476         maint.mk: less syntax-check noise when SIGPIPE is ignored
21477         * top/maint.mk (_sc_header_without_use)
21478         (sc_require_config_h_first): Parse full list.
21480 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
21481             Paul Eggert  <eggert@cs.ucla.edu>
21483         nl_langinfo: CODESET on MS-Windows and more items from localeconv
21484         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
21485         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
21486         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
21487         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
21488         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
21489         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
21490         Include <stdio.h> if Microsoft Windows.
21491         Include <time.h> if !REPLACE_NL_LANGINFO.
21492         (ctype_codeset): New function, taken from rpl_nl_langinfo,
21493         and with improvements for Microsoft Windows.
21494         (rpl_nl_langinfo): Use it.
21495         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
21496         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
21497         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
21498         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
21499         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
21500         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
21501         corresponding values returned by 'localeconv'.  Compute the values
21502         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
21503         'strftime' with a suitable struct tm value.
21505 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
21507         Bruno Haible has stepped down as maintainer.
21508         See Karl Berry in:
21509         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
21510         Daiki Ueno has volunteered to maintain libunistring; see:
21511         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
21512         * modules/gen-uni-tables, modules/libunistring:
21513         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
21514         * modules/unicase/base, modules/unicase/cased:
21515         * modules/unicase/empty-prefix-context:
21516         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
21517         * modules/unicase/locale-language, modules/unicase/special-casing:
21518         * modules/unicase/tocasefold, modules/unicase/tolower:
21519         * modules/unicase/totitle, modules/unicase/toupper:
21520         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
21521         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
21522         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
21523         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
21524         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
21525         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
21526         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
21527         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
21528         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
21529         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
21530         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
21531         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
21532         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
21533         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
21534         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
21535         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
21536         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
21537         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
21538         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
21539         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
21540         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
21541         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
21542         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
21543         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
21544         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
21545         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
21546         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
21547         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
21548         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
21549         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
21550         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
21551         * modules/unicase/ulc-casexfrm, modules/unicodeio:
21552         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
21553         * modules/uniconv/u16-conv-to-enc:
21554         * modules/uniconv/u16-strconv-from-enc:
21555         * modules/uniconv/u16-strconv-from-locale:
21556         * modules/uniconv/u16-strconv-to-enc:
21557         * modules/uniconv/u16-strconv-to-locale:
21558         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
21559         * modules/uniconv/u32-strconv-from-enc:
21560         * modules/uniconv/u32-strconv-from-locale:
21561         * modules/uniconv/u32-strconv-to-enc:
21562         * modules/uniconv/u32-strconv-to-locale:
21563         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
21564         * modules/uniconv/u8-strconv-from-enc:
21565         * modules/uniconv/u8-strconv-from-locale:
21566         * modules/uniconv/u8-strconv-to-enc:
21567         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
21568         * modules/unictype/bidicategory-all:
21569         * modules/unictype/bidicategory-byname:
21570         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
21571         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
21572         * modules/unictype/bidiclass-byname:
21573         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
21574         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
21575         * modules/unictype/block-all, modules/unictype/block-list:
21576         * modules/unictype/block-of, modules/unictype/block-test:
21577         * modules/unictype/category-C, modules/unictype/category-Cc:
21578         * modules/unictype/category-Cf, modules/unictype/category-Cn:
21579         * modules/unictype/category-Co, modules/unictype/category-Cs:
21580         * modules/unictype/category-L, modules/unictype/category-LC:
21581         * modules/unictype/category-Ll, modules/unictype/category-Lm:
21582         * modules/unictype/category-Lo, modules/unictype/category-Lt:
21583         * modules/unictype/category-Lu, modules/unictype/category-M:
21584         * modules/unictype/category-Mc, modules/unictype/category-Me:
21585         * modules/unictype/category-Mn, modules/unictype/category-N:
21586         * modules/unictype/category-Nd, modules/unictype/category-Nl:
21587         * modules/unictype/category-No, modules/unictype/category-P:
21588         * modules/unictype/category-Pc, modules/unictype/category-Pd:
21589         * modules/unictype/category-Pe, modules/unictype/category-Pf:
21590         * modules/unictype/category-Pi, modules/unictype/category-Po:
21591         * modules/unictype/category-Ps, modules/unictype/category-S:
21592         * modules/unictype/category-Sc, modules/unictype/category-Sk:
21593         * modules/unictype/category-Sm, modules/unictype/category-So:
21594         * modules/unictype/category-Z, modules/unictype/category-Zl:
21595         * modules/unictype/category-Zp, modules/unictype/category-Zs:
21596         * modules/unictype/category-all, modules/unictype/category-and:
21597         * modules/unictype/category-and-not, modules/unictype/category-byname:
21598         * modules/unictype/category-longname, modules/unictype/category-name:
21599         * modules/unictype/category-none, modules/unictype/category-of:
21600         * modules/unictype/category-or, modules/unictype/category-test:
21601         * modules/unictype/category-test-withtable:
21602         * modules/unictype/combining-class:
21603         * modules/unictype/combining-class-all:
21604         * modules/unictype/combining-class-byname:
21605         * modules/unictype/combining-class-longname:
21606         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
21607         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
21608         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
21609         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
21610         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
21611         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
21612         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
21613         * modules/unictype/digit, modules/unictype/joininggroup-all:
21614         * modules/unictype/joininggroup-byname:
21615         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
21616         * modules/unictype/joiningtype-all:
21617         * modules/unictype/joiningtype-byname:
21618         * modules/unictype/joiningtype-longname:
21619         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
21620         * modules/unictype/mirror, modules/unictype/numeric:
21621         * modules/unictype/property-all, modules/unictype/property-alphabetic:
21622         * modules/unictype/property-ascii-hex-digit:
21623         * modules/unictype/property-bidi-arabic-digit:
21624         * modules/unictype/property-bidi-arabic-right-to-left:
21625         * modules/unictype/property-bidi-block-separator:
21626         * modules/unictype/property-bidi-boundary-neutral:
21627         * modules/unictype/property-bidi-common-separator:
21628         * modules/unictype/property-bidi-control:
21629         * modules/unictype/property-bidi-embedding-or-override:
21630         * modules/unictype/property-bidi-eur-num-separator:
21631         * modules/unictype/property-bidi-eur-num-terminator:
21632         * modules/unictype/property-bidi-european-digit:
21633         * modules/unictype/property-bidi-hebrew-right-to-left:
21634         * modules/unictype/property-bidi-left-to-right:
21635         * modules/unictype/property-bidi-non-spacing-mark:
21636         * modules/unictype/property-bidi-other-neutral:
21637         * modules/unictype/property-bidi-pdf:
21638         * modules/unictype/property-bidi-segment-separator:
21639         * modules/unictype/property-bidi-whitespace:
21640         * modules/unictype/property-byname:
21641         * modules/unictype/property-case-ignorable:
21642         * modules/unictype/property-cased:
21643         * modules/unictype/property-changes-when-casefolded:
21644         * modules/unictype/property-changes-when-casemapped:
21645         * modules/unictype/property-changes-when-lowercased:
21646         * modules/unictype/property-changes-when-titlecased:
21647         * modules/unictype/property-changes-when-uppercased:
21648         * modules/unictype/property-combining:
21649         * modules/unictype/property-composite:
21650         * modules/unictype/property-currency-symbol:
21651         * modules/unictype/property-dash:
21652         * modules/unictype/property-decimal-digit:
21653         * modules/unictype/property-default-ignorable-code-point:
21654         * modules/unictype/property-deprecated:
21655         * modules/unictype/property-diacritic:
21656         * modules/unictype/property-extender:
21657         * modules/unictype/property-format-control:
21658         * modules/unictype/property-grapheme-base:
21659         * modules/unictype/property-grapheme-extend:
21660         * modules/unictype/property-grapheme-link:
21661         * modules/unictype/property-hex-digit:
21662         * modules/unictype/property-hyphen:
21663         * modules/unictype/property-id-continue:
21664         * modules/unictype/property-id-start:
21665         * modules/unictype/property-ideographic:
21666         * modules/unictype/property-ids-binary-operator:
21667         * modules/unictype/property-ids-trinary-operator:
21668         * modules/unictype/property-ignorable-control:
21669         * modules/unictype/property-iso-control:
21670         * modules/unictype/property-join-control:
21671         * modules/unictype/property-left-of-pair:
21672         * modules/unictype/property-line-separator:
21673         * modules/unictype/property-logical-order-exception:
21674         * modules/unictype/property-lowercase, modules/unictype/property-math:
21675         * modules/unictype/property-non-break:
21676         * modules/unictype/property-not-a-character:
21677         * modules/unictype/property-numeric:
21678         * modules/unictype/property-other-alphabetic:
21679         * modules/unictype/property-other-default-ignorable-code-point:
21680         * modules/unictype/property-other-grapheme-extend:
21681         * modules/unictype/property-other-id-continue:
21682         * modules/unictype/property-other-id-start:
21683         * modules/unictype/property-other-lowercase:
21684         * modules/unictype/property-other-math:
21685         * modules/unictype/property-other-uppercase:
21686         * modules/unictype/property-paired-punctuation:
21687         * modules/unictype/property-paragraph-separator:
21688         * modules/unictype/property-pattern-syntax:
21689         * modules/unictype/property-pattern-white-space:
21690         * modules/unictype/property-private-use:
21691         * modules/unictype/property-punctuation:
21692         * modules/unictype/property-quotation-mark:
21693         * modules/unictype/property-radical:
21694         * modules/unictype/property-sentence-terminal:
21695         * modules/unictype/property-soft-dotted:
21696         * modules/unictype/property-space:
21697         * modules/unictype/property-terminal-punctuation:
21698         * modules/unictype/property-test, modules/unictype/property-titlecase:
21699         * modules/unictype/property-unassigned-code-value:
21700         * modules/unictype/property-unified-ideograph:
21701         * modules/unictype/property-uppercase:
21702         * modules/unictype/property-variation-selector:
21703         * modules/unictype/property-white-space:
21704         * modules/unictype/property-xid-continue:
21705         * modules/unictype/property-xid-start:
21706         * modules/unictype/property-zero-width, modules/unictype/scripts:
21707         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
21708         * modules/unictype/syntax-c-whitespace:
21709         * modules/unictype/syntax-java-ident:
21710         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
21711         * modules/unigbrk/u16-grapheme-breaks:
21712         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
21713         * modules/unigbrk/u32-grapheme-breaks:
21714         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
21715         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
21716         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
21717         * modules/unigbrk/uc-is-grapheme-break:
21718         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
21719         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
21720         * modules/unilbrk/u16-width-linebreaks:
21721         * modules/unilbrk/u32-possible-linebreaks:
21722         * modules/unilbrk/u32-width-linebreaks:
21723         * modules/unilbrk/u8-possible-linebreaks:
21724         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
21725         * modules/unilbrk/ulc-possible-linebreaks:
21726         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
21727         * modules/uniname/uniname, modules/uninorm/base:
21728         * modules/uninorm/canonical-decomposition:
21729         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
21730         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
21731         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
21732         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
21733         * modules/uninorm/nfkc, modules/uninorm/nfkd:
21734         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
21735         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
21736         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
21737         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
21738         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
21739         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
21740         * modules/unistdio/base, modules/unistdio/u-printf-args:
21741         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
21742         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
21743         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
21744         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
21745         * modules/unistdio/u16-u16-sprintf:
21746         * modules/unistdio/u16-u16-vasnprintf:
21747         * modules/unistdio/u16-u16-vasprintf:
21748         * modules/unistdio/u16-u16-vsnprintf:
21749         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
21750         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
21751         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
21752         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
21753         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
21754         * modules/unistdio/u32-u32-asnprintf:
21755         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
21756         * modules/unistdio/u32-u32-sprintf:
21757         * modules/unistdio/u32-u32-vasnprintf:
21758         * modules/unistdio/u32-u32-vasprintf:
21759         * modules/unistdio/u32-u32-vsnprintf:
21760         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
21761         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
21762         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
21763         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
21764         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
21765         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
21766         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
21767         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
21768         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
21769         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
21770         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
21771         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
21772         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
21773         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
21774         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
21775         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
21776         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
21777         * modules/unistr/u16-check, modules/unistr/u16-chr:
21778         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
21779         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
21780         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
21781         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
21782         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
21783         * modules/unistr/u16-move, modules/unistr/u16-next:
21784         * modules/unistr/u16-prev, modules/unistr/u16-set:
21785         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
21786         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
21787         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
21788         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
21789         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
21790         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
21791         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
21792         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
21793         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
21794         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
21795         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
21796         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
21797         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
21798         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
21799         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
21800         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
21801         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
21802         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
21803         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
21804         * modules/unistr/u32-next, modules/unistr/u32-prev:
21805         * modules/unistr/u32-set, modules/unistr/u32-startswith:
21806         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
21807         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
21808         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
21809         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
21810         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
21811         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
21812         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
21813         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
21814         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
21815         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
21816         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
21817         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
21818         * modules/unistr/u8-check, modules/unistr/u8-chr:
21819         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
21820         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
21821         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
21822         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
21823         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
21824         * modules/unistr/u8-next, modules/unistr/u8-prev:
21825         * modules/unistr/u8-set, modules/unistr/u8-startswith:
21826         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
21827         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
21828         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
21829         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
21830         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
21831         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
21832         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
21833         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
21834         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
21835         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
21836         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
21837         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
21838         * modules/uniwbrk/base, modules/uniwbrk/table:
21839         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
21840         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
21841         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
21842         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
21843         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
21844         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
21845         * modules/uniwidth/width, modules/utf16-ucs4:
21846         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
21847         * modules/utf8-ucs4-unsafe:
21848         Change maintainer from Bruno Haible to Daiki Ueno.
21849         This is my guess at the libunistring modules; please feel free
21850         to fix if I guessed incorrectly.
21851         * modules/accept4, modules/acl, modules/acos, modules/acosf:
21852         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
21853         * modules/areadlink, modules/array-list, modules/array-mergesort:
21854         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
21855         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
21856         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
21857         * modules/binary-io, modules/bison-i18n, modules/btowc:
21858         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
21859         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
21860         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
21861         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
21862         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
21863         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
21864         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
21865         * modules/closedir, modules/concat-filename, modules/copy-file:
21866         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
21867         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
21868         * modules/csharpcomp-script, modules/csharpexec:
21869         * modules/csharpexec-script, modules/ctype, modules/diffseq:
21870         * modules/dprintf, modules/dprintf-posix, modules/dup:
21871         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
21872         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
21873         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
21874         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
21875         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
21876         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
21877         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
21878         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
21879         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
21880         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
21881         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
21882         * modules/findprog, modules/findprog-lgpl, modules/floor:
21883         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
21884         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
21885         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
21886         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
21887         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
21888         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
21889         * modules/freadable, modules/freadahead, modules/freadptr:
21890         * modules/freadseek, modules/freopen, modules/frexp:
21891         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
21892         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
21893         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
21894         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
21895         * modules/ftello, modules/full-read, modules/full-write:
21896         * modules/fwritable, modules/fwriteerror, modules/gcd:
21897         * modules/get-rusage-as, modules/get-rusage-data:
21898         * modules/getdtablesize, modules/getrusage, modules/gettext:
21899         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
21900         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
21901         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
21902         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
21903         * modules/iconv, modules/iconv-h, modules/iconv_open:
21904         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
21905         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
21906         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
21907         * modules/integer_length_ll, modules/ioctl, modules/isatty:
21908         * modules/isblank, modules/isnand, modules/isnand-nolibm:
21909         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
21910         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
21911         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
21912         * modules/javaexec, modules/javaexec-script, modules/javaversion:
21913         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
21914         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
21915         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
21916         * modules/lib-symbol-visibility, modules/libsigsegv:
21917         * modules/linked-list, modules/linkedhash-list, modules/list:
21918         * modules/localcharset, modules/locale, modules/localeconv:
21919         * modules/localename, modules/lock, modules/log, modules/log-ieee:
21920         * modules/log10, modules/log10-ieee, modules/log10f:
21921         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
21922         * modules/log1p, modules/log1p-ieee, modules/log1pf:
21923         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
21924         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
21925         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
21926         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
21927         * modules/logf, modules/logf-ieee, modules/login_tty:
21928         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
21929         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
21930         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
21931         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
21932         * modules/mbscspn, modules/mbsinit, modules/mbslen:
21933         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
21934         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
21935         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
21936         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
21937         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
21938         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
21939         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
21940         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
21941         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
21942         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
21943         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
21944         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
21945         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
21946         * modules/posix_spawn, modules/posix_spawn-internal:
21947         * modules/posix_spawn_file_actions_addclose:
21948         * modules/posix_spawn_file_actions_adddup2:
21949         * modules/posix_spawn_file_actions_addopen:
21950         * modules/posix_spawn_file_actions_destroy:
21951         * modules/posix_spawn_file_actions_init:
21952         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
21953         * modules/posix_spawnattr_getpgroup:
21954         * modules/posix_spawnattr_getschedparam:
21955         * modules/posix_spawnattr_getschedpolicy:
21956         * modules/posix_spawnattr_getsigdefault:
21957         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
21958         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
21959         * modules/posix_spawnattr_setschedparam:
21960         * modules/posix_spawnattr_setschedpolicy:
21961         * modules/posix_spawnattr_setsigdefault:
21962         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
21963         * modules/pow, modules/powf, modules/printf-frexp:
21964         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
21965         * modules/progname, modules/propername, modules/pselect:
21966         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
21967         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
21968         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
21969         * modules/read, modules/readdir, modules/readlink:
21970         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
21971         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
21972         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
21973         * modules/relocatable-script, modules/remainder:
21974         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
21975         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
21976         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
21977         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
21978         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
21979         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
21980         * modules/setlocale, modules/sh-quote, modules/shutdown:
21981         * modules/signal, modules/signbit, modules/sigpipe:
21982         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
21983         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
21984         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
21985         * modules/snippet/link-warning, modules/snippet/unused-parameter:
21986         * modules/snprintf, modules/snprintf-posix, modules/spawn:
21987         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
21988         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
21989         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
21990         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
21991         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
21992         * modules/streq, modules/strerror_r-posix, modules/striconv:
21993         * modules/striconveh, modules/striconveha, modules/strncat:
21994         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
21995         * modules/sublist, modules/sys_resource, modules/sys_utsname:
21996         * modules/sys_wait, modules/system-posix, modules/system-quote:
21997         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
21998         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
21999         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
22000         * modules/truncf, modules/truncf-ieee, modules/truncl:
22001         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
22002         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
22003         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
22004         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
22005         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
22006         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
22007         * modules/wait-process, modules/waitpid, modules/wcpcpy:
22008         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
22009         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
22010         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
22011         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
22012         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
22013         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
22014         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
22015         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
22016         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
22017         * modules/write, modules/xconcat-filename, modules/xlist:
22018         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
22019         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
22020         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
22021         * modules/y0, modules/y1, modules/yn:
22022         Remove Bruno Haible as maintainer; if he's the sole maintainer,
22023         change the maintainer to 'all'.  Let's hope someone volunteers.
22025 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
22027         mktime: merge #if/#ifdef usage from glibc
22028         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
22029         as that works with both Glibc's and Gnulib's style.
22030         See thread starting at Siddhesh Poyarekar's bug report at:
22031         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
22033 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
22035         git-version-gen: improve option descriptions
22036         * build-aux/git-version-gen: Mention that --prefix and --fallback
22037         have a mandatory argument.
22039 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
22041         regex: fix memory leak in compiler
22042         Fix by Andreas Schwab in:
22043         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
22044         * lib/regcomp.c (parse_expression): Deallocate partially
22045         constructed tree before returning error.
22047         regex: merge patch from libc
22048         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
22049         Combine __USE_BSD and __USE_SVID into __USE_MISC.
22050         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
22052 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
22054         acl: port to gcc -Wredundant-decls
22055         From a request by Dmitry Antipov in:
22056         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
22057         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
22058         "#ifndef _GL_ACL_H".
22060 2014-06-11  Bruce Korb  <bkorb@gnu.org>
22061         Jim Meyering  <meyering@fb.com>
22063         parse-duration: eliminate 68-year duration limit
22064         * lib/parse-duration.c: Include "intprops.h".
22065         (TIME_MAX): Rename to MAX_DURATION and define to
22066         TYPE_MAXIMUM(time_t).
22067         * modules/parse-duration (Depends-on): Add intprops.
22068         Reported by Jonas 'Sortie' Termansen.
22070 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22072         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
22073         * modules/pthread (Depends-on): Add 'extensions', as it defines
22074         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
22075         (configure.ac-early): New section.
22076         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
22077         it is no longer needed.
22079 2014-06-14  Pádraig Brady  <P@draigBrady.com>
22081         pthread: define thread-safe macros on some platforms
22082         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
22083         for thread-safe operation on some platforms.
22085 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
22087         regex: don't be multithreaded if USE_UNLOCKED_IO.
22088         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
22089         * lib/regex_internal.h: Do not use multithreaded version if
22090         USE_UNLOCKED_IO is defined.  This is a hack, but it works
22091         around a porting bug with coreutils 8.22 on AIX 7.1.
22093 2014-06-11  Daiki Ueno  <ueno@gnu.org>
22095         gettext: update macros to version 0.19
22096         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
22097         depend on gl_EXTERN_INLINE and drop support for older Bison
22098         versions.
22100 2014-06-10  Pádraig Brady  <P@draigBrady.com>
22102         select,poll: fix console handle check on windows 8
22103         lib/poll.c (IsConsoleHandle): Change from testing the lower
22104         2 bits of the handle to the more expensive but accurate syscall.
22105         lib/select.c: Likewise.
22107 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
22109         select: fix waiting on anonymous pipes on MS-Windows
22110         * lib/select.c (rpl_select): Fall back to polling when select()
22111         indicates there is nothing to check, while due to the timeout not
22112         expiring, activity is indicated on one of the handles.
22113         Also clear the TIMEOUT argument if the timer does expire.
22115 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
22117         times: fix to return non constant value on MS-Windows
22118         * lib/times.c (times): Don't use the process creation time,
22119         rather clock() which on windows returns the number of
22120         clock ticks since the process started.
22122 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
22124         isatty: fix to work on windows 8
22125         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
22126         2 bits of the handle to the more expensive but accurate syscall.
22128 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
22130         maint: fix typo in fdl.texi
22131         * doc/fdl.texi: Fix typo (missing '@').
22132         Somehow this was in fdl.texi but not fdl-1.3.texi.
22134 2014-06-06  Ben Walton  <bdwalton@gmail.com>
22136         mountlist: avoid hasmntopt const type warning on solaris
22137         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
22138         with char * instead of const char *.  Passing the constant string
22139         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
22140         to avoid the warning.
22142 2014-06-04  Eric Blake  <eblake@redhat.com>
22144         maintainer-makefile: delete obsolete code
22145         * top/maint.mk (build_aux): Drop old code, as threatened.
22147         maintainer-makefile: avoid spurious error messages
22148         * top/maint.mk (syntax-check): Guard definition and use of
22149         $(shell) by whether Makefile is present.
22151 2014-06-03  Ben Walton  <bdwalton@gmail.com>
22153         rename: avoid unused-but-set-variable compiler warning
22154         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
22155         it is possible that dst_exists may be set but not used.  Mark it with
22156         the unused attribute to avoid compiler warnings.
22158 2014-06-02  Ben Walton  <bdwalton@gmail.com>
22160         rename: mark a label as potentially unused
22161         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
22162         by marking the out label as potentially unused.
22163         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
22165 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
22167         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
22168         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
22170 2014-06-02  Ben Walton  <bdwalton@gmail.com>
22172         acl: apply pure attribute to two functions
22173         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
22174         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
22176 2014-06-01  Pádraig Brady  <P@draigBrady.com>
22178         gnulib-common.m4: add _GL_UNUSED_LABEL
22179         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
22180         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
22182 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
22184         dup2, fcntl, fcntl-h: port to AIX 7.1
22185         This fixes some porting problems discovered when testing the latest
22186         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
22187         in grep but it could be important for other applications.
22188         * doc/posix-functions/dup2.texi:
22189         * doc/posix-functions/fcntl.texi:
22190         * doc/posix-headers/fcntl.texi:
22191         Document AIX bugs.
22192         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
22193         Define to 0 if outside 'int' range.
22194         * m4/dup2.m4 (gl_FUNC_DUP2):
22195         * m4/fcntl.m4 (gl_FUNC_FCNTL):
22196         Check for getdtablesize.  If it's available, test a value just
22197         outside its range instead of testing 1000000.  When cross-compiling,
22198         guess that AIX will fail this improved test.
22200 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
22202         printf, config.rpath: Port to FreeBSD 10.
22203         Problem reported by Tijl Coosemans in:
22204         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
22205         * build-aux/config.rpath (hardcode_libdir_flag_spec)
22206         (hardcode_direct): Simplify FreeBSD configuration.
22207         (library_names_spec): Don't mishandle FreeBSD 10+.
22208         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
22209         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
22210         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
22211         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
22212         Don't mishandle FreeBSD 10+ when cross-compiling.
22214         ftoastr: work around compiler bug in IBM xlc 12.1
22215         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
22216         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
22217         around a compiler bug in IBM xlc 12.1.0.0: it complains
22218         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
22219         _GL_FLT_PREC_BOUND.'
22221 2014-05-30  Kieran Colford  <colfordk@gmail.com>
22223         valgrind-tests: fixed misleading help message
22224         * m4/valgrind-tests.m4: The help message generated by configure
22225         implied that valgrind was disabled by default, which it wasn't.
22226         Adjusted the help message using s/enable/disable/ to clarify.
22228 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
22230         isfinite, isinf, isnan tests: fix for little-endian PowerPC
22231         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
22232         first double of a PowerPC "double double" pair.
22233         * tests/test-isinf.c (test_isinfl): Likewise.
22234         * tests/test-isnan.c (test_long_double): Likewise.
22235         * tests/test-isnanl.h (main): Likewise.
22236         * tests/test-signbit.c (test_signbitl): Likewise.
22238 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
22240         exclude-tests: port to AIX 7.1
22241         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
22242         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
22243         the regex code uses locks.
22245 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
22247         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
22248         Without this fix, Emacs would sometimes call sigprocmask instead
22249         of pthread_sigmask, which is a no-no in multithreaded applications.
22250         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
22251         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
22252         Suppress check for pthread_sigmask working without -lpthread if
22253         the application always links with -lpthread.  Do not link with
22254         $LIBMULTITHREAD if gl_THREADLIB is not defined.
22255         * m4/timer_time.m4 (gl_TIMER_TIME):
22256         Require gl_THREADLIB only if it is defined.  Do not append
22257         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
22259 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
22261         gnulib-tool: wget translations using --no-verbose rather than --quiet
22262         This allows the user to see error messages if any (--quiet hides them)
22263         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
22265 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
22267         gnulib-tool: adjust translation wget to avoid a https redirection
22268         Context: http://translationproject.org/latest/gnulib redirects to
22269            https://translationproject.org/latest/gnulib/
22270         Rationale: if the user falls back to wget, she doesn't have rsync and
22271         is probably in a minimal build environment, where packages such as
22272         'ca-certificates' are missing as well, resulting in a failed (and
22273         difficult to detect since ignored) translation initial fetch.
22274         Consequently let's avoid https if possible, and add the missing
22275         trailing slash.  This also avoids an unnecessary 302 redirection.
22276         * gnulib-tool: Add trailing slash to gnulib URL.
22278 2014-05-22  Pádraig Brady  <P@draigBrady.com>
22280         getlogin_r-tests: check return value rather than errno
22281         * tests/test-getlogin_r.c (main): As per POSIX we should be
22282         verifying the return value from getlogin_r() rather than errno.
22284 2014-05-22  Pádraig Brady  <P@draigBrady.com>
22286         getlogin_r-tests: fix various issues in recent change
22287         * tests/test-getlogin_r.c: Include required headers that were
22288         missed in recent commit eec20b4e.
22289         Also consistently check the errno rather than the return value from
22290         getlogin_r as POSIX only specifies that non zero is returned on error.
22291         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
22293 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
22295         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
22296         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
22297         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
22298         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
22299         * lib/spawn-pipe.c:
22300         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
22301         and then 'int open64(const char *, int, ...);', which means the
22302         declaration for 'open' gets lost if we later '#undef open'.
22303         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
22304         where the compilation reported the non-fatal error "In function
22305         'openat_proc_name' ... warning: implicit declaration of function
22306         'open'".  In this case the error is relatively harmless, but in
22307         other cases it might not be so minor.
22309 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
22311         xalloc: don't potentially generate invalid code for xmemdup calls
22312         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
22313         this function can initialize the newly-allocated storage with new
22314         pointers, which means this function is not malloc-like.  See:
22315         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
22317 2014-05-19  Pádraig Brady  <P@draigBrady.com>
22319         getlogin_r-tests: avoid false failure under sudo/ssh etc.
22320         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
22321         changes from commit 97249cf29 to not depend on environment variables.
22323 2014-05-18  Pádraig Brady  <P@draigBrady.com>
22325         getlogin-tests: avoid false failure under cron
22326         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
22327         since that's not what's under test.  Centos 6 was seen to return
22328         EINVAL for ttyname() when run from cron.
22330 2014-05-16  Jim Meyering  <meyering@fb.com>
22332         mbrtowc.m4: fix a comment typo
22333         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
22334         emitted documentation string.
22336 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
22338         mbrlen, mbrtowc: fix bug with empty input
22339         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
22340         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
22341         so this is mainly for documentation.
22342         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
22343         (gl_FUNC_MBRTOWC): Use it.
22344         * tests/test-mbrtowc.c (main): Test for the bug.
22346 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
22348         doc: document mbrtowc and mbrlen problem with empty input
22349         * doc/posix-functions/mbrlen.texi (mbrlen):
22350         * doc/posix-functions/mbrtowc.texi (mbrtowc):
22351         Document portability problem when the input string is empty.  See:
22352         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
22354         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
22355         Problem reported by Eli Zaretskii in:
22356         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
22357         * doc/posix-functions/execl.texi (execl):
22358         * doc/posix-functions/execle.texi (execle):
22359         * doc/posix-functions/execlp.texi (execlp):
22360         * doc/posix-functions/execv.texi (execv):
22361         * doc/posix-functions/execve.texi (execve):
22362         * doc/posix-functions/execvp.texi (execvp):
22363         Mention spawn+exit problem on non-Cygwin Windows platforms.
22365 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
22367         getlogin-tests: avoid false failure under sudo/ssh etc.
22368         * modules/getlogin-tests (configure.ac): Check for ttyname().
22369         * tests/test-getlogin.c (main): Don't depend on environment variables
22370         to correlate with getlogin(), since sudo and ssh etc. can tamper
22371         with the LOGNAME and USER env vars.  Instead lookup the name from
22372         the uid associated with the stdin tty.
22374 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
22376         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
22377         These were found when building the latest grep snapshot on IRIX 6.5.
22378         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
22379         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
22380         never used later.
22381         * lib/quotearg.c (quoting_options_from_style):
22382         * lib/xstrtol.c (__xstrtol):
22383         Use enum instead of 0, to pacify IRIX 6.5 cc.
22385 2014-04-18  Pádraig Brady  <P@draigBrady.com>
22387         gitlog-to-changelog: revert inclusion of git-log-fix file
22388         * build-aux/git-log-fix: Delete dummy file.
22389         * modules/gitlog-to-changelog: Don't reference (overwrite)
22390         the project specific git-log-fix file.
22392 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
22394         maint.mk: Relax the copyright check to cater for non FSF projects
22395         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
22396         to not require the "Free" suffix after the copyright years.
22398 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
22400         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
22401         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
22402         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
22403         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
22404         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
22406 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
22408         exclude: port to strict C99
22409         Strict C does not allow converting a function pointer to void *
22410         and vice versa.  Pass a pointer to a function pointer instead.
22411         * lib/exclude.c (add_exclude_file):
22412         Pass the address of the function pointer.
22413         (call_addfn): And deference the address here, to match.
22415 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
22417         regex: do not depend on malloc-gnu
22418         * modules/regex (Depends-on): Remove malloc-gnu.
22419         It's no longer needed, because of the 2012-12-29 patch
22420         "regex: port to hosts where malloc (0) == NULL".
22421         Reported by Nathan Kennedy in:
22422         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
22424 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
22426         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
22427         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
22428         * doc/posix-functions/expl.texi: Mention the workaround.
22430 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
22432         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
22433         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
22434         size to be zero even when the pointer is nonnull.  This
22435         accommodates the use case where P is malloc (0) and *PN is 0 on a
22436         host where malloc (0) yields nonnull.
22438 2014-04-09  Eric Blake  <eblake@redhat.com>
22440         fts: avoid unnecessary strlen calls
22441         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
22443 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22445         fts: avoid unnecessary strlen calls
22446         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
22447         when that can be faster than strlen.
22449 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
22451         fts: avoid unnecessary strlen calls
22452         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
22453         (fts_build): Store the length of the dp->d_name entry in a local variable
22454         instead of calling strlen() several times via the above, removed macro.
22455         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
22456         run by ~4%, yet this reduces the execution time by about a third if run
22457         via "ltrace -c rm -rf some-dir".
22459 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
22461         obstack: Remove ancient NeXTSTEP gcc support conditional
22462         This change will ease merging with glibc.  The "#if ... __NEXT__"
22463         causes a warning with -Wundef which glibc now enables by default.
22464         Problem reported by Will Newton in
22465         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
22466         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
22467         so go with that.
22468         * lib/obstack.h (__extension__):
22470 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
22472         obstack: merge with glibc changes
22473         * lib/obstack.c, lib/obstack.h: Merge from glibc.
22474         This is mostly indenting and commentary changes.
22475         Instances of 'register' have been removed.
22477 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
22479         strftime: wrap macros in "do {...} while(0)"
22480         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
22481         this macro in "do {...} while(0)" to prevent false use as a
22482         single statement, e.g., in an un-braced "{}" else-block.
22483         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
22484         (strftime_case_): Remove 'else' after 'goto' - which was the
22485         only non-fatal, un-braced use of one of the above macros.
22486         Spotted by coverity (NESTING_INDENT_MISMATCH).
22488 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
22490         modechange: avoid memory leaks for invalid octal modes
22491         * lib/modechange.c (mode_compile): During the parsing of
22492         notations like +40, free the 'mc' buffer for invalid mode
22493         strings like +17777 (greater than the maximum octal mode),
22494         =18 (bad octal mode characters) or u=1 ('affected' with
22495         octal modes).
22496         Reproducer, e.g.:
22497             $ valgrind --leak-check=full chmod +17777 file
22498         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
22499         add notations +40, 00440, etc.".
22500         Spotted by coverity (RESOURCE_LEAK).
22502 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
22504         gitlog-to-changelog: include a dummy git-log-fix file
22505         Problem reported by Nathan Stratton Treadway in:
22506         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
22507         * build-aux/git-log-fix: New file.
22509 2014-03-13  Jim Meyering  <meyering@fb.com>
22511         gitlog-to-changelog: also include the file, git-log-fix
22512         * modules/gitlog-to-changelog (Files): Add git-log-fix.
22513         Reported by Assaf Gordon.
22515 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
22517         regex: port to OS X 10.8.5 en_US.UTF-8 locale
22518         This fixes a bug when ignoring case and when comparing the
22519         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
22520         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
22521         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
22522         titlecase letter is neither lowercase nor uppercase, but
22523         uppercasing the titlecase letter (via towupper) yields the
22524         uppercase letter, so the two letters should match when ignoring case.
22525         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
22526         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
22527         Don't test whether a character is lowercase before uppercasing it.
22529 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
22531         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
22532         This is basically one of the options Bruno Haible proposed in:
22533         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
22534         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
22535         * lib/stdint.in.h: Use it.
22536         * modules/stdint (Depends-on): Add sys_types.
22538 2014-02-26  Pádraig Brady  <P@draigBrady.com>
22540         parse-datetime: fix crash or infloop in TZ="" parsing
22541         * lib/parse-datetime.y (parse_datetime): Break out of the
22542         TZ="" parsing loop once the second significant " is found.
22543         Also skip over any subsequent whitespace to be consistent
22544         with the non TZ= case.
22545         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
22547 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
22549         savedir: new symbol for fast-read version
22550         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
22551         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
22552         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
22553         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
22555 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
22557         unistd: port readlink to Mac OS X 10.3.9
22558         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
22559         around self-include problem in Mac OS X 10.3.9 when combined with
22560         readlink module.  Problem reported by Klaus Zietler in
22561         <http://bugs.gnu.org/16825>.
22563 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
22565         diffseq: remove TOO_EXPENSIVE heuristic
22566         Problem with diffutils reported by Vincent Lefevre in
22567         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
22568         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
22569         Although appropriate for circa-1993 hardware, these days the heuristic
22570         seems to be more trouble than it's worth.
22571         * lib/diffseq.h: Modernize citations.
22572         (struct context): Remove member too_expensive.
22573         All uses changed.
22574         (struct partition): Remove members lo_minimal, hi_minimal.
22575         All uses changed.
22576         (diag, compareseq): Remove arg find_minimal.  All uses changed.
22577         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
22578         1993 to make 'diff' run faster (but not as well) on large inputs.
22579         These days, computers are fast enough that it's typically better
22580         to run slower but more accurately.
22581         * lib/fstrcmp.c: Remove duplicate comment.
22582         * lib/fstrcmp.c (strcmp_bounded):
22583         * lib/git-merge-changelog.c (compute_differences):
22584         Adjust to diffseq.h changes.
22585         * NEWS: Document the change.
22587         savedir: simplify by using stpcpy
22588         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
22589         (streamsavedir): Use stpcpy instead.
22590         * modules/savedir (Depends-on): Add stpcpy.
22592 2014-02-21  Pádraig Brady  <P@draigBrady.com>
22594         spawn: fix link error on uclibc
22595         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
22596         to incorporate -lrt if needed (on uclibc for example).
22597         * modules/posix_spawn: Reference the substituted LIB.
22599 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
22600         timer: fix uClibc detection of threading
22601         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
22602         enabled in uClibc.
22604 2014-02-21  Eric Blake  <eblake@redhat.com>
22606         maintainer-makefiles: provide AC_PROG_SED for older autoconf
22607         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
22609 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
22611         exclude: add support for posix regexps
22613         This commit adds support for POSIX extended regular expressions
22614         and fixes a long-standing memory leak (pattern buffer was never
22615         freed).  It also implements a new interface function to read
22616         exclude patterns from a FILE, which passes an additional parameter
22617         to its callback function, thereby allowing to preserve its state
22618         between invocations.
22620         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
22621         (pattern_buffer): New struct.
22622         (exclude): New member patbuf.
22623         (exclude_add_pattern_buffer): New function.
22624         (free_exclude_segment): Free regexps.
22625         (free_exclude): Free allocated pattern buffers.
22626         (exclude_patopts): New function.
22627         (file_pattern_matches): Use exclude_patopts.
22628         (add_exclude): support regexps.
22629         (add_exclude_fp): New function.
22630         (add_exclude_file): Rewrite using add_exclude_fp.
22631         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
22632         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
22633         (add_exclude_fp)
22634         (add_exclude_file): Rewrite using add_exclude_fp.
22635         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
22636         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
22637         (add_exclude_fp)
22638         (exclude_add_pattern_buffer): New prototypes.
22639         * modules/exclude: Depends on regex and filename.
22641 2014-02-20  Eric Blake  <eblake@redhat.com>
22643         maintainer-makefiles: use $(SED) for syntax check
22644         * modules/maintainer-makefile (configure.ac): Check for sane sed.
22645         * top/maint.mk: Change sed to $(SED).
22647 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
22648             Paul Eggert  <eggert@cs.ucla.edu>
22650         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
22651         Patch based on an idea by Dick Streefland in
22652         <https://savannah.gnu.org/patch/?7892>.
22653         * NEWS: Document this.
22654         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
22655         (direntry_t, comparison_function): New types.
22656         (direntry_cmp_name): New function.
22657         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
22658         (streamsavedir, savedir): New arg OPTION.
22659         (streamsavedir): Simplify memory allocation.
22660         (fdsavedir): Remove.
22661         * lib/savedir.h (enum savedir_option): New type.
22662         (streamsavedir, savedir): New arg OPTION.
22663         (fdsavedir): Remove.
22665 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
22667         file-type: add support for doors and other less-common file types
22668         Problem with S_ISDOOR reported by Rich Burridge.
22669         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
22670         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
22671         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
22673 2014-01-23  Eric Blake  <eblake@redhat.com>
22675         pthread: work around winpthread header pollution on mingw
22676         * lib/time.in.h: Move pthread workarounds...
22677         * lib/pthread.in.h: ...here.
22678         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
22679         detect macro pollution on mingw.
22680         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
22682 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
22684         qacl: check for fchmod
22685         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
22686         and qset-acl.c both use HAVE_FCHMOD.
22688 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
22690         fdopen-tests: port to Tru64
22691         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
22692         descriptor that is not open, as POSIX doesn't specify the
22693         resulting behavior and the test does not work on Tru64.
22694         Problem reported by Steven M. Schweda in:
22695         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
22697         stdalign: port to HP-UX compilers
22698         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
22699         if __HP_cc or __HP_aCC are nonzero.
22701 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
22703         strtoimax: port to platforms lacking 'long long'
22704         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
22705         check whether strtoll is declared, which causes the C file to
22706         wrongly report an error.  Problem reported by Steven M. Schweda in:
22707         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
22708         * lib/strtoimax.c (strtoull):
22709         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
22710         (strtoll): Declare only if HAVE_LONG_LONG_INT.
22712 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
22714         relocatable-perl: fix texi syntax
22715         * doc/relocatable-maint.texi: Escape braces.
22717 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
22719         relocatable-perl: like relocatable-script, but for Perl scripts
22720         * build-aux/relocatable.pl.in: Add.
22721         * doc/relocatable-maint.texi: Add documentation.
22722         * modules/relocatable-perl: Add.
22724 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
22726         tests: fix export bug in previous patch
22727         Problem reported by Jim Meyering.
22728         * tests/init.sh (re_shell): New var, which is exported instead of
22729         re_shell_.
22731         tests: simplify porting to Solaris 10 /bin/sh
22732         Some test cases in 'grep' need a shell that groks '$(';
22733         export re_shell_ for their benefit.  Problem reported for 'grep'
22734         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
22735         * tests/init.sh (re_shell_): Export if it's used.
22737 2014-01-06  Eric Blake  <eblake@redhat.com>
22739         md5, sha1, sha256, sha512: support older autoconf
22740         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
22741         for autoconf < 2.63b.
22743         include_next: port to autoconf 2.63
22744         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
22746 2014-01-04  Jim Meyering  <meyering@fb.com>
22748         maint: add a gnulib-local rule to keep non-ascii out of .texi files
22749         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
22750         so that "make sc_maint" will ding anyone who puts non-ascii
22751         in any of gnulib's .texi files.
22753 2014-01-03  Jim Meyering  <meyering@fb.com>
22755         freadable, fwritable, fwriting: declare with the "pure" attribute
22756         * lib/freadable.h (freadable): Declare with the "pure" attribute.
22757         * lib/fwritable.h (fwritable): Likewise.
22758         * lib/fwriting.h (fwriting): Likewise.
22759         Suggested by Bruno Haible.
22761         maint.mk: adapt openat.h-include-without-use test
22762         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
22763         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
22764         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
22765         With this change, running "make sc_maint" in gnulib's top-level
22766         directory now passes for me.
22768 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
22770         doc: use ASCII in .texi files where UTF-8 isn't needed
22771         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
22772         * doc/posix-functions/setkey.texi, doc/regex.texi:
22773         Use ASCII input, not UTF-8.
22775 2014-01-02  Jim Meyering  <meyering@fb.com>
22777         freading: declare with the "pure" attribute
22778         * lib/freading.h (freading): Declare with the "pure" attribute.
22780         manywarnings: remove -Wmudflap
22781         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
22782         it is no longer supported in gcc-4.9-to-be.
22784 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
22786         relocatable-script: remove unused code
22787         Problem reported by Reuben Thomas in:
22788         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
22789         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
22791 2014-01-01  Jim Meyering  <meyering@fb.com>
22793         maint: fix public-submodule-commit to work with newer git
22794         * top/maint.mk (public-submodule-commit): Remove excess quoting.
22795         We were over-quoting the test arguments, and somewhere prior to
22796         version 1.8.5.2.229, git stopped removing those excess quotes,
22797         which made the test fail, since the unexpanded strings would
22798         always differ; using GIT_TRACE=1 confirmed that the git merge-base
22799         command wasn't even being run.
22801 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
22803         doc: update main copyright year
22804         * doc/gnulib.texi: Update copyright date.
22806 2014-01-01  Eric Blake  <eblake@redhat.com>
22808         version-etc: new year
22809         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
22810         * all files: run 'make update-copyright'
22812 2013-12-24  Eric Blake  <eblake@redhat.com>
22814         passfd: give nicer error for recvfd at eof
22815         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
22816         * tests/test-passfd.c (main): Enhance test to cover this.
22818 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
22820         gettimeofday: port recent C++ fix to Emacs
22821         Without this further patch, Emacs won't build due to
22822         the portcheck failing.  Also, this simplifies the patch a bit.
22823         * lib/time.in.h (localtime, gmtime): Don't replace unless
22824         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
22825         * lib/time.in.h (localtime, gmtime):
22826         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
22827         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
22828         * modules/time (time.h):
22829         Don't worry about the possibility of localtime and gmtime
22830         being absent; they're present in all C libraries we know about.
22831         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
22832         Don't assume sys_time is present and has been initialized.
22833         Instead, use a hack that should work even if it hasn't been.
22834         Don't use a portcheck for gmtime or localtime; this supports
22835         the hack.
22836         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
22838 2013-12-17  John W. Eaton  <jwe@gnu.org>
22840         gettimeofday: fix C++ crosscompilation
22842         Never replace gmtime and localtime by macros when compiling with
22843         C++, this prevents <ctime> from being included.
22845         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
22846         define gmtime and localtime as preprocessor macros.  Instead
22847         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
22848         REPLACE_LOCALTIME substitutions.
22849         * lib/time.in.h: Declare gmtime and localtime when needed.
22850         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
22851         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
22852         * modules/time: Depend on gettimeofday, and substitute the above
22853         variables in time.h.
22855 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
22857         qacl: port to Windows better
22858         See Eli Zaretskii in
22859         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
22860         * lib/file-has-acl.c (acl_access_nontrivial):
22861         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
22862         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
22864 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
22866         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
22867         * lib/gl_openssl.h: Cast void pointers to a specific type.
22869 2013-12-07  Pádraig Brady  <P@draigBrady.com>
22871         open-tests: fix build failure with -Werror=old-style-declaration
22872         * tests/test-open.h: Reorder the inline to avoid the issue.
22874 2013-12-07  Pádraig Brady  <P@draigBrady.com>
22876         md5, sha1, sha256, sha512: fix link error with partial libcrypto
22877         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
22878         init time, so that if early checks find crypto routines,
22879         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
22880         avoiding link failures.
22882 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
22884         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
22885         This provides a new way to specify the default for
22886         gl_CRYPTO_CHECK, one that is reflected in the --help message.
22887         Emacs uses this, as well as the old way.
22888         This attempts to implement a suggestion by Pádraig Brady in
22889         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
22890         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
22891         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
22893         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
22894         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
22895         Add support for a new option, --with-openssl=auto, which causes
22896         the library to be used if available and silently ignored if not.
22897         Add support to allow configure.ac to specify its own
22898         default, by setting with_openssl_default before invoking gl_INIT.
22900 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
22902         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
22903         Problem reported by Daiki Ueno in:
22904         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
22905         * tests/test-open.h (__always_inline):
22906         New macro, if not already defined.
22907         (test_open): Use it.
22909 2013-12-04  Eric Blake  <eblake@redhat.com>
22911         include_next: minimize code duplication
22912         * modules/include_next (Depends-on): Add absolute-header.
22913         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
22914         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
22916 2013-12-04  Pádraig Brady  <P@draigBrady.com>
22918         getcwd: fix compile error in configure check
22919         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
22921 2013-12-04  Pádraig Brady  <P@draigBrady.com>
22923         regex: suppress core dumps from detection code
22924         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
22925         to suppress core dumps that may well occur on glibc systems.
22926         These core dumps might not be cleaned up automatically, or could
22927         trigger some system core dump handling logic.
22929 2013-12-03  Pádraig Brady  <P@draigBrady.com>
22931         md5, sha1, sha256, sha512: support mandating use of openssl
22932         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
22933         description, to list the now 3 separate options.  also don't
22934         mention the default=no, since this is implicit given the option
22935         is described as --with-openssl rather than --without-openssl.
22936         If projects change the default they're free to document that.
22937         with --with-openssl[=yes] we now error out when the specified
22938         hash algorithm is not available in libcrypto.
22940 2013-12-03  Ivailo  <xakepa10@gmail.com>
22942         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
22943         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
22944         -Wformat-nonliteral checks, as these edge cases are part of the test.
22946 2013-12-03  Eric Blake  <eblake@redhat.com>
22948         regex: avoid glibc deadlock during configure
22949         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
22950         glibc bug 15078 in turn triggers bug 16159.
22951         Reported by Michal Privoznik.
22953 2013-12-02  Pádraig Brady  <P@draigBrady.com>
22955         md5, sha1, sha256, sha512: use openssl routines if available.
22956         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
22957         routines will be used if available, requiring apps to link @LIB_CRYPTO@
22958         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
22959         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
22960         in the standard system location.
22961         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
22962         * m4/sha256.m4: Likewise with SHA256.
22963         * m4/sha512.m4: Likewise with SHA512.
22964         * m4/md5.m4: Likewise with MD5.
22965         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
22966         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
22967         * lib/sha256.h: Likewise with SHA256.
22968         * lib/sha512.h: Likewise with SHA512.
22969         * lib/md5.h: Likewise with MD5.
22970         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
22971         * lib/sha256.c: Likewise with SHA256.
22972         * lib/sha512.c: Likewise with SHA512.
22973         * lib/md5.c: Likewise with MD5.
22974         * modules/crypto/sha1 (Link:): Add the new optional lib.
22975         (Depends-on:): Add dependency on extern-inline.
22976         * modules/crypto/sha256: Likewise.
22977         * modules/crypto/sha512: Likewise.
22978         * modules/crypto/md5: Likewise.
22979         * modules/crypto/sha1-tests: Reference the lib here too.
22980         * modules/crypto/md5-tests: Likewise.
22981         * modules/crypto/gc-des-tests: Likewise.
22982         * modules/crypto/gc-hmac-md5-tests: Likewise.
22983         * modules/crypto/gc-hmac-sha1-tests: Likewise.
22984         * modules/crypto/gc-hmac-sha256-tests: Likewise.
22985         * modules/crypto/gc-hmac-sha512-tests: Likewise.
22986         * modules/crypto/gc-md5-tests: Likewise.
22987         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
22988         * modules/crypto/gc-sha1-tests: Likewise.
22989         * modules/crypto/gc-tests: Likewise.
22990         * modules/crypto/hmac-md5-tests: Likewise.
22991         * modules/crypto/hmac-sha1-tests: Likewise.
22992         * modules/crypto/hmac-sha256-tests: Likewise.
22993         * modules/crypto/hmac-sha512-tests: Likewise.
22995 2013-11-29  RV1971  <rv1971@web.de>
22997         base64: (trivial) fix compilation regression on some compilers
22998         * lib/base64.c: Don't return the void function,
22999         instead split to a separate return statement.
23001 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
23003         ignore-value: revert previous code change
23004         * lib/ignore-value.h (ignore_value): Use __extension__ and
23005         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
23006         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
23007         Change the comment to try to explain this better.
23009 2013-11-27  Pádraig Brady  <P@draigBrady.com>
23011         selinux-h: improve stub types and add more stub functions
23013         * lib/se-selinux.in.h: Change security_context_t to a typedef
23014         rather than a define, as it's a pointer type and so is better
23015         as a typedef to avoid issues declaring multiple variables
23016         with the comma operator.  Also add stub for string_to_security_class().
23017         * lib/se-context.in.h: Add stub functions for
23018         context_{type,range,role,user}_get().
23020 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
23022         ignore-value: prefer GCC version back through 2.0
23023         The code didn't match the comments, so I did a bit of software
23024         archaeology.  GCC 2.0 seems to support __extension__ and
23025         __typeof__, so fix both code and comments to use 2.0.
23026         * lib/ignore-value.h (ignore_value): Use __extension__ and
23027         __typeof__ for GCC 2.0 through 3.3, too.
23029 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
23031         pty: Activate the signature wrapper of forkpty.
23032         The intended preprocessor macro HAVE_FORKPTY is
23033         never defined, yet `lib/forkpty.c' depends on it.
23035         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
23036         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
23037         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
23039 2013-11-18  Jim Meyering  <meyering@fb.com>
23040         and Paul Eggert  <eggert@cs.ucla.edu>
23042         quotearg: don't attempt to store 1 << 31 into an "int"
23043         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
23044         gcc's new -fsanitize=undefined and running its tests triggered some
23045         new test failures due to undefined behavior, all with this diagnostic:
23046           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
23047             cannot be represented in type int
23048         Rather than shifting "1" left to form a mask, shift the bits right and
23049         simply use "1" as the mask.
23051 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
23053         error: depend on stdio
23054         Problem reported by Nikos Mavrogiannopoulos in
23055         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
23056         * modules/error (Depends-on): Add stdio.
23058 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
23060         * doc/relocatable-maint.texi (Supporting Relocation): Improve
23061         wording.
23062         Reported by Reuben Thomas <rrt@sc3d.org>.
23064 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
23066         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
23067         New function and macro, to work around _DARWIN_C_SOURCE problem.
23068         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
23070 2013-11-11  Pádraig Brady  <P@draigBrady.com>
23072         base64: provide a fast path for encoding well sized buffers
23073         Avoid conditionals in the base64 encoding loop,
23074         which was seen to give 60% better throughput.
23075         * lib/base64.c (base64_encode_fast): A new function to be called
23076         when we don't want to NUL terminate, and we have enough space
23077         in the output to encode the given input.
23078         (base64_encode): Call the _fast() version when appropriate.
23079         Also remove a redundant mask with 0x3F on the first encoded byte.
23081 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
23083         extern-inline: port better to OS X 10.9
23084         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
23085         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
23086         OS X 10.9, except for g++ where the bug is still present.
23087         See <http://trac.macports.org/ticket/41033>.
23089 2013-11-08  Eric Blake  <eblake@redhat.com>
23091         fpending: fix regression on DragonFly BSD
23092         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
23093         * lib/fpending.h (__fpending): Don't declare twice.
23094         Reported by GW in
23095         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
23097 2013-11-05  Jim Meyering  <meyering@fb.com>
23099         hash: relax license to LGPLv2+, for libguestfs
23100         * modules/hash (License): Change from GPL to LGPLv2+.
23102 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
23104         intprops: port to Oracle Studio c99
23105         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
23106         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
23108 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
23110         obstack: pacify HP C
23111         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
23112         warning "conversion from pointer to smaller integer" from HP
23113         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
23114         C89 or later nowadays, so cast to void instead of int.  Privately
23115         reported by H.Merijn Brand.  Also, change header to match glibc's,
23116         to make checking against glibc easier.
23118 2013-10-29  Jim Meyering  <meyering@fb.com>
23120         maint.mk: prefer gpgv2 over gpgv
23121         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
23122         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
23123         Reported by Gary Vaughan.
23125 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
23127         isnan: port to VAX
23128         Reported by John Klos for NetBSD-5/VAX in
23129         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
23130         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
23131         (FUNC): Use it.
23133 2013-10-28  Jim Meyering  <meyering@fb.com>
23135         gnulib-tool: protect against CDPATH
23136         * gnulib-tool: Many "cd" built-in functions print a directory name
23137         to stdout when CDPATH is set, e.g.,
23138           $ bash -c 'CDPATH=/; cd tmp'
23139           /tmp
23140         Unset it, when possible.  Prompted by a comment from Bruce Korb.
23142         maint.mk: restore functionality removed by recent change...
23143         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
23144         the context of a shallow-cloned gnulib repository: "git describe"
23145         would fail in such a directory.  However, that change made it so
23146         the reported gnulib revision no longer includes the version number
23147         or a commit count, even when run from a full clone.
23148         * top/maint.mk (gnulib-version): Use the full "git describe"
23149         output when possible, e.g., the form above, rather than the
23150         abbreviated, no-tag, no-commit-count string, and fall back to
23151         using a 10-byte hash, rather than the default minimal-length
23152         hash prefix, since while the minimal-length one may be fine today,
23153         it is likely not to be unique for very long.
23155 2013-10-26  Jim Meyering  <meyering@fb.com>
23157         maint.mk: fix "release" target to build _version
23158         This fixes a bug in README-release whereby following the outlined
23159         steps, one would publish a tarball whose programs would report
23160         --version output not consistent with the package version number.
23161         This bug caused grep-2.15 to produce a grep program whose
23162         --version option made it print 2.14.56-1e3d rather than 2.15.
23163         * top/maint.mk (release): Making this target build "_version"
23164         ensures that the new version number is reflected in configure.
23166 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
23168         install-reloc: Support multi-binary installation.
23169         * build-aux/install-reloc: Support installing multiple programs in
23170         one invocation, as done by Automake starting with commit
23171         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
23172         Haible <bruno@clisp.org>, archived at
23173         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
23174         Reported by Sylvain <beuc@gnu.org>.
23176 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
23178         selinux-h: Really build without selinux when library is missing.
23179         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
23180         continue without selinux, as already told in the warning message.
23182 2013-10-21  Jim Meyering  <meyering@fb.com>
23184         regex: also remove dependency on HAVE_WCSCOLL
23185         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
23187 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
23189         xfreopen: Fix typo. s/frepoen/freopen/
23190         * lib/xfreopen.c: Fix description.
23191         * modules/xfreopen: Likewise.
23193 2013-10-21  Jim Meyering  <meyering@fb.com>
23195         regex: don't depend on wcscoll
23196         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
23197         It is no longer used.
23199 2013-10-20  Jim Meyering  <meyering@fb.com>
23201         error: add the printf attribute to a static function
23202         * lib/error.c (error_tail): Add the printf attribute, to placate
23203         gcc's -Werror=suggest-attribute=format option.
23205 2013-09-30  Jim Meyering  <meyering@fb.com>
23207         fpending, obstack, strerror-override: use pure+const function attrs
23208         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
23209         * lib/obstack.c (_obstack_allocated_p): Likewise.
23210         * lib/obstack.h (_obstack_memory_used): Likewise.
23211         (_obstack_memory_used): Likewise.
23212         * lib/strerror-override.h (strerror_override): Declare with
23213         the "const" attribute.
23215 2013-10-18  Eric Blake  <eblake@redhat.com>
23217         extern-inline: make safe for -Wundef usage
23218         Reported by Vladimir 'phcoder' Serbinenko in
23219         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
23220         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
23222 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
23224         mkfifo-tests, etc.: allow HP-UX 11.11 bug
23225         Problem reported by Daniel Richard G. in
23226         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
23227         * doc/posix-functions/mkfifo.texi (mkfifo):
23228         * doc/posix-functions/mkfifoat.texi (mkfifoat):
23229         * doc/posix-functions/mknod.texi (mknod):
23230         * doc/posix-functions/mknodat.texi (mknodat):
23231         Document the HP-UX 11.11 bug.
23232         * tests/test-mkfifo.h (test_mkfifo):
23233         Allow the HP-UX 11.11 bug.
23235 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
23237         acl: allow cross-compilation to Gentoo
23238         Problem reported by Gabriel Marcano in
23239         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
23240         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
23241         test only whether it links.
23243 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23245         mgetgroups: remove dependency on realloc-gnu
23246         The dependency violates the comment in realloc-gnu, which
23247         says that tests can't depend on realloc-gnu; some tests depend
23248         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
23249         Problem reported by Daniel Richard G. in
23250         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
23251         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
23252         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
23253         not realloc-gnu.
23255 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
23257         regex-tests: port to HP-UX 11.11
23258         Problem reported by Daniel Richard G. in
23259         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
23260         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
23262 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23264         verify: document some 'assume' pitfalls
23265         * doc/verify.texi (Compile-time Assertions):
23266         Mention that 'assume (E)' can sometimes slow things down.
23267         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
23269 2013-10-10  Eric Blake  <eblake@redhat.com>
23271         strtoumax: fix typo in previous commit.
23272         * modules/strtoumax (Depends-on): Fix typo.
23273         * modules/strtoimax (Depends-on): Likewise.
23275 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23277         strtoumax: port to Solaris 8
23278         This problem was introduced in the recent HP-UX patch.
23279         Reported by Tom G. Christensen in
23280         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
23281         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
23282         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
23284 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
23286         strtoimax, strtoumax: port to HP-UX 11.11
23287         Problem reported by Daniel Richard G. in
23288         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
23289         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
23290         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
23291         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
23292         REPLACE_STRTOUMAX.
23293         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
23294         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
23295         Replace the function if defined as a macro but not as a function.
23296         * modules/inttypes-incomplete (inttypes.h): Substitute
23297         REPLACE_STRTOUMAX.
23298         * modules/strtoumax (configure.ac): Replace strtoumax if
23299         REPLACE_STRTOUMAX.
23301 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
23303         strtoimax: port to HP-UX 11.11
23304         Problem reported by Daniel Richard G.
23305         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
23306         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
23307         they might clash with inttypes.h.
23309 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
23311         New module 'count-trailing-zeros'.
23312         * MODULES.html.sh: Mention it.
23313         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
23314         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
23315         * modules/count-trailing-zeros-tests:
23316         * tests/test-count-trailing-zeros.c:
23317         New files.
23319         count-leading-zeros: port to MSC; support types wider than 64 bits
23320         The ideas behind the MSC port are stolen from Emacs.
23321         * lib/count-leading-zeros.h:
23322         Don't include verify.h: it's no longer needed, as types wider than
23323         64 bits are now supported.
23324         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
23325         performance with MSC.  All uses changed.  Do not assume that TYPE
23326         has at most 64 bits.
23327         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
23328         All uses changed.  Fold the subtraction from 31 into the table.
23330         count-one-bits: port to MSC; support types wider than 64 bits
23331         The ideas behind the MSC port are stolen from Emacs.
23332         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
23333         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
23334         Don't include verify.h: it's no longer needed, as types wider than
23335         64 bits are now supported.
23336         (COUNT_ONE_BITS_GENERIC): New macro.
23337         (popcount_supported) [_MSC_VER]: New inline function.
23338         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
23339         performance with MSC.  All uses changed.  Do not assume that TYPE
23340         has at most 64 bits.
23341         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
23343 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
23345         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
23346         * lib/mountlist.c (read_file_system_list): fix leak of directory
23347         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
23349 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
23351         tests: improve diagnostic when an assertion fails
23352         * tests/macros.h (ASSERT): Report the assertion that failed.
23354 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
23356         verify: new macro 'assume'
23357         This is taken from Emacs, and should be generally useful.
23358         * doc/verify.texi (assume): Document it.
23359         * lib/verify.h (assume): New macro.
23360         (__has_builtin): Expand to 0 if not defined.
23362 2013-09-26  Eric Blake  <eblake@redhat.com>
23364         dup2, dup3: work around another cygwin crasher
23365         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
23366         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
23367         * tests/test-dup2.c (main): Likewise.
23368         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
23369         * lib/dup3.c (dup3): Likewise.
23370         * doc/posix-functions/dup2.texi (dup2): Document it.
23371         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23373         getdtablesize: work around cygwin issue
23374         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
23375         * modules/getdtablesize (configure.ac): Build replacement.
23376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
23377         * modules/unistd (Makefile.am): Expose the witness.
23378         * lib/unistd.in.h (getdtablesize): Declare replacement.
23379         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
23380         * tests/test-getdtablesize.c (main): Test it.
23381         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
23383 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
23385         pmccabe2html: escaping of special characters
23386         Escape all '<', '>', and '&' in HTML output.
23387         * build-aux/pmccabe2html (html_fnc): Call gsub()
23388         instead of sub() to capture all '<', '>', and '&'.
23389         Neither of '<' and '>' is special in a regexp,
23390         so first arguments to gsub() are corrected. Also,
23391         in replacement strings, ampersand must be escaped.
23392         Finally, '&' must be handled first, then '<' and '>'.
23394 2013-09-24  Eric Blake  <eblake@redhat.com>
23396         manywarnings: enable nicer gcc warning messages
23397         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
23398         some -f options for optimal warnings.
23400 2013-09-21  Jim Meyering  <meyering@fb.com>
23402         timespec: use the new TIMESPEC_RESOLUTION in a few more places
23403         * lib/timespec-add.c (timespec_add): Also replace 999999999
23404         with TIMESPEC_RESOLUTION - 1.
23405         * lib/timespec-sub.c (timespec_sub): Likewise.
23407 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
23409         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
23410         Problem reported by Dagobert Michelsen via Eric Blake in
23411         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
23412         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
23413         not AC_COMPILE_IFELSE.
23415 2013-09-23  Eric Blake  <eblake@redhat.com>
23417         configmake: support new --runstatedir option
23418         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
23419         even if autoconf was too old to provide the command line option.
23420         * modules/configmake (Makefile.am): Propagate it to .h file.
23422 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23424         ctype, string: depend on extern-inline
23425         This is needed to complete the recent OS X fixes.
23426         Also, fix related documentation as suggested by Eric Blake.
23427         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
23428         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
23429         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
23430         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
23431         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
23432         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
23433         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
23434         * doc/posix-functions/toupper.texi:
23435         List the 'ctype' gnulib module.
23436         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
23437         * doc/posix-functions/strncpy.texi:
23438         List the 'string' gnulib module.
23439         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
23440         Add string.
23441         * modules/ctype, modules/string (Depends-on): Add extern-inline.
23443 2013-09-19  Pádraig Brady  <P@draigBrady.com>
23445         userspec: support optional parameters to parse_user_spec()
23446         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
23447         then avoid group processing and treat the full spec as a user.
23448         (parse_with_separator): Allow the USERNAME and GROUPNAME to
23449         be optional params (NULL), in which case they're ignored.
23451 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
23453         timespec: new function make_timespec, and new constants
23454         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
23455         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
23456         (make_timespec): New function.
23457         * lib/dtotimespec.c (dtotimespec):
23458         * lib/timespec-add.c (timespec_add):
23459         * lib/timespec-sub.c (timespec_sub):
23460         * lib/utimens.c (validate_timespec):
23461         * lib/utimensat.c (rpl_utimensat):
23462         Use these new constants and functions.
23464         stdio: OS X port of putc_unlocked + extern inline
23465         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
23466         * doc/posix-functions/putc_unlocked.texi:
23467         * doc/posix-functions/putchar_unlocked.texi:
23468         Document this portability problem.
23470         signal: OS X port of sigaddset etc. + extern inline
23471         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
23472         (sigismember): #undef on problematic Apple platforms.
23473         * doc/posix-functions/sigaddset.texi:
23474         * doc/posix-functions/sigdelset.texi:
23475         * doc/posix-functions/sigemptyset.texi:
23476         * doc/posix-functions/sigfillset.texi:
23477         * doc/posix-functions/sigismember.texi:
23478         Document this portability problem.
23480         extern-inline: do not always suppress extern inline on OS X
23481         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
23482         extern inline on Apple only if the particular compile-time
23483         configuration is known to have the problem.
23484         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
23485         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
23486         other Gnulib modules.
23488         extern-inline: document fixes for ctype and wctype macros
23489         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
23490         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
23491         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
23492         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
23493         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
23494         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
23495         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
23496         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
23497         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
23498         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
23499         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
23500         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
23501         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
23502         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
23503         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
23504         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
23505         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
23506         * doc/posix-functions/strncpy.texi:
23507         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
23508         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
23509         Document that Gnulib fixes portability problems with these
23510         functions on OS X 10.8 and earlier when called from plain inline
23511         or extern inline functions.
23513 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
23515         fflush, freadahead, fseeko: Fix for Android
23516         Suggested by Bruno Haible in:
23517         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
23518         * lib/stdio-impl.h: Use local __sfileext definition.
23520 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
23522         pmccabe2html: Portability to other awk versions.
23523         The functions systime() and strftime() are available
23524         in Gawk only.  Properly close two HTML-tags 'style'
23525         and 'span'.
23526         * build-aux/pmccabe2html (BEGIN): Store timing
23527         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
23528         systime() in HTML_COMMENT.
23529         (html_header): Correctly close tag 'style'.
23530         (END): Replace strftime() by CHRONOS_TIME.  Close
23531         tag 'span' correctly, not as 'div'.
23533 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
23535         getgroups: statement without effect
23536         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
23537         Change equality conditional to expected assignment.
23539 2013-09-09  Eric Blake  <eblake@redhat.com>
23541         glob: fix compilation
23542         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
23544 2013-09-07  Eric Blake  <eblake@redhat.com>
23546         glob: fix build for platforms without __THROW
23547         * lib/glob.in.h (__THROW): Add definition again.
23549 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
23551         regex-quote: fix buffer access out of bounds
23552         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
23553         * lib/regex-quote.c (regex_quote_spec_pcre):
23554         Fix typo that resulted in an out-of-bounds read.
23556 2013-09-04  Eric Blake  <eblake@redhat.com>
23558         glob: avoid -Wattribute warnings on glibc
23559         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
23560         __THROWNL, not __THROW, on static functions.
23561         * lib/glob.in.h (__THROW): Adjust...
23562         (__THROWNL): ...accordingly.
23564 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23566         headers: check that _GL_INLINE_HEADER_BEGIN is defined
23567         Suggested by Bruce Korb in:
23568         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
23569         * doc/extern-inline.texi (extern inline):
23570         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
23571         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
23572         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
23573         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
23574         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
23575         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
23576         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
23577         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
23578         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
23579         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
23580         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
23581         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
23582         * lib/xtime.h:
23583         Check that _GL_INLINE_HEADER_BEGIN is defined.
23585 2013-08-29  Pádraig Brady  <P@draigBrady.com>
23587         bootstrap: remove the --version requirement from ancillary tools
23588         * build-aux/bootstrap (check_exists): A new refactored function to
23589         determine if a command exists.
23590         (find_tool): Use the new function which does not require the
23591         --version option to be supported.
23592         (check_versions): Use the new function.
23594 2013-08-26  Simon Josefsson  <simon@josefsson.org>
23596         gc: support HMAC-SHA256 and HMAC-SHA512.
23597         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
23598         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
23599         functions.
23600         (gc_hmac_md5): Use symbolic constant.
23601         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
23602         (gc_hmac_sha256, gc_hmac_sha512): New functions.
23603         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
23604         * m4/sha256.m4: Protect against empty expansion.
23605         * m4/sha512.m4: Likewise.
23606         * lib/hmac-sha256.c: New file.
23607         * lib/hmac-sha512.c: Likewise.
23608         * m4/gc-hmac-sha256.m4: Likewise.
23609         * m4/gc-hmac-sha512.m4: Likewise.
23610         * m4/gc-sha256.m4: Likewise.
23611         * m4/gc-sha512.m4: Likewise.
23612         * modules/crypto/gc-hmac-sha256: Likewise.
23613         * modules/crypto/gc-hmac-sha256-tests: Likewise.
23614         * modules/crypto/gc-hmac-sha512: Likewise.
23615         * modules/crypto/gc-hmac-sha512-tests: Likewise.
23616         * modules/crypto/hmac-sha256: Likewise.
23617         * modules/crypto/hmac-sha256-tests: Likewise.
23618         * modules/crypto/hmac-sha512: Likewise.
23619         * modules/crypto/hmac-sha512-tests: Likewise.
23620         * tests/test-gc-hmac-sha256.c: Likewise.
23621         * tests/test-gc-hmac-sha512.c: Likewise
23622         * tests/test-hmac-sha256.c: Likewise.
23623         * tests/test-hmac-sha512.c: Likewise
23625 2013-08-24  Daiki Ueno  <ueno@gnu.org>
23627         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
23628         of AC_CHECK_DECLS.
23630 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23632         selinux-at: omit unnecessary include
23633         * lib/selinux-at.c: Don't include dosname.h; not needed, since
23634         this source file doesn't use its macros, and subsidiary files that
23635         use the macros already include it.
23637 2013-08-21  Eric Blake  <eblake@redhat.com>
23639         d-ino: avoid false negative on symlink
23640         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
23641         Reported by Stephane Chazelas.
23643 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
23645         bootstrap: port to OpenBSD sed
23646         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
23647         does not interpret `-' as a file argument to mean stdin.
23649 2013-08-15  Eric Blake  <eblake@redhat.com>
23651         warnings: minor optimization
23652         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
23654         warnings: check -Wfoo rather than -Wno-foo
23655         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
23656         -Wno-, test if the compiler recognizes the positive form instead.
23658 2013-08-15  Karl Berry  <karl@gnu.org>
23660         * config/srclist-update: add option "doclicense" to placate
23661         pulling *.texi files from Emacs.  Write terse usage
23662         documentation at the top.
23664 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
23666         xvasprintf-tests: port to GCC with hardening flags
23667         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
23668         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
23669         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
23671 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
23673         fpending: port to recent Cygwin change to stdio_ext.h
23674         Reported by LRN in
23675         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
23676         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
23677         just declare __fpending unless it's a macro.
23678         A duplicate decl shouldn't hurt.
23679         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
23680         call compiles and links, instead of separately checking for
23681         decl and lib function.
23682         * modules/fpending (configure-ac):
23683         Adjust to fpending.m4's renaming of shell variable.
23685 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23687         sys_time: port to OpenBSD
23688         * lib/sys_time.in.h: Simply delegate to the system's header
23689         in the BSDish cases as well.  Problem reported by Mike Miller in
23690         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
23691         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
23692         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
23693         wider than time_t.
23695 2013-08-09  Pádraig Brady  <P@draigBrady.com>
23697         bootstrap: support checksum utils having -c but not --status
23698         * build-aux/bootstrap: Only look for sha1sum if updating po files.
23699         Add sha1 to the list of supported checksum utils since it's now
23700         supported through adjustments below.
23701         (update_po_files): Remove the use of --status
23702         in a way that will suppress all error messages, but since this is
23703         only used to minimize updates, it shouldn't cause an issue.
23704         Exit early if there is a problem updating the po file checksums.
23705         (find_tool): Remove the check for --version support as this
23706         is optional as per commit 86186b17.  Don't even check for the
23707         presence of the command as if that is needed, it's supported
23708         through configuring prerequisites in bootstrap.conf.
23709         Prompt that when a tool isn't found, one can define an environment
23710         variable to add to the hardcoded search list.
23712 2013-08-05  Jim Meyering  <meyering@fb.com>
23714         regex: port to non-glibc/lock-using systems
23715         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
23716         system with GNULIB_LOCK would fail due to absence of the
23717         included "glthread/lock.h".  This would affect any package
23718         for which the "lock" module is used only by the regex module,
23719         and not explicitly used.
23720         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
23721         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
23722         Add a dependency on the "lock" module.
23724 2013-07-20  Daiki Ueno  <ueno@gnu.org>
23726         localecharset: make locale_charset thread-safe on Mac OS X
23727         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
23728         instead of MB_CUR_MAX.
23730 2013-07-20  Daiki Ueno  <ueno@gnu.org>
23732         gettext: update to version 0.18.3
23733         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
23734         require AC_PROG_SED to allow user to specify custom sed command when
23735         generating en@quot PO file.
23737 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
23739         bootstrap: use correct source when copying build-aux files
23740         * build-aux/bootstrap (gnulib_extra_files): This variable is
23741         relative to upstream gnulib layout, not downstream.
23743 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
23745         tmpdir: fix bug in VMS port
23746         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
23747         See Steven M. Schweda in
23748         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
23750 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
23752         tmpdir: port to VMS, to // != /, and to long dirs
23753         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
23754         __secure_getenv, so that we're more like the glibc version.
23755         All uses changed.
23756         (path_search): Don't put slash after directory if __VMS.
23757         Problem reported by Steven M. Schweda in
23758         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
23759         Simplify code to add slash; no need for a loop.
23760         Do not remove trailing slash from "//".
23761         Do not assume dlen <= INT_MAX.
23763 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23765         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
23766         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
23767         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
23768         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
23770         accept4, dup3, pipe2: port to Cygwin
23771         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
23772         * lib/accept4.c (accept4) [O_BINARY]:
23773         * lib/dup3.c (dup3) [O_BINARY]:
23774         * lib/pipe2.c (pipe2) [O_BINARY]:
23775         Use set_binary_mode, not setmode.
23776         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
23777         * modules/binary-io (Depends-on): Remove module indicator.
23778         These last two bits undo the previous change to pipe2 and binary-io.
23780 2013-07-09  Pádraig Brady  <P@draigBrady.com>
23782         mountlist: add support for deallocating returned list entries
23783         * lib/mountlist.c (free_mount_entry): A new exported function
23784         to deallocate a mount list entry.
23785         (read_file_system_list): Refactor to use the new deallocation function.
23786         Suggested by Anton Ovchinnikov.
23788 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
23790         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
23791         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
23792         * lib/stdalign.in.h (_Alignas, _Alignof):
23793         Port to FreeBSD 9.1, and to C11 and C++11.
23794         (_Alignas): Also support ICC.
23795         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
23796         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
23798 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23800         fnmatch: don't goto over declaration
23801         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
23802         undefined behavior for goto over a declaration.
23803         Problem reported by Charlie Brown in
23804         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
23806         pipe2: decouple from binary-io a bit
23807         This is for Emacs, which needs pipe2 but not binary-io.
23808         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
23809         * modules/binary-io (Depends-on): Add module indicator.
23811 2013-07-03  Eric Blake  <eblake@redhat.com>
23813         mgetgroups: relax license to LGPLv2+
23814         * modules/getugroups (License): Change from GPLv3+.
23815         * modules/mgetgroups (License): Likewise.
23816         * modules/getgroups (License): Change from LGPLv3+.
23818         xalloc-oversized: relax license to LGPLv2+
23819         * modules/xalloc-oversized (License): Change from GPLv3+.
23821         nproc: relax license to LGPLv2+
23822         * modules/nproc (License): Change from LGPLv3+.
23824         bootstrap: honor --no-git
23825         * build-aux/bootstrap: Don't even try to use git when user is
23826         pointing to a static checkout.
23828 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
23830         ignore-value: port to gcc -pedantic
23831         * lib/ignore-value.h (ignore_value):
23832         Port to gcc -pedantic, by using __extension__.
23833         Reindent as per usual gnulib style nowadays.
23834         Simplify GCC version check.
23836 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
23838         extern-inline: port to gcc -std=c89
23839         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
23840         Do not use __gnu_inline__ if pedantic and pre-C99.
23842 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
23844         doc: document extern-inline
23845         * doc/extern-inline.texi: New file.
23846         * doc/gnulib.texi (alloca-opt): Include it.
23847         * m4/extern-inline.m4: Move some comments to documentation,
23848         and others closer to what they describe.
23850         doc: chatter less
23851         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
23852         (updated-stamp): Use it.  This causes 'make' to output just
23853         one file name rather than zillions.
23855         fflush, fseeko: port to musl cross-compiles
23856         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
23857         on some implementation that (1) is not known to be buggy,
23858         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
23859         cross-compiled to so we can't easily check for lack of
23860         conformance.  This is for cross-compiling to musl.
23861         Reported by Rich Felker in
23862         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
23863         * m4/fclose.m4 (gl_FUNC_FCLOSE):
23864         * m4/fflush.m4 (gl_FUNC_FFLUSH):
23865         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
23866         Adjust to above change.
23867         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
23868         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
23869         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
23870         known not to work, or unknown.
23872 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
23874         msvc-inval: port to mingw-w64
23875         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
23876         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
23877         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
23879 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
23881         getcwd-lgpl: port to Tru64
23882         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
23883         Problem reported by Steven M. Schweda in
23884         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
23886         tests: port large-fd POSIX spawn tests to OS X
23887         Problem reported by Daiki Ueno in
23888         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
23889         * tests/test-posix_spawn_file_actions_addclose.c:
23890         * tests/test-posix_spawn_file_actions_adddup2.c:
23891         * tests/test-posix_spawn_file_actions_addopen.c:
23892         Include <limits.h>, for OPEN_MAX, if available.
23893         (big_fd): New static function.
23894         (main): Use it.
23896 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
23898         tests/nap.h: use an adaptive delay to avoid ctime update issues
23899         The recent change in nap.h (5191133e) decreased the probability of lost
23900         races to about a third, however such problems could still be observed
23901         in virtual machines and openSUSE's OBS.
23902         Before, nap() detected the needed time once empirically and then used
23903         that delay (together with a small correction multiplier) in further
23904         calls.  This problem has been reported and discussed several times,
23905         including guesses about possible kernel issues:
23906         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
23907         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
23908         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
23909         http://bugs.gnu.org/12820
23910         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
23911         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
23912         Now, nap() avoids the race alltogether by verifying on a reference
23913         file whether a timestamp difference has happened.
23914         * tests/nap.h (nap_fd): Define file descriptor variable for the
23915         witness file.
23916         (nap_works): Change return value to bool.  Change passing
23917         the old file's status by value instead of by reference as this function
23918         does no longer update that timestamp; rename the function argument from
23919         st to old_st.  Remove the local variables cdiff and mdiff because that
23920         function now returns true/false instead of the precise delay.
23921         (guess_delay): Remove function.
23922         (clear_tmp_file): Add new function to close and unlink the witness file.
23923         (nap): Instead of re-using the delay which has been calculated during
23924         the first call, avoid the race by actually verifying that a timestamp
23925         difference can be observed on the current file system.  Use an adaptive
23926         approach for the delay to minimize execution time.  Assert that the
23927         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
23928         = 2^31 - 1 = 2.1s.
23929         Use atexit to call clear_tmp_file when the process terminates.
23931 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
23933         sig2str: port to C++
23934         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
23935         Reported by Daniel J Sebald in
23936         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
23938 2013-05-30  Eric Blake  <eblake@redhat.com>
23940         docs: mention cygwin shortcoming in <sys/un.h>
23941         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
23943         vasnprintf: silence mingw compiler warning
23944         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
23946 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
23948         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
23949         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
23950         This fixes a porting bug I recently reintroduced in regex, and
23951         some other instances that I discovered while testing the fix.
23952         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
23953         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
23954         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
23955         with an empty argument if this is a pedantic pre-C99 GCC.
23956         * lib/verify.h: Do not use _Static_assert if this is a pedantic
23957         pre-C11 GCC.
23959         regex: adapt to locking regime instead of depending on pthread
23960         Instead of depending on pthread, adapt to whatever thread
23961         modules are in use.  Problem reported by Ludovic Courtès in
23962         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
23963         and by Mats Erik Andersson in
23964         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
23965         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
23966         Support either the 'lock' module, or the 'pthread' module, or
23967         no module.
23968         (lock_lock, lock_unlock): New macros.
23969         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
23970         * modules/lock, modules/pthread (configure.ac): Add module indicator.
23971         * modules/regex (Depends-on): Remove pthread.
23973 2013-05-22  Eric Blake  <eblake@redhat.com>
23975         getgroups: document portability issues
23976         * doc/glibc-functions/initgroups.texi (initgroups): Mention
23977         multithread safety.
23978         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
23979         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
23980         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
23981         getugroups.
23982         * doc/posix-functions/getgroups.texi (getgroups): Mention
23983         multithread safety and mgetgroups.
23985 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
23987         test-lchown, test-chown: also skip test if chown fails with EPERM
23988         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
23989         skip this test, to handle FAT file systems.
23990         * tests/test-chown.h (test_chown): Likewise.
23992 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
23994         regex: fix dfa race in multithreaded uses
23995         Problem reported by Ludovic Courtès in
23996         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
23997         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
23998         New macros.  All uses of __libc_lock_define, __libc_lock_init
23999         changed to use the first two of these.
24000         (__libc_lock_lock, __libc_lock_unlock): New macros, for
24001         non-glibc platforms.
24002         (struct re_dfa_t): Define the lock unconditionally.
24003         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
24004         '#ifdef _LIBC"s.
24005         * modules/regex (Depends-on): Add pthread, if we use the
24006         included regex.
24008         * lib/regcomp.c: Do actions that are not needed for glibc,
24009         but may be needed elsewhere.
24010         (regfree, re_compile_internal): Destroy the lock.
24011         (re_compile_internal): Check for lock-initialization failure.
24013         malloca: port to compilers that reject size-zero arrays
24014         This fixes a bug introduced in my previous patch.
24015         * lib/malloca.c (struct preliminary_header): Use an int
24016         rather than a character array of size int; that's simpler.
24017         (struct header): Remove, replacing with ...
24018         (union header): New type.  This avoids the need for declaring a
24019         character array of size zero, which is not allowed on some platforms.
24020         All uses changed.
24022 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
24024         parse-datetime, tests: don't use "string" + int
24025         Recent versions of 'clang' complain about C source code that
24026         uses expressions of the form '"string literal" + integer',
24027         I guess on the theory that it's confusing for readers who are
24028         used to C++.  On those grounds I suppose it's OK to make this
24029         minor style change.
24030         * lib/parse-datetime.y (parse_datetime):
24031         * tests/test-fchdir.c (main):
24032         * tests/test-snprintf-posix.h (test_function):
24033         * tests/test-snprintf.c (main):
24034         * tests/test-vasnprintf-posix.c (test_function):
24035         * tests/test-vasnprintf.c (test_function):
24036         * tests/test-vsnprintf.c (main):
24037         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
24038         Rewrite '"str" + E' to '&"str"[E]'.
24040 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
24042         argmatch: port to C++
24043         * lib/argmatch.h [__cplusplus]: Add extern "C".
24045         argp: typo fix
24046         * lib/argp-help.c: Typo in comment.
24048 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
24050         manywarnings: update for GCC 4.8.0
24051         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
24052         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
24053         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
24054         -Wmissing-noreturn, as they are duplicates of other warnings.
24055         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
24056         was documented to be flaky in earlier versions of GCC.
24058         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
24059         * tests/test-spawn.c (main):
24060         * tests/test-sys_socket.c (main):
24061         * tests/test-sys_wait.c (main):
24062         Don't have a switch value that isn't covered by a case.
24064         getaddrinfo-tests: port --enable-gcc-warnings to clang
24065         * tests/test-getaddrinfo.c (simple):
24066         Avoid casts from looser to stricter-aligned pointers.
24068         thread: port --enable-gcc-warnings to clang
24069         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
24070         Include <signal.h>, to pacify a warning about pthread_sigmask.
24072         stdio: use __REDIRECT for fwrite, fwrite_unlocked
24073         * lib/stdio.in.h (fwrite):
24074         When working around bug 11959, use __REDIRECT rather than '#define
24075         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
24076         fix the -Wunused-value issue with clang, and it works with GCC too.
24077         Problem with targeting reported by Eric Blake in
24078         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
24079         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
24080         debugging the fwrite issue.
24082         stdio: port --enable-gcc-warnings to clang
24083         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
24084         since the GCC workaround for fwrite does not pacify clang.
24086         sig2str: port --enable-gcc-warnings to clang
24087         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
24089         obstack: port --enable-gcc-warnings to clang
24090         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
24091         Avoid casts from looser to stricter-aligned pointers.
24093         memchr2: port --enable-gcc-warnings to clang
24094         * lib/memchr2.c (memchr2):
24095         Avoid casts from looser to stricter-aligned pointers.
24097         mbsstr: port --enable-gcc-warnings to clang
24098         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
24099         Avoid casts from looser to stricter-aligned pointers.
24101         malloca: port --enable-gcc-warnings to clang
24102         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
24103         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
24105         inttostr: port --enable-gcc-warnings to clang
24106         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
24108         warnings: port to clang
24109         Problem reported by Daniel P. Berrange via Eric Blake in
24110         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
24111         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
24112         (gl_WARN_ADD): Use it.
24114 2013-05-11  Jim Meyering  <meyering@fb.com>
24116         quotearg: do not read beyond end of buffer
24117         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
24118         end of an ARG for which no length was specified.  With an N-byte
24119         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
24120         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
24121         via coreutils' misc/sort-debug-keys.sh test and detected by running
24122         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
24123         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
24124         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
24125         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
24126         characters correctly."
24128 2013-05-11  Daiki Ueno  <ueno@gnu.org>
24130         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
24131         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
24132         compilation target is Mac OS X 10.6.
24133         Problem reported by parafin and Andoni Morales in
24134         <http://savannah.gnu.org/bugs/?37844> and
24135         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
24137 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
24139         mkdir-p: remove assumptions about umask and mode
24140         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
24141         umask is 0, or that MODE is a subset of MODE_BITS.
24143 2013-05-10  Eric Blake  <eblake@redhat.com>
24145         maint.mk: catch more abuse of HAVE_DECL in syntax-check
24146         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
24148 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
24150         deps: require Automake >= 1.9.6 in generated Makefile fragments
24152         That is the same minimal version required in the DEPENDENCIES file.
24153         Moreover, the old code generated a requirement of Automake >= 1.5,
24154         and that is an insanely outdated version.
24156         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
24157         * tests/havelib/rpathlx/Makefile.am: Likewise.
24158         * tests/havelib/rpathly/Makefile.am: Likewise.
24159         * tests/havelib/rpathlyx/Makefile.am: Likewise.
24160         * tests/havelib/rpathlz/Makefile.am: Likewise.
24161         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
24162         * tests/havelib/rpathx/Makefile.am: Likewise.
24163         * tests/havelib/rpathy/Makefile.am: Likewise.
24164         * tests/havelib/rpathz/Makefile.am: Likewise.
24166 2013-05-08  Eric Blake  <eblake@redhat.com>
24168         bootstrap: AC_INIT may have more than four parameters
24169         * build-aux/bootstrap (extract_package_name): Correctly extract
24170         non-empty tarname field.  Avoid range in regex.
24171         Based on a report by Sami Kerola <kerolasa@iki.fi>.
24173 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
24175         qacl: port to MS-Windows port of GNU Emacs
24176         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
24177         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
24178         port of GNU Emacs.  Problem reported by Eli Zaretskii in
24179         <http://bugs.gnu.org/14295#14>.
24181 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
24183         acl: include quote.h
24184         * lib/copy-acl.c: Include quote.h.
24185         * lib/set-acl.c: Likewise.
24187 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
24189         fchownat, renameat, unlinkat: update statat dependencies
24190         These modules use statat and lstatat, not fstatat; so depend on
24191         the statat module, which was split out recently from fstatat.
24192         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
24193         * modules/renameat: Likewise.  Also delete fstat.
24194         URL: http://bugs.gentoo.org/468790
24196 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
24198         Assume gnulib is checked out from Git, not CVS
24200         In fact, access to the gnulib repository through CVS has been
24201         disabled, or more precisely, got broken and was never restored; see:
24202         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
24204         Note that support for CVS is not removed completely and unthinkingly
24205         by this change: only support for CVS checkouts of gnulib itself is
24206         removed.  For example, the 'bootstrap' script still cater to .cvsingore
24207         files and CVS directories, for the benefit of those poor gnulib clients
24208         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
24210         * gnulib-tool: Simplify accordingly.
24211         * posix-modules: Likewise.
24212         * MODULES.html.sh: Likewise.
24213         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
24214         repository.
24215         * doc/gnulib-intro.texi: Likewise.
24216         * doc/gnulib-readme.texi: Likewise.
24217         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
24218         sample '.gitignore' file rather than a sample '.cvsignore'.
24219         * NEWS: Update.
24220         * m4/extensions.m4: While at it, remove a comment mistakenly referring
24221         to "CVS Autoconf" rather than "git Autoconf".
24223 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
24225         utimensat-tests, etc.: try to fix some races
24226         Problem reported by Bernhard Voelker in
24227         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
24228         I don't know whether this patch fixes that race condition, but it
24229         fixes *some* race conditions, so it should be a win.
24230         * modules/chown-tests (Depends-on):
24231         * modules/fchownat-tests (Depends-on):
24232         * modules/fdutimensat-tests (Depends-on):
24233         * modules/futimens-tests (Depends-on):
24234         * modules/lchown-tests (Depends-on):
24235         * modules/stat-time-tests (Depends-on):
24236         * modules/utimens-tests (Depends-on):
24237         * modules/utimensat-tests (Depends-on):
24238         Depend on nanosleep, not usleep.
24239         * modules/chown-tests (test_chown_LDADD):
24240         * modules/lchown-tests (test_lchown_LDADD):
24241         * modules/stat-time-tests (test_stat_time_LDADD):
24242         New macro.
24243         * modules/fchownat-tests (test_fchownat_LDADD):
24244         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
24245         * modules/futimens-tests (test_futimens_LDADD):
24246         * modules/utimens-tests (test_utimens_LDADD):
24247         * modules/utimensat-tests (test_utimensat_LDADD):
24248         Add $(LIB_NANOSLEEP).
24249         * modules/stat-time-tests (Files): Add tests/nap.h.
24250         * tests/nap.h: Include <limits.h>, for INT_MAX.
24251         (lt_mtime): Remove.
24252         (diff_timespec): New function.
24253         (get_stat): Rename from get_mtime.  All callers changed.
24254         (nap_works): Determine the needed delay by inspecting the
24255         file system's timestamp jumps; this should be more reliable.
24256         Look at both mtime and ctime, and take the maximum of the two jumps.
24257         (nap_works, guess_delay):
24258         Return a nanosecond count, not a microsecond count.
24259         All callers changed.
24260         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
24261         failure.
24262         (nap): Multiply the guess by 1.125, to accommodate the case where
24263         the file system's clock is a bit slower than nanosleep's clock.
24264         * tests/test-stat-time.c (BASE): New macro.
24265         Include nap.h.
24266         (nap): Remove; nap.h now defines this.  This removes a duplicate
24267         implementation of 'nap'.
24269         utimens, utimensat: work around Solaris UTIME_OMIT bug
24270         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
24271         Linux kernel 2.6.32 does.  Work around it in the same way.
24272         * doc/posix-functions/futimens.texi (futimens):
24273         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
24274         * lib/utimens.c (fdutimens, lutimens):
24275         * lib/utimensat.c (rpl_utimensat): Work around the bug.
24277         gettext: now it's your responsibility to add -I$(top_builddir)/intl
24278         Formerly, it was your responsibility to do this for all Makefile.ams
24279         other than Gnulib's.  Now it's your responsibility to do it for
24280         Gnulib's Makefile.am, too.
24281         * NEWS: Document this.
24282         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
24284         acl: include errno.h to get errno
24285         Reported by Daiki Ueno in
24286         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
24287         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
24289 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
24291         tests: don't assume getdtablesize () <= 10000000
24292         * modules/cloexec-tests:
24293         * modules/dup2-tests:
24294         * modules/dup3-tests:
24295         * modules/nonblocking-tests:
24296         * modules/posix_spawn_file_actions_addclose-tests:
24297         * modules/posix_spawn_file_actions_adddup2-tests:
24298         * modules/posix_spawn_file_actions_addopen-tests:
24299         * modules/unistd-safer-tests:
24300         Depend on the getdtablesize module.
24301         * tests/test-cloexec.c:
24302         * tests/test-dup-safer.c:
24303         * tests/test-dup2.c:
24304         * tests/test-dup3.c:
24305         * tests/test-fcntl.c:
24306         * tests/test-nonblocking.c:
24307         * tests/test-posix_spawn_file_actions_addclose.c:
24308         * tests/test-posix_spawn_file_actions_adddup2.c:
24309         * tests/test-posix_spawn_file_actions_addopen.c:
24310         Don't assume getdtablesize () <= 10000000.
24312 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
24314         extern-inline: work around bug in Sun c99
24315         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
24316         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
24318 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
24320         qacl: new module, broken out from the acl module
24321         This is for GNU Emacs, which wants the acl functions but does
24322         not want 'error' invoked when they fail.
24323         * lib/acl-internal.h: Do not include error.h, quote.h.
24324         (ENOSYS, ENOTSUP): Remove; no longer needed.
24325         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
24326         * lib/acl.h: Include <stdbool.h>.
24327         (acl_errno_valid): New function.
24328         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
24329         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
24330         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
24331         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
24332         (ACL_INTERNAL_INLINE): Remove; no longer needed.
24333         * lib/file-has-acl.c (file_has_acl):
24334         * lib/qcopy-acl.c (qcopy_acl):
24335         * lib/qset-acl.c (qset_acl):
24336         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
24337         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
24338         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
24339         lib/file-has-acl.c, m4/acl.m4 to qacl module.
24340         Add lib/set-acl.c.
24341         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
24342         Add qacl.
24343         (configure.ac): Move gl_FUNC_ACL to qacl module.
24344         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
24345         Rename set-mode-acl.c to set-acl.c.
24346         * lib/acl-errno-valid.c: New file.
24347         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
24348         copy_acl function remains in copy-acl.c.
24349         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
24350         (_): Remove; not needed.
24351         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
24352         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
24353         * modules/qacl: New file, moved from the old modules/acl.
24354         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
24355         Remove set-mode-acl.c, copy-acl.c.
24356         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
24358         alignof, intprops, malloca: port better to IBM's C compiler
24359         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
24360         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
24361         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
24363 2013-04-25  Daiki Ueno  <ueno@gnu.org>
24365         wctype-h: fix gettext link error on mingw
24366         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
24367         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
24368         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
24369         rpl_towupper and rpl_towupper.
24371 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
24373         regex-tests, regex: allow glibc re_search behavior
24374         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
24375         re_search input data to make the multi-character collating element
24376         in it clearly visible, and treat re_search return code 0 as valid.
24377         * m4/regex.m4 (gl_REGEX): Likewise.
24379 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
24381         stdalign: doc fix
24382         * doc/posix-headers/stdalign.texi (stdalign.h):
24383         Gnulib doesn't support '_Alignof expr'.
24385 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
24387         stdalign: port to stricter ISO C11
24388         ISO C11 says that _Alignof's operand must be a parenthesized type.
24389         Problem reported by Eli Zaretskii in
24390         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
24391         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
24392         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
24394 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
24396         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
24397         Problem reported by Marco Atzeri in
24398         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
24399         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
24400         Simply delegate to the system <sys/select.h> in this case too.
24401         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
24402         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
24403         be needed on Solaris either.
24404         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
24405         Simply delegate to the system <sys/time.h> in this case.
24407 2013-03-19  Karl Berry  <karl@gnu.org>
24409         * build-aux/gnupload: check for erroneous (with gnupload) use of
24410         ftp-upload.gnu.org, tweak help.
24412 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24414         copy-file, rpmatch: fix problems found by cppcheck
24415         Reported by Arno Onken in
24416         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
24417         * lib/rpmatch.c (try): Fix memory leak.
24418         * lib/copy-file.c: Include "ignore-value.h".
24419         (qcopy_file_preserving): Ignore chown value.
24420         * modules/copy-file (Depends-on): Add ignore-value.
24422 2013-01-27  Jim Meyering  <jim@meyering.net>
24424         prefix-gnulib-mk: give better diagnostics
24425         * build-aux/prefix-gnulib-mk: Don't just "die".
24426         Give better diagnostics upon failure.
24428 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
24430         putenv: port to Solaris 10
24431         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
24432         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
24433         is not what is wanted here.
24434         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
24435         declaration, not for its existence.
24437 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
24439         mktime: fix configure typo
24440         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
24442 2013-03-12  Eric Blake  <eblake@redhat.com>
24444         regex-tests: skip UTF-8 test on mingw
24445         * modules/regex-tests (Depends-on): Add localcharset.
24446         * tests/test-regex.c (main): Use it to skip test on mingw.
24448 2013-03-11  Eric Blake  <eblake@redhat.com>
24450         tests: make it easier to bypass alarm time in debugger
24451         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
24452         * tests/test-memmem.c (main): Likewise.
24453         * tests/test-passfd.c (main): Likewise.
24454         * tests/test-ptsname.c (main): Likewise.
24455         * tests/test-ptsname_r.c (main): Likewise.
24456         * tests/test-strcasestr.c (main): Likewise.
24457         * tests/test-strstr.c (main): Likewise.
24459         regex: port to mingw's recent addition of undeclared alarm
24460         * doc/posix-functions/alarm.texi (alarm): Document that alarm
24461         exists but still doesn't work in newer mingw.
24462         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
24463         not existence.  Ensure SIGALRM is not trapped.
24464         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
24465         * m4/regex.m4 (gl_REGEX): Likewise.
24466         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
24467         * tests/test-regex.c (main): Use correct probe for alarm.
24469         putenv: avoid compilation warning on mingw
24470         * lib/putenv.c (_unsetenv): Protect variable declaration.
24471         (putenv): Fix indentation.
24473 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
24475         unistd: don't prevent Tru64 Unix from using gnulib strtod.
24476         * lib/unistd.in.h: be careful not to include un-needed system
24477         stdlib.h from here, because that prevents gnulib stdlib.h from
24478         defining rpl_strtod correctly.
24480 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
24482         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
24483         changesets, but for the 'precision 0' test.
24484         * tests/test-vasprintf-posix.c (test_function): Don't insist on
24485         round-to-even, since POSIX says rounding is implementation-defined
24486         and OS X 10.8.2 rounds 1.51 to 1 here.
24488         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
24489         changeset.
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.5 to 1 here.
24494 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
24496         vasnprintf-posix-tests: allow rounding 1.5 to 1
24497         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
24498         round-to-even, since POSIX says rounding is implementation-defined
24499         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
24500         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
24502         bootstrap: port to FreeBSD
24503         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
24504         that treat '--' differently.  Reported by Mats Erik Andersson in
24505         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
24507 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
24509         regex: rename remaining __attribute calls to __attribute__.
24510         2012-02-25 changed definition of __attribute, but left some uses
24511         unchanged, preventing compilation of regex module on most non-gcc
24512         environments.
24513         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
24514         (lookup_collation_sequence_value, build_range_exp)
24515         (build_collating_symbol): Set attributes with newly renamed
24516         __attribute__ decorator.
24517         * lib/regex_internal.c (re_string_peek_byte_case)
24518         (re_node_set_compare, re_node_set_contains): Likewise.
24519         * lib/regexec.c (acquire_init_state_context): Likewise.
24521 2013-03-06  Bruno Haible  <bruno@clisp.org>
24523         execute: Revert last change, but use a different condition.
24524         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
24525         on Windows.
24527 2013-03-05  Eric Blake  <eblake@redhat.com>
24529         execute: drop dead code
24530         * lib/execute.c (nonintr_close, nonintr_open): Delete.
24532 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
24534         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
24535         * m4/non-recursive-gnulib-prefix-hack.m4
24536         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
24537         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
24538         <http://bugs.gnu.org/10305#237>.
24540 2013-03-04  Eric Blake  <eblake@redhat.com>
24542         test-getsockopt: avoid compiler warning
24543         * tests/test-getsockopt.c (includes): Ensure close is declared.
24545 2013-03-02  Bruno Haible  <bruno@clisp.org>
24547         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
24548         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
24550 2013-03-02  Bruno Haible  <bruno@clisp.org>
24552         gettext: Update to version 0.18.2.
24553         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
24554         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
24555                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
24557 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
24559         regex: merge patches from libc
24561         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
24562         * lib/regex_internal.h (__attribute__): Rename from __attribute.
24563         All uses changed.
24564         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
24565         (re_string_wchar_at, re_string_elem_size_at):
24566         Mark function as possibly unused.
24568         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
24569         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
24570         elements compare against the byte sequence of it, not its name.
24572 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
24574         putenv: port better to native Windows
24575         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
24576         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
24577         (_unsetenv): Use _putenv if available.
24578         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
24579         a bit less likely to cause damage.
24580         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
24581         Fix the wrong value with SetEnvironmentVariable.
24582         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
24583         code better.
24585 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
24587         regex: ignore old-style-definition warnings
24588         * lib/regex.c: Add pragma to ignore these warnings.
24589         Problem reported for GNU tar by Pavel Raiskup.
24591 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
24593         getcwd: support coreutils better
24594         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
24595         but this might not be correct in coreutils, which disables
24596         the raw decl checks.  Problem reported by Nagendra in
24597         <http://bugs.gnu.org/10305#192>.
24598         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
24599         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
24600         Test the getcwd function, not any macro, since getcwd.c wants the
24601         function.
24602         * m4/getcwd.m4 (gl_FUNC_GETCWD):
24603         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
24604         compile, as might happen if there's a macro but no function.
24606         strtod: support coreutils better
24607         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
24608         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
24609         disables the raw decl checks.  This assumes there is an underlying
24610         strtod, but that's a safe assumption these days.
24611         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
24613         mountlist: port to HP NonStop
24614         Reported by Joachim Schmitz in
24615         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
24616         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
24617         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
24619 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
24621         extern-inline: avoid compilation error with HP-UX cc
24622         Reported by Richard Lloyd in
24623         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
24624         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
24625         Suppress extern inline with HP-UX cc.  This should be safe,
24626         though it may hurt performance.  Perhaps someone with some HP-UX
24627         experience can come up with a higher-performance fix.
24629 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
24631         putenv: fix heap corruption with mixed putenv/_putenv
24632         Problem reported by Michael Goffioul in
24633         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
24634         * lib/putenv.c (putenv) [HAVE__PUTENV]:
24635         Rely on _putenv to allocate the new environment.
24636         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
24637         * modules/putenv (configure.ac): Use it.
24639 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
24641         unsetenv etc.: port to Solaris 11 + GNU Emacs
24642         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
24643         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
24644         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
24645         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
24646         idea but is too painful to fix right now), and without this gnulib
24647         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
24648         compiling unsetenv.c on Solaris 11.  Fix the problem for
24649         unsetenv.c, and fix other similar occurrences.
24651 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24653         secure_getenv: fix C++ declaration typo
24654         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
24655         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
24656         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
24658 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24660         careadlinkat: stop exporting careadlinkatcwd
24661         Only Emacs used it directly, and Emacs no longer needs it.
24662         * NEWS: Document this simplification.
24663         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
24664         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
24665         for readlink.
24666         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
24667         Don't include stdlib.h; no longer needed.
24668         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
24669         * lib/relocwrapper.c: Adjust comment to match new dependencies.
24670         * modules/areadlink (Depends-on): Add readlink.
24671         (Maintainer): Add self.
24672         * modules/careadlinkat (Depends-on): Remove readlink.
24674         extensions: port better to HP-UX
24675         This is merged from git Autoconf.
24676         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
24677         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
24678         so that it's compatible with the value used when compiling.
24680         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
24681         Problem reported by Mats Erik Andersson in
24682         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
24683         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
24684         openpty function exists, not merely when we intend to replace it.
24685         This corrects the 2013-01-31 patch, which mistakenly defined
24686         HAVE_OPENPTY even on hosts that lacked it.
24688 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
24690         secure_getenv: fix include typo
24691         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
24693         secure_getenv: port better to FreeBSD and Solaris
24694         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
24695         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
24696         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
24697         This works better on BSDish platforms.
24698         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
24699         Test for issetugid if __secure_getenv is missing.
24701 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
24703         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
24704         Some of these changes are merged in from git Autoconf.
24705         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
24706         When deciding whether to define _XOPEN_SOURCE, inspect the
24707         preprocessor macro __hpux instead of the more-heavyweight
24708         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
24709         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
24710         as the key for __EXTENSIONS__.
24712         unistd: avoid namespace pollution on non-glibc systems
24713         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
24714         This avoids namespace pollution on non-glibc systems, by causing
24715         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
24716         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
24717         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
24719 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24721         tmpdir: use secure_getenv
24722         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
24723         Define to secure_getenv, not getenv.
24724         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
24725         as that's now secure_getenv's job.
24726         * modules/tmpdir (Depends-on): Add secure_getenv.
24728         tempname: use secure_getenv
24729         * lib/tempname.c (__secure_getenv) [!_LIBC]:
24730         Define to secure_getenv, not getenv.
24731         * modules/tempname (Depends-on):
24732         Add secure_getenv.
24734         secure_getenv: new module
24735         * MODULES.html.sh (Extra functions based on ANSI C 89):
24736         Add secure_getenv.
24737         * doc/glibc-functions/secure_getenv.texi: New file.
24738         * doc/gnulib.texi: Include it.
24739         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
24740         New files.
24741         * lib/stdlib.in.h (secure_getenv): New decl.
24742         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
24743         * modules/stdlib (stdlib.h):
24744         Add secure_getenv checks.
24746 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
24748         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
24749         Reported for OS X 10.8.2 by Assaf Gordon in
24750         <http://bugs.gnu.org/13516>.
24751         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
24752         !HAVE_OPENAT && !HAVE_FDOPENDIR.
24753         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
24754         so that they can be kept in sync more easily.  Avoid PATH_MAX
24755         test on the Hurd.  Sync from test-getcwd.c for errno tests after
24756         mkdir or chdir failure.
24757         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
24758         lib/getcwd.c.
24759         (test_abort_bug): Do not test for the deep directory bug unless we
24760         have openat support.  Avoid PATH_MAX test on the Hurd.
24762         regex-tests, regex: fix bug: memset undeclared
24763         * tests/test-regex.c: Don't include regex.h twice.  Include
24764         string.h, to declare memset.  Christensen's report also mentioned
24765         this issue.
24766         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
24767         test-regex.c, to avoid future problems like this.  Remove
24768         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
24769         twice.
24771         regex-tests: fix link errors on older Solaris
24772         These need to link with @LIBINTL@ to get libintl_gettext.
24773         Problem reported by Tom G. Christensen in
24774         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
24775         * modules/regex-tests (test_regex_LDADD): New macro.
24777 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
24779         regex-tests: new module
24780         * modules/regex-tests, tests/test-regex.c: New files.
24782         regex: fix off-by-one error in configure test
24783         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
24785 2013-01-31  Eric Blake  <eblake@redhat.com>
24787         regex: avoid infinite configure test
24788         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
24790 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
24792         openpty: fix bug where HAVE_OPENPTY wasn't defined
24793         See the thread starting at:
24794         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
24795         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
24796         openpty function exists, not merely when we intend to replace it.
24798 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24800         sys_time: port to Solaris 2.6
24801         There is a circularity problem on Solaris 2.6, where <time.h> includes
24802         <sys/time.h> for struct timespec.  The include nesting is gnulib
24803         <time.h>, system <time.h>, gnulib <sys/time.h>, system
24804         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
24805         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
24806         <sys/siginfo.h>; the last, innermost file needs struct
24807         timestruc_t, which is defined in <sys/time.h>, which has not been
24808         fully parsed.  Problem reported by Tom G. Christensen in
24809         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
24810         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
24811         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
24812         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
24813         uses split double-inclusion guards.
24815 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24817         regex: test for buffer overrun
24818         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
24819         for the just-fixed regex bug.
24821 2013-01-29  Andreas Schwab  <schwab@suse.de>
24823         regex: fix buffer overrun in regexp matcher [BZ #15078]
24824         * lib/regexec.c (extend_buffers): Add parameter min_len.
24825         (check_matching): Pass minimum needed length.
24826         (clean_state_log_if_needed): Likewise.
24827         (get_subexp): Likewise.
24829 2013-01-28  Pádraig Brady  <P@draigBrady.com>
24831         mountlist: don't consider "devtmpfs" as dummy
24832         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
24833         as there is storage associcated with it.
24835 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
24837         futimens-tests, utimens-tests: Depend on gettext.
24838         This works around a problem introduced in my 2013-01-12 patch,
24839         which added @LIBINTL@ to these modules.
24840         * modules/futimens-tests (Depends-on):
24841         * modules/utimens-tests (Depends-on): Add gettext.
24843 2013-01-26  Eric Blake  <eblake@redhat.com>
24845         test-getpeername: fix typo
24846         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
24848 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
24850         bootstrap: remove the need for a sorted .gitignore file
24851         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
24852         rename to insert_if_absent(), so that we don't need or generate
24853         a sorted .gitignore file.  We do require a .gitignore with no
24854         existing duplicate entries and enforce that.
24855         (sort_patterns): Remove this function as we now use the simpler
24856         technigue of inserting blacklist entries at the top of the file,
24857         assuming gnulib won't be inserting !whitelist entries.
24859 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24861         readlinkat: don't depend on gl_FUNC_OPENAT
24862         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
24863         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
24864         renameat.m4, symlinkat.m4; but one thing at a time.
24866         statat: new module, split out from fstatat
24867         GNU Emacs needs the POSIX-specified fstatat, but not the
24868         gnulib-specified statat and lstat.  Split the latter two into a
24869         new module 'statat'.
24870         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
24871         * lib/openat.h, lib/statat.c (STATAT_INLINE):
24872         Rename from FSTATAT_INLINE. All uses changed.
24873         * modules/fstatat (Files): Remove lib/statat.c.
24874         (gl_MODULE_INDICATOR([fstatat])): Remove.
24875         (lib_SOURCES): Remove.
24876         (Maintainer): Add self.
24877         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
24878         * tests/test-fstatat.c (BASE): Don't define if already defined.
24879         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
24881 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
24883         tests: don't assume fd 99 is closed
24884         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
24885         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
24886         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
24887         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
24888         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
24889         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
24890         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
24891         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
24892         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
24893         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
24894         * tests/test-fwrite.c, tests/test-getpeername.c:
24895         * tests/test-getsockname.c, tests/test-getsockopt.c:
24896         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
24897         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
24898         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
24899         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
24900         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
24901         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
24902         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
24903         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
24904         * tests/test-unlinkat.c, tests/test-unlockpt.c:
24905         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
24906         Close file descriptor 99, instead of assuming it's already closed.
24908 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
24910         stpncpy: port to OS X 10.8
24911         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
24912         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
24914 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
24916         unistd: port to recent mingw
24917         * lib/unistd.in.h: Remove special invocation convention for mingw,
24918         which breaks for the latest mingw version.  See John W. Eaton in
24919         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
24921         largefile: port better to Mac OS X 10.5
24922         This patch is backported from Autoconf git.
24923         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
24924         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
24925         with ino_t size being different for configuration time versus
24926         build/run time.  Problem reported by PHO in
24927         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
24929 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24931         doc: clarify -Werror
24932         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
24933         clarify that it's intended for developers, not for ordinary builds,
24934         and mention --enable-gcc-warnings as one possible use.
24936 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
24938         stdint: fix build with Android's Bionic fox x86
24939         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
24940         was already included as _SSIZE_T_DEFINED_ might also be defined
24941         in include/machine/_types.h, which is included by stdio.h
24943 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
24945         net_if-tests: port to Solaris 7 + GCC 3.4.6
24946         Problem reported by Tom G. Christensen in
24947         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
24948         * tests/test-net_if.c (ni): Move to next the code that uses it,
24949         so that it's declared only if needed.
24951 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
24953         net_if-tests: port to older Solaris
24954         Problem reported by Tom G. Christensen in
24955         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
24956         * modules/net_if-tests (NET_IF_LIB): New substitution.
24957         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
24958         (HAVE_IF_NAMEINDEX): New C macro.
24959         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
24961         system-quote-tests: port to older Solaris
24962         Problem reported by Tom G. Christensen in
24963         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
24964         * tests/test-system-quote-child.c (fopen, fread): Undef.
24966         c-xvasprintf etc.: fix link errors on older Solaris
24967         These need to link with @LIBINTL@ to get libintl_gettext.
24968         Problem reported by Tom G. Christensen in
24969         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
24970         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
24971         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
24972         * modules/futimens-tests (test_futimens_LDADD):
24973         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
24975 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24977         locale: port to Solaris 2.6 and 7 + GNU gettext
24978         * lib/locale.in.h: Just include_next <locale.h> when
24979         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
24980         when combining the localename module with GNU gettext 0.18.2.
24981         Problem reported by Tom G. Christensen in
24982         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
24984 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24986         stdlib: port to Solaris 2.6
24987         Also, the code worked on Solaris 7 through 9 only by accident.
24988         Problem reported by Tom G. Christensen in
24989         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
24990         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
24991         simply include the system stdlib.h.
24992         * lib/getopt.in.h (__need_system_stdlib_h):
24993         * lib/pthread.in.h (__need_system_stdlib_h):
24994         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
24995         Define when including <stdlib.h>, to avoid problems at least for
24996         the pthread case on Solaris 2.6 and 7.  These .h files can get by
24997         with the system stdlib.h.
24999 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
25001         doc: update main copyright year
25002         * doc/gnulib.texi: Update copyright date.
25004         doc: improve ISO 8601 discussion
25005         * doc/parse-datetime.texi (Combined date and time of day items):
25006         Specify more carefully what formats are supported and what is
25007         done with excess precision.
25009 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
25011         doc: avoid small caps
25012         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
25013         they're more trouble than they're worth.  Suggested by Karl Berry
25014         in <http://bugs.gnu.org/13360>.
25016         regex: conform to strict C
25017         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
25018         From Aharon Robbins.
25020         gnulib-tool: fix incompatibility with autopoint 0.18.2
25021         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
25022         Problem reported by Tom G. Christensen in
25023         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
25025 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
25027         fprintftime: bring back and reword fwrite comment
25028         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
25030         stdio: remove now-unnecessary stdio.c
25031         Since stdio.in.h no longer uses inline functions, we no longer
25032         need to compile the extern versions.
25033         * lib/stdio.c: Remove.
25034         * modules/stdio (Files): Remove lib/stdio.c.
25035         (lib_SOURCES): Remove.
25037         unicodeio: depend on stdio, not ignore-value
25038         * lib/unicodeio.c: Do not include ignore-value.h.
25039         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
25040         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
25042         fprintftime: depend on stdio, not ignore-value
25043         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
25044         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
25045         since the stdio module arranges to silence that warning now.
25046         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
25048 2012-10-04  Simon Josefsson  <simon@josefsson.org>
25050         stdint-tests: Fix expanded-before-required-warning.
25051         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
25053 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
25055         fwrite: silence __wur only for older glibc versions
25056         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
25057         This will help us remove this workaround some time in the far future.
25059 2013-01-03  Eric Blake  <eblake@redhat.com>
25061         fwrite: silence __wur without using inline
25062         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
25063         just gcc, and in a way that avoids inline issues.
25064         * modules/stdio (Depends-on): Drop extern-inline.
25066 2013-01-03  Jim Meyering  <jim@meyering.net>
25068         update-copyright: avoid copyright notice date corruption
25069         Given a sequence of copyright year numbers in which the final
25070         one was a two-digit number that happened to be a substring of
25071         a preceding four-digit year number, we would mistakenly update
25072         the substring (from two- to four-digit) rather than the two-digit
25073         number at the end, which, combined with the addition of the current
25074         4-digit year number would yield two 5-digit year numbers, e.g.,
25075         here, it would convert the first "99" to "1999, 2013" rather than
25076         the final one:
25077           1991, 99
25078           11999, 20131, 1999
25079         * build-aux/update-copyright: Tighten a regexp.
25080         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
25081         Reported by Joseph Myers in
25082         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
25084 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25086         regex: omit needless signed-pointer casts
25087         * lib/regcomp.c (build_charclass, build_charclass_op):
25088         Use char *, not unsigned char *, for class name and extra.
25089         The char values are always nonnegative so there's no need to
25090         insist on unsigned char * here, and using char * removes the need
25091         for casts.  Reported by Aharon Robbins in
25092         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25094         regex: support Gawk, which never uses alloca
25095         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
25096         Do not include in this case.  Gawk doesn't supply a substitute
25097         alloca.h and doesn't need one.
25099         regex: port __libc_lock_define usage to C89
25100         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
25101         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
25102         does not conform to C89, as it has an empty macro argument.
25103         Reported by Aharon Robbins in
25104         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25106 2013-01-01  Eric Blake  <eblake@redhat.com>
25108         maint: update all copyright year number ranges
25109         Run "make update-copyright".
25111         version-etc: bump copyright year reported in --version
25112         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
25114 2012-12-31  Eric Blake  <eblake@redhat.com>
25116         sigprocmask-tests: skip test if pid is unexpectedly large
25117         * tests/test-sigprocmask.c (main): Add range check.
25119         git-version-gen: avoid test -z portability glitch
25120         * build-aux/git-version-gen: Prefer portable test spelling, since
25121         git-version-gen is run on more than just developer machines.
25123 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
25125         git-version-gen: add --fallback option to use if git is not present
25126         * build-aux/git-version-gen: Add support for the new option --fallback,
25127         which comes into play when there is no $tarball_version_file and
25128         git is not working.
25129         (scriptversion): Update.
25131         maint.mk: handle missing git with more grace
25132         * top/maint.mk (no-submodule-changes, public-submodule-commit):
25133         Quietly proceed if git is not present.
25135 2012-12-31  Eric Blake  <eblake@redhat.com>
25137         dup2: work around cygwin bug
25138         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
25139         * lib/dup2.c (rpl_dup2): Work around it.
25140         * doc/posix-functions/dup2.texi (dup2): Document it.
25142 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
25144         regex: remove unnecessary dependency on localcharset.h
25145         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
25146         hasn't been needed for years.
25147         * modules/regex (Depends-on): Remove localcharset.
25149         regex: revert single-byte change
25150         * lib/regexec.c (check_node_accept_bytes): Revert previous change
25151         to this function.  This was alredy fixed in a different way, at
25152         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
25153         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
25154         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
25156         regex: simplify based on Gawk version
25157         * lib/regex_internal.c (re_dfa_add_node): Simplify.
25158         Reported by Aharon Robbins in
25159         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25161 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25163         regex: check that pattern char is single-byte
25164         Reported by Aharon Robbins in
25165         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25166         * lib/regexec.c (check_node_accept_bytes):
25167         Return 0 if the pattern string has a multibyte character here.
25169         regex: implement rational ranges
25170         Reported by Aharon Robbins in
25171         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25172         * lib/regcomp.c (build_range_exp) [!_LIBC]:
25173         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
25174         Implement rational ranges.
25176         regex: avoid redefining __wctype
25177         Reported by Aharon Robbins in
25178         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25179         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
25180         #undef before defining.
25182         regex: port to hosts where malloc (0) == NULL
25183         Reported by Aharon Robbins in
25184         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25185         * lib/regex_internal.c (re_node_set_alloc):
25186         Don't assume that malloc (0) yields nonnull.
25187         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
25188         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
25189         * modules/regex (Files): Add m4/eealloc.m4.
25191         regex: port to C89
25192         Reported by Aharon Robbins in
25193         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25194         * lib/regcomp.c (init_word_char): Declaration before statement.
25196         regex: merge glibc changes
25197         Also, copy the license wording from glibc.  This simplifies
25198         merging changes.  gnulib-tool will change the wording to GPL as
25199         appropriate, when importing it to other packages.  The only
25200         glibc change made since the last merge, which needs merging, is:
25201         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
25202         * lib/regex_internal.h (gettext): Remove use of INTUSE.
25204         * users.txt: Add Emacs.
25206         doc: omit mention of version when not needed
25207         * doc/gnulib-intro.texi (Portability and Application Code):
25208         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
25209         Don't mention particular dates or versions when not necessary, so
25210         that the documentation won't go out of date so quickly.
25212         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
25214 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
25216         bootstrap: pass --force to autoreconf.
25217         * build-aux/bootstrap (AUTORECONFFLAGS): New.
25218         Add "--force" so that Automake's ylwrap and other such tools
25219         be updated at each bootstrap invocation.
25220         Use it.
25222 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25224         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
25225         The earlier patch forgot to update one of the #if conditions, causing
25226         a problem on Debian testing i386 reported by Mats Erik Andersson
25227         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
25228         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
25229         (__argp_fmtstream_puts, argp_fmtstream_puts)
25230         (__argp_fmtstream_write, argp_fmtstream_write)
25231         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
25233         * doc/gnulib-readme.texi: Minor fixups.
25234         (Portability guidelines): Modernize URLs.  Remove some repetition.
25235         (Indent with spaces not TABs): Reword to avoid too-long lines.
25236         Remove some '@ifset standalone' stuff that isn't used.
25238         * doc/gnulib-readme.texi (Portability guidelines):
25239         ctype.h, not ctime.h.
25241         Correct name of POSIX.1-2001.
25242         * doc/posix-functions/fgetc.texi (fgetc):
25243         * doc/posix-functions/fgets.texi (fgets):
25244         * doc/posix-functions/fread.texi (fread):
25245         * doc/posix-functions/fscanf.texi (fscanf):
25246         * doc/posix-functions/getc.texi (getc):
25247         * doc/posix-functions/getchar.texi (getchar):
25248         * doc/posix-functions/scanf.texi (scanf):
25249         POSIX.1-2001, not POSIX-2001.
25251         doc: move README into manual
25252         * README: Move contents to new file doc/gnulib-readme.texi.
25253         Replace with a one-line summary.
25254         * doc/gnulib.texi (Brief Overview): New section,
25255         with old intro preface.  Include gnulib-readme.texi for contents.
25256         (Philosophy): Rename from "Introduction", since this
25257         section no longer introduces the rest.  Write a new preface.
25258         * doc/gnulib-readme.texi: New file, with the old contents of
25259         README texinfo-ized.  This way, the README info appears
25260         in the online and printed manual.
25262 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
25264         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
25265         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
25266         c_vasprintf() prototype.
25268 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
25270         c-vasprintf: Fix "empty declaration" warning reported by GCC.
25271         * lib/c-vasprintf.h: Remove stray semicolon.
25273 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25275         gettext: avoid obsolete macro AM_PROG_MKDIR_P
25276         It is obsolete and is planned to be removed from Automake 1.14; see
25277         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
25278         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
25279         (installdirs-data, installdirs-data-yes):
25280         Use $(MKDIR_P), not $(mkdir_p).
25281         * m4/intl.m4 (AM_INTL_SUBDIR):
25282         * m4/po.m4 (AM_PO_SUBDIRS):
25283         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
25285 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25287         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
25288         On this platform, we are not optimizing but we are using
25289         the substitute for extern inlines, so compile as if
25290         C99-style extern inline, or a substitute, is available.
25291         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
25292         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
25293         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
25294         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
25295         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
25296         Declare as ARGP_FS_EI, not as extern.
25297         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
25298         (__option_is_short, _option_is_end, __option_is_end)
25299         [!_LIBC && __USE_EXTERN_INLINES]:
25300         Declare as ARGP_EI, not as extern.
25302 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
25304         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
25305         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
25306         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
25307         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
25308         ...), as the latter is fatal with older Autoconfs.
25309         Problem reported and fix suggested by Eric Blake in thread starting at
25310         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
25312 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
25314         AC_PROG_MKDIR_P: don't workaround if not buggy
25315         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
25316         Define only for Autoconf versions before 2.62.
25317         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
25318         undocumented m4_PACKAGE_VERSION, for consistency with the
25319         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
25320         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
25321         was introduced in 2.62.
25323 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
25325         New 'c-*printf' modules for formatted output in C locale.
25327         New module 'c-vasnprintf'.
25328         * modules/c-vasnprintf: New file.
25329         * lib/c-vasnprintf.c: New file.
25330         * lib/c-vasnprintf.h: New file.
25332         New module 'c-snprintf'.
25333         * modules/c-snprintf: New file.
25334         * modules/c-snprintf-tests: New file.
25335         * lib/c-snprintf.c: New file.
25336         * lib/c-snprintf.h: New file.
25337         * tests/test-c-snprintf.c: New file.
25338         * tests/test-c-snprintf.sh: New file.
25340         New module 'c-vsnprintf'.
25341         * modules/c-vsnprintf: New file.
25342         * modules/c-vsnprintf-tests: New file.
25343         * lib/c-vsnprintf.c: New file.
25344         * lib/c-vsnprintf.h: New file.
25345         * tests/test-c-vsnprintf.c: New file.
25346         * tests/test-c-vsnprintf.sh: New file.
25348         New module 'c-vasprintf'.
25349         * modules/c-vasprintf: New file.
25350         * modules/c-vasprintf-tests: New file.
25351         * lib/c-asprintf.c: New file.
25352         * lib/c-vasprintf.c: New file.
25353         * lib/c-vasprintf.h: New file.
25354         * tests/test-c-vasprintf.c  +: New file.
25355         * tests/test-c-vasprintf.sh: New file.
25357         New module 'c-xvasprintf'.
25358         * modules/c-xvasprintf: New file.
25359         * modules/c-xvasprintf-tests: New file.
25360         * lib/c-xasprintf.c: New file.
25361         * lib/c-xvasprintf.c: New file.
25362         * lib/c-xvasprintf.h: New file.
25363         * tests/test-c-xvasprintf.c: New file.
25364         * tests/test-c-xvasprintf.sh: New file.
25366 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25368         argp: better 'inline'
25369         Use extern-inline module to declare extern inline functions.
25370         This avoids some bogus warning diagnostics.  Problem discovered
25371         when modifying GNU tar to use the manywarnings module.
25372         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
25373         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
25374         Define based on extern-inline.
25375         * modules/argp (Depends-on): Add extern-inline.
25377 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
25379         filemode, sys_stat: Handle MPX files a la AIX.
25380         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
25381         * lib/sys_stat.in.h (S_ISMPX): New macro.
25382         * tests/test-sys_stat.c: Add tests for MPX files.
25384 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
25386         x-to-1: honor $PERL
25387         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
25388         a chance to use his preferred version of Perl.  This is typically
25389         required by Darwin users whose default /usr/bin/perl does not have all
25390         the libraries required by help2man, and who need to use their MacPorts
25391         installation of Perl instead.
25393 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
25395         gnu-web-doc-update: add all the new files, even in new directories
25396         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
25397         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
25398         Use it.
25399         (main): Don't use cvsutils to get the list of unknown files,
25400         just add all the existing files and directories.
25402 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
25404         gnu-web-doc-update: improve --help
25405         * build-aux/gnu-web-doc-update: Move comments into --help.
25407 2012-12-07  Eric Wong  <normalperson@yhbt.net>
25409         mountlist: recognize more "dummy" file systems
25410         * lib/mountlist.c (ME_DUMMY_0):
25411         Add these dummy FS names to the list:
25412         - "debugfs" virtual filesystem for kernel debugging
25413         - "devpts" PTY slave filesystem
25414         - "devtmpfs" device filesystem on top of tmpfs/ramfs
25415         - "fusectl" control filesystem for FUSE
25416         - "mqueue" enumerates POSIX message queues
25417         - "rpc_pipefs" kernel <-> userspace bridge for NFS
25418         - "sysfs" is for exporting kernel objects
25419         - "devfs" device filesystem for Linux 2.4 and FreeBSD
25421 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
25423         extern-inline: avoid incompatibility with Darwin Libc
25424         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
25425         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
25426         Problem reported by Akim Demaille in
25427         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
25429 2012-12-11  Simon Josefsson  <simon@josefsson.org>
25431         gnupload: Work with GnuPG using gpg-agent (for smartcards).
25432         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
25433         let it handle password prompting.
25435 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
25437         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
25438         * lib/canonicalize.c (canonicalize_filename_mode):
25439         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
25440         fetching the current directory.  Don't overrun the beginning of
25441         rpath if there's no slashes after the MS-Windows drive letter.
25443 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
25445         maint.mk: avoid extra forks
25446         * top/maint.mk (_cfg_mk): The GNU make manual documents that
25447         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
25448         So use that instead of "$(shell test -f FILE && echo FILE)".
25450 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
25452         vasnprintf: fix ASCII_ONLY typo
25453         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
25454         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
25455         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
25456         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
25457         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
25459 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
25461         list, oset, xlist, xoset: fix extern inline issue with C99
25462         This was introduced by my recent changes for 'inline'.
25463         Problem reported for gettext by Daiki Ueno in
25464         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
25465         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
25466         (gl_list_nx_create, gl_list_size, gl_list_node_value)
25467         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
25468         (gl_list_previous_node, gl_list_get_at)
25469         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
25470         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
25471         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
25472         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
25473         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
25474         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
25475         (gl_list_iterator_free, gl_sortedlist_search)
25476         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
25477         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
25478         (gl_sortedlist_remove):
25479         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
25480         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
25481         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
25482         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
25483         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
25484         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
25485         (gl_list_add_at, gl_sortedlist_add):
25486         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
25487         Wrap these extern decls inside "#if 0", because they are implemented
25488         as inline functions, and extern inline is not what's wanted here.
25489         It would simplify these .h files to remove the extern decls entirely,
25490         although a downside would be less-clear separation between
25491         specification and implementation.
25493 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
25495         sys_stat: no 'static inline'
25496         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
25497         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
25499         extern-inline: no 'static inline'
25500         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
25501         Do not require AC_C_INLINE.
25502         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
25503         'static inline', for older compilers.
25505         snippet/warn-on-use: no 'static inline'
25506         * build-aux/snippet/warn-on-use.h:
25507         Remove unnecessary 'inline' in comment.
25509         rbtree-list, rbtreehash-list: no 'static inline'
25510         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
25511         * lib/gl_anytree_list2.h (node_at):
25512         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
25513         (gl_oset_first, add_nodes_to_buckets):
25514         Now static, not static inline.
25516         regex: no 'static inline'
25517         * lib/regex_internal.c (calc_state_hash):
25518         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
25519         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
25520         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
25521         Now static, not static inline.
25522         (inline) [__GNUC__ < 3 && _LIBC]:
25523         Remove macro; no longer needed.
25525         xvasprintf: no 'static inline'
25526         * lib/xvasprintf.c (xstrcat):
25527         Now static, not static inline.
25528         * m4/xvasprintf.m4 (gl_XVASPRINTF):
25529         Do not require AC_C_INLINE.
25531         parse-datetime, parse-duration: no 'static inline'
25532         * lib/parse-datetime.y (to_uchar):
25533         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
25534         (scale_n_add):
25535         Now static, not static inline.
25536         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
25537         * modules/parse-duration (configure.ac):
25538         Do not require AC_C_INLINE.
25540         getaddrinfo: no 'static inline'
25541         * lib/getaddrinfo.c (validate_family):
25542         Now static, not static inline.
25543         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
25544         Do not require AC_C_INLINE.
25546         ftruncate, fts, lstat, openat, raise: no 'static inline'
25547         * lib/ftruncate.c (chsize_nothrow):
25548         * lib/fts.c (opendirat, diropen):
25549         * lib/lstat.c (orig_lstat):
25550         * lib/openat.c (orig_openat):
25551         * lib/raise.c (raise_nothrow):
25552         Now static, not static inline.
25553         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
25554         * m4/fts.m4 (gl_FUNC_FTS_CORE):
25555         * m4/lstat.m4 (gl_PREREQ_LSTAT):
25556         * m4/openat.m4 (gl_PREREQ_OPENAT):
25557         * m4/raise.m4 (gl_PREREQ_RAISE):
25558         Do not require AC_C_INLINE.
25560         fflush, stat: no 'static inline'
25561         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
25562         (clear_ungetc_buffer, disable_seek_optimization)
25563         (restore_seek_optimization, update_fpos_cache):
25564         * lib/stat.c (orig_stat):
25565         Now static, not static inline.
25566         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
25567         (update_fpos_cache):
25568         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
25569         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
25570         * m4/stat.m4 (gl_PREREQ_STAT):
25571         Do not require AC_C_INLINE.
25573         error, filevercmp: no 'static inline'
25574         * lib/error.c (is_open, flush_stdout):
25575         * lib/filevercmp.c (order):
25576         Now static, not static inline.
25577         * m4/error.m4 (gl_PREREQ_ERROR):
25578         * modules/filevercmp (configure.ac):
25579         Do not require AC_C_INLINE.
25581         dup, execute, fatal-signal, etc.: no 'static inline'
25582         * lib/dup.c (dup_nothrow):
25583         * lib/execute.c (nonintr_close, nonintr_open):
25584         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
25585         * lib/fopen.c (orig_fopen):
25586         * lib/freadseek.c (freadptrinc):
25587         * lib/freopen.c (orig_freopen):
25588         * lib/fstat.c (orig_fstat, fstat_nothrow):
25589         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
25590         (get_rusage_as_via_iterator):
25591         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
25592         * lib/getdtablesize.c (_setmaxstdio_nothrow):
25593         * lib/isatty.c (_isatty_nothrow):
25594         * lib/open.c (orig_open):
25595         * lib/read.c (read_nothrow):
25596         * lib/sigprocmask.c (signal_nothrow):
25597         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
25598         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
25599         * lib/wait-process.c (unregister_slave_subprocess):
25600         * lib/write.c (write_nothrow):
25601         Now static, not static inline.
25602         * lib/spawn-pipe.c (nonintr_open): Define only if
25603         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
25604         * m4/dup.m4 (gl_PREREQ_DUP):
25605         * m4/execute.m4 (gl_EXECUTE):
25606         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
25607         * m4/fopen.m4 (gl_PREREQ_FOPEN):
25608         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
25609         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
25610         * m4/fstat.m4 (gl_PREREQ_FSTAT):
25611         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
25612         * m4/isatty.m4 (gl_PREREQ_ISATTY):
25613         * m4/open.m4 (gl_PREREQ_OPEN):
25614         * m4/read.m4 (gl_PREREQ_READ):
25615         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
25616         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
25617         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
25618         * m4/wait-process.m4 (gl_WAIT_PROCESS):
25619         * m4/write.m4 (gl_PREREQ_WRITE):
25620         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
25621         Do not require AC_C_INLINE.
25623         c-strtod, memcoll, readutmp: no 'static inline'
25624         * lib/c-strtod.c (c_locale):
25625         * lib/memcoll.c (strcoll_loop):
25626         * lib/readutmp.c (desirable_utmp_entry):
25627         Now static, not static inline.
25628         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
25629         * m4/memcoll.m4 (gl_MEMCOLL):
25630         * m4/readutmp.m4 (gl_READUTMP):
25631         Do not require AC_C_INLINE.
25633         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
25634         * lib/arctwo.c (to_uchar):
25635         * lib/md4.c (set_uint32):
25636         * lib/md5.c (set_uint32):
25637         * lib/sha1.c (set_uint32):
25638         * lib/sha256.c (set_uint32):
25639         * lib/sha512.c (set_uint64):
25640         Now static, not static inline.  This is a bit simpler, and doesn't
25641         affect performance with GCC and default optimization.
25642         * m4/arctwo.m4 (gl_ARCTWO):
25643         * m4/md4.m4 (gl_MD4):
25644         * m4/md5.m4 (gl_MD5):
25645         * m4/sha1.m4 (gl_SHA1):
25646         * m4/sha256.m4 (gl_SHA256):
25647         * m4/sha512.m4 (gl_SHA512):
25648         Do not require AC_C_INLINE.
25650         cond, lock, thread: better 'inline'
25651         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
25652         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
25653         New macros.  Use them instead of static inline, for header functions.
25654         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
25655         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
25656         * lib/glthread/lock.c (gl_waitqueue_init)
25657         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
25658         * lib/glthread/thread.c (get_current_thread_handle):
25659         Change 'static inline' to 'inline'.
25660         * lib/glthread/cond.h, lib/glthread/thread.h:
25661         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25662         * m4/cond.m4 (gl_COND):
25663         * m4/lock.m4 (gl_PREREQ_LOCK):
25664         * m4/thread.m4 (gl_THREAD):
25665         Do not require AC_C_INLINE.
25666         * modules/cond, modules/thread (Depends-on): Add extern-inline.
25668         chdir-long, cycle-check, savewd: better 'inline'
25669         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
25670         (find_non_slash):
25671         * lib/cycle-check.c (is_zero_or_power_of_two):
25672         * lib/savewd.c (savewd_delegating):
25673         Change 'static inline' to 'inline'.
25674         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
25675         Replace all remaining uses of 'static inline' with it.
25676         * lib/savewd.h:
25677         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25678         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
25679         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
25680         * m4/savewd.m4 (gl_SAVEWD):
25681         Do not require AC_C_INLINE.
25682         * modules/savewd (Depends-on): Add extern-inline.
25684         base32, base64: no need for 'inline'
25685         * lib/base32.c (to_uchar, get_8, decode_8):
25686         * lib/base64.c (to_uchar, get_4, decode_4):
25687         Change 'static inline' to 'inline'.
25688         * m4/base32.m4 (gl_PREREQ_BASE32):
25689         * m4/base64.m4 (gl_PREREQ_BASE64):
25690         Do not require AC_C_INLINE.
25692         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
25693         * lib/gl_array_oset.c (gl_array_nx_add_at):
25694         (gl_array_remove_at):
25695         * lib/gl_linkedhash_list.c (hash_resize_after_add)
25696         (add_to_bucket, remove_from_bucket):
25697         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
25698         Change 'static inline' to 'static', as it's simpler to omit
25699         'inline' unless there's a significant performance advantage.
25701         list, oset, xlist, xoset, xsublist: simplify via extern inline
25702         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
25703         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
25704         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
25705         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
25706         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
25707         New macro.  Replace all uses of 'static inline' with it.
25708         [HAVE_INLINE]: Implement functions as *_INLINE functions,
25709         instead of as macros FOO that are defined to static inline
25710         functions FOO_inline.
25711         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
25712         * lib/gl_xsublist.c:
25713         Reimplement from scratch, by defining the corresponding *_INLINE
25714         macro and including the corresponding .h file.  This is simpler.
25715         * modules/list, modules/oset, modules/xlist, modules/xoset:
25716         (Files): Remove m4/gl_list.m4.
25717         (configure.ac): Remove gl_LIST.
25718         * m4/gl_list.m4: Remove.
25719         * modules/list, modules/oset, modules/xlist, modules/xoset:
25720         * modules/xsublist:
25721         (Depends-on): Depend on extern-inline, not inline.
25723         xalloc: better 'inline'
25724         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
25725         New macro.  Replace all uses of 'static inline' with it.
25726         (static_inline): Remove.
25727         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
25728         Let 'extern inline' do the work automatically, instead of doing
25729         it by hand.
25730         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
25731         Remove.  All uses removed.
25732         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
25734         gethrxtime: better 'inline'
25735         * lib/xtime.c: New file.
25736         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
25737         * lib/xtime.h (XTIME_INCLUDE):
25738         New macros.  Replace all uses of 'static inline' with them.
25739         * lib/gethrxtime.c (gethrxtime): Define only if
25740         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
25741         this source file is now always compiled, because of the extern inline.
25742         * lib/gethrxtime.h, lib/xtime.h:
25743         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25744         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
25745         if gethrtime works, as they're not needed in that case.
25746         (gl_XTIME): Do not require AC_C_INLINE.
25747         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
25748         compiled now.  Move the check into gl_GETHRXTIME.
25749         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
25750         (Depends-on): Add extern-inline.
25751         (configure.ac): gethrxtime is always compiled now.
25752         (lib_SOURCES): Add gethrxtime.c.
25754         wctype-h: better 'inline'
25755         * lib/wctype-h.c: New file.
25756         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
25757         New macro.  Replace all uses of 'static inline' with it.
25758         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25759         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
25760         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
25761         (Depends-on): Add extern-inline.
25763         unistd: better 'inline'
25764         * lib/unistd.c: New file.
25765         * lib/unistd.in.h (_GL_UNISTD_INLINE):
25766         New macro.  Replace all uses of 'static inline' with it.
25767         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25768         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
25769         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
25770         (Depends-on): Add extern-inline.
25772         sys_socket: better 'inline'
25773         * lib/sys_socket.c: New file.
25774         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
25775         New macro.  Replace all uses of 'static inline' with it.
25776         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25777         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
25778         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
25779         (Depends-on): Add extern-inline.
25781         stdio: better 'inline'
25782         * lib/stdio.c: New file.
25783         * lib/stdio.in.h (_GL_STDIO_INLINE):
25784         New macro.  Replace all uses of 'static inline' with it.
25785         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25786         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
25787         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
25788         (Depends-on): Add extern-inline.
25790         sigaction: better 'inline'
25791         * lib/sig-handler.c: New file.
25792         * lib/sig-handler.h (SIG_HANDLER_INLINE):
25793         New macro.  Replace all uses of 'static inline' with it.
25794         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25795         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
25796         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
25797         (Depends-on): Add extern-inline.
25799         selinux-h: better 'inline'
25800         * lib/se-context.c, lib/se-selinux.c: New files.
25801         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
25802         * lib/se-context.in.h (SE_CONTEXT_INLINE):
25803         New macro.  Replace all uses of 'static inline' with it.
25804         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25805         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
25806         New macro.  Replace all uses of 'static inline' with it.
25807         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25808         * modules/selinux-h (Files, lib_SOURCES):
25809         Add lib/se-context.c, lib/se-selinux.c.
25810         (Depends-on): Add extern-inline.
25811         (configure.ac): Do not require AC_C_INLINE.
25813         pthread: better 'inline'
25814         * lib/pthread.c: New file.
25815         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
25816         New macro.  Replace all uses of 'static inline' with it.
25817         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25818         * m4/pthread.m4 (gl_PTHREAD_CHECK):
25819         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
25820         * modules/pthread (Files): Add lib/pthread.c.
25821         (Depends-on): Add extern-inline.
25823         math: better 'inline'
25824         * lib/math.c: New file.
25825         * lib/math.in.h (_GL_MATH_INLINE):
25826         New macro.  Replace all uses of 'static inline' with it.
25827         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25828         * m4/math_h.m4 (gl_MATH_H):
25829         Do not require AC_C_INLINE.
25830         * modules/math (Files, lib_SOURCES):
25831         Add lib/math.c.
25832         (Depends-on): Add extern-inline.
25834         count-one-bits: better 'inline'
25835         * lib/count-one-bits.c: New file.
25836         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
25837         New macro.  Replace all uses of 'static inline' with it.
25838         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25839         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
25840         Do not require AC_C_INLINE.
25841         * modules/count-one-bits (Files, lib_SOURCES):
25842         Add lib/count-one-bits.c.
25843         (Depends-on): Add extern-inline.
25845         count-leading-zeros: better 'inline'
25846         * lib/count-leading-zeros.c: New file.
25847         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
25848         New macro.  Replace all uses of 'static inline' with it.
25849         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25850         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
25851         Do not require AC_C_INLINE.
25852         * modules/count-leading-zeros (Files, lib_SOURCES):
25853         Add lib/count-leading-zeros.c.
25854         (Depends-on): Add extern-inline.
25856         bitrotate: better 'inline'
25857         * lib/bitrotate.c: New file.
25858         * lib/bitrotate.h (BITROTATE_INLINE):
25859         New macros.
25860         Replace all uses of 'static inline' with them.
25861         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25862         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
25863         (Depends-on): Add extern-inline.
25864         (configure.ac): Do not require AC_C_INLINE.
25866 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
25868         maint.mk: avoid gratuitous failure
25869         Reported by Stefano Lattarini in
25870         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
25871         * top/maint.mk (public-submodule-commit): Quote more safely.
25873 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
25875         canonicalize, canonicalize-lgpl: support MS-Windows file names
25876         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
25877         for test cases, which it'd be nice to add at some point.
25878         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
25879         * lib/canonicalize.c (canonicalize_filename_mode):
25880         * lib/canonicalize-lgpl.c (__realpath):
25881         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
25882         slash is at the beginning of the file name.  Use ISSLASH, instead
25883         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
25884         the first character with '/'.  Test for
25885         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
25886         with a drive letter.
25887         * lib/canonicalize.c (SLASHES): New macro.
25888         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
25890 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
25892         fts: introduce FTS_VERBATIM
25893         * lib/fts_.h (FTS_VERBATIM): New bit flag.
25894         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
25895         * lib/fts.c (fts_open): Honor it.
25897 2012-11-09  Pádraig Brady  <P@draigBrady.com>
25899         getlogin-tests: allow errno == ENXIO
25900         * tests/test-getlogin.c (main): Skip tests if getlogin fails
25901         with errno == ENXIO (No controlling tty).
25902         getlogin_r-tests: Likewise. Also allow errno == ENOENT
25903         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
25904         with errno == ENOENT.  This was reported to happen in various
25905         situations on GNU/Linux.
25907 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
25909         getlogin-tests: allow errno == ENOENT
25910         * tests/test-getlogin.c (main): Skip tests if getlogin fails
25911         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
25912         when running a test in an Emacs shell buffer.
25914 2012-11-08  Jim Meyering  <jim@meyering.net>
25916         tests/nap.h: avoid warning about unused variable
25917         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
25919         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
25920         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
25921         white space before each of the special-cased file names, to avoid
25922         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
25923         in http://bugs.gnu.org/12830.
25925 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
25927         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
25928         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
25929         fails with errno == EBADF when fd is opened with O_PATH.
25930         Reported by Jim Meyering in
25931         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
25932         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
25933         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
25935 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
25937         test-utimens: speed up by taking shorter naps
25938         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
25939         New functions.
25940         (nap): Use them, to do a better job of guessing the delay.
25941         On Fedora 17 with ext4 atop md atop hard disks, this made
25942         test-utimens run 10x faster, because the test napped for
25943         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
25944         <http://bugs.gnu.org/12820#11>.
25946 2012-11-07  Jim Meyering  <jim@meyering.net>
25948         mountlist.c: fix a compilation failure
25949         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
25950         I introduced while transforming commit v0.0-7683-g613bcb6
25952 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
25954         errno: port to LynxOS 178 2.2.2
25955         Problem reported by Joel Brobecker in
25956         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
25957         * doc/posix-headers/errno.texi (errno.h): Document this.
25958         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
25959         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
25960         Supply a string for EILSEQ.
25961         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
25963 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
25965         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
25966         Linux kernel 2.6.39 introduced O_PATH (see
25967         <http://lwn.net/Articles/433854/>) and this is a better fallback
25968         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
25969         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
25970         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
25971         * lib/fcntl.in.h (O_ACCMODE):
25972         * tests/test-fcntl-h.c (main):
25973         Do not reject O_ACCMODE merely because it has more than the
25974         minimal number of bits, as POSIX allows extensions here.
25976 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
25978         mountlist: do not classify a bind-mounted dir entry as "dummy"
25979         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
25980         the "none"-testing clause.
25981         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
25982         exception for bind-mounted directories.
25984 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
25986         quote: provide a means to escape strings with nul characters
25987         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
25988         (quote, quote_n): Rename formal arguments for consistency with
25989         quotearg.
25991 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
25993         test-raise: don't assume 199 is an invalid signal
25994         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
25996         sh-quote-tests: port to Solaris 9
25997         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
25998         Problem reported by Dagobert Michelsen in
25999         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
26001 2012-10-28  Jim Meyering  <jim@meyering.net>
26003         maint.mk: rename a new configurable variable
26004         * top/maint.mk (_gl_translatable_string_re): Rename from
26005         translation-markers: _gl_ prefix to insulate from user Makefile code,
26006         and the _re suffix to inform that it's a regular expression.
26008 2012-10-26  Eric Blake  <eblake@redhat.com>
26010         maint.mk: let packages tweak sc_po_check pattern
26011         * top/maint.mk (sc_po_check): Add translation-markers, to allow
26012         finding files with other translation markers.
26014 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26016         euidaccess: speed up 'configure' on GNU hosts
26017         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
26018         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
26019         it's needed only in this case.  Use AC_CHECK_DECLS, not
26020         AC_CHECK_DECLS_ONCE.
26021         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
26022         or AC_REQUIRE for AC_FUNC_GETGROUPS.
26024         * lib/regexec.c (re_search_internal): Fix grammar in comment.
26026 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
26028         fchmodat, fchownat, fstatat: port to non-inlining compilers
26029         Problem reported for FreeBSD 9 by Jim Meyering in
26030         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
26031         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
26032         New files, which define FCHMODAT_INLINE etc.
26033         * lib/fchmodat.c (FCHMODAT_INLINE):
26034         * lib/fchownat.c (FCHOWNAT_INLINE):
26035         * lib/fstatat.c (FSTATAT_INLINE):
26036         Remove, as chmodat.c etc. now do this.
26037         * modules/fchmodat (Files): Add lib/chmodat.c.
26038         * modules/fchownat (Files): Add lib/chownat.c.
26039         * modules/fstatat (Files): Add lib/statat.c.
26041 2012-10-15  Jim Meyering  <jim@meyering.net>
26043         fchmodat.c, fchownat.c: compile-impeding typos
26044         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
26045         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
26046         Introduced in commit v0.0-7636-gd202279.
26048 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
26050         fcntl-h: support GNU flags like O_IGNORE_CTTY
26051         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
26052         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
26053         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
26054         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
26055         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
26056         Define to 0 if not already defined.
26057         * tests/test-fcntl-h.c: Test these new flags.
26059 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
26061         faccessat, etc.: support AT_FDCWD-only use
26062         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
26063         this function only if its first argument is AT_FDCWD.
26064         Emacs wants faccessat for AT_EACCESS but not for any first-arg
26065         values other than AT_FDCWD, so it doesn't want all the openat
26066         machinery with fchdir etc.
26067         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
26068         * modules/fstatat, modules/mkdirat, modules/openat (Files):
26069         * modules/unlinkat (Files):
26070         Remove lib/openat-priv.h, as at-internal supplies this file.
26071         Removing this file here allows us to support programs like Emacs
26072         that avoid at-internal.
26074         faccessat: speed up 'configure' on mainstream hosts
26075         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
26076         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
26077         since it's only on unusual platforms that we need to check for
26078         'access', and it's better not to slow 'configure' down on all
26079         platforms.
26081         faccessat: port to Solaris 10
26082         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
26083         Needed on Solaris 10, which doesn't have AT_EACCESS,
26084         so we need the Gnulib fcntl.h, which defines it.
26086 2012-10-14  Pádraig Brady  <P@draigBrady.com>
26087         canonicalize: fix C89 compilation
26088         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
26089         declarations so C89 is supported.  Also remove the comment
26090         referencing memorty allocation as the suggested feature could
26091         not be implemented as suggested.
26092         Reported by Michael Goffioul.
26094 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
26096         group-member: omit unnecessary dependencies
26097         This is for Emacs, which has its own allocator and where we
26098         don't want to use xalloc.
26099         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
26100         since we no longer use xmalloc.  Do not include stdbool.h, since
26101         the changes below happen to remove the only use of bool.
26102         (GROUPBUF_SIZE): New constant.
26103         (struct group_info): Remove n_groups member.  Add groupbuf member.
26104         This lets us get the groups without using malloc, usually.
26105         (free_group_info, get_group_info): Adjust to this.
26106         (get_group_info): Return the number of groups found, or -1 on error.
26107         Use plain malloc not xmalloc, and treat its failure as if there
26108         are no groups, as the user already loses in case of error.
26109         (group_member): Simplify, based on changes to get_group_info.
26110         * modules/group-member (Depends-on): Remove dependencies on
26111         xalloc and stdbool.  Add dependency on xalloc-oversized.
26113 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
26115         gethrxtime: port to C++
26116         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
26118 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
26120         ptsname: fix macro-name typo
26121         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
26123 2012-10-03  Simon Josefsson  <simon@josefsson.org>
26125         inttostr: Relax license.
26126         * modules/inttostr (License): Change from LGPL to LGPLv2+.
26128 2012-10-03  Eric Blake  <eblake@redhat.com>
26130         ptsname_r: support ptys returned by FreeBSD posix_openpt
26131         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
26132         lives in /dev/pts/.
26134 2012-10-02  Eric Blake  <eblake@redhat.com>
26136         pselect: reject invalid file descriptors
26137         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
26138         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
26139         * modules/pselect (Depends-on): Add dup2.
26140         * doc/posix-functions/pselect.texi (pselect): Document this.
26142         select: reject invalid file descriptors
26143         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
26144         * lib/select.c (rpl_select) [!win32]: Work around it.
26145         * modules/select (Depends-on): Add dup2.
26146         * doc/posix-functions/select.texi (select): Document this.
26148         select: enhance test
26149         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
26150         New functions.
26151         (test_function): Enhance test.
26152         (do_select_bad_fd): Avoid any stale errno values.
26154         ptsname: reject invalid file descriptors
26155         http://www.austingroupbugs.net/view.php?id=503
26156         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
26157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
26158         * modules/stdlib (Makefile.am): Replace witness.
26159         * lib/stdlib.in.h (ptsname): Allow for replacement.
26160         * modules/ptsname (configure.ac): Trigger replacement.
26161         * doc/posix-functions/ptsname.texi (ptsname): Document this.
26163 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
26165         hash-pjw-bare: new module
26166         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
26167         * lib/hash-pjw-bare.h: Likewise.
26168         * modules/hash-pjw-bare: New file.
26169         * MODULES.html.sh (Misc): Add it.
26171 2012-10-02  Eric Blake  <eblake@redhat.com>
26173         manywarnings: cater to more gcc infelicities
26174         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
26175         -Wuninitialized without -O.
26177 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
26179         select, poll tests: Make setsockopt invocation effective.
26180         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
26181         the bind() call.
26182         * tests/test-select.h (open_server_socket): Likewise.
26184 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
26186         sockets, sys_stat: restore AC_C_INLINE
26187         This undoes the 2012-09-22 patch.
26188         * m4/sockets.m4 (gl_SOCKETS):
26189         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
26190         Restore AC_C_INLINE, since MSVC requires __inline or _inline
26191         and does not support plain 'inline'.  Reported by Bruno Haible in
26192         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
26194 2012-09-30  Bruno Haible  <bruno@clisp.org>
26196         localeconv tests: Avoid test failure on OpenIndiana.
26197         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
26198         skip the 'grouping' and 'mon_grouping' tests.
26199         Reported by Jim Meyering.
26201 2012-09-30  Bruno Haible  <bruno@clisp.org>
26203         havelib: Follow libtool developments.
26204         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
26205         Suggested by Simon Josefsson.
26207 2012-09-29  Jim Meyering  <meyering@redhat.com>
26209         fstatat.c: fix a compile-impeding typo
26210         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
26211         Introduced in commit v0.0-7636-gd202279.
26212         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
26214 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
26216         extern-inline: provide a -Wundef safe config.h
26217         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
26218         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
26219         to produce a -Wundef warning free config.h.
26221 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
26223         hash-pjw: relax license to LGPLv2+
26224         * modules/hash-pjw (License): Relax, with consent of author.
26226 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
26228         maint.mk: fix strict vs. lazy variable issues with RELEASE
26229         * top/maint.mk (_equal): New function.
26230         (member_check): Strip the result to avoid spurious spaces.
26231         (url_dir_list): Do not use ifeq, which is strict, as it will
26232         require RELEASE_TYPE to be defined.
26233         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
26234         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
26235         (announcement_Cc_alpha,announcement_mail_headers_alpha)
26236         (announcement_Cc_beta,announcement_mail_headers_beta)
26237         (announcement_Cc_stable,announcement_mail_headers_stable): these.
26238         (release): Do not depend on $(release-type), as it forces its
26239         evaluation.  Bounce to it.
26241 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
26243         maint.mk: formatting changes
26244         * top/maint.mk: Indent bodies of if's.
26246 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
26248         maint.mk: factor the validation of RELEASE_TYPE
26249         With help from Jim Meyering.
26250         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
26251         * top/maint.mk (_empty, _sp): Move their definition earlier.
26252         (member-check, release-type): New.
26253         Use the latter instead of $(RELEASE_TYPE).
26254         Remove now useless local checks.
26256 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
26258         maint.mk: provide "make upload" to ease uploading
26259         See
26260         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
26261         Do not depend simply on the current $(VERSION), as there may have been
26262         new commits since the tarball generation.  Rather, rely on $(RELEASE),
26263         as "make release-commit" already does.
26265         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
26266         "make TYPE".
26268         * top/maint.mk (upload_command, upload, release): New.
26269         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
26270         (VERSION): first word of $(RELEASE) is always right.
26271         (emit_upload_commands): Adjust.
26272         * top/README-release: Update.
26274 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
26276         maint.mk: silent rules
26277         With help from Stefano Lattarini.
26278         * top/maint.mk (writable-files): Use $(AM_V_GEN).
26279         (announcement): Use $(AM_V_at).
26281 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
26283         localename: port gl_locale_name_thread_unsafe to FreeBSD
26284         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
26285         and use the simpler FreeBSD implementation on Mac OS X as well.
26286         Original idea suggested by Ed Maste in
26287         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
26289 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26291         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
26292         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
26293         * lib/mbuiter.c, lib/xsize.c: New files.
26294         * lib/binary-io.h (BINARY_IO_INLINE):
26295         * lib/eealloc.h (EEALLOC_INLINE):
26296         * lib/mbfile.h (MBFILE_INLINE):
26297         * lib/mbiter.h (MBITER_INLINE):
26298         * lib/mbuiter.h (MBUITER_INLINE):
26299         * lib/xsize.h (XSIZE_INLINE):
26300         New macros.
26301         Replace all uses of 'static inline' with them.
26302         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26303         * m4/eealloc.m4 (gl_EEALLOC):
26304         * m4/mbfile.m4 (gl_MBFILE):
26305         * m4/mbiter.m4 (gl_MBITER):
26306         * m4/xsize.m4 (gl_XSIZE):
26307         Do not require AC_C_INLINE.
26308         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
26309         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
26310         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
26311         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
26312         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
26313         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
26314         * modules/binary-io, modules/eealloc, modules/mbfile:
26315         * modules/mbiter, modules/mbuiter:
26316         (Depends-on): Add extern-inline.
26318         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
26319         * lib/pipe-filter-aux.c: New file.
26320         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
26321         Replace all uses of 'static inline' with it.
26322         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26323         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
26324         (filter_retcode): No real need for inline here.
26325         * modules/pipe-filter-gi, modules/pipe-filter-ii:
26326         (Files): Add lib/pipe-filter-aux.c.
26327         (Depends-on): Add extern-inline.
26328         (configure.ac): Do not require AC_C_INLINE.
26329         (lib_SOURCES): Add pipe-filter-aux.c.
26331         fdutimensat: omit unnecessary AC_C_INLINE
26332         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
26334         fchmodat, fchownat, fstatat: use extern-inline
26335         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
26336         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
26337         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
26338         New macros.
26339         * lib/openat.h:
26340         Replace all uses of 'static inline' with them.
26341         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26342         * modules/fchmodat, modules/fchownat, modules/fstatat:
26343         * modules/openat-h:
26344         (Depends-on):
26345         Add extern-inline.
26346         (configure.ac): Remove AC_C_INLINE.
26348         acl, mbchar, priv-set: use extern-inline
26349         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
26350         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
26351         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
26352         New macros.
26353         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
26354         Replace all uses of 'static inline' with it.
26355         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26356         * m4/acl.m4 (gl_FUNC_ACL):
26357         * m4/mbchar.m4 (gl_MBCHAR):
26358         * m4/priv-set.m4 (gl_PRIV_SET):
26359         Remove AC_C_INLINE, since 'inline' is no longer used directly.
26360         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
26361         Add extern-inline.
26363         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
26364         * m4/sockets.m4 (gl_SOCKETS):
26365         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
26366         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
26367         environments where it's already guaranteed to work, so we needn't
26368         check for it at 'configure'-time.
26370         tls-tests: omit unnecessary 'inline'
26371         * tests/test-tls.c (perhaps_yield): No longer inline.
26372         Simplicity and portability trump efficiency in test cases.
26374         utimens-tests: avoid unnecessary 'inline'
26375         * modules/fdutimensat-tests (configure.ac):
26376         * modules/futimens-tests (configure.ac):
26377         * modules/utimens-tests (configure.ac):
26378         * modules/utimensat-tests (configure.ac):
26379         Remove AC_C_INLINE.
26380         * tests/test-utimens-common.h (ctime_compare):
26381         No longer inline.  Simplicity and portability trump efficiency here.
26383         misc: don't limit commentary to inline functions
26384         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
26385         * lib/xalloc-oversized.h, lib/xsize.h:
26386         Contrast macros to functions in general, not just to inline functions,
26387         when the commentary does not apply only to inline functions.
26389 2012-09-20  Jim Meyering  <meyering@redhat.com>
26391         non-recursive-gnulib-prefix-hack: new module
26392         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
26393         the file that originated in Bison.
26394         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
26395         largely copied from a snippet that resided in bison's configure.ac.
26396         * modules/non-recursive-gnulib-prefix-hack: New file.
26397         * MODULES.html.sh (Support for maintaining and releasing projects):
26398         Add it.
26400 2012-09-18  Jim Meyering  <meyering@redhat.com>
26402         maint.mk: generalize _gl_tight_scope for non-recursive make
26403         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
26404         that *.h would describe additional .h files in the directory
26405         specified by $(_gl_TS_dir).  I.e., add this...
26406         (_gl_TS_other_headers): New variable.
26408         maint.mk: exempt trailing blanks found in "binary" files
26409         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
26410         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
26411         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
26413 2012-09-17  Jim Meyering  <meyering@redhat.com>
26415         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
26416         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
26417         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
26418         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
26420 2012-09-17  Jim Meyering  <meyering@redhat.com>
26422         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
26423         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
26424         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
26425         It is not in the same category as "exit (0)" or "exit (1)", and
26426         besides, I know of no symbolic name for that 77.  Reported by
26427         Richard W.M. Jones in
26428         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
26430 2012-09-17  Jim Meyering  <meyering@redhat.com>
26432         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
26433         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
26434         all uses of #define, not just those that start in column 1.
26435         Richard W.M. Jones reported a false positive in
26436         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
26438 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
26440         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
26441         * lib/localcharset.c (locale_charset) [DARWIN7]:
26442         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
26443         as these two values are incompatible.  Problem reported by Max Horn.
26444         For more discussion, please see
26445         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
26447         doc: document sticky-EOF issue
26448         * doc/posix-functions/fgetc.texi (fgetc):
26449         * doc/posix-functions/fgets.texi (fgets):
26450         * doc/posix-functions/fread.texi (fread):
26451         * doc/posix-functions/fscanf.texi (fscanf):
26452         * doc/posix-functions/getc.texi (getc):
26453         * doc/posix-functions/getchar.texi (getchar):
26454         * doc/posix-functions/scanf.texi (scanf):
26455         Mention that glibc and default Solaris do not conform to
26456         C99 and POSIX-2001 or later, with respect to how getchar
26457         etc. behave when feof reports nonzero.
26459 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
26461         poll: fix poll(0, NULL, msec)
26462         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
26463         but nfd is 0.  In that case poll should behave like select.
26465 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
26466             Paolo Bonzini  <bonzini@gnu.org>
26468         poll: fix for systems that can't recv() on a non-socket
26469         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
26470         is readable.  In this case POLLHUP will not be supported.
26471         * doc/posix-functions/poll.texi: Document this.
26473 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
26475         poll/select: document portability problems not fixed by Gnulib.
26476         * doc/posix-functions/poll.texi: poll does not work well on
26477         pipes under Windows.  It has the same limitations as select on
26478         BeOS.
26479         * doc/posix-functions/select.texi: select does not work well
26480         on pipes under Windows.
26482 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
26484         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
26485         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
26486         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
26487         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
26489 2012-09-06  Eric Blake  <eblake@redhat.com>
26491         net_if: give more details about the bug being fixed
26492         * doc/posix-headers/net_if.texi: Add clarification.
26494 2012-09-05  Eric Blake  <eblake@redhat.com>
26496         net_if: new module
26497         * modules/net_if: New module, borrowing ideas from netinet_in.
26498         * m4/net_if_h.m4: New file.
26499         * lib/net_if.in.h: Likewise.
26500         * doc/posix-headers/net_if.texi (net/if.h): Document it.
26501         * MODULES.html.sh (lacking POSIX:2008): Likewise.
26502         * tests/test-net_if.c: Make function checks conditional.
26503         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
26505 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
26507         readutmp: fix non-portable UT_PID use
26508         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
26509         Use `UT_PID (u) > 0' as absolute condition.
26511 2012-09-04  Jim Meyering  <meyering@redhat.com>
26513         fts: reduce two or more trailing spaces to just one, usually
26514         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
26515         or more slashes, trim all but the final one.  But if a name consists
26516         solely of two slashes, don't modify it.  If it consists solely of
26517         three or more slashes, strip all but one.
26519         This is part of the solution to a minor problem with rm:
26520         it would print a bogus ELOOP diagnostic when failing to remove
26521         the slash-decorated name of a symlink-to-directory:
26523             $ mkdir d && ln -s d s && env rm -r s/
26524             rm: cannot remove 's': Too many levels of symbolic links
26526         With the change below and a trivial don't-trim-trailing-slashes
26527         adjustment to remove.c, it does this:
26529             $ env rm -r s/
26530             rm: cannot remove 's/': Not a directory
26532         Improved by: Eric Blake
26534         fts: when there is no risk of overlap, use memcpy, not memmove
26535         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
26537 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
26539         stdbool: be more compatible with mixed C/C++ compiles
26540         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
26541         Define to bool, true, false, respectively, as GCC's builtin
26542         stdbool.h does.  Problem reported by Michael Goffioul in
26543         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
26545 2012-08-28  Jim Meyering  <meyering@redhat.com>
26547         revert last change: it was not needed
26548         * tests/test-vc-list-files-git.sh: There's already a test for
26549         a working git, just below.
26551 2012-08-28  Jim Meyering  <meyering@redhat.com>
26553         tests: test-vc-list-files-git.sh: skip if git is not available
26554         * tests/test-vc-list-files-git.sh: Skip this test when git is
26555         not available.
26557 2012-08-26  Bruno Haible  <bruno@clisp.org>
26559         gnulib-tool: Remove no-op option --no-changelog.
26560         * gnulib-tool (func_usage): Don't mention --no-changelog.
26561         (do_changelog): Remove variable.
26562         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
26564 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26566         doc: remove fdl-1.2.texi
26567         It is no longer used or maintained, and its use of @acronym
26568         is problematic.  See the thread containing
26569         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
26570         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
26571         * doc/old-licenses/fdl-1.2.texi: Remove.
26573         execinfo: port to FreeBSD
26574         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
26575         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
26576         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
26577         * modules/execinfo (Link): Add $(LIB_EXECINFO).
26579 2012-08-23  Jim Meyering  <meyering@redhat.com>
26581         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
26582         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
26583         to placate gcc's -Wold-style-declaration.
26585 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26587         doc: do not use @acronym
26588         * doc/inet_ntoa.texi (inet_ntoa):
26589         * doc/parse-datetime.texi (Seconds since the Epoch)
26590         (Specifying time zone rules):
26591         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
26592         Don't use @acronym.  Problem reported by John Darlington in
26593         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
26595 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26597         stdnoreturn: port to newer GCCs
26598         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
26599         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
26600         Problem reported by Jim Meyering in
26601         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
26602         Also, rename the 'test' function to a void a clash with the
26603         already-supplied 'main' function; this fixes a bug that incorrectly
26604         rejected GCC 4.7.1's <stdnoreturn.h>.
26605         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
26606         Document GCC problem.
26608 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
26610         pipe-filter: fix comment typo
26611         * lib/pipe-filter.h: Mention correct function.
26613 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
26615         execinfo: new module
26616         This is for Emacs.  Currently, it provides a no-effect stub
26617         on all platforms where it does not already work.
26618         It already works on glibc-based systems, and on Solaris 11.
26619         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
26620         New files.
26621         * doc/glibc-headers/execinfo.texi (execinfo.h):
26622         * MODULES.html.sh (Misc): Document it.
26624 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
26626         extern-inline: support old GCC 'inline'
26627         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
26628         if available.  This applies to GCC versions 2.7 through 4.2, or
26629         when newer GCC is using -fgnu89-inline.  The goal is to address
26630         some of the performance issues mentioned by Bruno Haible in
26631         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
26633 2012-08-20  Eric Blake  <eblake@redhat.com>
26635         maint.mk: avoid redundant file name in message
26636         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
26637         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
26638         (sc_makefile_path_separator_check): Remove bogus $(ME).
26640 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
26642         timer-time: fix link order when static linking on glibc
26643         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
26644         _after_ -lrt so that it's significant.
26646 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
26648         timespec: omit unnecessary AC_C_INLINE
26649         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
26651         stat-time: omit unnecessary AC_C_INLINE
26652         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
26653         Do not require AC_C_INLINE.
26655         ignore-value: omit unnecessary AC_C_INLINE
26656         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
26658         sys_select: avoid 'static inline'
26659         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
26661         mktime: avoid 'static inline'
26662         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
26663         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
26665 2012-08-19  Bruno Haible  <bruno@clisp.org>
26667         gnulib-tool: Improve coding style.
26668         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
26669         func_emit_lib_Makefile_am.
26670         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
26672 2012-08-19  Bruno Haible  <bruno@clisp.org>
26674         gnulib-tool: Fix indentation.
26675         * gnulib-tool (func_import): Fix indentation.
26677 2012-08-19  Bruno Haible  <bruno@clisp.org>
26679         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
26680         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
26681         on the list of removed files.
26683 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
26685         test-parse-datetime: avoid glibc leap-second glitch
26686         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
26687         with the 2012 rules.  Problem reported by Bruce Dubbs in
26688         <http://bugs.gnu.org/12206>.
26690 2012-08-14  Bruno Haible  <bruno@clisp.org>
26692         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
26693         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
26694         from argument.
26695         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
26697 2012-08-14  Eric Blake  <eblake@redhat.com>
26699         ldexp: relax license
26700         * modules/ldexp (License): Trivial relax, since the module only
26701         provides a permissively licensed m4 file.
26703 2012-08-13  Bruno Haible  <bruno@clisp.org>
26705         gnulib-tool: Fix persistence of --witness-c-macro option.
26706         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
26707         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
26709 2012-08-11  Eric Blake  <eblake@redhat.com>
26711         count-leading-zeros: use a lookup table on non-gcc compilers
26712         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
26713         alternate implementation, suggested by Jim Meyering.
26715 2012-08-10  Eric Blake  <eblake@redhat.com>
26717         count-leading-zeros: new module
26718         * modules/count-leading-zeros: New module.
26719         * m4/count-leading-zeros.m4: New file.
26720         * lib/count-leading-zeros.h: Likewise.
26721         * modules/count-leading-zeros-tests: New test.
26722         * tests/test-count-leading-zeros.c: New file.
26723         * MODULES.html.sh (Integer arithmetic functions): Document it.
26725 2012-08-07  Simon Josefsson  <simon@josefsson.org>
26726             Jim Meyering  <meyering@redhat.com>
26728         maintainer-makefile: Fix syntax error with dash.
26729         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
26730         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
26732 2012-08-05  Jim Meyering  <meyering@redhat.com>
26734         extern-inline: also ignore -Wmissing-declarations
26735         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
26736         required with gcc-4.8.0-to-be.
26738         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
26739         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
26740         for /error ?([^,]*)/.  This avoids false-positives for strings like
26741         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
26743 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
26745         gnumakefile: better interaction with Automake-NG
26746         * modules/gnumakefile [Makefile.am]: The makefiles generated by
26747         Automake-NG always contain a definition of VPATH, even in non-VPATH
26748         builds (its value being simply '.' in that case).  So, in the
26749         'clean-GNUmakefile' rule, to determine whether running under a
26750         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
26751         '$(VPATH)' expands to the empty string.
26753 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
26755         base64: Use extern C scope in header file, for C++.
26756         * lib/base64.h: Add C++ namespace protection.
26758 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
26760         stat-time, timespec, u64: support naive out-of-dir builds
26761         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
26762         Use '#include "foo.h"', not '#include <foo.h>', when including
26763         one's own interface.  This works better when configuring with
26764         out-of-directory builds, since packages need not add an
26765         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
26767 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
26769         utimens: use extern-inline
26770         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
26771         * lib/utimens.h: Add copyright notice, since this is now large enough
26772         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26773         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
26774         * modules/utimens (Depends-on): Add extern-inline.
26776         u64: use extern-inline
26777         * lib/u64.c: New file.
26778         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26779         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
26780         * modules/u64 (Files): Add lib/u64.c.
26781         (Depends-on): Add extern-inline.
26782         (configure.ac): No need to require AC_C_INLINE, since extern-inline
26783         does that now.
26784         (lib_SOURCES): Add u64.c.
26786         timespec: use extern-inline
26787         * lib/timespec.c: New file.
26788         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26789         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
26790         * modules/timespec (Files): Add lib/timespec.c.
26791         (Depends-on): Add extern-inline.
26792         (lib_SOURCES): Add timespec.c.
26794         stat-time: use extern-inline
26795         * lib/stat-time.c: New file.
26796         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26797         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
26798         * modules/stat-time (Files): Add lib/stat-time.c.
26799         (Depends-on): Add extern-inline.
26800         (lib_SOURCES): Add stat-time.c.
26802         extern-inline: new module
26803         * modules/extern-inline, m4/extern-inline.m4: New files.
26804         This is for better support of 'extern inline' a la ISO C99,
26805         with a portable alternative on compilers that do not support
26806         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
26807         of the Emacs executable, when compiled with debugging disabled,
26808         which is a typical way that Emacs is built while developing.
26810 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
26812         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
26813         * build-aux/do-release-commit-and-tag: Move variable definitions
26814         together.
26815         ($branch): Instead of defaulting to "master", default to the current
26816         branch (as gnu-web-doc-update does).
26817         (help): Display the current values of the option arguments.
26818         * top/maint.mk (release-commit): New.
26819         * top/README-release: Simplify the corresponding step.
26821 2012-07-30  Eric Blake  <eblake@redhat.com>
26823         passfd: fix comment on recvfd
26824         * lib/passfd.c (recvfd): Fix comment.
26825         Reported by Jann Horn <jannhorn@googlemail.com>.
26827 2012-07-30  Jim Meyering  <meyering@redhat.com>
26829         maint.mk: avoid a sub-shell
26830         * top/maint.mk (release-prep): Remove unneeded sub-shell.
26832 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
26834         maint.mk: use silent-rules support from Automake
26835         * top/maint.mk (news-check, vc-diff-check, announcement)
26836         (no-submodule-changes, alpha beta stable, release-prep)
26837         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
26839 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
26841         maint.mk: provide a web-manual-update target
26842         * top/maint.mk: here.
26843         * top/README-release: Use it to simplify the web manual update step.
26845 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
26847         README-release: shorten the circuit to post a news
26848         * top/README-release: Point directly to the news submission form.
26850 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
26852         gnu-web-doc-update: fix --help
26853         * build-aux/gnu-web-doc-update: The information "top level" was written
26854         twice.
26856 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
26858         maint.mk: absolute VPATH issue
26859         * top/maint.mk (release-prep): Help Git find .git/.
26860         From Jim Meyering.
26862 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
26864         gitlog-to-changelog: fix previous change
26865         * build-aux/gitlog-to-changelog: Fix condition.
26866         Add missing ";".
26868 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
26870         gitlog-to-changelog: don't expect .git to be in $srcdir
26871         Reported by Bruno Haible.
26872         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
26873         * build-aux/gitlog-to-changelog (&git_dir_option): New.
26874         Use it.
26876 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
26878         maint.mk: absolute VPATH build fix
26879         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
26880         $(srcdir) is not a parent of $(builddir).
26882 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
26884         clean-temp: Fix memory leak.
26885         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
26886         'files' members of tmpdir.
26888 2012-07-27  Jim Meyering  <meyering@redhat.com>
26890         maint.mk: new rule: refresh-gnulib-patches
26891         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
26892         Use this rule to refresh them.
26893         * top/maint.mk (refresh-gnulib-patches): New rule.
26895 2012-07-24  Bruno Haible  <bruno@clisp.org>
26897         gnulib-tool: Fix handling of inctests variable.
26898         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
26899         Reported by Nick Bowler <nbowler@elliptictech.com>.
26901 2012-07-22  Bruno Haible  <bruno@clisp.org>
26903         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
26904         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
26905         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
26906         Remove exemption for getpass.h.
26907         Suggested by Eric Blake.
26909 2012-07-20  Eric Blake  <eblake@redhat.com>
26911         verify: document conflict with -Wnested-externs
26912         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
26914         maint.mk: forbid exit(-1)
26915         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
26917 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
26919         fsusage: port back to Solaris
26920         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
26921         error (fsd not declared) on Solaris 10.  Reported privately by
26922         Andrew Borodin.
26924 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
26926         gnu-web-doc-update: fix error messages
26927         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
26929         gnu-web-doc-update: check the requirements.
26930         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
26931         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
26932         * build-aux/bootstrap (find_tool): Comment change.
26934 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
26936         maint.mk: minor simplication.
26937         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
26938         for default values.
26940 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
26942         gitlog-to-changelog: VPATH build issues
26943         If builddir is not a subdirectory of srcdir, running git from it will
26944         fail.
26945         * build-aux/gitlog-to-changelog (--srcdir): New option.
26947 2012-07-15  Bruno Haible  <bruno@clisp.org>
26949         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
26950         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
26951         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
26952         Remove exemption for fpending.h.
26953         Suggested by Eric Blake.
26955 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
26957         pthread_sigmask: fix bug on FreeBSD 9
26958         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
26959         Include string.h.
26960         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
26961         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
26962         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
26963         but pthread_sigmask (1729, NULL, NULL) returns zero.
26964         See <http://bugs.gnu.org/11884>.
26965         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
26966         by inspecting whether the main call changed the old mask.
26968 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
26970         README-release: make it more legible
26971         * top/README-release: Improve typography slightly.
26973 2012-07-15  Jim Meyering  <meyering@redhat.com>
26975         maint: require that each sc_... command start with "@"
26976         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
26977         "make sc_maint" helps us avoid this nit.
26979 2012-07-15  Jim Meyering  <meyering@redhat.com>
26981         maint.mk: add leading "@" to quiet new "make syntax-check" rule
26982         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
26984 2012-07-13  Eric Blake  <eblake@redhat.com>
26986         maint.mk: new syntax check for HAVE_DECL checks
26987         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
26988         * cfg.mk
26989         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
26990         Exempt some false positives.
26991         Based on a report by Karel Zak.
26993         argp: make HAVE_DECL usage consistent
26994         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
26995         macros, not whether they are defined.
26996         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
26997         convention with other declaration checks.
26998         Reported by Karel Zak, with suggestions from Paul Eggert.
27000         stat-time: relax license to LGPLv2+
27001         * modules/stat-time (License): Relax, with consent of all authors.
27003         strndup: fix m4 usage error
27004         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
27005         defined, to either 0 or 1.
27006         Reported by Karel Zak.
27008 2012-07-11  Jim Meyering  <meyering@redhat.com>
27010         maint: enable the sc_avoid_if_before_free syntax-check rule
27011         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
27012         (if_before_free_offenders_): Define.
27013         (if_before_free_basename_re_): Define.
27014         Exempt current files with useless if-before-free.
27016 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
27018         gettext: do not assume '#define ... defined ...' behavior
27019         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
27020         Do not use '#define FOO ... defined BAR ...', as the C standard says
27021         it's not portable to expect that this works after macro expansion.
27022         Problem reported for gzip by Steven M. Schweda in
27023         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
27025 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
27027         getloadavg: clean out old Emacs and Autoconf cruft
27028         See Glenn Morris in <http://bugs.gnu.org/11905>.
27029         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
27030         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
27031         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
27032         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
27034 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
27036         bootstrap: let warn be like tests/init.sh's warn_
27037         Reported by Jim Meyering.
27038         * build-aux/bootstrap (warn): Remove, replaced by...
27039         (warnf_, warn_): these.
27040         Adjust callers.
27041         Shorten messages that no longer fit in 80 columns.
27043 2012-07-09  Bruno Haible  <bruno@clisp.org>
27045         getopt: Simplify after Emacs changed.
27046         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
27047         (gl_GETOPT_IFELSE): Remove macro.
27049 2012-07-09  Jim Meyering  <meyering@redhat.com>
27051         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
27052         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
27054         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
27055         Bugs in both of those conspired to make the
27056         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
27057         _sc_search_regexp's handling of non-empty $in_files would filter
27058         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
27059         choice of in_files value meant there would be no match in most
27060         projects, due to the presence of two or more Makefile.in files.
27061         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
27062         Fix a bug in how a non-empty $$in_files was processed:
27063         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
27064         in spite of the name, it's a regexp, not a list of file names.
27066 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
27068         getloadavg, getopt: fix commentary re configure.in
27069         Autoconf is deprecating the name 'configure.in', so change it to
27070         to the new name 'configure.ac' in a couple of places.
27071         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
27072         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
27073         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
27074         Emacs has renamed it to configure.ac, and it no longer refers
27075         to these macros anyway.
27077         timespec: mark functions with const attributes
27078         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
27079         Mark with _GL_ATTRIBUTE_CONST.
27081 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
27083         canonicalize[-lgpl]: handle "guessing" values when cross-building
27084         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27085         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
27086         matches "*yes" instead of just "yes".  Regression introduced in commit
27087         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
27089 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
27090             Bruno Haible  <bruno@clisp.org>
27092         canonicalize: make the right guess when cross-compiling to GNU
27093         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
27094         determine whether cross-compiling to glibc systems, so as to
27095         include GNU/Hurd.
27097 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
27099         timespec-sub: avoid duplicate include
27100         * lib/timespec-sub.c: Do not include <config.h> twice.
27101         Reported by Juanma Barranquero.
27103 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
27105         bootstrap: use a more consistent error reporting scheme
27106         * build-aux/bootstrap (warn, die): New.
27107         Use them.
27109 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
27111         sys_time: allow too-wide tv_sec
27112         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
27113         timeval even if tv_sec is wider than time_t.  This allows
27114         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
27115         as without this patch gnulib replaces struct timeval
27116         and OpenBSD futimes therefore has a type mismatch.
27117         * doc/posix-headers/sys_time.texi: Mention this.
27119         pthread: check for both pthread_create and pthread_join
27120         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
27121         alter the check so that it tests for both pthread_create and
27122         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
27123         Suggested by Bruno Haible and Richard Yao in
27124         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
27126         parse-datetime: doc tuneup
27127         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
27128         spacing issues.
27130 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
27132         do-release-commit-and-tag: fix the previous commit
27133         * build-aux/do-release-commit-and-tag: Actually the test was right,
27134         but the comment and the error message were misleading.
27135         Fix comment, and improve error message.
27136         Perform check first, so that NEWS is not modified uselessly.
27138         do-release-commit-and-tag: fix typo
27139         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
27140         _not_ start with a stub.
27142 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
27144         pthread: check for pthread_create, not pthread_join
27145         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
27146         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
27147         pthread_join in libc.  I hope this removes the need for all the
27148         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
27149         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
27151 2012-07-04  Jim Meyering  <meyering@redhat.com>
27153         parse-datetime: fix failure to diagnose invalid input
27154         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
27155         rather than diagnosing the invalid input.  Now it reports this:
27156         date: invalid date '\260'
27157         * lib/parse-datetime.y (to_uchar): Define.
27158         (yylex): Don't sign-extend "other" bytes.
27159         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
27160         Thanks to Bruno Haible for the patch to this file.
27161         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
27162         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
27164 2012-07-03  Jim Meyering  <meyering@redhat.com>
27166         bootstrap: do not require now-removed build-aux/missing
27167         Now that build-aux/missing is, er, missing, bootstrap would
27168         silently fail.
27169         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
27170         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
27171         no longer part of gnulib.
27172         Diagnose the failure.
27174 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27176         alloca: add support for HP NonStop TNS/E native
27177         * lib/alloca.in.h (alloca): Support the new host.
27178         From a suggestion by Joachim Schmitz in
27179         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
27181 2012-07-02  Pádraig Brady  <P@draigBrady.com>
27183         fsusage: remove code not needed on non GNU/Linux systems.
27185         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
27186         Don't include headers no longer needed in this case.
27187         * lib/fsusage.c [STAT_STATVFS &&
27188         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
27189         STAT_STATFS2_FRSIZE to exclude code not used in this case.
27191 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
27193         fsusage: include files needed for glibc 2.6 fallback
27194         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
27195         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
27196         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
27197         Problem reported by Ludovic Courtès in
27198         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
27200         fsusage: avoid needless check on GNU/Linux
27201         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
27202         on GNU/Linux systems, since it can't possibly work.
27204 2012-07-01  Bruno Haible  <bruno@clisp.org>
27206         log: Fix an autoconf >= 2.64 warning.
27207         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
27208         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
27210 2012-06-28  Bruno Haible  <bruno@clisp.org>
27212         log10f: Fix possible configuration problem.
27213         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
27214         $LOGF_LIBM.
27215         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
27217 2012-06-28  Bruno Haible  <bruno@clisp.org>
27219         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
27220         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
27221         not gl_cv_func_unlink_works.
27222         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
27224 2012-06-27  Eric Blake  <eblake@redhat.com>
27226         config: drop scripts that automake says are not independent
27227         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
27228         * build-aux/elisp-comp: Delete.
27229         * build-aux/missing: Likewise.
27230         * build-aux/ylwrap: Likewise.
27231         * modules/elisp-comp: Likewise.
27232         * MODULES.html.sh: Drop mention of elisp-comp.
27233         * NEWS: Mention this.
27235 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
27237         root-uid: new module
27238         This is for portability to Tandem's NonStop Kernel.
27239         * lib/root-uid.h, modules/root-uid: New files.
27240         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
27241         * lib/write-any-file.c, tests/test-sethostname2.c:
27242         Include "root-uid.h".
27243         * lib/euidaccess.c (euidaccess):
27244         * lib/pt_chown.c (main):
27245         * lib/unlinkdir.c (cannot_unlink_dir):
27246         * lib/write-any-file.c (can_write_any_file):
27247         * m4/mknod.m4 (gl_FUNC_MKNOD):
27248         * tests/test-sethostname2.c (geteuid, main):
27249         Don't assume ROOT_UID == 0.
27250         * modules/euidaccess (Depends-on):
27251         * modules/pt_chown (Depends-on):
27252         * modules/sethostname-tests (Depends-on):
27253         * modules/unlinkdir (Depends-on):
27254         * modules/write-any-file (Depends-on):
27255         Add root-uid.
27257         regex: use locale-independent comparison for codeset name
27258         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
27259         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
27260         for codeset name.
27261         * lib/regex_internal.h: Do not include <strings.h>, since we
27262         no longer use strcasecmp.
27263         * modules/regex (Depends-on): Remove strcase.
27265 2012-06-23  Bruno Haible  <bruno@clisp.org>
27267         getopt-posix: No longer guarantee that option processing is resettable.
27268         * doc/posix-functions/getopt.texi: Drop description of problem with
27269         internal state. Fix info about mingw and msvc9.
27270         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
27271         option processing by getopt(). Run three test programs instead of one.
27272         Simplify cross-compilation guess.
27273         * NEWS: Mention the change.
27274         Reported by Rich Felker <dalias@aerifal.cx>.
27276 2012-06-26  Bruno Haible  <bruno@clisp.org>
27278         argp, regex: Ensure strcasecmp gets declared.
27279         * lib/argp-help.c: Include <strings.h>.
27280         * lib/regex_internal.h: Likewise.
27281         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
27283 2012-06-24  Bruno Haible  <bruno@clisp.org>
27285         ptsname_r: Make it consistent with ptsname on AIX.
27286         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
27287         implementation as for OSF/1.
27288         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
27289         a pty master.
27291         ptsname_r: Make it consistent with ptsname on OSF/1.
27292         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
27293         OSF/1.
27295 2012-06-24  Bruno Haible  <bruno@clisp.org>
27297         ttyname_r: Fix result on OSF/1, Solaris.
27298         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
27300 2012-06-24  Bruno Haible  <bruno@clisp.org>
27302         ptsname_r: Add support for Solaris.
27303         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
27304         Solaris.
27306         ptsname_r: Fix test failure on native Windows.
27307         * modules/ptsname_r (Depends-on): Add isatty.
27309         ptsname_r: Fix test failures on IRIX, Solaris.
27310         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
27311         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
27312         accordingly.
27313         * lib/ptsname_r.c: Include <fcntl.h>.
27314         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
27315         set errno if fd is invalid.
27316         * tests/test-isatty.c (main): Update comments.
27318 2012-06-24  Bruno Haible  <bruno@clisp.org>
27320         ptsname test: Extend test.
27321         * tests/test-ptsname.c: Include <errno.h>.
27322         (main): Test behaviour with invalid file descriptor.
27324 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
27326         time: fix obsolete comment
27327         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
27328         reference to HAVE_STRUCT_TIMESPEC in comment.
27330 2012-06-23  Bruno Haible  <bruno@clisp.org>
27332         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
27333         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
27334         does not handle abbreviated long options with equivalent
27335         disambiguations, set gl_replace_getopt to yes.
27336         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
27338 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
27340         time_r: fix typo that always overrode localtime_r decl
27341         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
27342         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
27343         not in a standard include.
27345 2012-06-22  Bruno Haible  <bruno@clisp.org>
27347         Write "Mac OS X" instead of "MacOS X".
27348         * README: Write "Mac OS X" instead of "MacOS X".
27349         * build-aux/bootstrap: Likewise.
27350         * build-aux/install-reloc: Likewise.
27351         * lib/acl-internal.h: Likewise.
27352         * lib/acl_entries.c: Likewise.
27353         * lib/argp-ba.c: Likewise.
27354         * lib/argp-pv.c: Likewise.
27355         * lib/config.charset: Likewise.
27356         * lib/copy-acl.c: Likewise.
27357         * lib/csharpexec.c: Likewise.
27358         * lib/euidaccess.c: Likewise.
27359         * lib/fbufmode.c: Likewise.
27360         * lib/fflush.c: Likewise.
27361         * lib/file-has-acl.c: Likewise.
27362         * lib/filemode.h: Likewise.
27363         * lib/fpurge.c: Likewise.
27364         * lib/freadable.c: Likewise.
27365         * lib/freadahead.c: Likewise.
27366         * lib/freading.c: Likewise.
27367         * lib/freadptr.c: Likewise.
27368         * lib/freadseek.c: Likewise.
27369         * lib/fseeko.c: Likewise.
27370         * lib/fseterr.c: Likewise.
27371         * lib/fsusage.c: Likewise.
27372         * lib/fwritable.c: Likewise.
27373         * lib/fwriting.c: Likewise.
27374         * lib/get-rusage-as.c: Likewise.
27375         * lib/get-rusage-data.c: Likewise.
27376         * lib/getdomainname.c: Likewise.
27377         * lib/idpriv-drop.c: Likewise.
27378         * lib/idpriv-droptemp.c: Likewise.
27379         * lib/localcharset.c: Likewise.
27380         * lib/locale.in.h: Likewise.
27381         * lib/localename.c: Likewise.
27382         * lib/mbsrtowcs-state.c: Likewise.
27383         * lib/nproc.c: Likewise.
27384         * lib/passfd.c: Likewise.
27385         * lib/posix_openpt.c: Likewise.
27386         * lib/printf-parse.c: Likewise.
27387         * lib/progreloc.c: Likewise.
27388         * lib/safe-read.h: Likewise.
27389         * lib/safe-write.h: Likewise.
27390         * lib/sched.in.h: Likewise.
27391         * lib/set-mode-acl.c: Likewise.
27392         * lib/signal.in.h: Likewise.
27393         * lib/stdint.in.h: Likewise.
27394         * lib/stdio-impl.h: Likewise.
27395         * lib/stdlib.in.h: Likewise.
27396         * lib/strtod.c: Likewise.
27397         * lib/sys_select.in.h: Likewise.
27398         * lib/tcgetsid.c: Likewise.
27399         * lib/unistd.in.h: Likewise.
27400         * lib/unlockpt.c: Likewise.
27401         * lib/vasnprintf.c: Likewise.
27402         * lib/vma-iter.c: Likewise.
27403         * lib/wcsrtombs-state.c: Likewise.
27404         * m4/acl.m4: Likewise.
27405         * m4/acosl.m4: Likewise.
27406         * m4/asinl.m4: Likewise.
27407         * m4/atanl.m4: Likewise.
27408         * m4/c-stack.m4: Likewise.
27409         * m4/cosl.m4: Likewise.
27410         * m4/expl.m4: Likewise.
27411         * m4/extensions.m4: Likewise.
27412         * m4/fdatasync.m4: Likewise.
27413         * m4/fmal.m4: Likewise.
27414         * m4/frexp.m4: Likewise.
27415         * m4/frexpf.m4: Likewise.
27416         * m4/frexpl.m4: Likewise.
27417         * m4/fsusage.m4: Likewise.
27418         * m4/getdomainname.m4: Likewise.
27419         * m4/getloadavg.m4: Likewise.
27420         * m4/getopt.m4: Likewise.
27421         * m4/gettext.m4: Likewise.
27422         * m4/gnulib-common.m4: Likewise.
27423         * m4/intdiv0.m4: Likewise.
27424         * m4/intlmacosx.m4: Likewise.
27425         * m4/largefile.m4: Likewise.
27426         * m4/ldexpl.m4: Likewise.
27427         * m4/link-follow.m4: Likewise.
27428         * m4/locale-ar.m4: Likewise.
27429         * m4/locale-fr.m4: Likewise.
27430         * m4/locale-ja.m4: Likewise.
27431         * m4/locale-tr.m4: Likewise.
27432         * m4/locale-zh.m4: Likewise.
27433         * m4/locale_h.m4: Likewise.
27434         * m4/lock.m4: Likewise.
27435         * m4/logl.m4: Likewise.
27436         * m4/mathfunc.m4: Likewise.
27437         * m4/minus-zero.m4: Likewise.
27438         * m4/mktime.m4: Likewise.
27439         * m4/mmap-anon.m4: Likewise.
27440         * m4/multiarch.m4: Likewise.
27441         * m4/nanosleep.m4: Likewise.
27442         * m4/nocrash.m4: Likewise.
27443         * m4/poll.m4: Likewise.
27444         * m4/printf-frexpl.m4: Likewise.
27445         * m4/printf.m4: Likewise.
27446         * m4/signbit.m4: Likewise.
27447         * m4/sinl.m4: Likewise.
27448         * m4/sqrtl.m4: Likewise.
27449         * m4/strerror_r.m4: Likewise.
27450         * m4/tanl.m4: Likewise.
27451         * m4/threadlib.m4: Likewise.
27452         * m4/ttyname_r.m4: Likewise.
27453         * m4/unlink.m4: Likewise.
27454         * m4/visibility.m4: Likewise.
27455         * m4/wcwidth.m4: Likewise.
27456         * tests/minus-zero.h: Likewise.
27457         * tests/test-alloca-opt.c: Likewise.
27458         * tests/test-copy-acl.sh: Likewise.
27459         * tests/test-copy-file.sh: Likewise.
27460         * tests/test-fdatasync.c: Likewise.
27461         * tests/test-file-has-acl.sh: Likewise.
27462         * tests/test-flock.c: Likewise.
27463         * tests/test-fsync.c: Likewise.
27464         * tests/test-localename.c: Likewise.
27465         * tests/test-malloca.c: Likewise.
27466         * tests/test-nonblocking-pipe.h: Likewise.
27467         * tests/test-nonblocking-socket.h: Likewise.
27468         * tests/test-openpty.c: Likewise.
27469         * tests/test-posix_openpt.c: Likewise.
27470         * tests/test-ptsname.c: Likewise.
27471         * tests/test-ptsname_r.c: Likewise.
27472         * tests/test-sameacls.c: Likewise.
27473         * tests/test-select.h: Likewise.
27474         * tests/test-set-mode-acl.sh: Likewise.
27475         * tests/test-snprintf-posix.h: Likewise.
27476         * tests/test-sprintf-posix.h: Likewise.
27477         * tests/test-strtod.c: Likewise.
27478         * tests/test-time.c: Likewise.
27479         * tests/test-vasnprintf-posix.c: Likewise.
27480         * tests/test-vasprintf-posix.c: Likewise.
27481         * doc/acl-resources.txt: Likewise.
27482         * doc/**/*.texi: Likewise.
27483         Reported by Max Horn <max@quendi.de>.
27485 2012-06-22  Bruno Haible  <bruno@clisp.org>
27487         grantpt: Relax requirement regarding invalid file descriptors.
27488         * lib/grantpt.c: Don't include <fcntl.h>.
27489         (grantpt): Don't verify the validity of the file descriptor.
27490         * modules/grantpt (Depends-on): Remove fcntl-h.
27491         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
27492         file descriptors.
27493         * doc/posix-functions/grantpt.texi: Document more platforms on which
27494         grantpt succeeds for invalid file descriptors.
27495         Reported by Rich Felker <dalias@aerifal.cx>.
27497 2012-06-22  Bruno Haible  <bruno@clisp.org>
27499         fbufmode test: Don't test unportable behaviour.
27500         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
27501         (main): Invoke it three times.
27502         Reported by Szabolcs Nagy <nsz@port70.net>
27503         and Rich Felker <dalias@aerifal.cx>.
27505 2012-06-21  Bruno Haible  <bruno@clisp.org>
27507         gnulib-tool: Refactor inctests variable.
27508         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
27509         (func_modules_transitive_closure,
27510         func_modules_transitive_closure_separately,
27511         func_import, func_create_testdir): Update.
27513         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
27514         * gnulib-tool: Accept option --without-tests.
27515         (func_usage): Document --without-tests option. Rearrange.
27516         (inctests): Normalize according to the mode.
27517         * NEWS: Mention the change.
27518         Suggested by Simon Josefsson.
27520 2012-06-21  Bruce Korb  <bkorb@gnu.org>
27522         parse-duration test: Avoid spurious output.
27523         * tests/test-parse-duration.sh: Reindent with leading tabs.
27525 2012-06-21  Jim Meyering  <meyering@redhat.com>
27527         maint: disable the strncpy prohibition
27528         * cfg.mk: Do not prohibit strncpy here.
27530 2012-06-21  Bruno Haible  <bruno@clisp.org>
27532         nonblocking: Avoid compilation error on mingw64.
27533         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
27534         fscanf.
27535         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
27536         * modules/vfscanf (configure.ac): Likewise.
27537         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
27538         definition only if stdio.h has prepared it.
27539         Reported by Daniel P. Berrange <berrange@redhat.com>.
27541 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
27543         gnulib-tool: Use readlink if it is available.
27544         * gnulib-tool (func_readlink): Choose function more appropriately.
27546 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
27548         posixtm-tests: port to buggy compiler
27549         Problem reported by Simon Josefsson in
27550         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
27551         * modules/posixtm-tests (Depends-on): Add stdint.
27552         * tests/test-posixtm.c (struct posixtm_test.t_expected):
27553         Now of type int_least64_t, not int64_t, both because that's
27554         what INT64_C returns and because int_least64_t works even
27555         on 72-bit hosts.
27556         (T): Use INT64_C on constants outside the traditional int range,
27557         to work around compiler bug noted by Simon.
27559         mktime: fix integer overflow in 'configure'-time test
27560         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
27561         after integer overflow.  Problem reported by Rich Felker in
27562         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
27563         Also, don't look for further instances of a bug if we've already
27564         found one instance; this helps 'configure' run faster.
27566 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
27568         tmpfile, clean-temp: Fix invocation of GetVersionEx.
27569         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
27570         GetVersionEx correctly.
27571         * lib/clean-temp.c (supports_delete_on_close): Likewise.
27573 2012-06-20  Bruno Haible  <bruno@clisp.org>
27575         fdopen: Allow implementations that don't reject invalid fd arguments.
27576         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
27577         succeeds.
27578         Reported by Rich Felker <dalias@aerifal.cx>.
27580 2012-06-20  Simon Josefsson  <simon@josefsson.org>
27582         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
27583         bring in LIBINTL.
27585 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
27587         init.sh: do not rely on autoupated PWD
27588         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
27589         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
27590         Although Nelson's bug was not necessarily fixed by this patch,
27591         it seems wise to make the change for safety.
27592         * tests/init.sh (path_prepend_): Do not rely on PWD updating
27593         automagically after 'cd'; this is not reliable on older shells.
27594         (setup_): Fail if we cannot cd to temporary directory.
27596 2012-06-19  Bruno Haible  <bruno@clisp.org>
27598         stat, fstat: Avoid warnings on mingw64.
27599         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
27600         redefining.
27601         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
27602         Reported by Daniel P. Berrange <berrange@redhat.com>.
27604 2012-06-19  Bruno Haible  <bruno@clisp.org>
27606         stdioext: Add support for musl libc.
27608         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
27609         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
27611         * m4/fseterr.m4: New file.
27612         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
27613         function exists.
27614         * modules/fseterr (Files): Add m4/fseterr.m4.
27615         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
27616         __fseterr does not exist.
27617         (Makefile.am): Remove fseterr.c from lib_SOURCES.
27619         * lib/freadable.h: Update comment.
27621         * lib/fwritable.h: Update comment.
27623         * lib/freading.h: Update comment.
27625         * lib/fwriting.h: Update comment.
27627         * m4/freadahead.m4: New file.
27628         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
27629         that function exists.
27630         * modules/freadahead (Files): Add m4/freadahead.m4.
27631         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
27632         __freadahead does not exist.
27633         (Makefile.am): Remove freadahead.c from lib_SOURCES.
27635         * m4/freadptr.m4: New file.
27636         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
27637         function exists.
27638         * modules/freadptr (Files): Add m4/freadptr.m4.
27639         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
27640         __freadptr does not exist.
27641         (Makefile.am): Remove freadptr.c from lib_SOURCES.
27643         * m4/freadseek.m4: New file.
27644         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
27645         exists.
27646         * modules/freadseek (Files): Add m4/freadseek.m4.
27647         (configure.ac): Invoke gl_FUNC_FREADSEEK.
27649         * lib/fpurge.c (fpurge): Update comment.
27651         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
27653 2012-06-19  Bruno Haible  <bruno@clisp.org>
27655         *printf-posix: Put more info into config.log.
27656         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
27657         exit code into config.log.
27659 2012-06-19  Bruno Haible  <bruno@clisp.org>
27661         getopt-gnu: Fix exit code overflow in autoconf test.
27662         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
27663         to keep them below < 128.
27665 2012-06-17  Jim Meyering  <meyering@redhat.com>
27667         maint.mk: fix typo in code to derive GPG key at release time
27668         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
27670 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
27672         regex: avoid warning when pointers are not long
27673         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
27674         and uintptr_t, not long, for portability to hosts where pointers and
27675         long have different sizes.  Issue noted by Daniel P. Berrange in
27676         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
27677         and fix suggested by Bruno Haible in
27678         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
27680 2012-06-17  Bruno Haible  <bruno@clisp.org>
27682         dummy: Relicense into the public domain.
27683         * modules/dummy (License): Set to "public domain".
27684         Suggested by Reuben Thomas.
27686 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
27688         announce-gen: VPATH issues
27689         * build-aux/announce-gen (--srcdir): New option, used to trim the
27690         $srcdir part of the path from $builddir to NEWS.
27691         * top/maint.mk (announcement): Adjust.
27693 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
27695         gnu-web-doc-update: VPATH builds
27696         * build-aux/gnu-web-doc-update (--builddir): New option.
27697         Revamp the handling of options.
27698         Prefer $(...) to `...`.
27699         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
27700         the template, and it is GNU mktemp specific.
27701         Prefer set -e to long series of &&.
27702         Restore the initial git branch, not "master".
27703         Properly initialize submodules (don't rely only on bootstrap).
27704         Do not reconfigure blindly, use config.status.
27705         * top/README-release: Update instructions for gnu-web-doc-update.
27707 2012-06-11  Jim Meyering  <meyering@redhat.com>
27709         maint.mk: revert most of the previous change re "all these"
27710         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
27711         For rationale, see the discussion at
27712         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
27714 2012-06-10  Karl Berry  <karl@gnu.org>
27716         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
27718         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
27720 2012-06-10  Bruce Korb  <bkorb@gnu.org>
27722         parse-duration: Relicense under LGPLv2+.
27723         * modules/parse-duration (License): Change to LGPLv2+.
27725 2012-06-10  Jim Meyering  <meyering@redhat.com>
27727         maint.mk: prohibit common grammar error: "all these"
27728         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
27729         the list of prohibited word sequences.  It should be "all of these".
27730         * lib/tempname.c (__gen_tempname): Fix one of them.
27732 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
27734         do-release-commit-and-tag: support VPATH builds
27735         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
27736         (noteworthy): Defined earlier to factor its value.
27737         (noteworthy_stub): New.
27738         Use it to factor.
27739         (help_version): Split into...
27740         (help, version): these.
27741         Adjust the option processing part.
27742         Support "--option=value" in addition to "--option value".
27743         (builddir): New.
27744         (--builddir): New option.
27745         * top/README-release: Document this.
27746         Reword slightly so that the reader cannot understand that he
27747         has to do these steps before calling do-release-commit-and-tag.
27749 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
27751         readme-release: also require announce-gen and maintainer-makefile
27752         * modules/readme-release (Depends-on): here.
27753         * modules/announce-gen, modules/do-release-commit-and-tag,
27754         modules/gnu-web-doc-update, modules/maintainer-makefile
27755         (Description): Point to readme-release.
27757 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
27759         maint.mk: fix VPATH issues.
27760         * top/maint.mk (news-check): GNU Make understand $< very well.
27761         (release-prep): NEWS is in $(srcdir).
27763 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
27765         readme-release: require the promoted modules.
27766         * modules/readme-release (Depends-on): Add
27767         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
27768         in this text.
27770 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
27771             Bruno Haible  <bruno@clisp.org>
27773         error, strerror-override: Support mingw64 from Fedora 17.
27774         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
27775         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
27776         EINPROGRESS.
27777         * lib/strerror-override.h (strerror_override): Test it.
27778         * lib/strerror-override.c (strerror_override): Likewise.
27779         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
27781 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
27782             Bruno Haible  <bruno@clisp.org>
27784         error, strerror-override: Support mingw64 from Fedora 17.
27785         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
27786         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
27787         * lib/strerror-override.h (strerror_override): Test it.
27788         * lib/strerror-override.c (strerror_override): Likewise.
27790 2012-06-03  Bruno Haible  <bruno@clisp.org>
27792         error, strerror-override: Support new errno values from POSIX:2008.
27793         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
27794         ENOTRECOVERABLE.
27795         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
27796         platforms.
27797         * lib/strerror-override.c (strerror_override): Conditionalize the
27798         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
27799         * lib/strerror-override.h (strerror_override): Declare also if
27800         GNULIB_defined_EOWNERDEAD is defined.
27801         * tests/test-errno.c (e130, e131): New variables.
27802         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
27803         ENOTRECOVERABLE.
27804         Reported by Paolo Bonzini.
27806 2012-05-31  Jim Meyering  <meyering@redhat.com>
27808         savewd: add missing dependency on sys_wait module
27809         * modules/savewd (Depends-on): Add sys_wait, needed at least
27810         for MSVC.  Report and suggested change by Michael Goffioul.
27812 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
27814         system-quote-tests: port to CentOS 5
27815         Problem reported by Tom G. Christensen in
27816         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
27817         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
27819 2012-05-29  Jim Meyering  <meyering@redhat.com>
27821         maint: fix typos in comments and ChangeLog
27822         Culprits identified and fixed mostly automatically using these commands:
27823         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
27824         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
27825         using http://github.com/lyda/misspell-check
27826         * ChangeLog: Fix typos.
27827         * doc/solaris-versions: Likewise.
27828         * lib/regexec.c (re_search_stub): Likewise.
27829         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
27831 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
27833         manywarnings: remove duplicate -Wmultichar entry
27834         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
27835         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
27836         so keep the entry marked as documented.
27838 2012-05-27  Karl Berry  <karl@gnu.org>
27840         * config/srclist.txt (mktime.c): remove last libc sync,
27841         perhaps just temporarily.
27843 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
27845         regex: don't assume uint64_t or uint32_t
27846         * lib/regcomp.c (init_word_char): Don't assume that the types
27847         uint64_t and uint32_t exist.  The C standard doesn't guarantee
27848         them, and on some 32-bit compilers there is no uint64_t.
27849         Problem reported by Gianluigi Tiesi in
27850         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
27852 2012-05-25  Jim Meyering  <meyering@redhat.com>
27854         maint.mk: add strncpy-prohibiting syntax-check rule
27855         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
27857 2012-05-24  Jim Meyering  <meyering@redhat.com>
27859         maint.mk: compute $(gpg_key_ID) more portably
27860         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
27861         That use of sed is not portable to some fringe systems.
27862         Reported by Paul Eggert in
27863         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
27865 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
27867         mktime: sync from glibc
27868         * config/srclist.txt: Uncomment mktime.c.
27869         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
27870         First, indent with tabs, since glibc uses tabs and doesn't want to
27871         change and we'd rather be identical to glibc.  Also, two small
27872         coding changes:
27873         (isdst_differ): Use &&, not &, as && is the usual style.
27874         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
27875         for clarity.
27877 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
27879         announce-gen: du -h is more portable than du --human
27880         * build-aux/announce-gen (sizes): Invoke du with -h instead
27881         of --human.  Accept leading white space in its output.
27883 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
27885         announce-gen: Improve diagnostics.
27886         * build-aux/announce-gen: When parsing command line options,
27887         prefer "announce-gen: option --release-type requires an argument"
27888         to "Option release-type requires an argument".
27890 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
27892         maint.mk: gpg_key_ID: use sed more portably
27893         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
27894         the closing brace.
27895         (refresh-po): Fuse two sed invocations into one.
27897 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
27899         gitlog-to-changelog: support the log message format used in Bison.
27900         * build-aux/gitlog-to-changelog: Support --strip-tab and
27901         --strip-cherry-picked.
27903 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
27905         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
27906         the rest of the current time slice to another thread in the current
27907         process. So if the thread that feeds the file decscriptor we're
27908         polling is not in the current process, we get busy-waiting.
27909         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
27910         Patch from Theodore Leblond.
27911         * lib/select.c: Split polling out of the loop that sets the output
27912         fd_sets.  Check for zero result and loop if the wait timeout is
27913         infinite.
27915 2012-05-21  Simon Josefsson  <simon@josefsson.org>
27917         select: Fix build error on IRIX 6.5.
27918         * lib/select.c: Include stddef.h for NULL.
27920 2012-05-21  Simon Josefsson  <simon@josefsson.org>
27922         gc: fix libgcrypt detection on older machines.
27923         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
27924         copyright years because the file has been distributed every year
27925         since it was created.
27927 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
27929         crypto: fix bug in large buffer handling
27930         Problem reported by Serge Belyshev for glibc in
27931         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
27932         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
27933         * lib/md4.c (md4_process_block):
27934         * lib/md5.c (md5_process_block):
27935         * lib/sha1.c (sha1_process_block):
27936         * lib/sha256.c (sha256_process_block):
27937         Don't assume the buffer length is less than 2**32.
27938         * lib/sha512.c (sha512_process_block): Likewise.
27939         Here, the bug is present only in the rare case where the host does
27940         not support uint64_t or where size_t is wider than 64 bits.
27941         Use u64size to work around the problems.
27942         * lib/u64.h (u64size): New macro.
27944 2012-05-15  Pádraig Brady  <P@draigBrady.com>
27946         fsusage: fix block size returned on older Linux 2.6
27948         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
27949         which is available since Linux 2.6.
27950         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
27951         when the member is available so it can be used as a fallback.
27952         * doc/posix-functions/statvfs.texi: Mention the hang issue
27953         on Linux < 2.6.36.
27955 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
27957         bootstrap: suppress stderr chatter
27958         * build-aux/bootstrap (insert_sorted_if_absent, main program):
27959         Omit unnecessary chatter to stderr.  The main program chatter
27960         was there only inadvertantly.
27962         bootstrap: .gitignore files created by autopoint, libtool
27963         I ran into this problem when bootstrapping the latest diffutils.
27964         After './bootstrap', 'git status' reported lots of untracked files
27965         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
27966         autopoint and do not need to be version-controlled.
27967         * build-aux/bootstrap: Put into .gitignore the files that
27968         autopoint and libtool create, by keeping track of files that exist
27969         after but not before these programs are run.
27970         (version_controlled_file): Move up.  2nd arg is now full file
27971         name, not base name; this is more convenient.  Put CVS at the end,
27972         as it's now somewhat deprecated.
27974 2012-05-14  Jim Meyering  <meyering@redhat.com>
27976         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
27977         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
27978         definition.  Reported by Bruno Haible.
27980 2012-05-13  Bruno Haible  <bruno@clisp.org>
27981             Paul Eggert  <eggert@cs.ucla.edu>
27983         binary-io: Define set_binary_mode function.
27984         * lib/binary-io.h (set_binary_mode): New function.
27985         (SET_BINARY): Define in terms of set_binary_mode.
27986         * modules/binary-io (configure.ac): Require AC_C_INLINE.
27987         * tests/test-binary-io.c (main): Accept an argument, and test either
27988         set_binary_mode or SET_BINARY depending on the argument.
27989         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
27990         argument. Clean up also t-bin-out0.tmp.
27992 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
27994         bootstrap: take advantage of POSIX shell features
27996         The 'bootstrap' script offered by Gnulib script already uses POSIX
27997         shell features (like $((...)) arithmetic expansions) that are not
27998         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
27999         means that bootstrap must already be run using a proper POSIX shell,
28000         which will thus provide more features, like ${var#pattern} parameter
28001         expansion or inversion of a command exit status with '!'.  We can
28002         thus use these features to improve the clarity and the performances
28003         of the bootstrap script.
28005         Suggested by Eric Blake.
28007         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
28008         of sed/expr plus command substitutions, to save some forks.  While
28009         we are at it, prefer the POSIX $(...) form of command substitution,
28010         rather than the legacy form `...` (since the former is visually
28011         clearer and interacts better with quoting), and prefer the idiom:
28012           "if ! CMD; then ACTION ..."
28013         over the idiom:
28014           "if CMD; then :; else ACTION ..."
28015         which was required by legacy Bourne shells not supporting '!'.
28017 2012-05-12  Bruno Haible  <bruno@clisp.org>
28019         system-quote: Add more comments.
28020         * lib/system-quote.h: Add more comments about wilcards and limitations.
28021         Suggested by Eli Zaretskii <eliz@gnu.org>.
28023         sh-quote, system-quote: Add comments about wildcards.
28024         * lib/sh-quote.h: Clarify what happens with wildcard characters.
28025         * lib/system-quote.h: Likewise.
28026         Reported by Eli Zaretskii <eliz@gnu.org>.
28028 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
28030         fsusage: check for GNU/Linux statvfs problem dynamically
28031         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
28032         Define STAT_STATFS2_BSIZE too, since in this case the code now
28033         checks dynamically whether statvfs is reliable, falling back on
28034         Linux-style statfs otherwise.
28035         (statvfs_works): New function, for dynamically testing statvfs.
28036         (get_fs_usage) [STAT_STATVFS]: Use it.
28037         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
28038         statvfs on GNU/Linux hosts, since it's now done dynamically.
28040 2012-05-10  Bruno Haible  <bruno@clisp.org>
28042         system-quote, execute, spawn-pipe: Escape '?' on Windows.
28043         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
28044         '?' character.
28045         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
28046         * tests/test-system-quote-main.c (check_all): Check also strings like
28047         "??????????".
28048         Reported by Eli Zaretskii <eliz@gnu.org>.
28050 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
28052         _Noreturn: port config.h to gcc -Wundef
28053         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
28054         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
28055         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
28057 2012-05-10  Bruno Haible  <bruno@clisp.org>
28059         system-quote: Refactor.
28060         * lib/system-quote.h (system_quote_copy): Fix comment.
28061         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
28062         New functions, extracted from system_quote_copy.
28063         (system_quote_length, system_quote_copy): Use these functions.
28064         Reported by Paul Eggert.
28066 2012-05-08  Bruno Haible  <bruno@clisp.org>
28068         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
28069         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
28071 2012-05-08  Bruno Haible  <bruno@clisp.org>
28073         Tests for module 'system-quote'.
28074         * modules/system-quote-tests: New file.
28075         * tests/test-system-quote.sh: New file.
28076         * tests/test-system-quote-main.c: New file.
28077         * tests/test-system-quote-child.c: New file.
28079         New module 'system-quote'.
28080         * lib/system-quote.h: New file.
28081         * lib/system-quote.c: New file.
28082         * modules/system-quote: New file.
28084 2012-05-08  Bruno Haible  <bruno@clisp.org>
28086         sh-quote: Make C++ safe and allow multiple inclusion.
28087         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
28088         declarations in extern "C".
28090 2012-05-08  Bruno Haible  <bruno@clisp.org>
28092         sh-quote tests: Make tests stricter.
28093         * tests/test-sh-quote.c (check_one): Check the return value of
28094         shell_quote_copy.
28095         (main): Check a string with a CR character. Check a string that
28096         contains UCHAR_MAX.
28098 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
28100         warnings.m4: provide a means to specify the program to compile.
28101         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
28102         (gl_WARN_ADD): here.
28103         Use gl_AS_VAR_APPEND.
28104         Support an argument to specify the program to compile.
28105         (gl_WARN_ADD): Accept an argument to specify the program to compile.
28106         AC_SUBST the WARN_CFLAGS when they are used.
28107         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
28108         leave this to gl_WARN_ADD.
28110 2012-05-08  Eric Blake  <eblake@redhat.com>
28112         doc: recommendations on gettext version
28113         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
28114         choice between versions.
28115         * DEPENDENCIES (gettext): Cover both approaches.
28117 2012-05-08  Jim Meyering  <meyering@redhat.com>
28119         init.sh: explain why EXEEXT support uses aliases rather than functions
28120         * tests/init.sh: Add a comment.
28122         init.sh: don't let bash aliases interfere with tests
28123         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
28124         is bash.  This avoids problems for those who alias standard commands to
28125         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
28126         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
28128 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
28130         stdint: be more consistent with glibc, SunOS libc
28131         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
28132         (gl_int_fast16_t, gl_uint_fast16_t)
28133         (gl_int_fast32_t, gl_uint_fast32_t)
28134         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
28135         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
28136         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
28137         Be consistent with glibc by default, and with SunOS 5.10 and later
28138         if __sun is defined.  This lessens the likelihood of clashes if
28139         code compiled for older hosts is combined with code compiled for
28140         newer ones.  Problem reported by Niels Möller in
28141         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
28143 2012-05-07  Eric Blake  <eblake@redhat.com>
28145         isatty: relax license to LGPLv2+
28146         * modules/isatty (License): Relax license.
28148 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
28150         stat-size: comment fix
28151         * lib/stat-size.h: Remove obsolete comment about indenting.
28153 2012-05-06  Bruno Haible  <bruno@clisp.org>
28155         Tests for module 'sh-quote'.
28156         * modules/sh-quote-tests: New file.
28157         * tests/test-sh-quote.c: New file.
28159 2012-05-06  Bruno Haible  <bruno@clisp.org>
28161         sh-quote: Improve shell_quote_argv's signature.
28162         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
28163         * lib/sh-quote.c (shell_quote_argv): Likewise.
28165 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
28167         stdint: document issues with int_fast8_t etc.
28168         * doc/posix-headers/stdint.texi (stdint.h): Say that other
28169         stdint.h substitutes may define these types differently.  See
28170         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
28172 2012-05-05  Bruno Haible  <bruno@clisp.org>
28174         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
28175         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
28176         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
28177         or 'guessing no (mishandles large arguments)'.
28179 2012-05-05  Bruno Haible  <bruno@clisp.org>
28181         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
28182         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
28183         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
28184         set gl_cv_func_link_follows_symlink to "guessing no".
28186 2012-05-05  Bruno Haible  <bruno@clisp.org>
28188         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
28189         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
28190         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
28191         "guessing no".
28192         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
28194 2012-05-05  Bruno Haible  <bruno@clisp.org>
28196         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
28197         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
28198         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
28199         set gl_cv_struct_dirent_d_ino to "guessing yes".
28201 2012-05-05  Bruno Haible  <bruno@clisp.org>
28203         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
28204         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
28205         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
28206         "guessing yes".
28208 2012-05-05  Bruno Haible  <bruno@clisp.org>
28210         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
28211         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
28212         compiling to a glibc system, set gl_cv_func_signbit and
28213         gl_cv_func_signbit_gcc to "guessing yes".
28215 2012-05-05  Bruno Haible  <bruno@clisp.org>
28217         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
28218         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
28219         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
28220         to "guessing yes".
28221         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
28222         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
28224 2012-05-05  Bruno Haible  <bruno@clisp.org>
28226         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
28227         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
28228         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
28229         gl_cv_func_realpath_works to "guessing yes".
28231 2012-05-05  Bruno Haible  <bruno@clisp.org>
28233         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
28234         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
28235         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
28237 2012-05-04  Bruno Haible  <bruno@clisp.org>
28239         Tweak last commit.
28240         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
28241         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28243 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
28245         unistd_h: make it easier to avoid sys_types_h
28246         This is useful for Emacs, which has its own method of porting to
28247         Windows, and which therefore does not need the sys_types_h module.
28248         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
28249         code moved here from gl_SYS_TYPES_H.
28250         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
28251         using the code directly.
28252         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
28253         gl_SYS_TYPES_H.
28254         * modules/sys_types (Files):
28255         * modules/unistd (Files): Add m4/off_t.m4.
28257 2012-05-03  Bruno Haible  <bruno@clisp.org>
28259         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
28260         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
28261         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
28262         "guessing yes" or "guessing no".
28263         (gl_FUNC_LSTAT): Update.
28264         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
28265         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
28266         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
28268 2012-05-03  Bruno Haible  <bruno@clisp.org>
28270         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
28271         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
28272         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
28273         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
28274         cross-compiling, choose the first alternative on glibc systems.
28275         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
28277 2012-05-03  Bruno Haible  <bruno@clisp.org>
28279         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
28280         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
28281         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
28283 2012-05-03  Bruno Haible  <bruno@clisp.org>
28285         chown: Avoid "guessing no" when cross-compiling to glibc systems.
28286         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
28288 2012-05-03  Bruno Haible  <bruno@clisp.org>
28290         Avoid "guessing no" guesses when cross-compiling to glibc systems.
28291         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
28292         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
28293         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
28294         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
28295         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
28296         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
28297         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
28298         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
28299         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
28300         compiling to glibc systems, set gl_cv_func_chown_slash_works,
28301         gl_cv_func_chown_ctime_works to "guessing yes".
28302         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
28303         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
28304         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
28305         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
28306         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
28307         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
28308         compiling to glibc systems, set gl_cv_func_open_directory_works to
28309         "guessing yes".
28310         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
28311         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
28312         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
28313         "guessing yes".
28314         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
28315         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
28316         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
28317         compiling to glibc systems, set gl_cv_func_floorf_ieee to
28318         "guessing yes".
28319         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
28320         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
28321         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
28322         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
28323         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
28324         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
28325         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
28326         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
28327         "guessing yes".
28328         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
28329         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
28330         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
28331         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
28332         "guessing yes".
28333         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
28334         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
28335         "guessing yes".
28336         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
28337         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
28338         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
28339         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
28340         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
28341         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
28342         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
28343         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
28344         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
28345         compiling to glibc systems, set gl_cv_func_log10f_ieee to
28346         "guessing yes".
28347         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
28348         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
28349         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
28350         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
28351         "guessing yes".
28352         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
28353         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
28354         "guessing yes".
28355         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
28356         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
28357         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
28358         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
28359         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
28360         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
28361         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
28362         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
28363         compiling to glibc systems, set gl_cv_func_mkfifo_works to
28364         "guessing yes".
28365         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
28366         compiling to glibc systems, set gl_cv_func_mknod_works to
28367         "guessing yes".
28368         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
28369         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
28370         "guessing yes".
28371         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
28372         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
28373         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
28374         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
28375         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
28376         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
28377         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
28378         compiling to glibc systems, set gl_cv_func_svid_putenv to
28379         "guessing yes".
28380         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
28381         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
28382         "guessing yes".
28383         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
28384         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
28385         "guessing yes".
28386         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
28387         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
28388         to "guessing yes".
28389         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
28390         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
28391         to "guessing yes".
28392         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
28393         compiling to glibc systems, set gl_cv_func_rmdir_works to
28394         "guessing yes".
28395         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
28396         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
28397         gl_cv_func_unlink_parent_fails to "guessing yes".
28398         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
28399         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
28400         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
28401         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
28402         gl_cv_func_rename_dest_works to "guessing yes".
28403         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
28404         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
28405         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
28406         compiling to glibc systems, set gl_cv_func_roundf_ieee to
28407         "guessing yes".
28408         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
28409         compiling to glibc systems, set gl_cv_func_roundl_ieee to
28410         "guessing yes".
28411         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
28412         compiling to glibc systems, set gl_cv_func_setenv_works to
28413         "guessing yes".
28414         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
28415         compiling to glibc systems, set gl_cv_func_unsetenv_works to
28416         "guessing yes".
28417         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
28418         compiling to glibc systems, set gl_cv_func_sleep_works to
28419         "guessing yes".
28420         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
28421         compiling to glibc systems, set gl_cv_func_stat_file_slash to
28422         "guessing yes".
28423         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
28424         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
28425         "guessing yes".
28426         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
28427         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
28428         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
28429         compiling to glibc systems, set gl_cv_func_truncf_ieee to
28430         "guessing yes".
28431         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
28432         compiling to glibc systems, set gl_cv_func_truncl_ieee to
28433         "guessing yes".
28434         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
28435         compiling to glibc systems, set gl_cv_func_usleep_works to
28436         "guessing yes".
28437         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
28438         compiling to glibc systems, set gl_cv_func_futimesat_works to
28439         "guessing yes".
28441 2012-05-03  Bruno Haible  <bruno@clisp.org>
28443         Say "guessing yes" or "guessing no" when cross-compiling.
28444         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
28445         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
28446         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
28447         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
28448         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
28449         am_cv_func_working_getline to "guessing yes" or "guessing no".
28450         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
28451         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
28452         (gl_FUNC_MEMMEM): When cross-compiling, set
28453         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
28454         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
28455         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
28456         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
28457         set gl_cv_func_strcasestr_works_always to "guessing yes" or
28458         "guessing no".
28459         (gl_FUNC_STRCASESTR): When cross-compiling, set
28460         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
28461         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
28462         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
28463         (gl_FUNC_STRSTR): When cross-compiling, set
28464         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
28465         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
28466         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
28467         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
28468         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
28470 2012-05-01  Bruno Haible  <bruno@clisp.org>
28472         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
28473         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
28474         * build-aux/reloc-ldflags: Likewise.
28475         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
28477 2012-05-01  Bruno Haible  <bruno@clisp.org>
28479         gnulib-tool: Remove transitional code.
28480         * gnulib-tool: Don't warn about --import with 0 arguments any more.
28481         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
28483 2012-05-01  Bruno Haible  <bruno@clisp.org>
28485         getcwd: Fix misindentation.
28486         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
28488 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
28490         exclude: process exclude and include directives in order
28491         This restores the pre-2009 behavior, and is part of a fix of a
28492         grep bug reported by Quentin Arce in
28493         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
28494         * lib/exclude.c (struct exclude): Remove 'tail' member.
28495         (new_exclude_segment): Prepend the new segment instead of appending.
28496         Return void, since that's now more convenient.
28497         (file_pattern_matches): Renamed from excluded_file_pattern_p.
28498         (file_name_matches): Renamed from excluded_file_name_p.
28499         (file_pattern_matches, file_name_matches):
28500         Return true if the pattern matches, not if it excludes.
28501         All callers changed.
28502         (excluded_file_name): Process the list in reverse order;
28503         since the list is now reversed this restores the pre-2009 behavior.
28504         (add_exclude): Adjust to new reversed-order list.  Use local var
28505         rather than macro, for clarity.
28506         * tests/test-exclude7.sh: Adjust to corrected behavior.
28508         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
28509         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
28510         it's not possible here.  Handle the case of \ at end of pattern
28511         without dumping core.
28512         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
28514         _Noreturn: future-proof non-GNU and non-MSVC compilers
28515         * build-aux/snippet/_Noreturn.h (_Noreturn):
28516         * m4/gnulib-common.m4 (gl_COMMON_BODY):
28517         Do not define _Noreturn if __STDC_VERSION__ indicates this is
28518         C11 or later.  This is more likely to work with random future C
28519         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
28520         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
28522         exclude: handle wildcards with FNM_EXTMATCH
28523         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
28524         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
28525         comment that "has wildcards" really means "has or may have
28526         wildcards".  Simplify by avoiding the need to call strcspn.
28528 2012-04-29  Bruno Haible  <bruno@clisp.org>
28530         gnulib-tool: Fix list of authors.
28531         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
28533 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
28535         bootstrap: support Automake-NG in $buildreq
28536         * bootstrap (check_versions): Handle automake and aclocal from
28537         Automake-NG specially.  They can be specified as respectively
28538         the "automake-ng" and "aclocal-ng" requirements.
28540 2012-04-25  Eric Blake  <eblake@redhat.com>
28542         bootstrap: only force latest Makefile.in.in for gettext module
28543         * build-aux/bootstrap (with_gettext): Only install latest
28544         Makefile.in.in for projects requesting bleeding edge gettext.
28546 2012-04-22  Bruno Haible  <bruno@clisp.org>
28548         doc: Mention reason for replacement on glibc/Linux systems.
28549         * doc/posix-functions/dprintf.texi: Mention the problem with special
28550         'long double' values.
28551         * doc/posix-functions/fprintf.texi: Likewise.
28552         * doc/posix-functions/printf.texi: Likewise.
28553         * doc/posix-functions/snprintf.texi: Likewise.
28554         * doc/posix-functions/sprintf.texi: Likewise.
28555         * doc/posix-functions/vdprintf.texi: Likewise.
28556         * doc/posix-functions/vfprintf.texi: Likewise.
28557         * doc/posix-functions/vprintf.texi: Likewise.
28558         * doc/posix-functions/vsnprintf.texi: Likewise.
28559         * doc/posix-functions/vsprintf.texi: Likewise.
28560         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
28561         platforms with F_DUPFD_CLOEXEC problems.
28562         * doc/posix-functions/glob.texi: Mention which platforms are affected
28563         by the problem with symbolic links.
28564         * doc/posix-functions/linkat.texi: Mention the problem with
28565         AT_SYMLINK_FOLLOW on Linux.
28567 2012-04-22  Bruno Haible  <bruno@clisp.org>
28569         pwrite: Don't replace on all platforms.
28570         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
28572 2012-04-22  Bruno Haible  <bruno@clisp.org>
28574         rint* tests: Avoid gcc warnings.
28575         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
28576         * tests/test-rintf.c (INFINITY, NAN): Likewise.
28577         * tests/test-rintl.c (INFINITY, NAN): Likewise.
28579 2012-04-21  Bruno Haible  <bruno@clisp.org>
28581         users.txt: Update.
28582         * users.txt: Add freedink, wdiff. Update URLs for projects that have
28583         switched from CVS to git, bzr, or svn.
28585 2012-04-21  Bruno Haible  <bruno@clisp.org>
28587         Large File Support for native Windows platforms.
28589         * m4/largefile.m4 (gl_LARGEFILE): New macro.
28590         * modules/largefile (configure.ac): Require gl_LARGEFILE.
28592         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
28593         type.
28594         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
28595         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
28596         * doc/posix-headers/sys_types.texi: Mention the effect of the
28597         'largefile' module.
28599         * lib/fcntl.in.h: Add comments about off_t.
28600         * modules/fcntl-h (Depends-on): Add sys_types.
28602         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
28603         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
28604         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
28605         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
28606         * modules/unistd (Depends-on): Add sys_types.
28607         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
28609         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
28610         instead of lseek.
28611         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
28612         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
28613         * modules/lseek (Depends-on): Add sys_types.
28615         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
28616         msvc-nothrow.h.
28617         (SetFileSize): New function.
28618         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
28619         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
28620         if Large File Support is requested.
28621         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
28622         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
28624         * lib/stdio.in.h: Add comments about off_t.
28625         * modules/stdio (Depends-on): Add sys_types.
28627         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
28628         instead of ftello.
28629         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
28630         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
28631         (gl_PREREQ_FTELLO): New macro.
28632         * modules/ftello (Depends-on): Add sys_types.
28633         (configure.ac): Incoke gl_PREREQ_FTELLO.
28635         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
28636         instead of fseeko.
28637         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
28638         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
28639         (gl_PREREQ_FSEEKO): New macro.
28640         * modules/fseeko (Depends-on): Add sys_types.
28641         (configure.ac): Invoke gl_PREREQ_FSEEKO.
28643         * lib/sys_stat.in.h: Add comments about off_t.
28644         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
28645         64-bit integer for st_size in 'struct stat'.
28646         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
28647         Define _GL_WINDOWS_64_BIT_ST_SIZE.
28648         * modules/sys_stat (Depends-on): Add sys_types.
28649         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
28651         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
28652         instead of stat or _stat.
28654         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
28655         'struct _stati64' instead of fstat and 'struct stat'.
28656         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
28657         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
28659         Reported by Ray Satiro <raysatiro@yahoo.com>.
28661 2012-04-19  Eric Blake  <eblake@redhat.com>
28663         bootstrap: accommodate older libtool
28664         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
28665         Reported by Daniel P. Berrange.
28667 2012-04-19  Jim Meyering  <meyering@redhat.com>
28669         announce-gen: avoid failure due to lack of Digest::SHA1
28670         Even with the preferred Digest::SHA available, this script
28671         would fail when the backup module, Digest::SHA1, was not installed.
28672         * build-aux/announce-gen: Quote the conditional use of "use".
28673         Reported by Reuben Thomas in:
28674         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
28676         bootstrap: don't let a user's CDPATH setting affect this script
28677         When CDPATH is set, cd will sometimes generate output.
28678         When "cd" is run in a subshell whose output matters, that
28679         surprising-to-some output can cause malfunction.
28680         Unsetting CDPATH turns off this shell "feature."
28681         * build-aux/bootstrap (CDPATH): Unset.
28682         Reported by Reuben Thomas in:
28683         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
28684         and inspired by his patch here:
28685         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
28687 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
28688         and Jim Meyering  <meyering@redhat.com>
28690         maint.mk: catch "see @xref{}" and similar
28691         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
28692         prohibit "See also @xref{", "Also see @pxref{", and similar.
28694 2012-04-16  Jim Meyering  <meyering@redhat.com>
28696         bootstrap: really use gnulib's po/Makefile.in.in
28697         * build-aux/bootstrap: Correct the source file name in previous change.
28698         Reported by Akim Demaille.
28700         configmake: correct minor inconsistency in Makefile rule
28701         * modules/configmake (Makefile.am): All other rules like this one
28702         run the final "mv -f ..." in the same backslash-continued command
28703         as the one that does everything else.  This one put the mv -f ...
28704         command on a separate, non-backslash-continued line.
28705         Make it like the others.
28707         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
28708         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
28709         the one from gettext.  Reported by Akim Demaille.
28711 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
28713         Fix recursion of install-* into po directories.
28714         Bison's install-pdf bug reported by Hans Aberg at
28715         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
28716         * build-aux/po/Makefile.in.in (install-dvi, install-html)
28717         (install-info, install-pdf, install-ps): New targets.
28719 2012-04-16  Jim Meyering  <meyering@redhat.com>
28721         maint: avoid spurious "make sc_maint" failure
28722         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
28723         exempt all *.class file names, for lib/javaversion.class.
28725 2012-04-15  Bruno Haible  <bruno@clisp.org>
28727         lseek: Make configure test independent of environment.
28728         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
28729         Windows, we know that lseek() on pipes is broken; skip the runtime
28730         test.
28732 2012-04-14  Bruno Haible  <bruno@clisp.org>
28734         stat: Bypass buggy override in mingw64.
28735         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
28736         * lib/stat.c (stat) [mingw64]: Define to _stat.
28737         * doc/posix-functions/stat.texi: Mention mingw64 bug.
28739 2012-04-14  Bruno Haible  <bruno@clisp.org>
28741         pathmax: Fix compilation error on MSVC 9.
28742         * modules/pathmax (Depends-on): Add unistd.
28744 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
28746         README: document pointer comparison assumption
28747         * README (Portability guidelines): Document assumption about
28748         pointer comparisons, in response to a recent bug-gnulib comment by
28749         Jeffrey Kegler.
28751 2012-04-12  Bruno Haible  <bruno@clisp.org>
28753         Tests for module 'getrusage'.
28754         * modules/getrusage-tests: New file.
28755         * tests/test-getrusage.c: New file.
28757         New module 'getrusage'.
28758         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
28759         warn-on-use.h.
28760         (getrusage): New declaration.
28761         * lib/getrusage.c: New file.
28762         * m4/getrusage.m4: New file.
28763         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
28764         is declared.
28765         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
28766         HAVE_GETRUSAGE.
28767         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
28768         snippet/c++defs, snippet/warn-on-use.
28769         (Makefile.am): Update generation of sys/resource.h. Substitute
28770         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
28771         * modules/getrusage: New file.
28772         * doc/posix-functions/getrusage.texi: Mention the new module.
28774 2012-04-12  Bruno Haible  <bruno@clisp.org>
28776         Tests for module 'sys_resource'.
28777         * modules/sys_resource-tests: New file.
28778         * tests/test-sys_resource.c: New file.
28780         New module 'sys_resource'.
28781         * lib/sys_resource.in.h: New file.
28782         * m4/sys_resource_h.m4: New file.
28783         * modules/sys_resource: New file.
28784         * doc/posix-headers/sys_resource.texi: Mention the new module.
28786 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
28788         ioctl: Fix compilation error on mingw.
28789         * lib/ioctl.c: Include <windows.h>.
28790         Also reported by Ray Satiro <raysatiro@yahoo.com>.
28792 2012-04-04  Jim Meyering  <meyering@redhat.com>
28794         regex: correct #pragma guard expression
28795         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
28796         not 4.3.  Correct its cpp guard expression.
28798 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
28800         regex: remove unnecessary type punning
28801         Problem reported by Vladimir Serbinenko in
28802         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
28803         * lib/regex.h (struct re_pattern_buffer): Change the type of
28804         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
28805         Fix comment to match code.
28806         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
28807         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
28808         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
28809         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
28810         (set_regs):
28811         Omit no-longer-necessary casts.
28813 2012-04-03  Bruno Haible  <bruno@clisp.org>
28815         Tests for module 'ilogbl'.
28816         * modules/ilogbl-tests: New file.
28817         * tests/test-ilogbl.c: New file.
28819         New module 'ilogbl'.
28820         * lib/math.in.h (ilogbl): New declaration.
28821         * lib/ilogbl.c: New file.
28822         * m4/ilogbl.m4: New file.
28823         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
28824         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
28825         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
28826         Split sed invocation, to avoid the limit of 100 substitutions of
28827         HP-UX 'sed'.
28828         * modules/ilogbl: New file.
28829         * tests/test-math-c++.cc: Check the declaration of ilogbl.
28830         * doc/posix-functions/ilogbl.texi: Mention the new module.
28832 2012-04-03  Bruno Haible  <bruno@clisp.org>
28834         Tests for module 'ilogbf'.
28835         * modules/ilogbf-tests: New file.
28836         * tests/test-ilogbf.c: New file.
28838         New module 'ilogbf'.
28839         * lib/math.in.h (ilogbf): New declaration.
28840         * lib/ilogbf.c: New file.
28841         * m4/ilogbf.m4: New file.
28842         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
28843         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
28844         REPLACE_ILOGBF.
28845         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
28846         REPLACE_ILOGBF.
28847         * modules/ilogbf: New file.
28848         * tests/test-math-c++.cc: Check the declaration of ilogbf.
28849         * doc/posix-functions/ilogbf.texi: Mention the new module.
28851 2012-04-03  Bruno Haible  <bruno@clisp.org>
28853         Tests for module 'ilogb'.
28854         * modules/ilogb-tests: New file.
28855         * tests/test-ilogb.c: New file.
28856         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
28857         tests/test-logb-ieee.h.
28859         New module 'ilogb'.
28860         * lib/math.in.h (ilogb): New declaration.
28861         * lib/ilogb.c: New file.
28862         * m4/ilogb.m4: New file.
28863         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
28864         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
28865         REPLACE_ILOGB.
28866         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
28867         REPLACE_ILOGB.
28868         * modules/ilogb: New file.
28869         * tests/test-math-c++.cc: Check the declaration of ilogb.
28870         * doc/posix-functions/ilogb.texi: Mention the new module.
28872 2012-04-03  Bruno Haible  <bruno@clisp.org>
28874         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
28875         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
28876         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
28877         (main): Check their values.
28878         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
28879         problem.
28881 2012-04-03  Bruno Haible  <bruno@clisp.org>
28883         Tests for module 'logbl-ieee'.
28884         * modules/logbl-ieee-tests: New file.
28885         * tests/test-logbl-ieee.c: New file.
28887         New module 'logbl-ieee'.
28888         * modules/logbl-ieee: New file.
28890         Tests for module 'logb-ieee'.
28891         * modules/logb-ieee-tests: New file.
28892         * tests/test-logb-ieee.c: New file.
28894         New module 'logb-ieee'.
28895         * modules/logb-ieee: New file.
28897         Tests for module 'logbf-ieee'.
28898         * modules/logbf-ieee-tests: New file.
28899         * tests/test-logbf-ieee.c: New file.
28900         * tests/test-logb-ieee.h: New file.
28902         New module 'logbf-ieee'.
28903         * modules/logbf-ieee: New file.
28905 2012-04-03  Bruno Haible  <bruno@clisp.org>
28907         Tests for module 'logbl'.
28908         * modules/logbl-tests: New file.
28909         * tests/test-logbl.c: New file.
28911         New module 'logbl'.
28912         * lib/math.in.h (logbl): New declaration.
28913         * lib/logbl.c: New file.
28914         * m4/logbl.m4: New file.
28915         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
28916         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
28917         REPLACE_LOGBL.
28918         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
28919         REPLACE_LOGBL.
28920         * modules/logbl: New file.
28921         * tests/test-math-c++.cc: Check the declaration of logbl.
28922         * doc/posix-functions/logbl.texi: Mention the new module.
28924 2012-04-02  Bruno Haible  <bruno@clisp.org>
28926         Tests for module 'logbf'.
28927         * modules/logbf-tests: New file.
28928         * tests/test-logbf.c: New file.
28930         New module 'logbf'.
28931         * lib/math.in.h (logbf): New declaration.
28932         * lib/logbf.c: New file.
28933         * m4/logbf.m4: New file.
28934         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
28935         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
28936         REPLACE_LOGBF.
28937         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
28938         REPLACE_LOGBF.
28939         * modules/logbf: New file.
28940         * tests/test-math-c++.cc: Check the declaration of logbf.
28941         * doc/posix-functions/logbf.texi: Mention the new module.
28943 2012-04-02  Bruno Haible  <bruno@clisp.org>
28945         logb tests: More tests.
28946         * tests/test-logb.h: New file, based on tests/test-logb.c and
28947         tests/test-frexp.h.
28948         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
28949         (main): Just invoke test_function.
28950         * modules/logb-tests (Files): Add tests/test-logb.h,
28951         tests/minus-zero.h, tests/randomd.c.
28952         (Makefile.am): Add randomd.c to test_logb_SOURCES.
28954         logb: Provide replacement and workarounds.
28955         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
28956         is 1.
28957         * lib/logb.c: New file.
28958         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
28959         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
28960         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
28961         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
28962         * modules/logb (Files): Add lib/logb.c.
28963         (Depends-on): Add isfinite, frexp, isnand.
28964         (configure.ac): Compile the replacement code logb.c if needed.
28965         * tests/test-math-c++.cc: Check the declaration of logb.
28966         * doc/posix-functions/logb.texi: Mention the replacement and the bug
28967         with subnormal numbers.
28969 2012-04-02  Bruno Haible  <bruno@clisp.org>
28971         log10* tests: Speed up.
28972         * tests/test-log10.h (test_function): Reduce amount of random numbers
28973         to test.
28975 2012-04-01  Bruno Haible  <bruno@clisp.org>
28977         logf-ieee: Fix test whether logf works.
28978         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
28980 2012-04-01  Bruno Haible  <bruno@clisp.org>
28982         log10l: Work around log10l-ieee test failure on IRIX 6.5.
28983         * lib/log10l.c: Include <float.h>
28984         (log10l): On IRIX, normalize the +Infinity value.
28985         * modules/log10l (Depends-on): Add 'float'.
28986         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
28987         +Infinity.
28989         log10f-ieee: Work around test failure on NetBSD 5.1.
28990         * m4/log10f-ieee.m4: New file.
28991         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
28992         test whether log10f works with a negative argument. Replace it if not.
28993         * lib/log10f.c (log10f): For negative arguments, return NaN.
28994         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
28995         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
28996         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
28998         log10f-ieee: Work around test failure on Solaris 9.
28999         * modules/log10f-ieee (Depends-on): Add log10-ieee.
29000         (configure.ac): Require gl_FUNC_LOG10F.
29002         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
29003         * m4/log10-ieee.m4: New file.
29004         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
29005         whether log10 works with a negative argument. Replace it if not.
29006         * lib/log10.c (log10): For negative arguments, return NaN.
29007         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
29008         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
29009         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
29011         Tests for module 'log10l-ieee'.
29012         * modules/log10l-ieee-tests: New file.
29013         * tests/test-log10l-ieee.c: New file.
29015         New module 'log10l-ieee'.
29016         * modules/log10l-ieee: New file.
29018         Tests for module 'log10-ieee'.
29019         * modules/log10-ieee-tests: New file.
29020         * tests/test-log10-ieee.c: New file.
29022         New module 'log10-ieee'.
29023         * modules/log10-ieee: New file.
29025         Tests for module 'log10f-ieee'.
29026         * modules/log10f-ieee-tests: New file.
29027         * tests/test-log10f-ieee.c: New file.
29028         * tests/test-log10-ieee.h: New file.
29030         New module 'log10f-ieee'.
29031         * modules/log10f-ieee: New file.
29033 2012-04-01  Bruno Haible  <bruno@clisp.org>
29035         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
29036         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
29037         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
29038         workaround.
29039         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
29040         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
29041         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
29042         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
29043         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
29044         (Depends-on): Update conditions.
29045         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
29046         IRIX 6.5, OSF/1 5.1 problems.
29048 2012-04-01  Bruno Haible  <bruno@clisp.org>
29050         log10f: Work around OSF/1 5.1 bug.
29051         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
29052         * lib/log10f.c (log10f): If logf exists, use it and provide just the
29053         workaround.
29054         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
29055         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
29056         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
29057         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
29058         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
29059         (Depends-on): Update conditions.
29060         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
29062 2012-04-01  Bruno Haible  <bruno@clisp.org>
29064         log10: Work around OSF/1 5.1 bug.
29065         * lib/math.in.h (log10): New declaration.
29066         * lib/log10.c: New file.
29067         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
29068         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
29069         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
29070         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
29071         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
29072         * modules/log10 (Files): Add lib/log10.c.
29073         (Depends-on): Add math.
29074         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
29075         * tests/test-math-c++.cc: Check the declaration of log10.
29076         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
29078 2012-03-31  Bruno Haible  <bruno@clisp.org>
29080         log10l tests: More tests.
29081         * modules/log10l-tests (Files): Add tests/test-log10l.h,
29082         tests/minus-zero.h, tests/randoml.c.
29083         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
29084         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
29085         (main): Invoke test_function.
29087         log10f tests: More tests.
29088         * modules/log10f-tests (Files): Add tests/test-log10.h,
29089         tests/minus-zero.h, tests/randomf.c.
29090         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
29091         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
29092         (main): Invoke test_function.
29094         log10 tests: More tests.
29095         * tests/test-log10.h: New file.
29096         * modules/log10-tests (Files): Add tests/test-log10.h,
29097         tests/minus-zero.h, tests/randomd.c.
29098         (Makefile.am): Add randomd.c to test_log10_SOURCES.
29099         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
29100         (main): Invoke test_function.
29102 2012-03-31  Simon Josefsson  <simon@josefsson.org>
29104         fflush: Fix syntax error.
29105         * lib/fflush.c: Include unused-parameter.h, needed for
29106         _GL_UNUSED_PARAMETER.
29107         * modules/fflush (Depends-on): Add snippet/unused-parameter.
29109 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
29111         regex: pacify GCC when compiling GRUB
29112         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
29113         a diagnostic.  Reported by Vladimir Serbinenko in
29114         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
29116 2012-03-29  Eric Blake  <eblake@redhat.com>
29118         stdio: don't assume gets any more
29119         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
29120         support.
29121         * modules/stdio (Makefile.am): Likewise.
29122         * lib/stdio-read.c (gets): Likewise.
29123         * tests/test-stdio-c++.cc: Likewise.
29124         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
29125         * lib/stdio.in.h (gets): Make warning occur in more places.
29126         * doc/posix-functions/gets.texi (gets): Update documentation.
29127         Reported by Christer Solskogen.
29129         maint.mk: fix syntax checks without exclusions
29130         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
29131         Reported by Daniel P. Berrange.
29133         strerror_r: avoid compiler warning
29134         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
29135         level.
29137         fflush: avoid compiler warning
29138         * lib/fflush.c (update_fpos_cache): Mark variables that are
29139         potentially unused.
29141 2012-03-25  Bruno Haible  <bruno@clisp.org>
29143         Tests for module 'localeconv'.
29144         * modules/localeconv-tests: New file.
29145         * tests/test-localeconv.c: New file.
29147         New module 'localeconv'.
29148         * lib/locale.in.h (localeconv): New declaration.
29149         * lib/localeconv.c: New file.
29150         * m4/localeconv.m4: New file.
29151         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
29152         REPLACE_LOCALECONV.
29153         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
29154         REPLACE_LOCALECONV.
29155         * modules/localeconv: New file.
29156         * modules/nl_langinfo (Depends-on): Add localeconv.
29157         * modules/human (Depends-on): Likewise.
29158         * doc/posix-functions/localeconv.texi: Mention the new module.
29160 2012-03-25  Bruno Haible  <bruno@clisp.org>
29162         locale: Provide a complete 'struct lconv'.
29163         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
29164         'struct lconv' does not contain int_p_cs_precedes.
29165         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
29166         * doc/posix-headers/locale.texi: Update.
29168         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
29169         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
29170         * doc/posix-headers/locale.texi: Update.
29172         locale: Provide a working 'struct lconv'.
29173         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
29174         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
29175         'struct lconv' does not even contain decimal_point.
29176         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
29177         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
29178         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
29179         * doc/posix-headers/locale.texi: Mention the problems with
29180         'struct lconv'.
29181         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
29183 2012-03-24  Bruno Haible  <bruno@clisp.org>
29185         Enable common subexpression optimization in GCC.
29186         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
29187         macros.
29188         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
29189         GCC attribute 'const'.
29190         (uc_locale_language): Declare with GCC attribute 'pure'.
29191         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
29192         with GCC attribute 'const'.
29193         * lib/unictype.in.h (uc_is_general_category_withtable,
29194         uc_combining_class, uc_combining_class_name,
29195         uc_combining_class_long_name, uc_bidi_class_name,
29196         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
29197         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
29198         uc_decimal_value, uc_digit_value, uc_numeric_value,
29199         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
29200         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
29201         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
29202         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
29203         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
29204         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
29205         Declare with GCC attribute 'const'.
29206         (uc_general_category_name, uc_general_category_long_name,
29207         uc_general_category_byname, uc_general_category,
29208         uc_is_general_category, uc_combining_class_byname,
29209         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
29210         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
29211         Declare with GCC attribute 'pure'.
29212         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
29213         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
29214         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
29215         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
29216         with GCC attribute 'pure'.
29217         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
29218         'const'.
29219         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
29220         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
29221         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
29222         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
29223         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
29224         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
29225         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
29226         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
29227         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
29228         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
29229         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
29230         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
29231         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
29232         GCC attribute 'pure'.
29233         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
29234         'const'.
29235         * lib/uniwidth.in.h (uc_width): Simplify declaration.
29236         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
29237         u32_strwidth): Declare with GCC attribute 'pure'.
29239         Enable common subexpression optimization in GCC.
29240         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
29241         (alphasort): Declare with GCC attribute 'pure'.
29242         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
29243         (atoll): Declare with GCC attribute 'pure'.
29244         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
29245         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
29246         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
29247         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
29248         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
29249         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
29250         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
29252 2012-03-24  Bruno Haible  <bruno@clisp.org>
29254         gnulib-tool: Avoid unintended error output from 'cmp'.
29255         * gnulib-tool (func_add_file, func_update_file, func_import): Use
29256         "cmp -s", not "cmp > /dev/null".
29258 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
29260         gnulib-tool: fix imprecise comments w.r.t. an automake bug
29262         It's not just Automake versions < 1.9b that creates an empty
29263         pkgdatadir at installation time if pkgdata_DATA is specified
29264         to empty; modern automake versions do this as well, at least
29265         until automake 1.11.4 (not yet released at the moment of writing,
29266         but soon to appear).  That behaviour was generally considered a
29267         feature rather than a bug, at least until this discussion:
29268         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
29270         See also automake bugs #10997 and #11030.
29272         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
29273         reference to relevant automake bug numbers.
29274         (func_emit_tests_Makefile_am): Likewise.
29276 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
29278         announce-gen: use Digest::SHA when possible
29279         * build-aux/announce-gen: Use Digest::SHA when possible, falling
29280         back to Digest::SHA1 if necessary.
29282 2012-03-20  Jim Meyering  <meyering@redhat.com>
29284         tests: avoid gcc warnings about argv vs. const initializers
29285         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
29286         warnings about discarding 'const' qualifier from pointer target type.
29287         * tests/test-posix_spawn2.c (main): Likewise.
29289 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
29291         README-release: simplify slightly
29292         * top/README-release: Run "git checkout master" only once.
29294 2012-03-15  Mark Wielaard  <mark@klomp.org>
29296         git-merge-changelog: add specific example on how to use with hg.
29297         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
29299 2012-03-18  Mark Wielaard  <mark@klomp.org>
29301         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
29303 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
29305         git-version-gen: don't let "prefix" envvar cause trouble
29306         * build-aux/git-version-gen (prefix): Initialize properly,
29307         so as not to use a value specified via the environment.
29308         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
29310 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
29312         regex: diagnose too-large repeat counts in EREs
29313         Previously, the code did not diagnose the too-large repeat count
29314         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
29315         as if it were 'b\{1000000000}', which is unexpected.
29316         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
29317         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
29318         is a reasonable one for this problem.  Another option would be to
29319         create a new REG_OVERFLOW error for repeat counts that are too large.
29320         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
29321         count is too large, so that the caller can distinguish the two cases.
29322         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
29323         "Too large" return code, and that repeat counts are one example of this.
29325 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
29327         doc: some glibc x32 integer width issues
29328         * doc/posix-headers/sys_types.texi (sys/types.h):
29329         * doc/posix-headers/time.texi (time.h):
29330         Mention that glibc x32 does not conform to POSIX in a couple of
29331         areas related to integer widths.
29333 2012-03-15  Bruno Haible  <bruno@clisp.org>
29335         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
29336         * lib/fma.c (VOLATILE): New macro.
29337         (FUNC): Use it to work around a GCC compiler bug.
29339 2012-03-13  Bruno Haible  <bruno@clisp.org>
29341         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
29342         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
29343         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
29344         REPLACE_HYPOTL to 1.
29345         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
29347 2012-03-13  Bruno Haible  <bruno@clisp.org>
29349         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
29350         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
29351         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
29352         REPLACE_REMAINDERL to 1.
29353         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
29354         bug.
29356 2012-03-13  Bruno Haible  <bruno@clisp.org>
29358         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
29359         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
29360         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
29361         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
29362         too big rounding errors.
29363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
29364         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
29365         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
29366         (Depends-on): Update conditions.
29367         * tests/test-sqrtl.c (my_ldexpl): New function.
29368         (main): Add test of a particular value.
29369         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
29371 2012-03-13  Pádraig Brady  <P@draigBrady.com>
29373         doc: Update timer_* platform portability notes.
29374         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
29375         that always return ENOSYS.
29376         * doc/posix-functions/timer_delete.texi: Likewise.
29377         * doc/posix-functions/timer_gettime.texi: Likewise.
29378         * doc/posix-functions/timer_settime.texi: Likewise.
29380 2012-03-13  Bruno Haible  <bruno@clisp.org>
29382         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
29383         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
29384         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
29385         REPLACE_CBRTL to 1.
29386         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
29388 2012-03-13  Bruno Haible  <bruno@clisp.org>
29390         remainderl: Avoid compilation error on AIX >= 5.2.
29391         * lib/math.in.h (remainderl): Undefine macro from the system header.
29393 2012-03-13  Bruno Haible  <bruno@clisp.org>
29395         Avoid compilation errors with MSVC option -fp:strict.
29396         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
29397         * lib/cbrtf.c: Likewise.
29398         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
29400 2012-03-12  Bruno Haible  <bruno@clisp.org>
29402         uninorm: Don't crash in out-of-memory conditions.
29403         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
29404         gracefully.
29405         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
29406         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
29408 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
29410         quote: fix syntax-check
29411         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
29412         also exports quote_quoting_options.
29414 2012-03-12  Simon Josefsson  <simon@josefsson.org>
29416         Collapse list of copyright years to ranges.  See
29417         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
29418         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
29419         build-aux/csharpexec.sh.in, build-aux/gnupload,
29420         build-aux/install-reloc, build-aux/javacomp.sh.in,
29421         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
29422         build-aux/move-if-change, build-aux/reloc-ldflags,
29423         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
29425 2012-03-11  Bruno Haible  <bruno@clisp.org>
29427         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
29428         * m4/log2f-ieee.m4: New file.
29429         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
29430         whether log2f works with a minus zero argument. Replace it if not.
29431         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
29432         (Depends-on): Add log2-ieee.
29433         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
29434         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
29436         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
29437         * m4/log2-ieee.m4: New file.
29438         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
29439         whether log2 works with a minus zero argument. Replace it if not.
29440         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
29441         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
29442         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
29444         Tests for module 'log2l-ieee'.
29445         * modules/log2l-ieee-tests: New file.
29446         * tests/test-log2l-ieee.c: New file.
29448         New module 'log2l-ieee'.
29449         * modules/log2l-ieee: New file.
29451         Tests for module 'log2-ieee'.
29452         * modules/log2-ieee-tests: New file.
29453         * tests/test-log2-ieee.c: New file.
29455         New module 'log2-ieee'.
29456         * modules/log2-ieee: New file.
29458         Tests for module 'log2f-ieee'.
29459         * modules/log2f-ieee-tests: New file.
29460         * tests/test-log2f-ieee.c: New file.
29461         * tests/test-log2-ieee.h: New file.
29463         New module 'log2f-ieee'.
29464         * modules/log2f-ieee: New file.
29466 2012-03-11  Bruno Haible  <bruno@clisp.org>
29468         Tests for module 'log2l'.
29469         * modules/log2l-tests: New file.
29470         * tests/test-log2l.c: New file.
29472         New module 'log2l'.
29473         * lib/math.in.h (log2l): New declaration.
29474         * lib/log2l.c: New file.
29475         * m4/log2l.m4: New file.
29476         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
29477         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
29478         REPLACE_LOG2L.
29479         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
29480         REPLACE_LOG2L.
29481         * modules/log2l: New file.
29482         * tests/test-math-c++.cc: Check the declaration of log2l.
29483         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
29484         and OSF/1 problems.
29486 2012-03-11  Bruno Haible  <bruno@clisp.org>
29488         Tests for module 'log2f'.
29489         * modules/log2f-tests: New file.
29490         * tests/test-log2f.c: New file.
29492         New module 'log2f'.
29493         * lib/math.in.h (log2f): New declaration.
29494         * lib/log2f.c: New file.
29495         * m4/log2f.m4: New file.
29496         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
29497         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
29498         REPLACE_LOG2F.
29499         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
29500         REPLACE_LOG2F.
29501         * modules/log2f: New file.
29502         * tests/test-math-c++.cc: Check the declaration of log2f.
29503         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
29504         and OSF/1 and Cygwin problems.
29506 2012-03-11  Bruno Haible  <bruno@clisp.org>
29508         Tests for module 'log2'.
29509         * modules/log2-tests: New file.
29510         * tests/test-log2.c: New file.
29511         * tests/test-log2.h: New file.
29513         New module 'log2'.
29514         * lib/math.in.h (log2): New declaration.
29515         * lib/log2.c: New file.
29516         * m4/log2.m4: New file.
29517         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
29518         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
29519         REPLACE_LOG2.
29520         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
29521         REPLACE_LOG2.
29522         * modules/log2: New file.
29523         * tests/test-math-c++.cc: Check the declaration of log2.
29524         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
29525         and OSF/1 and Cygwin problems.
29527 2012-03-11  Bruno Haible  <bruno@clisp.org>
29529         exp2* tests: More tests.
29530         * tests/test-exp2.h (test_function): Test all integral arguments that
29531         don't need to overflow or denormalized numbers.
29532         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
29533         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
29534         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
29536 2012-03-10  Bruno Haible  <bruno@clisp.org>
29538         log1pl-ieee: Work around test failure on AIX 7.1.
29539         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
29541         log1pl-ieee: Work around test failure on IRIX 6.5.
29542         * m4/log1pl-ieee.m4: New file.
29543         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
29544         test whether log1pl works with a minus zero argument. Replace it if
29545         not.
29546         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
29547         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
29548         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
29549         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
29550         (Depends-on): Update conditions.
29551         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
29552         m4/signbit.m4.
29553         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
29554         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
29556         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
29557         * m4/log1pf-ieee.m4: New file.
29558         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
29559         test whether log1pf works with a minus zero argument. Replace it if
29560         not.
29561         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
29562         m4/signbit.m4.
29563         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
29564         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
29566         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
29567         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
29568         (configure.ac): Require gl_FUNC_LOG1PF.
29570         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
29571         * m4/log1p-ieee.m4: New file.
29572         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
29573         whether log1p works with a minus zero argument. Replace it if not.
29574         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
29575         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
29576         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
29577         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
29578         (Depends-on): Update conditions.
29579         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
29580         m4/signbit.m4.
29581         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
29582         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
29584         Tests for module 'log1pl-ieee'.
29585         * modules/log1pl-ieee-tests: New file.
29586         * tests/test-log1pl-ieee.c: New file.
29588         New module 'log1pl-ieee'.
29589         * modules/log1pl-ieee: New file.
29591         Tests for module 'log1p-ieee'.
29592         * modules/log1p-ieee-tests: New file.
29593         * tests/test-log1p-ieee.c: New file.
29595         New module 'log1p-ieee'.
29596         * modules/log1p-ieee: New file.
29598         Tests for module 'log1pf-ieee'.
29599         * modules/log1pf-ieee-tests: New file.
29600         * tests/test-log1pf-ieee.c: New file.
29601         * tests/test-log1p-ieee.h: New file.
29603         New module 'log1pf-ieee'.
29604         * modules/log1pf-ieee: New file.
29606 2012-03-10  Bruno Haible  <bruno@clisp.org>
29608         Tests for module 'log1pl'.
29609         * modules/log1pl-tests: New file.
29610         * tests/test-log1pl.c: New file.
29612         New module 'log1pl'.
29613         * lib/math.in.h (log1pl): New declaration.
29614         * lib/log1pl.c: New file.
29615         * m4/log1pl.m4: New file.
29616         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
29617         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
29618         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
29619         * modules/log1pl: New file.
29620         * tests/test-math-c++.cc: Check the declaration of log1pl.
29621         * doc/posix-functions/log1pl.texi: Mention the new module.
29623 2012-03-10  Bruno Haible  <bruno@clisp.org>
29625         Tests for module 'log1pf'.
29626         * modules/log1pf-tests: New file.
29627         * tests/test-log1pf.c: New file.
29629         New module 'log1pf'.
29630         * lib/math.in.h (log1pf): New declaration.
29631         * lib/log1pf.c: New file.
29632         * m4/log1pf.m4: New file.
29633         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
29634         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
29635         REPLACE_LOG1PF.
29636         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
29637         REPLACE_LOG1PF.
29638         * modules/log1pf: New file.
29639         * tests/test-math-c++.cc: Check the declaration of log1pf.
29640         * doc/posix-functions/log1pf.texi: Mention the new module.
29642 2012-03-10  Bruno Haible  <bruno@clisp.org>
29644         log1p tests: More tests.
29645         * tests/test-log1p.h: New file.
29646         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
29647         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
29648         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
29649         (main): Invoke test_function.
29651         log1p: Provide replacement for Minix and MSVC.
29652         * lib/math.in.h (log1p): New declaration.
29653         * lib/log1p.c: New file.
29654         * m4/log1p.m4: New file.
29655         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
29656         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
29657         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
29658         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
29659         (Depends-on): Add math, isnand, log, round.
29660         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
29661         HAVE_LOG1P is 0.
29662         * tests/test-math-c++.cc: Check the declaration of log1p.
29663         * doc/posix-functions/log1p.texi: Mention the replacement.
29665 2012-03-10  Bruno Haible  <bruno@clisp.org>
29667         math tests: Small simplification.
29668         * tests/test-exp.h (test_function): Use the same err_bound for
29669         'double' on platforms with sizeof (long double) == sizeof (double)
29670         than on platforms with sizeof (long double) > sizeof (double).
29671         * tests/test-exp2.h (test_function): Likewise.
29672         * tests/test-expm1.h (test_function): Likewise.
29673         * tests/test-log.h (test_function): Likewise.
29675 2012-03-10  Bruno Haible  <bruno@clisp.org>
29677         Fix some comments.
29678         * lib/expl.c: Fix an ambiguous comment.
29679         * lib/expm1.c: Likewise.
29680         * lib/expm1l.c: Likewise.
29681         * lib/exp2.c: Likewise.
29682         * lib/exp2l.c: Likewise.
29684 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
29686         regex: allow inclusion of <regex.h> before <limits.h>
29687         Without this patch, portable programs had to include <limits.h> before
29688         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
29689         I ran into this problem with a test version of GNU grep on Solaris 8.
29690         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
29691         This is done conditionally so that this change can be merged
29692         back to glibc.
29693         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
29694         using the included regex.
29696         fts: depend on fdopendir
29697         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
29698         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
29699         problem was introduced when fdopendir was split out.
29701 2012-03-10  Bruno Haible  <bruno@clisp.org>
29703         Remove unused variables.
29704         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
29705         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
29707 2012-03-10  Bruno Haible  <bruno@clisp.org>
29709         isnanf-nolibm: Fix last commit.
29710         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
29712         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
29713         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
29715 2012-03-10  Bruno Haible  <bruno@clisp.org>
29717         logf-ieee: Work around test failure on NetBSD 5.1.
29718         * m4/logf-ieee.m4: New file.
29719         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
29720         whether logf works with a negative argument. Replace it if not.
29721         * lib/logf.c (logf): For negative arguments, return NaN.
29722         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
29723         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
29724         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
29726         logf-ieee: Work around test failure on Solaris 9.
29727         * modules/logf-ieee (Depends-on): Add log-ieee.
29728         (configure.ac): Require gl_FUNC_LOGF.
29730         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
29731         * m4/log-ieee.m4: New file.
29732         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
29733         log works with a negative argument. Replace it if not.
29734         * lib/log.c (log): For negative arguments, return NaN.
29735         * modules/log-ieee (Files): Add m4/log-ieee.m4.
29736         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
29737         * doc/posix-functions/log.texi: Mention the log-ieee module.
29739         Tests for module 'logl-ieee'.
29740         * modules/logl-ieee-tests: New file.
29741         * tests/test-logl-ieee.c: New file.
29743         New module 'logl-ieee'.
29744         * modules/logl-ieee: New file.
29746         Tests for module 'log-ieee'.
29747         * modules/log-ieee-tests: New file.
29748         * tests/test-log-ieee.c: New file.
29750         New module 'log-ieee'.
29751         * modules/log-ieee: New file.
29753         Tests for module 'logf-ieee'.
29754         * modules/logf-ieee-tests: New file.
29755         * tests/test-logf-ieee.c: New file.
29756         * tests/test-log-ieee.h: New file.
29758         New module 'logf-ieee'.
29759         * modules/logf-ieee: New file.
29761 2012-03-10  Bruno Haible  <bruno@clisp.org>
29763         log: Fix bug introduced on 2012-03-09.
29764         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
29766 2012-03-10  Pádraig Brady  <P@draigBrady.com>
29768         timer-time: link explicitly with pthreads on glibc
29769         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
29770         to support static linking, when newer glibc is
29771         detected, as that contains pthread emulation of
29772         POSIX timer functions where required.
29773         * modules/timer-time: Depend on threadlib to
29774         pull in the appropriate library to link.
29776 2012-03-10  Bruno Haible  <bruno@clisp.org>
29778         log* tests: More tests.
29779         * tests/test-log.h: New file.
29780         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
29781         (main): Invoke test_function.
29782         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
29783         (main): Invoke test_function.
29784         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
29785         (main): Invoke test_function.
29786         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
29787         tests/randomd.c.
29788         (Makefile.am): Add randomd.c to test_log_SOURCES.
29789         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
29790         tests/randomf.c.
29791         (Makefile.am): Add randomf.c to test_logf_SOURCES.
29792         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
29793         tests/randoml.c.
29794         (Depends-on): Add 'float'.
29795         (Makefile.am): Add randoml.c to test_logl_SOURCES.
29797 2012-03-09  Bruno Haible  <bruno@clisp.org>
29799         logl: Work around OSF/1 5.1 bug.
29800         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
29801         * lib/logl.c (logl): If logl exists, use it and provide just the
29802         workaround.
29803         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
29804         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
29805         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
29806         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
29807         * modules/logl (configure.ac): Consider REPLACE_LOGL.
29808         (Depends-on): Update conditions.
29809         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
29811 2012-03-09  Bruno Haible  <bruno@clisp.org>
29813         logf: Work around OSF/1 5.1 bug.
29814         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
29815         * lib/logf.c (logf): If logf exists, use it and provide just the
29816         workaround.
29817         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
29818         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
29819         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
29820         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
29821         * modules/logf (configure.ac): Consider REPLACE_LOGF.
29822         (Depends-on): Update conditions.
29823         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
29825 2012-03-09  Bruno Haible  <bruno@clisp.org>
29827         log: Work around OSF/1 5.1 bug.
29828         * lib/math.in.h (log): New declaration.
29829         * lib/log.c: New file.
29830         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
29831         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
29832         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
29833         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
29834         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
29835         * modules/log (Files): Add lib/log.c.
29836         (Depends-on): Add math.
29837         (configure.ac): If REPLACE_LOG is 1, compile an override.
29838         * tests/test-math-c++.cc: Check the declaration of log.
29839         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
29841 2012-03-09  Jim Meyering  <meyering@redhat.com>
29843         readtokens.c: adjust wording in a comment
29844         * lib/readtokens.c: Insert omitted "that" in a comment.
29846 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
29848         modechange: add notations +40, 00440, etc.
29849         * lib/modechange.c (mode_compile): Support new notations
29850         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
29852 2012-03-08  Bruno Haible  <bruno@clisp.org>
29854         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
29855         * m4/exp2l-ieee.m4: New file.
29856         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
29857         test whether exp2l works with a NaN argument and with a negative
29858         infinity argument. Replace it if not.
29859         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
29860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
29861         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
29862         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
29863         (Depends-on): Update conditions.
29864         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
29865         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
29866         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
29868         Tests for module 'exp2l-ieee'.
29869         * modules/exp2l-ieee-tests: New file.
29870         * tests/test-exp2l-ieee.c: New file.
29872         New module 'exp2l-ieee'.
29873         * modules/exp2l-ieee: New file.
29875         Tests for module 'exp2-ieee'.
29876         * modules/exp2-ieee-tests: New file.
29877         * tests/test-exp2-ieee.c: New file.
29879         New module 'exp2-ieee'.
29880         * modules/exp2-ieee: New file.
29882         Tests for module 'exp2f-ieee'.
29883         * modules/exp2f-ieee-tests: New file.
29884         * tests/test-exp2f-ieee.c: New file.
29885         * tests/test-exp2-ieee.h: New file.
29887         New module 'exp2f-ieee'.
29888         * modules/exp2f-ieee: New file.
29890 2012-03-08  Bruno Haible  <bruno@clisp.org>
29892         Tests for module 'exp2l'.
29893         * modules/exp2l-tests: New file.
29894         * tests/test-exp2l.c: New file.
29896         New module 'exp2l'.
29897         * lib/math.in.h (exp2l): New declaration.
29898         * lib/exp2l.c: New file.
29899         * lib/expl-table.c: New file, extracted from lib/expl.c.
29900         * lib/expl.c (gl_expl_table): New declaration.
29901         (expl): Remove expl_table. Update reference.
29902         * m4/exp2l.m4: New file.
29903         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
29904         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
29905         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
29906         * modules/exp2l: New file.
29907         * modules/expl (Files): Add lib/expl-table.c.
29908         (configure.ac): Compile also expl-table.c.
29909         * tests/test-math-c++.cc: Check the declaration of exp2l.
29910         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
29911         problem.
29913 2012-03-08  Bruno Haible  <bruno@clisp.org>
29915         Tests for module 'exp2f'.
29916         * modules/exp2f-tests: New file.
29917         * tests/test-exp2f.c: New file.
29919         New module 'exp2f'.
29920         * lib/math.in.h (exp2f): New declaration.
29921         * lib/exp2f.c: New file.
29922         * m4/exp2f.m4: New file.
29923         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
29924         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
29925         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
29926         * modules/exp2f: New file.
29927         * tests/test-math-c++.cc: Check the declaration of exp2f.
29928         * doc/posix-functions/exp2f.texi: Mention the new module and the
29929         IRIX problem.
29931 2012-03-08  Bruno Haible  <bruno@clisp.org>
29933         Tests for module 'exp2'.
29934         * modules/exp2-tests: New file.
29935         * tests/test-exp2.c: New file.
29936         * tests/test-exp2.h: New file.
29938         New module 'exp2'.
29939         * lib/math.in.h (exp2): New declaration.
29940         * lib/exp2.c: New file.
29941         * m4/exp2.m4: New file.
29942         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
29943         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
29944         REPLACE_EXP2.
29945         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
29946         REPLACE_EXP2.
29947         * modules/exp2: New file.
29948         * tests/test-math-c++.cc: Check the declaration of exp2.
29949         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
29950         and OpenBSD problems.
29952 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
29954         savedir: fix comment typo
29955         * lib/savedir.c (savedirstream): Fix typo in comment.
29957 2012-03-08  Bruno Haible  <bruno@clisp.org>
29959         test-readtokens.c: use const; remove unwarranted cast
29960         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
29962 2012-03-08  Bruno Haible  <bruno@clisp.org>
29964         fmal: Avoid compilation error on AIX.
29965         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
29966         AIX 5.2..7.1.
29968 2012-03-08  Bruno Haible  <bruno@clisp.org>
29970         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
29971         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
29972         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
29973         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
29974         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
29975         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
29976         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
29978 2012-03-08  Bruno Haible  <bruno@clisp.org>
29980         remainderf: Override buggy system function on IRIX 6.5.
29981         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
29982         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
29983         when it exists.
29984         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
29986 2012-03-08  Jim Meyering  <meyering@redhat.com>
29988         test-readtokens.c: avoid const-related compilation warnings
29989         * tests/test-readtokens.c: Avoid const-related compilation warnings.
29991 2012-03-07  Jim Meyering  <meyering@redhat.com>
29992             Bruno Haible  <bruno@clisp.org>
29994         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
29995         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
29996         tests/randomd.c.
29997         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
29998         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
29999         tests/randoml.c.
30000         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
30002 2012-03-07  Bruno Haible  <bruno@clisp.org>
30004         expm1l: Avoid compilation error on AIX.
30005         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
30006         AIX 5.2..7.1.
30008 2012-03-07  Bruno Haible  <bruno@clisp.org>
30010         expm1l: Don't override undeclared system function on IRIX 6.5.
30011         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
30012         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
30013         it exists. Set HAVE_DECL_EXPM1L.
30014         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
30015         HAVE_EXPM1L.
30016         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
30017         HAVE_EXPM1L.
30018         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
30020 2012-03-07  Bruno Haible  <bruno@clisp.org>
30022         remainderl: Don't override undeclared system function on IRIX 6.5.
30023         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
30024         HAVE_REMAINDERL.
30025         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
30026         declared when it exists. Set HAVE_DECL_REMAINDERL.
30027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
30028         not HAVE_REMAINDERL.
30029         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
30030         HAVE_REMAINDERL.
30031         * doc/posix-functions/remainderl.texi: Mention missing declaration
30032         problem.
30034 2012-03-07  Bruno Haible  <bruno@clisp.org>
30036         rintf: Don't override undeclared system function on IRIX 6.5.
30037         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
30038         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
30039         exists. Set HAVE_DECL_RINTF.
30040         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
30041         HAVE_RINTF.
30042         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
30043         HAVE_RINTF.
30044         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
30046 2012-03-07  Bruno Haible  <bruno@clisp.org>
30048         roundl: Avoid compilation error on AIX.
30049         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
30050         AIX 5.2..7.1.
30052 2012-03-07  Bruno Haible  <bruno@clisp.org>
30054         roundl: Don't override undeclared system function on IRIX 6.5.
30055         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
30056         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
30057         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
30058         * modules/roundl (configure.ac): For replacement code, test
30059         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
30060         (Depends-on): Update conditions.
30061         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
30063 2012-03-07  Bruno Haible  <bruno@clisp.org>
30065         roundf: Don't override undeclared system function on IRIX 6.5.
30066         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
30067         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
30068         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
30069         * modules/roundf (configure.ac): For replacement code, test
30070         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
30071         (Depends-on): Update conditions.
30072         * modules/roundf-ieee (Depends-on): Update conditions.
30073         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
30075 2012-03-07  Bruno Haible  <bruno@clisp.org>
30077         round: Don't override undeclared system function on IRIX 6.5.
30078         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
30079         argument.
30080         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
30081         also when it is not declared. Set HAVE_ROUND. For replacement code,
30082         test HAVE_ROUND, not HAVE_DECL_ROUND.
30083         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
30084         not HAVE_DECL_ROUND.
30085         (Depends-on): Update conditions.
30086         * modules/round-ieee (Depends-on): Update conditions.
30087         * doc/posix-functions/round.texi: Mention the IRIX problem.
30089 2012-03-07  Bruno Haible  <bruno@clisp.org>
30091         copysignf: Don't override undeclared system function on IRIX 6.5.
30092         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
30093         HAVE_COPYSIGNF.
30094         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
30095         declared when it exists. Set HAVE_DECL_COPYSIGNF.
30096         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
30097         not HAVE_COPYSIGNF.
30098         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
30099         HAVE_COPYSIGNF.
30100         * doc/posix-functions/copysignf.texi: Mention missing declaration
30101         problem.
30103 2012-03-07  Jim Meyering  <meyering@redhat.com>
30105         readtokens: add tests
30106         * modules/readtokens-tests: New file.
30107         * tests/test-readtokens.c: New file.
30109 2012-03-07  Jim Meyering  <meyering@redhat.com>
30111         quotearg: the module must now include quote.h
30112         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
30113         So must the module.
30114         * modules/quotearg (Files): Add quote.h.
30116 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
30118         readtokens: avoid core dumps with unusual calling patterns
30119         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
30120         * lib/readtokens.c: Include limits.h.
30121         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
30122         (readtoken): Don't cache the delimiters; the cache code was buggy
30123         if !delim && saved_delim, or if the new n_delim differs from the old.
30124         Also, it wasn't thread-safe.
30126 2012-03-07  Bruno Haible  <bruno@clisp.org>
30128         quote: Adhere to common module description layout.
30129         * modules/quote (Makefile.am): Add back empty section.
30131 2012-03-06  Akim Demaille  <demaille@gostai.com>
30133         quote: fuse into quotearg
30134         This patch is made for the benefit of Bison.
30135         quote does not leave the choice of the quoting style to the user.
30136         quoting_style provides poor customizability, yet quoting_options,
30137         which is very rich, is hidden inside quotearg.c.  So in order to
30138         allow quote customization, move its implementation to quotearg.c.
30139         * lib/quote.c: Remove.
30140         * modules/quote: Adjust.
30141         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
30142         warning: provide all the members of literal structs.
30143         (quote_quoting_options): New.
30144         (quote, quote_n): Import implementation from quote.c.
30145         * lib/quote.h: Import the comments from quote.c.
30146         (quote_quoting_options): New.
30148 2012-03-06  Bruno Haible  <bruno@clisp.org>
30150         Tests for module 'expm1l-ieee'.
30151         * modules/expm1l-ieee-tests: New file.
30152         * tests/test-expm1l-ieee.c: New file.
30154         New module 'expm1l-ieee'.
30155         * modules/expm1l-ieee: New file.
30157         Tests for module 'expm1f-ieee'.
30158         * modules/expm1f-ieee-tests: New file.
30159         * tests/test-expm1f-ieee.c: New file.
30161         New module 'expm1f-ieee'.
30162         * modules/expm1f-ieee: New file.
30164         Tests for module 'expm1-ieee'.
30165         * modules/expm1-ieee-tests: New file.
30166         * tests/test-expm1-ieee.c: New file.
30167         * tests/test-expm1-ieee.h: New file.
30169         New module 'expm1-ieee'.
30170         * modules/expm1-ieee: New file.
30171         * m4/expm1-ieee.m4: New file.
30172         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
30173         whether expm1 works with a minus zero argument. Replace it if not.
30174         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
30175         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
30176         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
30177         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
30178         (Depends-on): Update conditions.
30179         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
30180         AIX problem.
30182 2012-03-06  Bruno Haible  <bruno@clisp.org>
30184         Work around expm1f bug on IRIX 6.5.
30185         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
30186         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
30187         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
30188         not work.
30189         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
30190         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
30191         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
30192         (Depends-on): Update conditions.
30193         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
30195 2012-03-06  Bruno Haible  <bruno@clisp.org>
30197         Tests for module 'expm1l'.
30198         * modules/expm1l-tests: New file.
30199         * tests/test-expm1l.c: New file.
30201         New module 'expm1l'.
30202         * lib/math.in.h (expm1l): New declaration.
30203         * lib/expm1l.c: New file.
30204         * m4/expm1l.m4: New file.
30205         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
30206         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
30207         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
30208         * modules/expm1l: New file.
30209         * tests/test-math-c++.cc: Check the declaration of expm1l.
30210         * doc/posix-functions/expm1l.texi: Mention the new module.
30212 2012-03-06  Bruno Haible  <bruno@clisp.org>
30214         Tests for module 'expm1f'.
30215         * modules/expm1f-tests: New file.
30216         * tests/test-expm1f.c: New file.
30218         New module 'expm1f'.
30219         * lib/math.in.h (expm1f): New declaration.
30220         * lib/expm1f.c: New file.
30221         * m4/expm1f.m4: New file.
30222         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
30223         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
30224         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
30225         * modules/expm1f: New file.
30226         * tests/test-math-c++.cc: Check the declaration of expm1f.
30227         * doc/posix-functions/expm1f.texi: Mention the new module.
30229 2012-03-06  Bruno Haible  <bruno@clisp.org>
30231         Tests for module 'expm1'.
30232         * modules/expm1-tests: New file.
30233         * tests/test-expm1.c: New file.
30234         * tests/test-expm1.h: New file.
30236         New module 'expm1'.
30237         * lib/math.in.h (expm1): New declaration.
30238         * lib/expm1.c: New file.
30239         * m4/expm1.m4: New file.
30240         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
30241         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
30242         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
30243         * modules/expm1: New file.
30244         * tests/test-math-c++.cc: Check the declaration of expm1.
30245         * doc/posix-functions/expm1.texi: Mention the new module.
30247 2012-03-06  Bruno Haible  <bruno@clisp.org>
30249         math: Ensure declarations of math functions.
30250         * modules/acosf (Depends-on): Add 'extensions'.
30251         * modules/asinf (Depends-on): Likewise.
30252         * modules/atan2f (Depends-on): Likewise.
30253         * modules/atanf (Depends-on): Likewise.
30254         * modules/cbrt (Depends-on): Likewise.
30255         * modules/cbrtf (Depends-on): Likewise.
30256         * modules/cbrtl (Depends-on): Likewise.
30257         * modules/copysignf (Depends-on): Likewise.
30258         * modules/copysignl (Depends-on): Likewise.
30259         * modules/cosf (Depends-on): Likewise.
30260         * modules/coshf (Depends-on): Likewise.
30261         * modules/expf (Depends-on): Likewise.
30262         * modules/fabsf (Depends-on): Likewise.
30263         * modules/fabsl (Depends-on): Likewise.
30264         * modules/fmaf (Depends-on): Likewise.
30265         * modules/fmal (Depends-on): Likewise.
30266         * modules/fmodf (Depends-on): Likewise.
30267         * modules/fmodl (Depends-on): Likewise.
30268         * modules/frexpf (Depends-on): Likewise.
30269         * modules/frexpl (Depends-on): Likewise.
30270         * modules/hypot (Depends-on): Likewise.
30271         * modules/hypotf (Depends-on): Likewise.
30272         * modules/hypotl (Depends-on): Likewise.
30273         * modules/ldexpf (Depends-on): Likewise.
30274         * modules/ldexpl (Depends-on): Likewise.
30275         * modules/log10f (Depends-on): Likewise.
30276         * modules/log10l (Depends-on): Likewise.
30277         * modules/log1p (Depends-on): Likewise.
30278         * modules/logb (Depends-on): Likewise.
30279         * modules/logf (Depends-on): Likewise.
30280         * modules/modff (Depends-on): Likewise.
30281         * modules/modfl (Depends-on): Likewise.
30282         * modules/powf (Depends-on): Likewise.
30283         * modules/remainderf (Depends-on): Likewise.
30284         * modules/remainderl (Depends-on): Likewise.
30285         * modules/rintf (Depends-on): Likewise.
30286         * modules/rintl (Depends-on): Likewise.
30287         * modules/sinf (Depends-on): Likewise.
30288         * modules/sinhf (Depends-on): Likewise.
30289         * modules/sqrtf (Depends-on): Likewise.
30290         * modules/tanf (Depends-on): Likewise.
30291         * modules/tanhf (Depends-on): Likewise.
30292         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
30293         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
30294         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
30295         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
30296         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
30297         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
30298         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
30299         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
30300         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
30301         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
30302         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
30303         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
30304         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
30305         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
30306         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
30307         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
30308         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
30309         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
30310         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
30311         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
30312         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
30313         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
30314         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
30315         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
30316         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
30317         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
30318         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
30319         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
30320         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
30321         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
30322         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
30323         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
30324         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
30325         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
30326         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
30327         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
30328         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
30329         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
30330         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
30331         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
30332         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
30334 2012-03-06  Bruno Haible  <bruno@clisp.org>
30336         math: Update module names in warnings.
30337         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
30338         tanl): Use specific module name in warn-on-use warning.
30340 2012-03-06  Bruno Haible  <bruno@clisp.org>
30342         expl: Simplify computation.
30343         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
30345 2012-03-05  Bruno Haible  <bruno@clisp.org>
30347         exp* tests: More tests.
30348         * tests/test-exp.h: New file.
30349         * tests/test-exp.c: Include <float.h> and test-exp.h.
30350         (main): Invoke test_function.
30351         * tests/test-expf.c: Include <float.h> and test-exp.h.
30352         (main): Invoke test_function.
30353         * tests/test-expl.c: Include <float.h> and test-exp.h.
30354         (main): Invoke test_function.
30355         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
30356         (Makefile.am): Add randomd.c to test_exp_SOURCES.
30357         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
30358         (Makefile.am): Add randomf.c to test_expf_SOURCES.
30359         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
30360         (Depends-on): Add 'float'.
30361         (Makefile.am): Add randoml.c to test_expl_SOURCES.
30363         expl: Fix precision of computed result.
30364         * lib/expl.c: Completely rewritten.
30365         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
30366         (Maintainer): Add me.
30367         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
30369 2012-03-05  Bruno Haible  <bruno@clisp.org>
30371         cbrt* tests: More tests.
30372         * tests/test-cbrt.h: New file.
30373         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
30374         (main): Invoke test_function.
30375         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
30376         (main): Invoke test_function.
30377         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
30378         (main): Invoke test_function.
30379         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
30380         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
30381         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
30382         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
30383         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
30384         (Depends-on): Add 'float'.
30385         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
30387 2012-03-05  Bruno Haible  <bruno@clisp.org>
30389         hypot* tests: More tests.
30390         * tests/test-hypot.h: New file, partially extracted from
30391         tests/test-hypotl.c.
30392         * tests/test-hypot.c: Include test-hypot.h.
30393         (main): Invoke test_function.
30394         * tests/test-hypotf.c: Include test-hypot.h.
30395         (main): Invoke test_function.
30396         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
30397         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
30398         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
30399         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
30400         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
30401         tests/randomf.c.
30402         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
30403         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
30404         tests/randoml.c.
30405         (Depends-on): Add 'fpucw', 'float'.
30406         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
30408 2012-03-05  Bruno Haible  <bruno@clisp.org>
30410         fpucw: Doc about FreeBSD.
30411         * lib/fpucw.h: Mention FreeBSD in comments.
30413 2012-03-04  Bruno Haible  <bruno@clisp.org>
30415         sqrt* tests: More tests.
30416         * tests/test-sqrt.h: New file.
30417         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
30418         (main): Invoke test_function.
30419         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
30420         (main): Invoke test_function.
30421         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
30422         (main): Invoke test_function.
30423         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
30424         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
30425         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
30426         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
30427         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
30428         (Depends-on): Add 'float'.
30429         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
30431 2012-03-04  Bruno Haible  <bruno@clisp.org>
30433         remainder* tests: More tests.
30434         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
30435         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
30436         (main): Invoke test_function.
30437         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
30438         (main): Invoke test_function.
30439         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
30440         (main): Invoke test_function.
30441         * modules/remainder-tests (Files): Add tests/test-remainder.h,
30442         tests/randomd.c.
30443         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
30444         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
30445         tests/randomf.c.
30446         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
30447         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
30448         tests/randoml.c.
30449         (Depends-on): Add 'float'.
30450         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
30452 2012-03-04  Bruno Haible  <bruno@clisp.org>
30454         remainder, remainderf, remainderl: Fix computation for large quotients.
30455         * lib/remainder.c: Completely rewritten.
30456         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
30457         USE_FLOAT.
30458         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
30459         USE_LONG_DOUBLE.
30460         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
30461         isnand, isinf. Remove round, fma.
30462         * modules/remainderf (Files): Add lib/remainder.c.
30463         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
30464         Remove roundf, fmaf.
30465         * modules/remainderl (Files): Add lib/remainder.c.
30466         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
30467         isinf. Remove roundl, fmal.
30468         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
30469         REMAINDER_LIBM.
30470         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
30471         REMAINDERF_LIBM.
30472         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
30473         REMAINDERL_LIBM.
30475 2012-03-04  Bruno Haible  <bruno@clisp.org>
30477         fmod* tests: More tests.
30478         * tests/test-fmod.h (my_ldexp): New function.
30479         (test_function): Reduce amount of random numbers to test. Add tests
30480         of very large quotients x / y.
30481         * tests/test-fmod.c (MAX_EXP): New macro.
30482         * tests/test-fmodf.c (MAX_EXP): Likewise.
30483         * tests/test-fmodl.c (MAX_EXP): Likewise.
30485 2012-03-04  Bruno Haible  <bruno@clisp.org>
30487         fmod, fmodl: Fix computation for large quotients x / y.
30488         * lib/fmod.c: Completely rewritten.
30489         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
30490         USE_LONG_DOUBLE.
30491         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
30492         isnand. Remove fma.
30493         * modules/fmodl (Files): Add lib/fmod.c.
30494         (Depends-on): Add float, isfinite, signbit, fabsl,
30495         frexpl, ldexpl, isnanl. Remove fma.
30496         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
30497         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
30499 2012-03-03  Bruno Haible  <bruno@clisp.org>
30501         fmod* tests: More tests.
30502         * tests/test-fmod.h: New file.
30503         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
30504         (main): Invoke test_function.
30505         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
30506         (main): Invoke test_function.
30507         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
30508         (main): Invoke test_function.
30509         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
30510         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
30511         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
30512         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
30513         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
30514         (Depends-on): Add 'float'.
30515         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
30517 2012-03-03  Bruno Haible  <bruno@clisp.org>
30519         rint* tests: More tests.
30520         * tests/test-rint.h: New file, partially extracted from
30521         tests/test-rintl.c.
30522         * tests/test-rint.c: Include test-rint.h.
30523         (main): Invoke test_function.
30524         * tests/test-rintf.c: Include test-rint.h.
30525         (main): Invoke test_function.
30526         * tests/test-rintl.c: Include test-rint.h.
30527         (main): Invoke test_function.
30528         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
30529         (Makefile.am): Add randomd.c to test_rint_SOURCES.
30530         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
30531         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
30532         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
30533         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
30535 2012-03-03  Bruno Haible  <bruno@clisp.org>
30537         modf* tests: More tests.
30538         * tests/test-modf.h: New file.
30539         * tests/test-modf.c: Include <float.h> and test-modf.h.
30540         (main): Invoke test_function.
30541         * tests/test-modff.c: Include <float.h> and test-modf.h.
30542         (main): Invoke test_function.
30543         * tests/test-modfl.c: Include <float.h> and test-modf.h.
30544         (main): Invoke test_function.
30545         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
30546         (Makefile.am): Add randomd.c to test_modf_SOURCES.
30547         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
30548         (Makefile.am): Add randomf.c to test_modff_SOURCES.
30549         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
30550         (Depends-on): Add 'float'.
30551         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
30553 2012-03-03  Bruno Haible  <bruno@clisp.org>
30555         fabs* tests: More tests.
30556         * tests/test-fabs.h: New file, partially extracted from
30557         tests/test-fabsl.c.
30558         * tests/test-fabs.c (RANDOM): New macro.
30559         * tests/test-fabsf.c (RANDOM): New macro.
30560         * tests/test-fabsl.c (RANDOM): New macro.
30561         * modules/fabs-tests (Files): Add tests/randomd.c.
30562         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
30563         * modules/fabsf-tests (Files): Add tests/randomf.c.
30564         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
30565         * modules/fabsl-tests (Files): Add tests/randoml.c.
30566         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
30568 2012-03-03  Bruno Haible  <bruno@clisp.org>
30570         ldexp* tests: More tests.
30571         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
30572         * tests/test-ldexp.c (RANDOM): New macro.
30573         * tests/test-ldexpf.c (RANDOM): New macro.
30574         * tests/test-ldexpl.c (RANDOM): New macro.
30575         * modules/ldexp-tests (Files): Add tests/randomd.c.
30576         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
30577         * modules/ldexpf-tests (Files): Add tests/randomf.c.
30578         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
30579         * modules/ldexpl-tests (Files): Add tests/randoml.c.
30580         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
30582 2012-03-03  Bruno Haible  <bruno@clisp.org>
30584         frexp* tests: More tests.
30585         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
30586         * tests/test-frexp.c (RANDOM): New macro.
30587         * tests/test-frexpf.c (RANDOM): New macro.
30588         * tests/test-frexpl.c (RANDOM): New macro.
30589         * modules/frexp-tests (Files): Add tests/randomd.c.
30590         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
30591         * modules/frexpf-tests (Files): Add tests/randomf.c.
30592         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
30593         * modules/frexpl-tests (Files): Add tests/randoml.c.
30594         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
30596 2012-03-03  Bruno Haible  <bruno@clisp.org>
30598         Support for pseudo-random numbers in tests.
30599         * tests/randomf.c: New file.
30600         * tests/randomd.c: New file.
30601         * tests/randoml.c: New file.
30602         * tests/macros.h (randomf, randomd, randoml): New declarations.
30604 2012-03-03  Bruno Haible  <bruno@clisp.org>
30606         frexp* tests: Refactor.
30607         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
30608         * tests/test-frexp.c: Include and use it.
30609         * tests/test-frexpf.c: Likewise.
30610         * tests/test-frexpl.c: Likewise.
30611         * modules/frexp-tests (Files): Add tests/test-frexp.h.
30612         * modules/frexpf-tests (Files): Likewise.
30613         * modules/frexpl-tests (Files): Likewise.
30615 2012-03-02  Jim Meyering  <meyering@redhat.com>
30617         maint: don't specify XZ_OPT=-9ev in dist-related rule
30618         Using xz's -9 option is warranted only if you have a very large
30619         tarball (see xz's documentation for the sizes vs. presets), and
30620         requires 64MiB of memory at decompression time.
30621         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
30622         Automake's default of just "-e" is fine.  Override on a
30623         per-package basis by setting XZ_OPT e.g., in cfg.mk.
30625 2012-03-01  Eric Blake  <eblake@redhat.com>
30627         maint.mk: allow announcement for non-gnulib project
30628         * maint.mk (announcement): Skip gnulib version if not used.
30630 2012-03-01  Jim Meyering  <meyering@redhat.com>
30632         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
30633         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
30634         envvar settings cannot interfere.  Otherwise, setting envvars like
30635         prohibit=foo require=bar, etc. would cause spurious test failures.
30637 2012-03-01  Eric Blake  <eblake@redhat.com>
30639         maint.mk: add per-line exclusions to prohibitions
30640         * maint.mk (_sc_search_regexp): Add $exclude parameter.
30641         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
30642         (sc_const_long_option): Use it.
30644 2012-03-01  Bruno Haible  <bruno@clisp.org>
30646         Tests for module 'expl-ieee'.
30647         * modules/expl-ieee-tests: New file.
30648         * tests/test-expl-ieee.c: New file.
30650         New module 'expl-ieee'.
30651         * modules/expl-ieee: New file.
30653         Tests for module 'exp-ieee'.
30654         * modules/exp-ieee-tests: New file.
30655         * tests/test-exp-ieee.c: New file.
30657         New module 'exp-ieee'.
30658         * modules/exp-ieee: New file.
30660         Tests for module 'expf-ieee'.
30661         * modules/expf-ieee-tests: New file.
30662         * tests/test-expf-ieee.c: New file.
30663         * tests/test-exp-ieee.h: New file.
30665         New module 'expf-ieee'.
30666         * modules/expf-ieee: New file.
30668 2012-02-29  Bruno Haible  <bruno@clisp.org>
30670         cbrtl-ieee: Work around test failure on IRIX 6.5.
30671         * m4/cbrtl-ieee.m4: New file.
30672         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
30673         test whether cbrtl works with a minus zero argument. Replace it if not.
30674         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
30675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
30676         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
30677         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
30678         (Depends-on): Update conditions.
30679         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
30680         m4/signbit.m4.
30681         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
30682         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
30683         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
30685         Tests for module 'cbrtl-ieee'.
30686         * modules/cbrtl-ieee-tests: New file.
30687         * tests/test-cbrtl-ieee.c: New file.
30689         New module 'cbrtl-ieee'.
30690         * modules/cbrtl-ieee: New file.
30692         Tests for module 'cbrt-ieee'.
30693         * modules/cbrt-ieee-tests: New file.
30694         * tests/test-cbrt-ieee.c: New file.
30696         New module 'cbrt-ieee'.
30697         * modules/cbrt-ieee: New file.
30699         Tests for module 'cbrtf-ieee'.
30700         * modules/cbrtf-ieee-tests: New file.
30701         * tests/test-cbrtf-ieee.c: New file.
30702         * tests/test-cbrt-ieee.h: New file.
30704         New module 'cbrtf-ieee'.
30705         * modules/cbrtf-ieee: New file.
30707 2012-02-29  Bruno Haible  <bruno@clisp.org>
30709         cbrtf: Work around bug in IRIX 6.5 system function.
30710         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
30711         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
30712         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
30713         work.
30714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
30715         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
30716         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
30717         (Depends-on): Update conditions.
30718         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
30720 2012-02-29  Bruno Haible  <bruno@clisp.org>
30722         Tests for module 'cbrtl'.
30723         * modules/cbrtl-tests: New file.
30724         * tests/test-cbrtl.c: New file.
30726         New module 'cbrtl'.
30727         * lib/math.in.h (cbrtl): New declaration.
30728         * lib/cbrtl.c: New file.
30729         * m4/cbrtl.m4: New file.
30730         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
30731         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
30732         HAVE_DECL_CBRTL.
30733         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
30734         HAVE_DECL_CBRTL.
30735         * modules/cbrtl: New file.
30736         * tests/test-math-c++.cc: Check the declaration of cbrtl.
30737         * doc/posix-functions/cbrtl.texi: Mention the new module.
30739 2012-02-29  Bruno Haible  <bruno@clisp.org>
30741         Tests for module 'cbrtf'.
30742         * modules/cbrtf-tests: New file.
30743         * tests/test-cbrtf.c: New file.
30745         New module 'cbrtf'.
30746         * lib/math.in.h (cbrtf): New declaration.
30747         * lib/cbrtf.c: New file.
30748         * m4/cbrtf.m4: New file.
30749         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
30750         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
30751         HAVE_DECL_CBRTF.
30752         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
30753         HAVE_DECL_CBRTF.
30754         * modules/cbrtf: New file.
30755         * tests/test-math-c++.cc: Check the declaration of cbrtf.
30756         * doc/posix-functions/cbrtf.texi: Mention the new module.
30758 2012-02-29  Bruno Haible  <bruno@clisp.org>
30760         cbrt: Provide replacement on MSVC and Minix.
30761         * lib/math.in.h (cbrt): New declaration.
30762         * lib/cbrt.c: New file.
30763         * m4/cbrt.m4: New file.
30764         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
30765         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
30766         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
30767         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
30768         (Depends-on): Add dependencies.
30769         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
30770         * tests/test-math-c++.cc: Check the declaration of cbrt.
30771         * doc/posix-functions/cbrt.texi: Mention that the module provides a
30772         replacement.
30774 2012-02-29  Bruno Haible  <bruno@clisp.org>
30776         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
30777         * m4/hypotl-ieee.m4: New file.
30778         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
30779         test whether hypotl works with mixed NaN and Infinity arguments.
30780         Replace it if not.
30781         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
30782         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
30783         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
30784         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
30785         (Depends-on): Update conditions.
30786         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
30787         (Depends-on): Add hypot-ieee.
30788         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
30789         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
30791         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
30792         * m4/hypotf-ieee.m4: New file.
30793         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
30794         test whether hypotf works with mixed NaN and Infinity arguments.
30795         Replace it if not.
30796         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
30797         (Depends-on): Add hypot-ieee.
30798         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
30799         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
30801         hypot-ieee: Work around test failure on OSF/1 and native Windows.
30802         * lib/math.in.h (hypot): New declaration.
30803         * lib/hypot.c: New file.
30804         * m4/hypot-ieee.m4: New file.
30805         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
30806         whether hypot works with mixed NaN and Infinity arguments. Replace it
30807         if not.
30808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
30809         REPLACE_HYPOT.
30810         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
30811         * modules/hypot (Files): Add lib/hypot.c.
30812         (Depends-on): Add dependencies.
30813         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
30814         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
30815         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
30816         * tests/test-math-c++.cc: Check the declaration of hypot.
30817         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
30819         Tests for module 'hypotl-ieee'.
30820         * modules/hypotl-ieee-tests: New file.
30821         * tests/test-hypotl-ieee.c: New file.
30823         New module 'hypotl-ieee'.
30824         * modules/hypotl-ieee: New file.
30826         Tests for module 'hypot-ieee'.
30827         * modules/hypot-ieee-tests: New file.
30828         * tests/test-hypot-ieee.c: New file.
30830         New module 'hypot-ieee'.
30831         * modules/hypot-ieee: New file.
30833         Tests for module 'hypotf-ieee'.
30834         * modules/hypotf-ieee-tests: New file.
30835         * tests/test-hypotf-ieee.c: New file.
30836         * tests/test-hypot-ieee.h: New file.
30838         New module 'hypotf-ieee'.
30839         * modules/hypotf-ieee: New file.
30841 2012-02-29  Bruno Haible  <bruno@clisp.org>
30843         Remove unused variables.
30844         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
30845         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
30846         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
30847         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
30849 2012-02-29  Eric Blake  <eblake@redhat.com>
30851         termios: fix pid_t always, not just for tcgetsid
30852         * doc/posix-headers/termios.texi (termios.h): Mention problem.
30853         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
30854         just when building tcgetsid.
30856 2012-02-29  Bruno Haible  <bruno@clisp.org>
30858         Tests for module 'hypotl'.
30859         * modules/hypotl-tests: New file.
30860         * tests/test-hypotl.c: New file.
30862         New module 'hypotl'.
30863         * lib/math.in.h (hypotl): New declaration.
30864         * lib/hypotl.c: New file.
30865         * m4/hypotl.m4: New file.
30866         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
30867         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
30868         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
30869         * modules/hypotl: New file.
30870         * tests/test-math-c++.cc: Check the hypotl declaration.
30871         * doc/posix-functions/hypotl.texi: Mention the new module.
30873 2012-02-29  Eric Blake  <eblake@redhat.com>
30875         tcgetsid: fix cygwin header bug
30876         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
30878         docs: update cygwin progress
30879         * doc/posix-functions/llround.texi (llround): Added in cygwin
30880         1.7.8.
30881         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
30882         * doc/glibc-functions/program_invocation_name.texi
30883         (program_invocation_name): Likewise.
30884         * doc/glibc-functions/program_invocation_short_name.texi
30885         (program_invocation_short_name): Likewise.
30886         * doc/glibc-functions/madvise.texi (madvise): Likewise.
30887         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
30888         Likewise.
30889         * doc/posix-functions/pthread_spin_destroy.texi
30890         (pthread_spin_destroy): Added in cygwin 1.7.10.
30891         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
30892         Likewise.
30893         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
30894         Likewise.
30895         * doc/posix-functions/pthread_spin_trylock.texi
30896         (pthread_spin_trylock): Likewise.
30897         * doc/posix-functions/pthread_spin_unlock.texi
30898         (pthread_spin_unlock): Likewise.
30899         * doc/posix-functions/pthread_setschedprio.texi
30900         (pthread_setschedprio): Likewise.
30901         * doc/posix-functions/pthread_attr_getstack.texi
30902         (pthread_attr_getstack): Likewise.
30903         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
30904         (pthread_attr_getstackaddr): Likewise.
30905         * doc/glibc-functions/pthread_getattr_np.texi
30906         (pthread_getattr_np): Likewise.
30907         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
30908         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
30909         * doc/posix-functions/clock_settime.texi (clock_settime):
30910         Likewise.
30911         * doc/posix-functions/pthread_attr_getguardsize.texi
30912         (pthread_attr_getguardsize): Likewise.
30913         * doc/posix-functions/pthread_attr_setguardsize.texi
30914         (pthread_attr_setguardsize): Likewise.
30915         * doc/posix-functions/pthread_attr_setstack.texi
30916         (pthread_attr_setstack): Likewise.
30917         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
30918         (pthread_attr_setstackaddr): Likewise.
30919         * doc/posix-functions/clock_getcpuclockid.texi
30920         (clock_getcpuclockid): Likewise.
30921         * doc/posix-functions/pthread_getcpuclockid.texi
30922         (pthread_getcpuclockid): Likewise.
30923         * doc/glibc-functions/error.texi (error): Likewise.
30924         * doc/glibc-functions/error_at_line.texi (error_at_line):
30925         Likewise.
30926         * doc/glibc-functions/error_message_count.texi
30927         (error_message_count): Likewise.
30928         * doc/glibc-functions/error_one_per_line.texi
30929         (error_one_per_line): Likewise.
30930         * doc/glibc-functions/error_print_progname.texi
30931         (error_print_progname): Likewise.
30932         * doc/posix-functions/pthread_condattr_getclock.texi
30933         (pthread_condattr_getclock): Likewise.
30934         * doc/posix-functions/pthread_condattr_setclock.texi
30935         (pthread_condattr_setclock): Likewise.
30936         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
30937         Likewise.
30938         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
30939         * doc/glibc-functions/getpt.texi (getpt): Likewise.
30940         * doc/glibc-functions/get_current_dir_name.texi
30941         (get_current_dir_name): Likewise.
30942         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
30943         Likewise.
30944         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
30945         wrong return type.
30946         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
30947         1.7.11.
30949 2012-02-29  Bruno Haible  <bruno@clisp.org>
30951         Tests for module 'hypotf'.
30952         * modules/hypotf-tests: New file.
30953         * tests/test-hypotf.c: New file.
30955         New module 'hypotf'.
30956         * lib/math.in.h (hypotf): New declaration.
30957         * lib/hypotf.c: New file.
30958         * m4/hypotf.m4: New file.
30959         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
30960         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
30961         REPLACE_HYPOTF.
30962         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
30963         REPLACE_HYPOTF.
30964         * modules/hypotf: New file.
30965         * tests/test-math-c++.cc: Check the hypotf declaration.
30966         * doc/posix-functions/hypotf.texi: Mention the new module.
30968         hypot: Prepare for hypotf module.
30969         * m4/hypot.m4: New file.
30970         * modules/hypot (Files): Add m4/hypot.m4.
30971         (configure.ac): Invoke gl_FUNC_HYPOT.
30973 2012-02-29  Bruno Haible  <bruno@clisp.org>
30975         hypot tests: More tests.
30976         * tests/test-hypot.c: Include <float.h>.
30977         (main): Add tests about overflow and underflow.
30979 2012-02-29  Bruno Haible  <bruno@clisp.org>
30981         math code: Add comments.
30982         * lib/acosl.c: Add comment about related glibc source files.
30983         * lib/asinl.c: Likewise.
30984         * lib/atanl.c: Likewise.
30985         * lib/expl.c: Likewise.
30986         * lib/logl.c: Likewise.
30987         * lib/sincosl.c: Likewise.
30988         * lib/sinl.c: Likewise.
30989         * lib/tanl.c: Likewise.
30990         * lib/trigl.c: Likewise.
30991         * lib/cosl.c: Likewise. Fix comments.
30993 2012-02-28  Bruno Haible  <bruno@clisp.org>
30995         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
30996         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
30997         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
30998         HUGE_VALL are defined.
30999         (numeric_equald): Renamed from numeric_equal.
31000         (numeric_equalf, numeric_equall): New functions.
31001         (main): Check also HUGE_VALF, HUGE_VALL.
31002         * modules/math-tests (Files): Add tests/macros.h.
31003         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
31004         HUGE_VALL.
31006 2012-02-28  Bruno Haible  <bruno@clisp.org>
31008         doc: Move ISO C11 feature notes into POSIX chapters.
31009         * doc/posix-functions/aligned_alloc.texi: Renamed from
31010         doc/glibc-functions/aligned_alloc.texi.
31011         * doc/posix-functions/quick_exit.texi: Renamed from
31012         doc/glibc-functions/quick_exit.texi.
31013         * doc/posix-headers/uchar.texi: Renamed from
31014         doc/glibc-headers/uchar.texi.
31015         * doc/posix-functions/c16rtomb.texi: Renamed from
31016         doc/glibc-functions/c16rtomb.texi.
31017         * doc/posix-functions/c32rtomb.texi: Renamed from
31018         doc/glibc-functions/c32rtomb.texi.
31019         * doc/posix-functions/mbrtoc16.texi: Renamed from
31020         doc/glibc-functions/mbrtoc16.texi.
31021         * doc/posix-functions/mbrtoc32.texi: Renamed from
31022         doc/glibc-functions/mbrtoc32.texi.
31023         * doc/gnulib.texi: Update.
31024         (Glibc uchar.h): Remove section.
31025         Suggested by Eric Blake.
31027 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
31029         stdnoreturn: port to MSVC better
31030         MSVC standard headers use __declspec(noreturn), so #define noreturn
31031         to empty on that platform.  Reported by Bruno Haible in
31032         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
31033         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
31034         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
31036 2012-02-28  Bruno Haible  <bruno@clisp.org>
31038         doc: Mention new glibc headers and functions.
31039         * doc/glibc-headers/uchar.texi: New file.
31040         * doc/glibc-functions/aligned_alloc.texi: New file.
31041         * doc/glibc-functions/c16rtomb.texi: New file.
31042         * doc/glibc-functions/c32rtomb.texi: New file.
31043         * doc/glibc-functions/clock_adjtime.texi: New file.
31044         * doc/glibc-functions/fanotify_init.texi: New file.
31045         * doc/glibc-functions/fanotify_mark.texi: New file.
31046         * doc/glibc-functions/inet6_opt_append.texi: New file.
31047         * doc/glibc-functions/inet6_opt_find.texi: New file.
31048         * doc/glibc-functions/inet6_opt_finish.texi: New file.
31049         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
31050         * doc/glibc-functions/inet6_opt_init.texi: New file.
31051         * doc/glibc-functions/inet6_opt_next.texi: New file.
31052         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
31053         * doc/glibc-functions/inet6_rth_add.texi: New file.
31054         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
31055         * doc/glibc-functions/inet6_rth_init.texi: New file.
31056         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
31057         * doc/glibc-functions/inet6_rth_segments.texi: New file.
31058         * doc/glibc-functions/inet6_rth_space.texi: New file.
31059         * doc/glibc-functions/login.texi: New file.
31060         * doc/glibc-functions/mbrtoc16.texi: New file.
31061         * doc/glibc-functions/mbrtoc32.texi: New file.
31062         * doc/glibc-functions/name_to_handle_at.texi: New file.
31063         * doc/glibc-functions/ntp_gettimex.texi: New file.
31064         * doc/glibc-functions/open_by_handle_at.texi: New file.
31065         * doc/glibc-functions/prlimit.texi: New file.
31066         * doc/glibc-functions/process_vm_readv.texi: New file.
31067         * doc/glibc-functions/process_vm_writev.texi: New file.
31068         * doc/glibc-functions/recvmmsg.texi: New file.
31069         * doc/glibc-functions/scandirat.texi: New file.
31070         * doc/glibc-functions/sendmmsg.texi: New file.
31071         * doc/glibc-functions/setns.texi: New file.
31072         * doc/glibc-functions/timespec_get.texi: New file.
31073         * doc/gnulib.texi: Include them.
31074         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
31075         sections.
31076         Reported by Eric Blake.
31078 2012-02-28  Bruno Haible  <bruno@clisp.org>
31080         Avoid compilation errors with MSVC option -fp:strict.
31081         * lib/floor.c: Use MSVC specific pragma fenv_access.
31082         * lib/ceil.c: Likewise.
31083         * lib/trunc.c: Likewise.
31084         * lib/round.c: Likewise.
31085         * lib/rint.c: Likewise.
31086         * lib/fma.c: Likewise.
31087         * lib/integer_length.c: Likewise.
31088         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31089         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31090         * tests/test-floor2.c: Likewise.
31091         * tests/test-floorf2.c: Likewise.
31092         * tests/test-ceil2.c: Likewise.
31093         * tests/test-ceilf2.c: Likewise.
31094         * tests/test-trunc2.c: Likewise.
31095         * tests/test-truncf2.c: Likewise.
31096         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
31098 2012-02-27  Bruno Haible  <bruno@clisp.org>
31100         Tests for module 'sqrtl-ieee'.
31101         * modules/sqrtl-ieee-tests: New file.
31102         * tests/test-sqrtl-ieee.c: New file.
31104         New module 'sqrtl-ieee'.
31105         * modules/sqrtl-ieee: New file.
31107         Tests for module 'sqrt-ieee'.
31108         * modules/sqrt-ieee-tests: New file.
31109         * tests/test-sqrt-ieee.c: New file.
31111         New module 'sqrt-ieee'.
31112         * modules/sqrt-ieee: New file.
31114         Tests for module 'sqrtf-ieee'.
31115         * modules/sqrtf-ieee-tests: New file.
31116         * tests/test-sqrtf-ieee.c: New file.
31117         * tests/test-sqrt-ieee.h: New file.
31119         New module 'sqrtf-ieee'.
31120         * modules/sqrtf-ieee: New file.
31122 2012-02-27  Bruno Haible  <bruno@clisp.org>
31124         remainderl-ieee: Work around test failure on OSF/1.
31125         * m4/remainderl-ieee.m4: New file.
31126         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
31127         present, test whether remainderl works with a zero second argument.
31128         Replace it if not.
31129         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
31130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
31131         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
31132         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
31133         (Depends-on): Update conditions.
31134         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
31135         (Depends-on): Add remainder-ieee.
31136         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
31137         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
31138         module.
31140         remainderf-ieee: Work around test failure on OSF/1.
31141         * m4/remainderf-ieee.m4: New file.
31142         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
31143         present, test whether remainderf works with a zero second argument.
31144         Replace it if not.
31145         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
31146         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
31147         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
31148         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
31149         (Depends-on): Update conditions.
31150         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
31151         (Depends-on): Add remainder-ieee.
31152         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
31153         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
31154         module.
31156         remainder-ieee: Work around test failure on OSF/1.
31157         * m4/remainder-ieee.m4: New file.
31158         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
31159         present, test whether remainder works with a zero second argument.
31160         Replace it if not.
31161         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
31162         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
31163         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
31164         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
31165         (Depends-on): Update dependencies.
31166         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
31167         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
31168         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
31170         Tests for module 'remainderl-ieee'.
31171         * modules/remainderl-ieee-tests: New file.
31172         * tests/test-remainderl-ieee.c: New file.
31174         New module 'remainderl-ieee'.
31175         * modules/remainderl-ieee: New file.
31177         Tests for module 'remainder-ieee'.
31178         * modules/remainder-ieee-tests: New file.
31179         * tests/test-remainder-ieee.c: New file.
31181         New module 'remainder-ieee'.
31182         * modules/remainder-ieee: New file.
31184         Tests for module 'remainderf-ieee'.
31185         * modules/remainderf-ieee-tests: New file.
31186         * tests/test-remainderf-ieee.c: New file.
31187         * tests/test-remainder-ieee.h: New file.
31189         New module 'remainderf-ieee'.
31190         * modules/remainderf-ieee: New file.
31192 2012-02-27  Bruno Haible  <bruno@clisp.org>
31194         modff, modfl: Fix configure syntax error.
31195         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
31196         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
31198 2012-02-27  Bruno Haible  <bruno@clisp.org>
31200         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
31201         * m4/fmodl-ieee.m4: New file.
31202         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
31203         whether fmodl works with zero arguments. Replace it if not.
31204         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
31205         (Depends-on): Add fmod-ieee.
31206         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
31207         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
31209         fmodf-ieee: Work around test failure on OSF/1.
31210         * m4/fmodf-ieee.m4: New file.
31211         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
31212         whether fmodf works with zero arguments. Replace it if not.
31213         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
31214         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
31215         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
31216         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
31217         (Depends-on): Update dependencies.
31218         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
31219         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
31220         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
31222         fmodf-ieee: Work around test failure on MSVC 9.
31223         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
31224         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
31226         fmod-ieee: Work around test failures on OSF/1, mingw.
31227         * m4/fmod-ieee.m4: New file.
31228         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
31229         whether fmod works with zero arguments. Replace it if not.
31230         * lib/math.in.h (fmod): New declaration.
31231         * lib/fmod.c: New file.
31232         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
31233         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
31234         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
31235         * modules/fmod (Files): Add lib/fmod.c.
31236         (Depends-on): Add math, isinf, trunc, fma.
31237         (configure.ac): Arrange to compile lib/fmod.c if needed.
31238         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
31239         m4/signbit.m4.
31240         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
31241         * tests/test-math-c++.cc: Check the declaration of fmod.
31242         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
31244         fmodl-ieee: Fix test failures.
31245         * lib/fmodl.c (fmodl): Treat Inf specially.
31246         * modules/fmodl (Depends-on): Add isinf.
31248         Tests for module 'fmodl-ieee'.
31249         * modules/fmodl-ieee-tests: New file.
31250         * tests/test-fmodl-ieee.c: New file.
31252         New module 'fmodl-ieee'.
31253         * modules/fmodl-ieee: New file.
31255         Tests for module 'fmod-ieee'.
31256         * modules/fmod-ieee-tests: New file.
31257         * tests/test-fmod-ieee.c: New file.
31259         New module 'fmod-ieee'.
31260         * modules/fmod-ieee: New file.
31262         Tests for module 'fmodf-ieee'.
31263         * modules/fmodf-ieee-tests: New file.
31264         * tests/test-fmodf-ieee.c: New file.
31265         * tests/test-fmod-ieee.h: New file.
31267         New module 'fmodf-ieee'.
31268         * modules/fmodf-ieee: New file.
31270 2012-02-27  Bruno Haible  <bruno@clisp.org>
31272         Tests for module 'rintl-ieee'.
31273         * modules/rintl-ieee-tests: New file.
31274         * tests/test-rintl-ieee.c: New file.
31276         New module 'rintl-ieee'.
31277         * modules/rintl-ieee: New file.
31279         Tests for module 'rint-ieee'.
31280         * modules/rint-ieee-tests: New file.
31281         * tests/test-rint-ieee.c: New file.
31283         New module 'rint-ieee'.
31284         * modules/rint-ieee: New file.
31286         Tests for module 'rintf-ieee'.
31287         * modules/rintf-ieee-tests: New file.
31288         * tests/test-rintf-ieee.c: New file.
31289         * tests/test-rint-ieee.h: New file.
31291         New module 'rintf-ieee'.
31292         * modules/rintf-ieee: New file.
31294 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
31296         regex: re_search etc. should return -2 when memory exhausted
31297         This bug was uncovered when testing 'grep'.  Without the fix,
31298         re_search and friends return -1 when memory is exhausted, but -1
31299         means no match, and this causes grep to falsely report no-match
31300         instead of memory-exhaustion.  See
31301         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
31302         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
31303         trouble; this can occur if re_search_internal ran out of memory.
31305 2012-02-26  Bruno Haible  <bruno@clisp.org>
31307         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
31308         * m4/modfl-ieee.m4: New file.
31309         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
31310         whether modfl works with Inf. Replace it if not.
31311         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
31312         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
31313         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
31314         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
31315         (Depends-on): Update dependencies.
31316         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
31317         m4/signbit.m4.
31318         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
31319         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
31321         modfl-ieee: Fix dependencies.
31322         * modules/modfl-ieee (Depends-on): Add modf-ieee.
31324         modfl-ieee: Fix test failures.
31325         * lib/modfl.c (modfl): Treat NaN and Inf specially.
31326         * modules/modfl (Depends-on): Add isfinite, isinf.
31328         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
31329         * m4/modff-ieee.m4: New file.
31330         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
31331         whether modff works with NaN and Inf. Replace it if not.
31332         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
31333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
31334         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
31335         * modules/modff (configure.ac): Consider REPLACE_MODFF.
31336         (Depends-on): Update dependencies.
31337         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
31338         m4/signbit.m4.
31339         (Depends-on): Add modf-ieee.
31340         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
31341         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
31343         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
31344         * m4/modf-ieee.m4: New file.
31345         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
31346         whether modf works with NaN and Inf. Replace it if not.
31347         * lib/math.in.h (modf): New declaration.
31348         * lib/modf.c: New file.
31349         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
31350         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
31351         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
31352         * modules/modf (Files): Add lib/modf.c.
31353         (Depends-on): Add math, isfinite, trunc, isinf.
31354         (configure.ac): Addrange to compile lib/modf.c if needed.
31355         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
31356         m4/signbit.m4.
31357         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
31358         * tests/test-math-c++.cc: Check the declaration of modf.
31359         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
31361         Tests for module 'modfl-ieee'.
31362         * modules/modfl-ieee-tests: New file.
31363         * tests/test-modfl-ieee.c: New file.
31365         New module 'modfl-ieee'.
31366         * modules/modfl-ieee: New file.
31368         Tests for module 'modf-ieee'.
31369         * modules/modf-ieee-tests: New file.
31370         * tests/test-modf-ieee.c: New file.
31372         New module 'modf-ieee'.
31373         * modules/modf-ieee: New file.
31375         Tests for module 'modff-ieee'.
31376         * modules/modff-ieee-tests: New file.
31377         * tests/test-modff-ieee.c: New file.
31378         * tests/test-modf-ieee.h: New file.
31380         New module 'modff-ieee'.
31381         * modules/modff-ieee: New file.
31383 2012-02-26  Bruno Haible  <bruno@clisp.org>
31385         Tests for module 'fabsl-ieee'.
31386         * modules/fabsl-ieee-tests: New file.
31387         * tests/test-fabsl-ieee.c: New file.
31389         New module 'fabsl-ieee'.
31390         * modules/fabsl-ieee: New file.
31392         Tests for module 'fabs-ieee'.
31393         * modules/fabs-ieee-tests: New file.
31394         * tests/test-fabs-ieee.c: New file.
31396         New module 'fabs-ieee'.
31397         * modules/fabs-ieee: New file.
31399         Tests for module 'fabsf-ieee'.
31400         * modules/fabsf-ieee-tests: New file.
31401         * tests/test-fabsf-ieee.c: New file.
31402         * tests/test-fabs-ieee.h: New file.
31404         New module 'fabsf-ieee'.
31405         * modules/fabsf-ieee: New file.
31407 2012-02-26  Bruno Haible  <bruno@clisp.org>
31409         Tests for module 'fmal-ieee'.
31410         * modules/fmal-ieee-tests: New file.
31411         * tests/test-fmal-ieee.c: New file.
31413         New module 'fmal-ieee'.
31414         * modules/fmal-ieee: New file.
31416         Tests for module 'fma-ieee'.
31417         * modules/fma-ieee-tests: New file.
31418         * tests/test-fma-ieee.c: New file.
31420         New module 'fma-ieee'.
31421         * modules/fma-ieee: New file.
31423         Tests for module 'fmaf-ieee'.
31424         * modules/fmaf-ieee-tests: New file.
31425         * tests/test-fmaf-ieee.c: New file.
31426         * tests/test-fma-ieee.h: New file.
31428         New module 'fmaf-ieee'.
31429         * modules/fmaf-ieee: New file.
31431 2012-02-26  Bruno Haible  <bruno@clisp.org>
31433         Tests for module 'ldexpl-ieee'.
31434         * modules/ldexpl-ieee-tests: New file.
31435         * tests/test-ldexpl-ieee.c: New file.
31437         New module 'ldexpl-ieee'.
31438         * modules/ldexpl-ieee: New file.
31440         Tests for module 'ldexp-ieee'.
31441         * modules/ldexp-ieee-tests: New file.
31442         * tests/test-ldexp-ieee.c: New file.
31444         New module 'ldexp-ieee'.
31445         * modules/ldexp-ieee: New file.
31447         Tests for module 'ldexpf-ieee'.
31448         * modules/ldexpf-ieee-tests: New file.
31449         * tests/test-ldexpf-ieee.c: New file.
31450         * tests/test-ldexp-ieee.h: New file.
31452         New module 'ldexpf-ieee'.
31453         * modules/ldexpf-ieee: New file.
31455 2012-02-26  Bruno Haible  <bruno@clisp.org>
31457         Refactor frexp*-ieee tests.
31458         * tests/test-frexp-ieee.h: New file.
31459         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
31460         (main): Just call test_function.
31461         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
31462         (main): Just call test_function.
31463         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
31464         (main): Just call test_function.
31465         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
31466         * modules/frexp-ieee-tests (Files): Likewise.
31467         * modules/frexpl-ieee-tests (Files): Likewise.
31469         Tests for module 'frexpl-ieee'.
31470         * modules/frexpl-ieee-tests: New file.
31471         * tests/test-frexpl-ieee.c: New file.
31473         New module 'frexpl-ieee'.
31474         * modules/frexpl-ieee: New file.
31476         Tests for module 'frexp-ieee'.
31477         * modules/frexp-ieee-tests: New file.
31478         * tests/test-frexp-ieee.c: New file.
31480         New module 'frexp-ieee'.
31481         * modules/frexp-ieee: New file.
31483         Tests for module 'frexpf-ieee'.
31484         * modules/frexpf-ieee-tests: New file.
31485         * tests/test-frexpf-ieee.c: New file.
31487         New module 'frexpf-ieee'.
31488         * modules/frexpf-ieee: New file.
31490 2012-02-26  Bruno Haible  <bruno@clisp.org>
31492         roundl-ieee tests: More tests.
31493         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
31494         (main): Add tests for [MX] shaded specification in POSIX.
31495         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31496         (Depends-on): Add isnanl-nolibm.
31498         round-ieee tests: More tests.
31499         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
31500         (main): Add tests for [MX] shaded specification in POSIX.
31501         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31502         (Depends-on): Add isnand-nolibm.
31504         roundf-ieee tests: More tests.
31505         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
31506         (main): Add tests for [MX] shaded specification in POSIX.
31507         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31508         (Depends-on): Add isnanf-nolibm.
31510         truncl-ieee tests: More tests.
31511         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
31512         (main): Add tests for [MX] shaded specification in POSIX.
31513         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31514         (Depends-on): Add isnanl-nolibm.
31516         trunc-ieee tests: More tests.
31517         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
31518         (main): Add tests for [MX] shaded specification in POSIX.
31519         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31520         (Depends-on): Add isnand-nolibm.
31522         truncf-ieee tests: More tests.
31523         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
31524         (main): Add tests for [MX] shaded specification in POSIX.
31525         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31526         (Depends-on): Add isnanf-nolibm.
31528         ceill-ieee tests: More tests.
31529         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
31530         (main): Add tests for [MX] shaded specification in POSIX.
31531         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31532         (Depends-on): Add isnanl-nolibm.
31534         ceil-ieee tests: More tests.
31535         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
31536         (main): Add tests for [MX] shaded specification in POSIX.
31537         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31538         (Depends-on): Add isnand-nolibm.
31540         ceilf-ieee tests: More tests.
31541         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
31542         (main): Add tests for [MX] shaded specification in POSIX.
31543         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31544         (Depends-on): Add isnanf-nolibm.
31546         floorl-ieee tests: More tests.
31547         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
31548         (main): Add tests for [MX] shaded specification in POSIX.
31549         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31550         (Depends-on): Add isnanl-nolibm.
31552         floor-ieee tests: More tests.
31553         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
31554         (main): Add tests for [MX] shaded specification in POSIX.
31555         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31556         (Depends-on): Add isnand-nolibm.
31558         floorf-ieee tests: More tests.
31559         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
31560         (main): Add tests for [MX] shaded specification in POSIX.
31561         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31562         (Depends-on): Add isnanf-nolibm.
31564 2012-02-26  Bruno Haible  <bruno@clisp.org>
31566         fpieee: More comments.
31567         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
31569 2012-02-25  Bruno Haible  <bruno@clisp.org>
31571         Tests for module 'log10l'.
31572         * modules/log10l-tests: New file.
31573         * tests/test-log10l.c: New file.
31574         * tests/test-math-c++.cc: Check the declaration of log10l.
31576         New module 'log10l'.
31577         * lib/math.in.h (log10l): New declaration.
31578         * lib/log10l.c: New file.
31579         * m4/log10l.m4: New file.
31580         * modules/log10l: New file.
31581         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
31582         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
31583         HAVE_DECL_LOG10L.
31584         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
31585         HAVE_DECL_LOG10L.
31586         * doc/posix-functions/log10l.texi: Mention the new module.
31588 2012-02-25  Bruno Haible  <bruno@clisp.org>
31590         fmodl, remainder*: Avoid wrong results due to rounding errors.
31591         * lib/fmodl.c (fmodl): Correct the result if it is not within the
31592         expected bounds.
31593         * lib/remainderf.c (remainderf): Likewise.
31594         * lib/remainder.c (remainder): Likewise.
31595         * lib/remainderl.c (remainderl): Likewise.
31597 2012-02-25  Bruno Haible  <bruno@clisp.org>
31599         Tests for module 'remainderl'.
31600         * modules/remainderl-tests: New file.
31601         * tests/test-remainderl.c: New file.
31602         * tests/test-math-c++.cc: Check the declaration of remainderl.
31604         New module 'remainderl'.
31605         * lib/math.in.h (remainderl): New declaration.
31606         * lib/remainderl.c: New file.
31607         * m4/remainderl.m4: New file.
31608         * modules/remainderl: New file.
31609         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
31610         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
31611         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
31612         HAVE_REMAINDERL.
31613         * doc/posix-functions/remainderl.texi: Mention the new module.
31615 2012-02-25  Bruno Haible  <bruno@clisp.org>
31617         Tests for module 'remainderf'.
31618         * modules/remainderf-tests: New file.
31619         * tests/test-remainderf.c: New file.
31620         * tests/test-math-c++.cc: Check the declaration of remainderf.
31622         New module 'remainderf'.
31623         * lib/math.in.h (remainderf): New declaration.
31624         * lib/remainderf.c: New file.
31625         * m4/remainderf.m4: New file.
31626         * modules/remainderf: New file.
31627         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
31628         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
31629         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
31630         HAVE_REMAINDERF.
31631         * doc/posix-functions/remainderf.texi: Mention the new module.
31633 2012-02-25  Bruno Haible  <bruno@clisp.org>
31635         remainder: Support for MSVC.
31636         * lib/math.in.h (remainder): New declaration.
31637         * lib/remainder.c: New file.
31638         * m4/remainder.m4: New file.
31639         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
31640         (Depends-on): Add math, round, fma.
31641         (configure.ac): Use results of gl_FUNC_REMAINDER.
31642         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
31643         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
31644         HAVE_DECL_REMAINDER.
31645         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
31646         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
31647         * tests/test-math-c++.cc: Check the declaration of remainder.
31648         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
31649         problems are fixed.
31651 2012-02-25  Bruno Haible  <bruno@clisp.org>
31653         Tests for module 'fmodl'.
31654         * modules/fmodl-tests: New file.
31655         * tests/test-fmodl.c: New file.
31656         * tests/test-math-c++.cc: Check the declaration of fmodl.
31658         New module 'fmodl'.
31659         * lib/math.in.h (fmodl): New declaration.
31660         * lib/fmodl.c: New file.
31661         * m4/fmodl.m4: New file.
31662         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
31663         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
31664         REPLACE_FMODL.
31665         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
31666         REPLACE_FMODL.
31667         * modules/fmodl: New file.
31668         * doc/posix-functions/fmodl.texi: Mention the new module.
31670 2012-02-25  Bruno Haible  <bruno@clisp.org>
31672         Tests for module 'modfl'.
31673         * modules/modfl-tests: New file.
31674         * tests/test-modfl.c: New file.
31675         * tests/test-math-c++.cc: Check the declaration of modfl.
31677         New module 'modfl'.
31678         * lib/math.in.h (modfl): New declaration.
31679         * lib/modfl.c: New file.
31680         * m4/modfl.m4: New file.
31681         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
31682         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
31683         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
31684         * modules/modfl: New file.
31685         * doc/posix-functions/modfl.texi: Mention the new module.
31687 2012-02-25  Bruno Haible  <bruno@clisp.org>
31689         Tests for module 'fabsl'.
31690         * modules/fabsl-tests: New file.
31691         * tests/test-fabsl.c: New file.
31692         * tests/test-math-c++.cc: Check the declaration of fabsl.
31694         New module 'fabsl'.
31695         * lib/math.in.h (fabsl): New declaration.
31696         * lib/fabsl.c: New file.
31697         * m4/fabsl.m4: New file.
31698         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
31699         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
31700         REPLACE_FABSL.
31701         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
31702         REPLACE_FABSL.
31703         * modules/fabsl: New file.
31704         * doc/posix-functions/fabsl.texi: Mention the new module.
31706 2012-02-25  Bruno Haible  <bruno@clisp.org>
31708         fabs tests: More tests.
31709         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
31710         (zero): New variable.
31711         (main): Add tests for signed zero.
31712         * modules/fabs-tests (Files): Add tests/minus-zero.h.
31714         fabsf tests: More tests.
31715         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
31716         (zero): New variable.
31717         (main): Add tests for signed zero.
31718         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
31720 2012-02-24  Bruno Haible  <bruno@clisp.org>
31722         atanl: Provide function definition on MSVC.
31723         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
31724         function pointer.
31725         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
31727 2012-02-24  Bruno Haible  <bruno@clisp.org>
31729         acosl: Provide function definition on MSVC.
31730         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
31731         function pointer.
31732         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
31734 2012-02-24  Bruno Haible  <bruno@clisp.org>
31736         asinl: Provide function definition on MSVC.
31737         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
31738         function pointer.
31739         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
31741 2012-02-24  Bruno Haible  <bruno@clisp.org>
31743         tanl: Provide function definition on MSVC.
31744         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
31745         function pointer.
31746         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
31748 2012-02-24  Bruno Haible  <bruno@clisp.org>
31750         cosl: Provide function definition on MSVC.
31751         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
31752         function pointer.
31753         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
31755 2012-02-24  Bruno Haible  <bruno@clisp.org>
31757         sinl: Provide function definition on MSVC.
31758         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
31759         function pointer.
31760         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
31762 2012-02-24  Bruno Haible  <bruno@clisp.org>
31764         logl: Provide function definition on MSVC.
31765         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
31766         function pointer.
31767         * lib/math.in.h (logl): Undefine if it does not exist as a function.
31769 2012-02-24  Bruno Haible  <bruno@clisp.org>
31771         expl: Provide function definition on MSVC.
31772         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
31773         function pointer.
31774         * lib/math.in.h (expl): Undefine if it does not exist as a function.
31776 2012-02-24  Bruno Haible  <bruno@clisp.org>
31778         sqrtl: Provide function definition on MSVC.
31779         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
31780         a function pointer.
31781         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
31783 2012-02-24  Bruno Haible  <bruno@clisp.org>
31785         ceill: Provide function definition on MSVC.
31786         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
31787         used as a function pointer.
31788         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
31790 2012-02-24  Bruno Haible  <bruno@clisp.org>
31792         floorl: Provide function definition on MSVC.
31793         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
31794         used as a function pointer.
31795         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
31797 2012-02-24  Bruno Haible  <bruno@clisp.org>
31799         ceilf: Provide function definition on MSVC.
31800         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
31801         used as a function pointer.
31802         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
31804 2012-02-24  Bruno Haible  <bruno@clisp.org>
31806         floorf: Provide function definition on MSVC.
31807         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
31808         used as a function pointer.
31809         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
31811 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
31813         stdnoreturn: new module
31814         This implements a replacement for C11's <stdnoreturn.h>.
31815         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
31816         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
31817         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
31818         * tests/test-stdnoreturn.c: New files.
31820 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
31822         regex: fix false multibyte matches in some regular expressions
31823         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
31824         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
31825         * lib/regex_internal.c (re_string_skip_chars):
31826         Fix miscomputation of remain_len that may cause incomplete
31827         multi-byte character and false match.
31829 2012-02-24  Jim Meyering  <meyering@redhat.com>
31831         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
31832         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
31833         uses with "==" *before* the call, e.g., 0 == strcmp (...)
31834         Remove now-unnecessary str''cmp obfuscation.
31835         Suggested by Akim Demaille.
31837 2012-02-24  Bruno Haible  <bruno@clisp.org>
31839         streq: Rename macro.
31840         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
31841         * NEWS: Mention the change.
31842         * lib/mbrtowc.c (mbrtowc): Update.
31843         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
31844         * lib/wcwidth.c (wcwidth): Update.
31845         Suggested by Akim Demaille and Jim Meyering.
31847 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31849         regex: fix typo in definition of MIN
31850         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
31851         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
31853 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
31854             Bruno Haible  <bruno@clisp.org>
31856         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
31857         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
31858         entries into a stack-allocated buffer directly.
31859         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
31861 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
31862             Bruno Haible  <bruno@clisp.org>
31864         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
31866          - There were several instances of this pattern:
31868              for (;;) {
31869                n = acl (f, GETACLCNT, 0, NULL);
31870                [ allocate an array A of size N ]
31871                if (acl (f, GETACL, n, a) == n)
31872                  break;
31873              }
31875            This loop might never terminate if some other process is constantly
31876            manipulating the file's ACL.  The loop should be rewritten to
31877            terminate.
31879          - The acl (... GETACLNT ...) call is merely an optimization; its value
31880            is merely a hint as to how big to make the array.  A better
31881            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
31882            and just guess a reasonably-big size, growing the size and trying
31883            again if it's not large enough.  This guarantees termination, and
31884            saves a system call.
31886         * lib/acl-internal.h: Include <limits.h>.
31887         (MIN, SIZE_MAX): New macros.
31888         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
31889         a stack-allocated buffer, and use malloc if it does not fit. Don't
31890         use GETACLCNT.
31891         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
31893 2012-02-19  Bruno Haible  <bruno@clisp.org>
31895         acl: Fix endless loop on Solaris with vxfs.
31896         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
31897         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
31898         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
31899         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
31900         * tests/test-sameacls.c (main)[Solaris]: Likewise.
31901         Reported by Bill Jones in
31902         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
31904 2012-02-19  Bruno Haible  <bruno@clisp.org>
31906         acl: Fix copy-acl test failure on Solaris 11.0.
31907         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
31908         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
31909         that this function returns 0 in some more cases.
31911 2012-02-19  Bruno Haible  <bruno@clisp.org>
31913         acl: Update doc references.
31914         * doc/acl-resources.txt: Update links to Solaris documentation.
31916 2012-02-19  Bruno Haible  <bruno@clisp.org>
31918         Fix test failure in many locales on Solaris 11.
31919         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
31920         'tr' arguments.
31921         * tests/test-pipe-filter-ii1.c (main): Likewise.
31922         * build-aux/bootstrap (check_versions): Run 'tr' command with range
31923         expressions in the C locale.
31924         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
31925         * m4/host-os.m4 (gl_HOST_OS): Likewise.
31927 2012-02-19  Bruno Haible  <bruno@clisp.org>
31929         gnulib-tool: Improve usage message.
31930         * gnulib-tool (func_usage): Move doc of --help and --version to the
31931         section "Operation modes".
31933 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
31935         README-release: make it easier to execute commands
31936         * top/README-release: break commands out on to separate lines.
31938 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
31940         GNUmakefile: simplify detection of unconfigured trees
31941         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
31942         whether the tree make is being run from is already configured or
31943         not.  Related simplifications.
31945 2012-02-13  Simon Josefsson  <simon@josefsson.org>
31947         * gnulib-tool (func_usage): Document --help and --version.
31949 2012-02-11  Jim Meyering  <meyering@redhat.com>
31951         bootstrap: don't exit 0 upon gnulib-tool failure
31952         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
31953         its exit status, not 0.
31955 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
31957         README-release: various improvements
31958         * top/README-release: Give a command to push changes for the
31959         release.  Add "distcheck" to list of other pre-release checks.
31960         Fix instance of "make stable" which should be "make TYPE".
31962 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
31964         maint: replace FSF snail-mail addresses with URLs
31965         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
31966         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
31967         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
31968         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
31969         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
31970         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
31971         * lib/check-version.c, lib/check-version.h, lib/config.charset:
31972         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
31973         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
31974         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
31975         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
31976         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
31977         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
31978         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
31979         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
31980         * lib/glthread/thread.c, lib/glthread/thread.h:
31981         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
31982         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
31983         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
31984         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
31985         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
31986         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
31987         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
31988         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
31989         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
31990         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
31991         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
31992         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
31993         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
31994         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
31995         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
31996         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
31997         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
31998         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
31999         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
32000         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
32001         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
32002         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
32003         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
32004         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
32005         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
32006         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
32007         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
32008         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
32009         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
32010         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
32011         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
32012         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
32013         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
32014         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
32015         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
32016         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
32017         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
32018         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
32019         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
32020         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
32021         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
32022         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
32023         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
32024         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
32025         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
32026         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
32027         * tests/test-poll.c, tests/test-quotearg-simple.c:
32028         * tests/test-quotearg.c, tests/test-quotearg.h:
32029         * tests/test-round-ieee.c, tests/test-round1.c:
32030         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
32031         * tests/test-roundl-ieee.c, tests/test-roundl.c:
32032         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
32033         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
32034         * tests/test-strerror.c, tests/test-strerror_r.c:
32035         * tests/test-strsignal.c, tests/test-strverscmp.c:
32036         * tests/test-xmemdup0.c:
32037         Replace FSF snail mail addresses with URLs, as per GNU coding
32038         standards.  See glibc bug
32039         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
32041 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
32043         README-release: capitalize a word and split a line
32044         * top/README-release: Fix punctuation and spacing.
32046 2012-02-08  Akim Demaille  <demaille@gostai.com>
32048         fatal-signal: use C prototypes (with explicit void).
32049         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
32050         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
32052 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
32054         regex: spelling fix
32055         * lib/regexec.c: spelling fix
32057         regex: rely on stdint.h for SIZE_MAX
32058         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
32060 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
32062         regex: merge glibc changes
32064         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
32065         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
32066         (init_word_char): Work even if bitset words are not exactly 32 or
32067         64 bits wide.  Don't assume there are no padding bits.
32068         * lib/regex.c [_LIBC]: Do not include <config.h>.
32069         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
32070         and -Wtype-limits.
32071         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
32072         needless disagreement with glibc.  All uses changed.  Define it to
32073         1 only if _GNU_SOURCE, to match glibc.
32074         (_REG_RM_NAME): Remove; no longer needed, since the names in
32075         question are now all protected by __USE_GNU.
32076         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
32077         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
32078         * lib/regex_internal.h (MIN): New macro.
32080         2012-01-03 Ulrich Drepper <drepper@gmail.com>
32081         * lib/regcomp.c (init_word_char): Optimize regex a bit.
32083         2011-12-30 Jakub Jelinek <jakub@redhat.com>
32084         * lib/regex_internal.c (re_string_fetch_byte_case):
32085         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
32086         is miscompiled, and it turns out it is because of an incorrect
32087         attribute on re_string_fetch_byte_case.  Unlike
32088         re_string_peek_byte_case, this one is really not pure, it modifies
32089         memory (increments pstr->cur_idx), and with the pure attribute GCC
32090         assumed it doesn't and it cached the presumed value of
32091         regexp->cur_idx in a variable across the
32092          for (;; ++i)
32093            {
32094              if (i >= BRACKET_NAME_BUF_SIZE)
32095                return REG_EBRACK;
32096              if (token->type == OP_OPEN_CHAR_CLASS)
32097                ch = re_string_fetch_byte_case (regexp);
32098              else
32099                ch = re_string_fetch_byte (regexp);
32100              if (re_string_eoi(regexp))
32101                return REG_EBRACK;
32102              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
32103                break;
32104              elem->opr.name[i] = ch;
32105            }
32107         2011-11-29 Andreas Schwab <schwab@redhat.com>
32108         * lib/regcomp.c (build_equiv_class):
32109         Fix access after end of search string in regex matcher.
32111         2011-11-12 Ulrich Drepper <drepper@redhat.com>
32112         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
32114         2011-10-12 Ulrich Drepper <drepper@redhat.com>
32115         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
32117         2011-10-11 Ulrich Drepper <drepper@redhat.com>
32118         * lib/regcomp.c (parse_branch, parse_sub_exp):
32119         More regex memory leak fixes and tests.
32120         (parse_sub_exp, parse_bracket_exp):
32121         Fix memory leak for some invalid regular expressions.
32123         2011-05-28 Ulrich Drepper <drepper@gmail.com>
32124         * lib/regex_internal.c, lib/regexec.c:
32125         Fix unnecessary overallocation due to incomplete character.  When
32126         incomplete characters are found at the end of a string the code
32127         ran amok and allocated lots of memory.  Stricter limits are now in
32128         place.
32130         2011-05-20 Reuben Thomas <rrt@sc3d.org>
32131         * lib/regex.h: Update documentation.
32133         2011-05-16 Aharon Robbins <arnold@skeeve.com>
32134         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
32136         2010-05-05 Andreas Schwab <schwab@redhat.com>
32137         * lib/regexec.c (find_collation_sequence_value):
32138         Fix lookup of collation sequence value during regexp matching.
32140         2010-01-22 Ulrich Drepper <drepper@redhat.com>
32141         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
32143         2008-01-16 Ulrich Drepper <drepper@redhat.com>
32144         * lib/regex.h: Cleanup namespace.
32146         2007-11-26 Ulrich Drepper <drepper@redhat.com>
32147         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
32149         2007-08-26 Ulrich Drepper <drepper@redhat.com>
32150         * lib/regex_internal.h: Prevent some declarations and definitions
32151         to be seen when used in tests.
32153         2005-05-06 Ulrich Drepper <drepper@redhat.com>
32154         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
32155         __libc_lock_* macros if not _LIBC.
32156         (struct re_dfa_t): Add lock.
32158 2012-02-07  Eric Blake  <eblake@redhat.com>
32160         maint.mk: also prohibit lower-case @var@
32161         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
32162         lower case, like @top_srcdir@.
32164 2012-02-04  Eric Blake  <eblake@redhat.com>
32166         canonicalize: avoid uninitialized memory use
32167         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
32168         random '/' left in dest.
32169         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
32171 2012-02-04  Bruno Haible  <bruno@clisp.org>
32173         isatty: Fix test failure of ptsname_r on native Windows.
32174         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
32175         and don't set errno.
32176         (isatty): Test first whether fd is valid. Set errno when returning 0.
32178 2012-02-04  Bruno Haible  <bruno@clisp.org>
32180         spawn-pipe tests: Fix a NULL program name in a diagnostic.
32181         * tests/test-spawn-pipe-main.c: Include progname.h.
32182         (main): Invoke set_program_name.
32183         * modules/spawn-pipe-tests (Depends-on): Add progname.
32185         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
32186         * tests/test-nonblocking-socket-main.c: Include progname.h.
32187         (main): Invoke set_program_name.
32188         * modules/nonblocking-socket-tests (Depends-on): Add progname.
32190         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
32191         * tests/test-nonblocking-pipe-main.c: Include progname.h.
32192         (main): Invoke set_program_name.
32193         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
32195 2012-02-04  Eric Blake  <eblake@redhat.com>
32197         canonicalize-lgpl: fix // handling
32198         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
32200         canonicalize: fix // handling
32201         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
32202         /// to //, since only // is special.
32204 2012-02-04  Bruno Haible  <bruno@clisp.org>
32206         ioctl: Fix test failure on native Windows.
32207         * lib/ioctl.c: Include msvc-nothrow.h.
32208         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
32210 2012-02-04  Bruno Haible  <bruno@clisp.org>
32212         fsync: Avoid test failure on native Windows.
32213         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
32214         read-only.
32216 2012-02-04  Bruno Haible  <bruno@clisp.org>
32218         sys_select: Avoid syntax error on OpenBSD 5.0.
32219         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
32220         currently being included, just include the system's <sys/select.h>.
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: Include <signal.h> only after the include_next
32226         <sys/select.h>, not before.
32227         Reported by Jiri B <jirib@devio.us>.
32229 2012-02-04  Bruno Haible  <bruno@clisp.org>
32231         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
32232         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
32233         global variables.
32234         * tests/test-get-rusage-data.c (main): Likewise.
32235         Reported by Jim Meyering.
32237 2012-02-04  Bruno Haible  <bruno@clisp.org>
32239         stdioext: Fix last commit.
32240         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
32242 2012-02-03  Bruno Haible  <bruno@clisp.org>
32244         stdioext: Add tentative support for Plan9.
32245         * lib/stdio-impl.h: Include <errno.h>.
32246         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
32247         * lib/freadable.c (freadable): Likewise.
32248         * lib/fwritable.c (fwritable): Likewise.
32249         * lib/fbufmode.c (fbufmode): Likewise.
32250         * lib/freading.c (freading): Likewise.
32251         * lib/fwriting.c (fwriting): Likewise.
32252         * lib/freadptr.c (freadptr): Likewise.
32253         * lib/freadseek.c (freadptrinc): Likewise.
32254         * lib/freadahead.c (freadahead): Likewise.
32255         * lib/fpurge.c (fpurge): Likewise.
32256         * lib/fseeko.c (rpl_fseeko): Likewise.
32257         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
32258         Reported by Jens Staal <staal1978@gmail.com>.
32260 2012-02-02  Jim Meyering  <meyering@redhat.com>
32262         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
32263         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
32264         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
32265         not even to try to add the attribute.  Instead, add a pragma to suppress
32266         the suggestion/warning.
32268 2012-01-31  Karl Berry  <karl@gnu.org>
32270         setstate doc: typo.
32271         * doc/posix-functions/setstate.texi (setstate): { not (.
32273 2012-01-31  Bruno Haible  <bruno@clisp.org>
32275         popen: Make more robust on Windows.
32276         * lib/popen.c: On native Windows, use the _popen based code even if
32277         HAVE_POPEN is set.
32278         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
32279         environment variable on native Windows.
32281 2012-01-30  Bruno Haible  <bruno@clisp.org>
32283         pclose: Fix typo.
32284         * lib/stdio.in.h (pclose): Fix typo in warning message.
32286 2012-01-30  Bruno Haible  <bruno@clisp.org>
32288         doc about getlogin_r, setstate.
32289         * doc/posix-functions/getlogin_r.texi: List the incompatible
32290         declaration problem under "not fixed by gnulib".
32291         * doc/posix-functions/setstate.texi: Mention incompatible declaration
32292         problem on Solaris 11 and other platforms.
32294 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
32295             Bruno Haible  <bruno@clisp.org>
32297         poll tests: Make test more robust.
32298         * tests/test-poll.c: Include macros.h.
32299         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
32300         return value of various I/O operations.
32301         * modules/poll-tests (Files): Add tests/macros.h.
32303 2012-01-30  Bruno Haible  <bruno@clisp.org>
32305         sys_stat: Fix support for mingw64 and MSVC.
32306         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
32307         header files already do it.
32308         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
32309         stat itself.
32310         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
32312 2012-01-30  Bruno Haible  <bruno@clisp.org>
32314         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
32315         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
32316         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
32318 2012-01-29  Bruno Haible  <bruno@clisp.org>
32320         quotearg: Fix test failure on MacOS X 10.5.
32321         * tests/test-quotearg-simple.c: Include localcharset.h.
32322         (main): If the locale encoding is not ASCII, bypass the tests of
32323         locale_quoting_style and clocale_quoting_style.
32324         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
32326 2012-01-29  Jim Meyering  <meyering@redhat.com>
32328         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
32329         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
32330         detect uses of canonicalize_file_name.
32332 2012-01-28  Bruno Haible  <bruno@clisp.org>
32334         test-framework-sh: Fix test failure with AIX 7.1 diff.
32335         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
32336         in column 1, like 'diff -c' does.
32337         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
32338         whether 'diff -u' is used. Instead, test whether the output contains
32339         some '@' character.
32341 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
32343         strtoimax: eliminate need for stdint.h, inttypes.h checks
32344         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
32345         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
32346         the prerequisites for a recently-introduced strtoimax test.
32347         I guess this might cause strtoimax to be replaced when not
32348         strictly necessary on older hosts, but this shouldn't introduce
32349         any bugs and it should make Emacs 'configure' faster on typical
32350         modern hosts.  Problem discovered when importing the latest gnulib
32351         to an Emacs test version.
32352         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
32354 2012-01-28  Bruno Haible  <bruno@clisp.org>
32356         sys_time: Override 'struct timeval' on some native Windows platforms.
32357         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
32358         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
32359         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
32360         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
32361         needs to be overridden.
32362         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
32363         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
32364         * tests/test-sys_select.c: Check that the tv_sec member has the same
32365         size as a 'time_t'.
32366         * tests/test-sys_time.c: Likewise.
32367         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
32368         is set, set also REPLACE_GETTIMEOFDAY.
32369         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
32370         convert the resulting 'struct timeval' before returning.
32371         * lib/select.c: Include <sys/time.h>.
32372         (select, timeval): Undefine at the right place.
32373         * modules/select (Depends-on): Add sys_time.
32374         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
32375         some Windows platforms.
32376         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
32378 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
32380         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
32381         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
32382         an integer.
32383         * lib/fcntl.c (dupfd): Likewise.
32384         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
32386 2012-01-28  Bruno Haible  <bruno@clisp.org>
32388         fcntl: Avoid compilation error on native Windows.
32389         * modules/fcntl (Depends-on): Add 'close'.
32391 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
32393         select, poll, isatty: Avoid warnings on x86_64 mingw64.
32394         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
32395         pointer to an integer.
32396         * lib/poll.c (IsConsoleHandle): Likewise.
32397         * lib/isatty.c (IsConsoleHandle): Likewise.
32399 2012-01-28  Jim Meyering  <meyering@redhat.com>
32401         doc: clarify README-release
32402         * top/README-release: Clarify: you should make a point to have
32403         the latest stable versions of build tools in your PATH, and the
32404         reference to buildreq is solely for its list of tool names, not
32405         for its minimal-functional version numbers.
32406         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
32408         maint.mk: use more readable (yet functionally equivalent) quoting
32409         It is common to quote a single quote in a single quoted string like
32410         this:  '...'\''...'.  Unless you know the idiom, that looks like
32411         gibberish, so prefer to double-quote the string when possible.
32412         Then you can use a more readable, lone single quote: "...'..."
32413         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
32414         "don't" is more readable than the equivalent 'don'\''t'.
32415         (sc_cast_of_x_alloc_return_value): Likewise.
32416         (sc_cast_of_alloca_return_value): Likewise.
32417         (sc_makefile_path_separator_check): Similar: use ":" in '...',
32418         rather than '\'':'\''.
32420 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
32422         stdalign: relax _Alignof and tighten _Alignas test
32423         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
32424         as it was too strict: alignof must divide offsetof, but it need
32425         not equal offsetof.  Inspired by Joseph S. Myers's comment
32426         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
32427         Conversely, tighten the _Alignas test a bit, as the resulting
32428         alignment must be exactly 8.
32430 2012-01-27  Bruno Haible  <bruno@clisp.org>
32432         stdalign: Document the last change.
32433         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
32435 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
32437         stdalign: check that alignof and offsetof are consistent
32438         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
32439         Problem reported for gnulib by Richard W.M. Jones in
32440         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
32442 2012-01-27  Jim Meyering  <meyering@redhat.com>
32444         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
32445         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
32446         convert a sequence with gaps to the minimal containing range.
32447         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
32448         * tests/test-update-copyright.sh: Test for this.
32449         The FSF confirmed it is ok to do this, assuming there is at
32450         least one significant change per year in the affected range:
32451         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
32453 2012-01-26  Bruno Haible  <bruno@clisp.org>
32455         pipe2: refine doc about thread-safety
32456         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
32457         multithread-safety problem.
32458         * doc/glibc-functions/accept4.texi: Likewise.
32460 2012-01-26  Bruno Haible  <bruno@clisp.org>
32462         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
32463         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
32464         In the test program, include <fcntl.h>, for O_RDONLY.
32466 2012-01-26  Eric Blake  <eblake@redhat.com>
32468         pipe2: document lack of thread-safety in replacement
32469         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
32470         issue in replacement.
32471         * doc/glibc-functions/accept4.texi (accept4): Likewise.
32472         Based on a report by Eric Wong.
32474 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
32475             Bruno Haible  <bruno@clisp.org>
32477         malloca: Avoid warnings on x86_64 mingw64.
32478         * lib/malloca.c: Include <stdint.h>.
32479         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
32480         * modules/malloca (Depends-on): Add stdint.
32481         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
32483 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
32485         obstack: remove __STDC__ conditionals
32486         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
32487         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
32488         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
32489         m4/include_next.m4 as the only gnulib-maintained places that still
32490         refer to __STDC__.
32492 2012-01-24  Bruno Haible  <bruno@clisp.org>
32494         havelib: Modern quoting.
32495         * build-aux/config.rpath: Quote 'like this', not `like this', as per
32496         the recent change to the GNU coding standards.
32498 2012-01-24  Bruno Haible  <bruno@clisp.org>
32500         stdint: Improve support for Android.
32501         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
32502         Reported by Simon Josefsson <simon@josefsson.org>.
32504 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
32506         doc: omit trailing empty lines from INSTALL etc.
32507         * doc/Makefile (INSTALL): Omit trailing empty lines.
32508         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
32509         omit trailing empty lines.  This simplifies the build procedure.
32511 2012-01-23  Jim Meyering  <meyering@redhat.com>
32513         tests: avoid spurious warnings about gl_sockets_startup
32514         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
32515         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
32516         reporting a "statement with no effect".
32517         * tests/test-accept.c (main): Mark as "(void)".
32518         * tests/test-accept4.c (main): Likewise.
32519         * tests/test-bind.c (main): Likewise.
32520         * tests/test-connect.c (main): Likewise.
32521         * tests/test-getpeername.c (main): Likewise.
32522         * tests/test-getsockname.c (main): Likewise.
32523         * tests/test-getsockopt.c (main): Likewise.
32524         * tests/test-listen.c (main): Likewise.
32525         * tests/test-recv.c (main): Likewise.
32526         * tests/test-recvfrom.c (main): Likewise.
32527         * tests/test-send.c (main): Likewise.
32528         * tests/test-sendto.c (main): Likewise.
32529         * tests/test-setsockopt.c (main): Likewise.
32530         * tests/test-shutdown.c (main): Likewise.
32532 2012-01-21  Bruno Haible  <bruno@clisp.org>
32534         locale-fr.m4: Fix for Android.
32535         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
32536         failure of the test program on Bionic libc.
32538 2012-01-21  Jim Meyering  <meyering@redhat.com>
32540         bootstrap: fail when bootstrap_post_import_hook fails
32541         Otherwise, it's far too easy to miss diagnostics emitted
32542         between gnulib-tool's output and that of running configure.
32543         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
32545 2012-01-17  Jim Meyering  <meyering@redhat.com>
32547         maint: enable sc_trailing_blank
32548         * build-aux/pmccabe.css: Remove trailing blanks.
32549         * doc/acl-cygwin.txt: Likewise.
32550         * doc/gnu-oids.texi: Likewise
32551         * cfg.mk: Enable sc_trailing_blank.
32552         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
32554 2012-01-17  Jim Meyering  <meyering@redhat.com>
32556         maint: enable sc_prohibit_openat_without_use
32557         * cfg.mk: Enable sc_prohibit_openat_without_use.
32558         Exempt lib/selinux-at.c.
32560 2012-01-17  Jim Meyering  <meyering@redhat.com>
32562         maint: enable sc_prohibit_cloexec_without_use
32563         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
32564         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
32566 2012-01-17  Jim Meyering  <meyering@redhat.com>
32568         maint: enable sc_prohibit_intprops_without_use
32569         * cfg.mk: Enable sc_prohibit_intprops_without_use
32570         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
32572 2012-01-17  Jim Meyering  <meyering@redhat.com>
32574         maint: enable sc_prohibit_hash_pjw_without_use
32575         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
32576         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
32577         to match any use of \<hash_pjw\>, i.e., not necessarily with a
32578         following " (".
32580 2012-01-17  Jim Meyering  <meyering@redhat.com>
32582         maint: enable double-word-prohibiting rule
32583         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
32584         Exempt three files.
32586 2012-01-17  Jim Meyering  <meyering@redhat.com>
32588         maint: remove empty lines at EOF, but excluding modules/*
32589         Apply syntax rules at home as well as abroad.  Most changes
32590         were induced by running this:
32591           make srcdir=. _build-aux=build-aux -f top/maint.mk \
32592             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
32593             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
32594         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
32595         Exempt modules/* and two binary files.
32596         Also exempt doc/INSTALL*, per request from Bruno Haible.
32597         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
32598         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
32599         * doc/Copyright/request-assign.future: Likewise.
32600         * doc/Copyright/request-disclaim.changes: Likewise.
32601         * doc/INSTALL: Likewise.
32602         * doc/INSTALL.ISO: Likewise.
32603         * doc/INSTALL.UTF-8: Likewise.
32604         * doc/acl-cygwin.txt: Likewise.
32605         * doc/acl-resources.txt: Likewise.
32606         * doc/fdl-1.2.texi: Likewise.
32607         * doc/fdl-1.3.texi: Likewise.
32608         * doc/fdl.texi: Likewise.
32609         * lib/argp-pin.c: Likewise.
32610         * lib/round.c: Likewise.
32611         * lib/unicase/u16-totitle.c: Likewise.
32612         * lib/unictype/block_test.c: Likewise.
32613         * lib/uninorm/canonical-decomposition.c: Likewise.
32614         * m4/README: Likewise.
32615         * m4/relocatable-lib.m4: Likewise.
32616         * tests/test-isnand-nolibm.c: Likewise.
32617         * tests/test-isnand.c: Likewise.
32618         * tests/uninorm/NormalizationTest.txt: Likewise.
32620 2012-01-17  Jim Meyering  <meyering@redhat.com>
32622         maint: add framework to run syntax-check rules against gnulib sources
32623         * cfg.mk: New file, to disable all currently-failing tests.
32624         We'll enable them one by one, as they are made to pass.
32625         * Makefile (sc_maint): New rule.
32627 2012-01-21  Bruno Haible  <bruno@clisp.org>
32629         stdint: Add support for Android.
32630         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
32631         include the system's <stdint.h>.
32632         Reported by Simon Josefsson <simon@josefsson.org>.
32634 2012-01-19  Jim Meyering  <meyering@redhat.com>
32636         bootstrap: add bootstrap_post_import_hook
32637         Bison does still need something like the gnulib_mk_hook whose
32638         invocation I had to remove along with slurp in commit 767ccd40.
32639         Technically, we could get along without it, but doing so would
32640         have required living with a warning and a mandatory post-bootstrap
32641         automake rerun.
32642         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
32643         (bootstrap_post_import_hook): New function.
32644         Invoke it after gnulib-tool --import and before autoreconf.
32646 2012-01-18  Jim Meyering  <meyering@redhat.com>
32648         gitlog-to-changelog: don't use "no_"-prefixed variable name
32649         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
32650         to enable both --cluster and --no-cluster.  Change variable name,
32651         s/\$no_cluster/$cluster/, and reverse usage to match.
32653         gitlog-to-changelog: use "||", not "or" in expressions
32654         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
32655         expressions.
32657 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
32659         gitlog-to-changelog: new option --no-cluster
32660         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
32661         clustering of adjacent commit messages.
32663 2012-01-17  Jim Meyering  <meyering@redhat.com>
32665         maint: spell file systems with two words, not one
32666         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
32667         two words, not one.
32669 2012-01-16  Jim Meyering  <meyering@redhat.com>
32671         bootstrap: add a FIXME comment to ensure we eventually remove the hack
32672         * build-aux/bootstrap (gnulib_tool_options): Add comment.
32674 2012-01-16  Eric Blake  <eblake@redhat.com>
32676         bootstrap: cater to autoconf 2.59
32677         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
32678         is not available.
32680         bootstrap: properly check for libtool
32681         * build-aux/bootstrap (libtoolize): Also run libtool when older
32682         usage is detected.
32684 2012-01-15  Bruno Haible  <bruno@clisp.org>
32686         Improve support for MSVC 9.
32687         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
32688         clashes on MSVC.
32689         * lib/fcntl.in.h: Likewise.
32690         * lib/stdlib.in.h: Likewise.
32691         * lib/sys_stat.in.h: Likewise.
32693 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
32695         gnupload: we hold the master copy of this script now
32696         For motivation and more information, see:
32697         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
32698         * build-aux/gnupload: Make it clear in the heading comments that the
32699         master copy of this file is maintained by gnulib.  Since we are at
32700         it, bump its copyright year and ...
32701         ($scriptversion): ... the date in its version.
32702         ($usage): Patches and bug reports should be sent to the gnulib list,
32703         not the automake one.
32704         * config/srclist.txt: Don't try to sync 'gnupload' from automake
32705         anymore.
32707 2012-01-15  Bruno Haible  <bruno@clisp.org>
32709         Fix module 'random'.
32710         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
32711         initstate, setstate are declared.
32713 2012-01-14  Bruno Haible  <bruno@clisp.org>
32715         Tests for module 'random'.
32716         * modules/random-tests: New file.
32717         * tests/test-random.c: New file, based on tests/test-random_r.c.
32719         New module 'random'.
32720         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
32721         declarations.
32722         * lib/random.c: New file, based on glibc/stdlib/random.c.
32723         * m4/random.m4: New file.
32724         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
32725         HAVE_RANDOM.
32726         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
32727         * modules/random: New file.
32728         * config/srclist.txt: Add an entry for random.c.
32729         * doc/posix-functions/random.texi: Mention the 'random' module.
32730         * doc/posix-functions/initstate.texi: Likewise.
32731         * doc/posix-functions/setstate.texi: Likewise.
32732         * doc/posix-functions/srandom.texi: Likewise.
32734 2012-01-12  Bruno Haible  <bruno@clisp.org>
32736         random_r: Use common idioms.
32737         * lib/random_r.c: Include <stdlib.h> first.
32739         random_r: Override incompatible API on AIX, OSF/1.
32740         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
32741         Override the system function if REPLACE_RANDOM_R is 1.
32742         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
32743         and OSF/1, set REPLACE_RANDOM_R.
32744         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
32745         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
32746         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
32747         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
32748         * doc/glibc-functions/random_r.texi: Likewise.
32749         * doc/glibc-functions/setstate_r.texi: Likewise.
32751         random_r: Support for MSVC 9.
32752         * lib/random_r.c: Include stdint.h, not inttypes.h.
32754 2012-01-12  Eric Blake  <eblake@redhat.com>
32756         inet_ntop: guard extra work by IF_LINT
32757         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
32758         better code generation when not checking for warnings.
32759         Suggested by Paul Eggert and Jim Meyering.
32761         strptime: fix regression on mingw
32762         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
32763         Fix regression.  Reported by Bruno Haible.
32765 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
32766             Bruno Haible  <bruno@clisp.org>
32768         copy-file: add error-code-returning variant.
32769         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
32770         (qcopy_file_preserving): New declaration.
32771         * lib/copy-file.c (qcopy_file_preserving): Renamed from
32772         copy_file_preserving. Change return type to 'int'. Don't emit an error
32773         message here.
32774         (copy_file_preserving): New function.
32775         * tests/test-copy-file.c: Include <stdlib.h>.
32776         (main): Test qcopy_file_preserving if the environment variable
32777         NO_STDERR_OUTPUT is set.
32778         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
32779         with NO_STDERR_OUTPUT
32780         * tests/test-copy-file-2.sh: Likewise.
32782 2012-01-10  Bruno Haible  <bruno@clisp.org>
32784         copy-file: Use 'quote' module consistently.
32785         * lib/copy-file.c (copy_file_preserving): Use quote().
32787         copy-file: Refactor.
32788         * lib/copy-file.c: Include quote.h.
32789         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
32790         message here.
32791         * modules/copy-file (Depends-on): Add quote.
32793         acl: Export qcopy_acl.
32794         * lib/acl.h (qcopy_acl): New declaration.
32795         * lib/copy-acl.c (qcopy_acl): Make non-static.
32797         acl: Rename a local variable.
32798         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
32800         acl: Align return values of copy_acl and qcopy_acl.
32801         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
32802         maybe < -1.
32804 2012-01-11  Eric Blake  <eblake@redhat.com>
32806         strptime: silence gcc warnings
32807         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
32808         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
32809         Reported by Daniel P. Berrange.
32811         inet_ntop: silence gcc warning
32812         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
32813         Reported by Daniel P. Berrange.
32815 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
32817         getloadavg test: skip the test on GNU/Linux without /proc mounted
32818         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
32819         file.  When /proc is not mounted, it always fails with ENOENT.
32820         * tests/test-getloadavg.c (main): Treat ENOENT return code from
32821         getloadavg(3) the same way as ENOSYS and ENOTSUP.
32823 2012-01-10  Bruno Haible  <bruno@clisp.org>
32825         regex: Avoid link error on MSVC 9.
32826         * modules/regex (Depends-on): Add wctype.
32828 2012-01-10  Bruno Haible  <bruno@clisp.org>
32830         doc: Mention --with-tests option.
32831         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
32832         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
32833         --with-tests.
32834         Reported by Reuben Thomas.
32836 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
32838         users.txt: order package names lexicographically.
32839         * users.txt: Order package names lexicographically.
32841 2012-01-10  Jim Meyering  <meyering@redhat.com>
32843         maint.mk: fix description in comment
32844         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
32846         ignore-value: remove deprecated ignore_ptr function
32847         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
32848         * NEWS: Note this.
32850 2012-01-09  Jim Meyering  <meyering@redhat.com>
32852         test-init.sh: avoid a subshell
32853         * tests/test-init.sh: Remove protective subshell.
32854         Suggested by Bernhard Voelker.  While a subshell is normally
32855         required to protect against older shells (Solaris, FreeBSD) that
32856         warn about a missing program before performing redirection, the
32857         shell-selection tests performed by init.sh probably exclude any
32858         offending shell.
32860 2012-01-08  Bruno Haible  <bruno@clisp.org>
32862         setlocale tests: Avoid test failure on Solaris 11.0.
32863         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
32864         variable.
32866 2012-01-08  Bruno Haible  <bruno@clisp.org>
32868         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
32869         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
32870         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
32871         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
32872         macro.
32873         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
32874         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
32875         * lib/spawn_faction_addopen.c: Add workaround implementation if
32876         HAVE_WORKING_POSIX_SPAWN.
32877         * modules/spawn (Makefile): Substitute
32878         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
32879         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
32880         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
32881         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
32882         (Depends-on): Update conditions.
32883         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
32884         the Solaris 11 bug.
32886 2012-01-08  Bruno Haible  <bruno@clisp.org>
32888         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
32889         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
32890         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
32891         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
32892         macro.
32893         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
32894         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
32895         * lib/spawn_faction_adddup2.c: Add workaround implementation if
32896         HAVE_WORKING_POSIX_SPAWN.
32897         * modules/spawn (Makefile): Substitute
32898         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
32899         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
32900         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
32901         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
32902         (Depends-on): Update conditions.
32903         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
32904         the Solaris 11 bug.
32906 2012-01-08  Bruno Haible  <bruno@clisp.org>
32908         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
32909         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
32910         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
32911         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
32912         HAVE_WORKING_POSIX_SPAWN.
32913         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
32914         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
32915         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
32916         * lib/spawn_faction_addclose.c: Add workaround implementation if
32917         HAVE_WORKING_POSIX_SPAWN.
32918         * modules/spawn (Makefile): Substitute
32919         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
32920         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
32921         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
32922         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
32923         (Depends-on): Update conditions.
32924         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
32925         the Solaris 11 bug.
32927 2012-01-08  Bruno Haible  <bruno@clisp.org>
32929         doc: Update for Solaris 11.0.
32930         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
32931         * m4/printf.m4: Update comments.
32933 2012-01-08  Bruno Haible  <bruno@clisp.org>
32935         mktime: Avoid compilation error on Solaris 11.
32936         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
32938 2012-01-08  Bruno Haible  <bruno@clisp.org>
32940         doc: Small fix.
32941         * doc/posix-headers/nl_types.texi: Correct platforms list.
32943 2012-01-08  Simon Josefsson  <simon@josefsson.org>
32945         Add lgpl-3.0 module.
32946         * MODULES.html.sh (Support for building documentation): Add
32947         lgpl-3.0.
32948         * modules/lgpl-3.0: New file.
32950 2012-01-08  Jim Meyering  <meyering@redhat.com>
32952         select.c: indent with spaces, not TABs
32953         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
32955 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
32957         quotearg: do not use grave accent for left quote
32958         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
32959         locale_quoting_style.
32960         (quotearg_buffer_restyled): Fix example.
32961         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
32963 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
32965         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
32966         Most programs do not have translation catalogs for English and much
32967         less separate catalogs for British and American English.  Drop the
32968         suggestion to translators about these two, and provide it
32969         automatically for Unicode locales.  Like most programs, even those
32970         using American English, we use single quotation marks.  This conflicts
32971         with the American typographic convention, but works better when you
32972         cite the entire error message within double quotes.  It also tries not
32973         to clash with established practice and with what non-gnulib programs
32974         will usually do.
32975         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
32976         using an UTF-8 or GB-18030 locale.  The list of other locales with
32977         quotes was provided by Bruno Haible.
32978         (quotearg_buffer_restyled): Adjust instructions to translators.
32979         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
32980         text, since this would be wrong when using Unicode.
32981         * modules/quotearg: Depend on c-strcaseeq.
32983 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
32985         quotearg: fix Wikipedia link
32986         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
32988 2012-01-07  Simon Josefsson  <simon@josefsson.org>
32990         Fix for mingw with MSVC9.
32991         * m4/ld-version-script.m4: Check that compiler rejects version
32992         scripts with syntax errors.  Reported by Bruno Haible
32993         <bruno@clisp.org>.
32995 2012-01-06  Bruno Haible  <bruno@clisp.org>
32997         Talk about "native Windows API", not "Woe32".
32998         * lib/accept4.c: Update comments to mention native Windows.
32999         * lib/execute.c: Likewise.
33000         * lib/fatal-signal.c: Likewise.
33001         * lib/localcharset.c: Likewise.
33002         * lib/nanosleep.c: Likewise.
33003         * lib/nl_langinfo.c: Likewise.
33004         * lib/pclose.c: Likewise.
33005         * lib/pipe-filter-gi.c: Likewise.
33006         * lib/pipe-filter-ii.c: Likewise.
33007         * lib/pipe.c: Likewise.
33008         * lib/pipe2.c: Likewise.
33009         * lib/popen.c: Likewise.
33010         * lib/progreloc.c: Likewise.
33011         * lib/relocatable.c: Likewise.
33012         * lib/sigaction.c: Likewise.
33013         * lib/sigprocmask.c: Likewise.
33014         * lib/spawn-pipe.h: Likewise.
33015         * lib/spawn-pipe.c: Likewise.
33016         * lib/spawni.c: Likewise.
33017         * lib/stat-time.h: Likewise.
33018         * lib/w32spawn.h: Likewise.
33019         * tests/test-isatty.c: Likewise.
33020         * lib/config.charset: More comments.
33021         * doc/gnulib-intro.texi: Mention native Windows.
33022         * doc/posix-functions/_Exit_C99.texi: Likewise.
33023         * doc/posix-headers/fcntl.texi: Likewise.
33025 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
33027         argp: Avoid crash if translator uses % characters in a translation.
33028         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
33029         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
33031 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
33033         doc: C11 and C++11 are now official
33034         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
33035         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
33036         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
33037         * modules/stdalign:
33038         Replace references to draft C1X to C11, and to draft C++0X to C++11.
33040 2012-01-06  Bruno Haible  <bruno@clisp.org>
33042         uc-is-grapheme-break tests: Tweak.
33043         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
33044         message.
33046 2012-01-06  Bruno Haible  <bruno@clisp.org>
33048         test-init.sh: correct the test for diff -u
33049         * tests/test-init.sh: Also redirect stdout to /dev/null.
33051 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
33053         Use ', not `, for quoting output.
33054         * build-aux/announce-gen (usage, sizes, print_news_deltas)
33055         (print_changelog_deltas, get_tool_versions, main program):
33056         * build-aux/git-version-gen:
33057         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
33058         * build-aux/move-if-change (help):
33059         * build-aux/useless-if-before-free (usage, main program):
33060         * check-module (parse_module_file, usage)
33061         (find_included_lib_files, check_module):
33062         * lib/argmatch.c (main) [TEST]:
33063         * lib/argp-help.c (_help):
33064         * lib/getopt1.c (main) [TEST]:
33065         * lib/git-merge-changelog.c (usage):
33066         * lib/xstrtol-error.c (xstrtol_error):
33067         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
33068         * m4/argz.m4 (gl_FUNC_ARGZ):
33069         * m4/bison.m4 (gl_BISON):
33070         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
33071         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
33072         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
33073         * m4/fpending.m4 (gl_PREREQ_FPENDING):
33074         * m4/gc-random.m4 (gl_GC_RANDOM):
33075         * m4/intl.m4 (gt_CHECK_DECL):
33076         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
33077         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
33078         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
33079         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
33080         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
33081         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
33082         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
33083         * tests/test-dirname.c (main):
33084         * tests/test-getpass.c (main):
33085         * tests/test-iconvme.c (main):
33086         * tests/test-parse-datetime.c (LOG):
33087         * tests/test-xstrtoimax.sh:
33088         * tests/test-xstrtol.sh:
33089         * tests/test-xstrtoll.sh:
33090         * tests/test-xstrtoumax.sh:
33091         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
33092         * top/GNUmakefile (abort-due-to-no-makefile):
33093         Quote 'like this', not `like this', as per the recent change to
33094         the GNU coding standards.
33096 2012-01-05  Bruno Haible  <bruno@clisp.org>
33098         strtoimax: Don't force a replacement on systems where intmax_t is int.
33099         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
33100         'intmax_t' is not larger than 'int'.
33101         Reported by Pádraig Brady <P@draigBrady.com>.
33103 2012-01-05  Bruno Haible  <bruno@clisp.org>
33105         doc: Mention NetBSD bugs.
33106         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
33107         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
33109 2012-01-05  Bruno Haible  <bruno@clisp.org>
33111         strtoumax tests: Enhance tests.
33112         * tests/test-strtoumax.c (main): Add tests for large values.
33114 2012-01-05  Bruno Haible  <bruno@clisp.org>
33116         strtoimax: Work around AIX 5.1 bug.
33117         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
33118         definition.
33119         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
33120         Set HAVE_STRTOIMAX.
33121         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
33122         REPLACE_STRTOIMAX.
33123         * modules/inttypes-incomplete (Makefile.am): Substitute
33124         REPLACE_STRTOIMAX.
33125         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
33126         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
33127         (Depends-on): Update conditions.
33128         * tests/test-strtoimax.c (main): Add tests for large values.
33129         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
33131 2012-01-05  Bruno Haible  <bruno@clisp.org>
33133         inttypes: Modernize.
33134         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
33135         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
33136         (Makefile.am): Update inttypes.h rule.
33138 2012-01-05  Jim Meyering  <meyering@redhat.com>
33140         init.sh: don't waste a subshell just to redirect stderr
33141         * tests/init.sh: In testing for diff -u and diff -c, use a
33142         stderr-redirecting exec inside `...` rather than a subshell.
33144         test-init.sh: avoid failure on HP-UX 11.00
33145         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
33146         resolves to diff -c or cmp.  Reported by Bruno Haible.
33148 2012-01-05  Bruno Haible  <bruno@clisp.org>
33150         Tests for module 'strtoull'.
33151         * modules/strtoull-tests: New file.
33152         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
33154 2012-01-05  Bruno Haible  <bruno@clisp.org>
33156         Tests for module 'strtoll'.
33157         * modules/strtoll-tests: New file.
33158         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
33160 2012-01-05  Bruno Haible  <bruno@clisp.org>
33162         Tests for module 'strtoul'.
33163         * modules/strtoul-tests: New file.
33164         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
33166 2012-01-05  Bruno Haible  <bruno@clisp.org>
33168         Tests for module 'strtol'.
33169         * modules/strtol-tests: New file.
33170         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
33172 2012-01-04  Jim Meyering  <meyering@redhat.com>
33174         test-init.sh: accommodate Solaris 5.10's different diff -u output
33175         * tests/test-init.sh: Also exempt @@ lines from the comparison
33176         of diff output, since Solaris 5.10 and GNU diff formats differ.
33177         Reported by Stefano Lattarini.
33179 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
33181         test-posixtm: don't assume signed integer wraparound
33182         * tests/test-posixtm.c (main): Don't assume wraparound semantics
33183         after signed integer overflow.  Inspired by (though it may not
33184         fix) Bruno Haible's bug report in
33185         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
33187         Spell out "Windows 9x" and "Windows XP".
33188         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
33189         "Windows 9x" and "WinXP" with "Windows XP".
33191 2012-01-04  Jim Meyering  <meyering@redhat.com>
33193         test-vc-list-files-cvs.sh: remove obsolete comment
33194         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
33195         double exit.  Now that's all encapsulated via skip_ and Exit.
33197 2012-01-04  Bruno Haible  <bruno@clisp.org>
33199         Talk about "native Windows API", not "Win32".
33200         * lib/classpath.c: Update comments to mention native Windows.
33201         * lib/csharpexec.c: Likewise.
33202         * lib/dup2.c: Likewise.
33203         * lib/error.c: Likewise.
33204         * lib/fcntl.c: Likewise.
33205         * lib/filename.h: Likewise.
33206         * lib/findprog.c: Likewise.
33207         * lib/get-rusage-as.c: Likewise.
33208         * lib/get-rusage-data.c: Likewise.
33209         * lib/getpagesize.c: Likewise.
33210         * lib/javaexec.c: Likewise.
33211         * lib/msvc-inval.c: Likewise.
33212         * lib/msvc-nothrow.c: Likewise.
33213         * lib/nanosleep.c: Likewise.
33214         * lib/nonblocking.c: Likewise.
33215         * lib/printf-parse.c: Likewise.
33216         * lib/setlocale.c: Likewise.
33217         * lib/sigaction.c: Likewise.
33218         * lib/strerror_r.c: Likewise.
33219         * lib/tmpdir.c: Likewise.
33220         * lib/vasnprintf.c: Likewise.
33221         * lib/w32spawn.h: Likewise.
33222         * lib/waitpid.c: Likewise.
33223         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
33224         * m4/locale-ar.m4: Likewise.
33225         * m4/locale-fr.m4: Likewise.
33226         * m4/locale-ja.m4: Likewise.
33227         * m4/locale-tr.m4: Likewise.
33228         * m4/locale-zh.m4: Likewise.
33229         * m4/printf.m4: Likewise.
33230         * tests/test-cloexec.c: Likewise.
33231         * tests/test-copy-acl.sh: Likewise.
33232         * tests/test-copy-file.sh: Likewise.
33233         * tests/test-file-has-acl.sh: Likewise.
33234         * tests/test-set-mode-acl.sh: Likewise.
33235         * tests/test-dup-safer.c: Likewise.
33236         * tests/test-dup2.c: Likewise.
33237         * tests/test-dup3.c: Likewise.
33238         * tests/test-fcntl.c: Likewise.
33239         * tests/test-nonblocking-pipe.h: Likewise.
33240         * tests/test-nonblocking-socket.h: Likewise.
33241         * tests/test-pipe.c: Likewise.
33242         * tests/test-pipe2.c: Likewise.
33243         * tests/test-spawn-pipe-child.c: Likewise.
33244         * doc/acl-resources.txt: Likewise.
33245         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
33246         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
33247         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
33248         * lib/localcharset.c: Update comments to mention native Windows.
33249         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
33250         * lib/localename.c: Likewise.
33251         * lib/progreloc.c: Likewise.
33252         * lib/relocatable.c: Likewise.
33253         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
33254         (windows_compute_revents): Renamed from win32_compute_revents.
33255         (windows_compute_revents_socket): Renamed from
33256         win32_compute_revents_socket.
33257         * lib/select.c: Update comments to mention native Windows.
33258         (windows_poll_handle): Renamed from win32_poll_handle.
33259         * m4/threadlib.m4: Update comments to mention native Windows.
33260         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
33261         --enable-threads=windows instead of --enable-threads=win32. Set
33262         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
33263         * lib/glthread/lock.h: Update comments to mention native Windows.
33264         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
33265         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
33266         USE_WIN32_THREADS.
33267         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
33268         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
33269         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
33270         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
33271         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
33272         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
33273         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
33274         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
33275         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
33276         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
33277         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
33278         * tests/test-tls.c: Likewise.
33279         Rationale:
33280         Microsoft renamed the "Win32 API" to "Windows API", as it is available
33281         on both 32-bit and 64-bit Windows systems.
33282         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
33283         line of distinction is between "native Windows" on one side and Unix/
33284         POSIX systems on the other side. More details in
33285         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
33286         Suggested by Paul Eggert.
33288 2012-01-03  Bruno Haible  <bruno@clisp.org>
33290         isatty: Support for MSVC 9.
33291         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
33292         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
33293         (_isatty_nothrow): New function.
33294         (isatty): Use it instead of _isatty.
33295         (IsConsoleHandle): Add comment, from Paolo Bonzini.
33296         * lib/poll.c (IsConsoleHandle): Likewise.
33297         * lib/select.c (IsConsoleHandle): Likewise.
33298         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
33299         (gl_PREREQ_ISATTY): New macro.
33300         * modules/isatty (Depends-on): Add msvc-inval.
33301         (configure.ac): Invoke gl_PREREQ_ISATTY.
33303 2012-01-03  Jim Meyering  <meyering@redhat.com>
33305         maint.mk: remove temporary transition aid from over 1.5 years ago
33306         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
33307         purpose was to aid in the transition (avoiding silent malfunction)
33308         from that old name to the new _sc_search_regexp.  This shim was
33309         added by commit 219c504b.
33311         init.sh: do not try to accommodate compare arguments starting with "-"
33312         * tests/init.sh (compare_dev_null_): Do not try to accommodate
33313         compare arguments that start with "-".  Besides, we do not worry
33314         about this when invoking diff or cmp; why start now with sed?
33315         Using "--" to separate options from argument would trigger sed
33316         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
33317         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
33319 2012-01-02  Bruno Haible  <bruno@clisp.org>
33321         Enhance tests for module 'isatty'.
33322         * modules/isatty-tests (Depends-on): Add pipe-posix.
33323         * tests/test-isatty.c: Include <fcntl.h>.
33324         (DEV_NULL): New macro.
33325         (main): Test the resut of isatty() also on regular files, pipes, and
33326         /dev/null.
33328         New module 'isatty'.
33329         * lib/unistd.in.h (isatty): New declaration.
33330         * lib/isatty.c: New file, based on an idea of
33331         Bastien Roucariès <roucaries.bastien@gmail.com>.
33332         * m4/isatty.m4: New file.
33333         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
33334         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
33335         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
33336         REPLACE_ISATTY.
33337         * modules/isatty: New file.
33338         * doc/posix-functions/isatty.texi: Mention the new module.
33339         Suggested by Paolo Bonzini.
33341 2012-01-02  Bruno Haible  <bruno@clisp.org>
33343         canonicalize: Tweak 2011-12-29 commit.
33344         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
33345         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
33347 2012-01-02  Jim Meyering  <meyering@redhat.com>
33349         gitlog-to-changelog: describe input syntax in --help output
33350         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
33352         gitlog-to-changelog: fix typo in --help: show backslash before email @
33353         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
33354         in sources, but not in actual output.
33356 2011-12-30  Jim Meyering  <meyering@redhat.com>
33358         gitlog-to-changelog: don't malfunction when name contains %-directive
33359         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
33360         in a name string cause trouble.  E.g., with a user name of "%s",
33361         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
33363 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
33365         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
33366         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
33367         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
33368         the "  (tiny change)" notation that is appended to the standard
33369         ChangeLog "date  name  email" header line.
33371 2012-01-01  Jim Meyering  <meyering@redhat.com>
33373         test-framework-sh: init.sh: fix "make dist" failure
33374         When using gnulib-tool's --with-tests option and any module that
33375         depends on test-framework-sh, "make dist" would fail due to the
33376         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
33377         in the gltests directory, and not in the gllib/ directory.
33378         One way to work around that is to move the EXTRA_DIST += init.sh
33379         from the primary module to the -tests one:
33380         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
33381         * modules/test-framework-sh (Makefile.am): ...not here.
33382         Reported by Tom G. Christensen in
33383         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
33385         version-etc: update copyright year reported by --version
33386         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
33388 2011-12-31  Pádraig Brady  <P@draigBrady.com>
33390         canonicalize: only stat() if required
33391         * lib/canonicalize.c (canonicalize_filename_mode):
33392         Avoid calling l?stat() when both CAN_MISSING,
33393         and CAN_NOLINKS are set, as we neither need
33394         to resolve symlinks or test component existence.
33396 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
33398         doc: cover st_ino issues once; add OpenVMS etc.
33399         * doc/posix-functions/stat.texi (stat):
33400         * doc/posix-functions/lstat.texi (lstat):
33401         * doc/posix-functions/fstatat.texi (fstatat):
33402         * doc/posix-functions/fstat.texi (fstat):
33403         Move general 'struct stat' stuff to sys_stat.texi,
33404         leaving behind a pointer.
33405         * doc/posix-headers/sys_stat.texi (sys/stat.h):
33406         Merge duplicate info about 'struct stat' problems into here.
33407         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
33408         and suggest partial workarounds.
33410         same-inode: port to OpenVMS
33411         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
33412         three st_ino values.
33414 2011-12-30  Pádraig Brady  <P@draigBrady.com>
33416         canonicalize: fix references to stat() and lstat()
33417         * lib/canonicalize.c (canonicalize_filename_mode):
33418         Ensure references always resolve to a replacement
33419         function if required (even via a macro).
33421 2011-12-30  Jim Meyering  <meyering@redhat.com>
33423         gitlog-to-changelog: remove a little duplication
33424         * build-aux/gitlog-to-changelog (main): Grep @lines once,
33425         rather than twice.
33427 2011-12-29  Pádraig Brady  <P@draigBrady.com>
33429         canonicalize: add support for not resolving symlinks
33430         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
33431         indicate we don't want to follow symlinks.  Also
33432         provide CAN_MODE_MASK to aid setting these existing
33433         mutually exclusive values.
33434         * lib/canonicalize.c (canonicalize_filename_mode):
33435         Extract the flags from can_mode parameter, which
33436         are currently just used to select between stat()
33437         and lstat().  Also ensure that mutually exclusive
33438         values are flagged immediately as invalid.
33439         * tests/test-canonicalize.c: Verify symlinks are
33440         not followed, and that invalid flag combinations
33441         are diagnosed.
33443 2011-12-25  Jim Meyering  <meyering@redhat.com>
33445         gitlog-to-changelog: do not clump multi-paragraph entries
33446         Identical header lines (date,name,email+coauthors) are suppressed,
33447         thus putting all entries with those same characteristics under
33448         a single header.  However, when a log entry consists of two or
33449         more paragraphs, it may not be clear where it starts and ends.
33450         This change makes it so that such an entry is always separated
33451         from others by a header line, even when that header would
33452         otherwise be suppressed.
33453         * build-aux/gitlog-to-changelog: Implement the above.
33454         Inspired by a related request from Stefano Lattarini in
33455         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
33457 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
33459         announce-gen: fix `cmd' typo in diagnostic
33460         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
33461         diagnostic: a missing '$' meant that the command was not output.
33463 2011-12-23  Jim Meyering  <meyering@redhat.com>
33465         test-framework-sh: distribute init.sh
33466         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
33467         Otherwise, "make -C gnulib-tests check" (at least in grep) would
33468         fail due to the lack of init.sh.
33470         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
33471         * modules/atexit-tests: Rather than listing tests/init.sh,
33472         now that there's a module for it, simply depend on that new module.
33473         * modules/closein-tests: Likewise.
33474         * modules/exclude-tests: Likewise.
33475         * modules/getcwd-tests: Likewise.
33476         * modules/perror-tests: Likewise.
33477         * modules/pread-tests: Likewise.
33478         * modules/pwrite-tests: Likewise.
33479         * modules/vc-list-files-tests: Likewise.
33480         * modules/verify-tests: Likewise.
33481         * modules/xalloc-die-tests: Likewise.
33482         * modules/xstrtoimax-tests: Likewise.
33483         * modules/xstrtol-tests: Likewise.
33484         * modules/xstrtoll-tests: Likewise.
33485         * modules/xstrtoumax-tests: Likewise.
33486         * modules/yesno-tests: Likewise.
33488 2011-12-22  Jim Meyering  <meyering@redhat.com>
33490         test-framework-sh: add minimal tests of init.sh's compare function
33491         * modules/test-framework-sh-tests: New file.
33492         * tests/test-init.sh: New file.
33494         test-framework-sh: new module
33495         * modules/test-framework-sh: New file.
33496         * MODULES.html.sh (Support for maintaining and releasing projects):
33497         List it.
33499         init.sh: do not emit simulated diff output to stderr
33500         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
33502 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
33504         .gitignore: ignore gnulib.dvi and regex.info
33505         * doc/.gitignore:add gnulib.dvi and regex.info
33507 2011-12-22  Jim Meyering  <meyering@redhat.com>
33509         init.sh: correct previous change
33510         * tests/init.sh (compare): My previous change was wrong.
33511         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
33513         init.sh: avoid unwarranted test failure when using "set -e"
33514         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
33515         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
33516         a use like "compare exp out" would get evoke an unconditional failure.
33518 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
33520         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
33521         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
33522         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
33523         autoreconf that did not.
33524         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
33525         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
33527 2011-12-17  Jim Meyering  <meyering@redhat.com>
33529         bootstrap: remove some now-unneeded code
33530         This script arose back when gnulib-tool was young.
33531         Since then, it has seen improvements that render much of this
33532         script unnecessary.  In particular, it can now make symlinks
33533         to the files it uses.  Also, I no longer see as much value in
33534         marking files as read-only via comments.
33535         If you relied on the symlink-creation feature of the preceding
33536         version of this script, you can get most of that functionality
33537         by adding the --symlink option to the definition of
33538         gnulib_tool_option_extras in your bootstrap.conf file.
33539         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
33540         Run autopoint and libtoolize *before* gnulib-tool.
33541         After it, run an abbreviated autoreconf, rather than a loop around
33542         all tools.
33543         (slirp, bt_mark_as_generated): Remove functions.
33545 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
33547         ftoastr: fix typo
33548         * lib/ftoastr.h: Fix misspelling in comment.
33550 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
33552         * top/README-release: fix punctuation.
33554 2011-12-17  Jim Meyering  <meyering@redhat.com>
33556         bootstrap: correct the recent buildreq change
33557         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
33558         had no effect.
33559         * build-aux/bootstrap (buildreq): Bracket each search term with
33560         "*...*", so that the shell "case" statement works as intended.
33561         Add comments.
33563 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
33565         build: let bootstrap resort to wget when downloading .po files
33566         * build-aux/bootstrap (download_po_files): Fallback to wget when
33567         downloading the .po files via rsync fails.  This is necessary to
33568         bootstrap from behind a strict firewall.
33570 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
33572         stdint: don't assume C++11 when compiling with g++
33573         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
33574         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
33575         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
33576         work also in C++ before C++11, as that improperly inhibits
33577         generating a substitute stdint.h for that case.
33579 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
33581         alloca: protect comment from gnulib-tool
33582         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
33583         that gnulib-tool doesn't think it's a license, and munge it to
33584         say "GCC version 3".
33586 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
33588         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
33589         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
33590         $(abs_top_builddir) instead of $(top_builddir).
33592 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
33594         strftime-tests: also test nanoseconds
33595         * tests/test-strftime.c (T): Add a test of %N.
33597 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
33599         inttypes, stdint: add C++11 support
33600         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
33601         when including inttypes.h and stdint.h.  Support this change to
33602         the standard.
33603         * doc/posix-headers/inttypes.texi (inttypes.h):
33604         * doc/posix-headers/stdint.texi (stdint.h): Document this.
33605         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
33606         Define if not defined already, for the benefit of pre-C++11 hosts.
33607         Define the standard format macros (e.g., PRId8) always.
33608         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
33609         Likewise, if __cpluspus.  Define the standard constant and limit
33610         macros (e.g., INT8_C, INT8_MAX) always.
33611         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
33612         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
33613         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
33614         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
33615         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
33616         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
33617         Likewise.
33619 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
33621         nonblocking tests: Fix test failure on Linux/PPC.
33622         Suggested by Prerna Saxena in
33623         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
33624         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
33625         Set to 1100000.
33627 2011-12-12  Jim Meyering  <meyering@redhat.com>
33629         argmatch: don't hard-code `' when listing valid option arguments
33630         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
33631         use the quote function to add quotes.  Use fputs rather than
33632         fprintf for the format string with no format directive.
33634 2011-12-07  Eric Blake  <eblake@redhat.com>
33636         bootstrap: detect tools required by gnulib-tool
33637         * build-aux/bootstrap (buildreq): Provide minimum implicit
33638         dependencies.
33639         * DEPENDENCIES: Mention patch as a prereq.
33641 2011-12-04  Bruno Haible  <bruno@clisp.org>
33643         sethostname: Port to Windows platforms.
33644         * lib/sethostname.c: Provide an alternate implementation for Windows
33645         platforms.
33646         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
33647         (main): Skip the test if sethostname() fails with EPERM. On Windows
33648         platforms, don't check the result of gethostname().
33650 2011-12-04  Bruno Haible  <bruno@clisp.org>
33651             Jim Meyering  <meyering@redhat.com>
33653         tests: Avoid spurious error message on platforms without mktemp program.
33654         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
33656 2011-12-04  Bruno Haible  <bruno@clisp.org>
33658         sethostname: Fix documentation.
33659         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
33660         "not fixed" section.
33662 2011-12-03  Bruno Haible  <bruno@clisp.org>
33664         gnulib-tool: Verify that the License field is present and non-empty.
33665         * gnulib-tool (func_get_license_raw): New function, extracted from
33666         func_get_license.
33667         (func_get_license): Use it. Warn if the module is not a test module and
33668         has no license.
33669         Suggested by Jim Meyering.
33671 2011-12-03  Bruno Haible  <bruno@clisp.org>
33673         sethostname tests: Fix link error on mingw.
33674         * tests/test-sethostname1.c: New file, extracted from
33675         tests/test-sethostname.c.
33676         * tests/test-sethostname2.c: New file, extracted from
33677         tests/test-sethostname.c.
33678         * tests/test-sethostname.c: Remove file.
33679         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
33680         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
33681         (Depends-on): Add gethostname.
33682         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
33683         Link the latter with $(GETHOSTNAME_LIB).
33685         sethostname tests: Fix compilation error on mingw.
33686         * tests/test-sethostname.c: Don't include <sys/types.h>.
33687         (geteuid): Use a dummy value without uid_t.
33688         * modules/sethostname-tests (Depends-on): Remove sys_types.
33690         sethostname tests: Avoid a gcc warning.
33691         * tests/test-sethostname.c (main): Remove an unused variable.
33693         Tweak last commit.
33694         * modules/sethostname-tests (Files): Sort by decreasing importance.
33695         (configure.ac): Check for geteuid.
33696         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
33697         the test when there's nothing to test. Drop an unnecessary cast.
33698         Improve an error message. Verify that the final sethostname() call
33699         succeeds.
33701 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
33703         Add a test suite for the sethostname module.
33704         * modules/sethostname-tests: New file.  A test program
33705         for the sethostname module.
33706         * tests/test-sethostname.c: Likewise.
33708 2011-12-03  Bruno Haible  <bruno@clisp.org>
33710         Tweak last commit.
33711         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
33712         Fix preprocessor directives indentation. Fix typos.
33713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
33714         * modules/unistd (Makefile): Likewise.
33716 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
33718         Integrate the sethostname module into unistd.
33719         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
33720         into the unistd.h header.
33721         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
33722         preprocessor directives.
33723         * modules/unistd: Setup the Makefile substitutions of the
33724         SETHOSTNAME preprocessor directives.
33726 2011-12-03  Bruno Haible  <bruno@clisp.org>
33728         Tweak last commit.
33729         * lib/sethostname.c: Don't include <string.h>.
33730         (sethostname): No need to copy the argument string to the stack. Don't
33731         call clearerr. Preserve errno when fprintf failed.
33732         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
33733         Don't invoke AC_REPLACE_FUNCS.
33734         * modules/sethostname (Link): Remove empty section.
33735         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
33736         failure problem.
33738 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
33740         New module 'sethostname'.
33741         * lib/sethostname.c (sethostname): New file.  Provide sethostname
33742         for systems that lack it.
33743         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
33744         sethostname declaration and function.
33745         * modules/sethostname: New file.  Define the sethostname module.
33747 2011-12-03  Bruno Haible  <bruno@clisp.org>
33749         Tweak last commit.
33750         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
33752 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
33754         Split the HOST_NAME_MAX detection into a separate m4 macro.
33755         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
33756         macro so it can be used by the pending sethostname module.
33758 2011-12-03  Bruno Haible  <bruno@clisp.org>
33760         Fix module descriptions syntax.
33761         * modules/argv-iter (License): Fix syntax.
33762         * modules/di-set (License): Likewise.
33763         * modules/ino-map (License): Likewise.
33764         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
33766 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
33768         stdalign: port to Clang 3.0
33769         Problem reported by Simon Josefsson in
33770         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
33771         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
33772         which has <stdalign.h> but which does not define alignof.
33773         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
33775 2011-12-01  Eric Blake  <eblake@redhat.com>
33777         mktempd: silence dd usage
33778         * build-aux/mktempd (rand_bytes): Silence dd.
33780 2011-11-30  Simon Josefsson  <simon@josefsson.org>
33782         manywarnings: Don't mention gcc version in docstring.
33783         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
33784         Jim Meyering <meyering@redhat.com>.
33786 2011-11-30  Jim Meyering  <meyering@redhat.com>
33788         hash: mark a few floating point constants with "f" suffix
33789         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
33790         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
33791         floating point constants with "f", since they're destined to be
33792         saved/used as "float"s.
33794 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
33796         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
33797         * tests/test-float.c (test_long_double): Correct and re-enable the
33798         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
33800 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
33802         Avoid subtracting two pointers that don't point into the same block.
33803         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
33804         only pointers into the same memory block are subtracted. We cannot
33805         assume that sizeof (ptrdiff_t) == sizeof (void *).
33807 2011-11-29  Eric Blake  <eblake@redhat.com>
33809         maint.mk: add syntax check for use of compare from init.sh
33810         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
33811         moved here from coreutils.
33813         manywarnings: drop -Wunsuffixed-float-constants
33814         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
33815         '1.0D', which is the only way to silence this warning for 'double'.
33817 2011-11-29  Jim Meyering  <meyering@redhat.com>
33819         hash: mark compute_bucket_size with the pure attribute
33820         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
33822         quotearg, propername: correct pragma guard expression
33823         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
33824         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
33826 2011-11-28  Jim Meyering  <meyering@redhat.com>
33828         propername: do not mark proper_name with the const attribute
33829         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
33830         since it examines data pointed to by its parameter.
33831         * lib/propername.c (proper_name): Instead, add a pragma to suppress
33832         the suggestion from -Wsuggest-attribute=const.
33834         propername: mark one more function as const
33835         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
33837 2011-11-27  Jim Meyering  <meyering@redhat.com>
33839         mark functions with const and pure attributes
33841         Mark functions per suggestions from gcc-4.6 when using these options:
33842         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
33843         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
33844         Follow these guidelines: when possible, apply the attribute to
33845         an extern declaration, not to its definition.  Apply it to the
33846         definition only when the definition is static.
33847         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
33848         * lib/argv-iter.h (argv_iter_n_args): Likewise.
33849         * lib/base64.h (isbase64): Likewise.
33850         * lib/basename-lgpl.c (last_component, base_len): Likewise.
33851         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
33852         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
33853         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
33854         (c_tolower, c_toupper): Likewise.
33855         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
33856         * lib/chdir-long.c (find_non_slash): Likewise.
33857         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
33858         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
33859         * lib/file-type.h (file_type): Likewise.
33860         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
33861         * lib/filevercmp.c (verrevcmp): Likewise.
33862         * lib/freadahead.h (freadahead): Likewise.
33863         * lib/fts.c (fts_maxarglen): Likewise.
33864         * lib/hash-pjw.h (hash_pjw): Likewise.
33865         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
33866         * lib/hash.c (is_prime, next_prime): Likewise.
33867         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
33868         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
33869         (hash_table_ok, hash_get_first, hash_string): Likewise.
33870         (compute_bucket_size): Likewise.
33871         * lib/i-ring.h (i_ring_empty): Likewise.
33872         * lib/isnan.c (isnanl): Likewise.
33873         * lib/math.h (isnanl, rpl_isnanl): Likewise.
33874         * lib/memcasecmp.h (memcasecmp): Likewise.
33875         * lib/memchr2.h (memchr2): Likewise.
33876         * lib/memcmp2.h (memcmp2): Likewise.
33877         * lib/parse-datetime.y (lookup_zone): Likewise.
33878         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
33879         [!WINDOWS_SOCKETS]: Likewise.
33880         * lib/strnlen1.h (strnlen1): Likewise.
33881         * lib/uniwidth.in.h (uc_width): Likewise.
33882         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
33883         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
33884         (quoting_options_from_style): Add a comment.
33885         * lib/propername.h (proper_name): Add a comment.
33887 2011-11-27  Bruno Haible  <bruno@clisp.org>
33889         Remove unused macros from !_LIBC code in glibc-borrowed files.
33890         * lib/fnmatch.c (STRCOLL): Remove macro.
33891         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
33892         * lib/glob.c (__stat, __readdir64): Remove macros.
33893         * lib/tempname.c (__open64, __xstat64): Remove macros.
33894         Suggested by Paul Eggert.
33896 2011-11-27  Bruno Haible  <bruno@clisp.org>
33898         getcwd: Fix link error on MSVC 9.
33899         * modules/getcwd (Depends-on): Add readdir, rewinddir.
33901 2011-11-27  Bruno Haible  <bruno@clisp.org>
33903         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
33904         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
33905         HAVE_OPENDIR is 0.
33906         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
33907         HAVE_CLOSEDIR is 0.
33908         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
33909         is 0.
33910         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
33912 2011-11-27  Bruno Haible  <bruno@clisp.org>
33914         getcwd: Fix bug from 2011-08-17.
33915         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
33916         platforms that need it.
33917         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
33918         code of 4 to be a failure, not a success. This ensures that
33919         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
33921 2011-11-27  Bruno Haible  <bruno@clisp.org>
33923         binary-io tests: Avoid test failure on mingw when libtool is used.
33924         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
33925         Don't verify the size of t-bin-out1.tmp here.
33926         * tests/test-binary-io.sh: Verify it here.
33927         Reported by Simon Josefsson.
33929 2011-11-26  Bruno Haible  <bruno@clisp.org>
33931         Fix conflict between two instantiations of module 'unistd'.
33932         * gnulib-tool (func_emit_autoconf_snippet): Substitute
33933         ${include_guard_prefix} also in the autoconf snippet.
33934         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
33935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
33936         GNULIB_UNISTD_H_GETOPT.
33937         * modules/getopt-posix (configure.ac): Set the
33938         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
33939         * modules/getopt-gnu (configure.ac): Likewise.
33940         * modules/unistd (Makefile.am): Change the substitution value of
33941         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
33942         Reported by Simon Josefsson.
33944 2011-11-25  Bruno Haible  <bruno@clisp.org>
33946         pagealign_alloc: Doc and comments.
33947         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
33948         module.
33949         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
33951 2011-11-25  Jim Meyering  <meyering@redhat.com>
33953         test-update-copyright.sh: avoid false-positive failure
33954         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
33955         around false positive failure on Cygwin/Windows.  The latter was
33956         matching erroneously-created files with names like
33957         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
33959 2011-11-25  Simon Josefsson  <simon@josefsson.org>
33961         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
33962         * m4/valgrind-tests.m4: Check that the parameters that will be
33963         used works, not just a subset of them.  Reported by Bruno Haible
33964         <bruno@clisp.org>.
33966 2011-11-24  Jim Meyering  <meyering@redhat.com>
33968         test-stdalign.c: comment out long double tests
33969         * tests/test-stdalign.c: Don't try to reduce alignment of long double
33970         variables.  That provokes errors like this from gcc-4.7.0 20111124:
33971         error: '_Alignas' specifiers cannot reduce alignment of \
33972         'static_longdouble_alignas'.
33974 2011-11-22  Jim Meyering  <meyering@redhat.com>
33976         init.sh: make "compare /dev/null FILE" output more readable
33977         * tests/init.sh (compare_): Document the preferred order of arguments.
33978         (emit_diff_u_header_): New function.
33979         (compare_dev_null_): Emit a simulated diff, rather than just the
33980         contents of the unexpected file.  Suggestion from Bruno Haible.
33982 2011-11-21  Jim Meyering  <meyering@redhat.com>
33983             Eric Blake  <eblake@redhat.com>
33985         init.sh: work around OSF/1 5.1's mishandling of /dev/null
33986         * tests/init.sh: Make our compare function slightly more portable.
33987         Reported by Bruno Haible in
33988         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
33990 2011-11-21  Simon Josefsson  <simon@josefsson.org>
33992         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
33993         before using it, in code that ends up in config.h.
33995 2011-11-20  Bruno Haible  <bruno@clisp.org>
33997         getcwd: Work around getcwd bug on AIX 5..7.
33998         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
33999         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
34000         Use a different value for gl_cv_func_getcwd_path_max. Move the
34001         definition of HAVE_PARTLY_WORKING_GETCWD from here...
34002         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
34003         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
34004         Define HAVE_MINIMALLY_WORKING_GETCWD.
34005         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
34006         where it is not even minimally working, that is, on AIX.
34007         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
34008         m4/getcwd-path-max.m4.
34009         (main): Update exit code computation.
34010         * doc/posix-functions/getcwd.texi: Mention list of platforms where
34011         getcwd does not handle long file names.
34013 2011-11-20  Bruno Haible  <bruno@clisp.org>
34015         getcwd: Fix bug from 2009-09-10.
34016         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
34017         like "no".
34019 2011-11-20  Simon Josefsson  <simon@josefsson.org>
34021         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
34023 2011-11-20  Bruno Haible  <bruno@clisp.org>
34025         fma tests: Avoid shadowing local variables.
34026         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
34027         expected.
34029 2011-11-20  Bruno Haible  <bruno@clisp.org>
34031         copysignf tests: Fix.
34032         * tests/test-copysignf.c: Fix signature check.
34034 2011-11-20  Bruno Haible  <bruno@clisp.org>
34036         fma: Remove unused code.
34037         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
34038         unused macros.
34040 2011-11-20  Bruno Haible  <bruno@clisp.org>
34042         sethostname: Fix doc about AIX.
34043         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
34044         sethostname; it has it.
34046         sethostname: Mention more portability problems.
34047         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
34048         problem.
34049         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
34051 2011-11-19  Bruno Haible  <bruno@clisp.org>
34053         Depend on module fcntl-h when AT_FDCWD is used.
34054         * modules/utimens (Depends-on): Add fcntl-h.
34055         * modules/areadlinkat (Depends-on): Likewise.
34056         * modules/areadlinkat-with-size (Depends-on): Likewise.
34057         * modules/faccessat (Depends-on): Likewise.
34058         * modules/fchmodat (Depends-on): Likewise.
34059         * modules/fchownat (Depends-on): Likewise.
34060         * modules/getcwd (Depends-on): Likewise.
34061         * modules/mkdirat (Depends-on): Likewise.
34062         * modules/mkfifoat (Depends-on): Likewise.
34063         * modules/readlinkat (Depends-on): Likewise.
34064         * modules/symlinkat (Depends-on): Likewise.
34065         * modules/dup2-tests (Depends-on): Likewise.
34066         * modules/fdutimensat-tests (Depends-on): Likewise.
34067         * modules/futimens-tests (Depends-on): Likewise.
34069 2011-11-19  Bruno Haible  <bruno@clisp.org>
34071         euidaccess: Update a comment.
34072         * lib/euidaccess.c: Update comment about platforms with faccessat.
34074 2011-11-19  Bruno Haible  <bruno@clisp.org>
34076         openat: Fix file list.
34077         * modules/openat (Files): Remove lib/at-func.c.
34079 2011-11-19  Bruno Haible  <bruno@clisp.org>
34081         fstatat: Simplify.
34082         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
34083         gnulib should define rpl_fstatat, there is a
34084         "#define fstatat rpl_fstatat" in <sys/stat.h>.
34086 2011-11-19  Bruno Haible  <bruno@clisp.org>
34088         Ensure 'inline' can be used in tests/test-utimens-common.h.
34089         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
34090         * modules/futimens-tests (configure.ac): Likewise.
34091         * modules/utimens-tests (configure.ac): Likewise.
34092         * modules/utimensat-tests (configure.ac): Likewise.
34094 2011-11-19  Simon Josefsson  <simon@josefsson.org>
34096         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
34097         not hash_insert0.
34098         (hash_insert_if_absent): Doc fix.
34100 2011-11-19  Simon Josefsson  <simon@josefsson.org>
34102         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
34104 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
34106         test-getcwd: disambiguate exit status
34107         * tests/test-getcwd.c (test_long_name): Return 0..7.
34108         (main): Exit with an unambiguous exit status.  The old
34109         code yielded a mysterious mixture of two failure codes.
34111         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
34112         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
34113         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
34114         rpl_fstatat or fstatat.  This should fix the other problem
34115         reported by Kai Habel in
34116         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
34117         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
34118         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
34119         and I reproduced it on a Solaris 8 host we still have in production.
34121 2011-11-18  Jim Meyering  <meyering@redhat.com>
34123         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
34124         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
34125         Add a sentence to the comment.
34126         (hash_insert0): New function that simply calls hash_insert_if_absent.
34127         * lib/hash.h (hash_insert_if_absent): Declare it.
34128         (hash_insert0): Add deprecation attribute.
34129         (_GL_ATTRIBUTE_DEPRECATED): Define.
34130         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
34131         not hash_insert0.
34132         * NEWS: Mention it, even though it's not really an incompatible change.
34134 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
34136         openat: avoid compilation failure due to lack of <errno.h> inclusion
34137         * lib/openat.c: Include <errno.h>.
34139 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
34141         * modules/getcwd (Depends-on): Add fdopendir.
34142         This fixes one of the two problems reported by Kai Habel in
34143         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
34145         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
34146         stdalign problem reported by Ian Beckwith in
34147         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
34148         * modules/crypto/gc-arcfour (Depends-on):
34149         Depend conditionally on crypto/arcfour.
34150         * modules/crypto/gc-arctwo (Depends-on):
34151         Depend conditionally on crypto/arctwo.
34152         * modules/crypto/gc-des (Depends-on):
34153         Depend conditionally on crypto/des.
34154         * modules/crypto/gc-hmac-md5 (Depends-on):
34155         Depend conditionally on crypto/hmac-md5.
34156         * modules/crypto/gc-hmac-sha1 (Depends-on):
34157         Depend conditionally on crypto/hmac-sha1.
34158         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
34159         * modules/crypto/gc-md4 (Depends-on):
34160         Depend conditionally on crypto/md4.
34161         * modules/crypto/gc-md5 (Depends-on):
34162         Depend conditionally on crypto/md5.
34163         * modules/crypto/gc-rijndael (Depends-on):
34164         Depend conditionally on crypto/rijndael.
34165         * modules/crypto/gc-sha1 (Depends-on):
34166         Depend conditionally on crypto/sha1.
34167         * modules/crypto/gc-arcfour:
34168         * modules/crypto/gc-arctwo:
34169         * modules/crypto/gc-des:
34170         * modules/crypto/gc-hmac-md5:
34171         * modules/crypto/gc-hmac-sha1:
34172         * modules/crypto/gc-md2:
34173         * modules/crypto/gc-md4:
34174         * modules/crypto/gc-md5:
34175         * modules/crypto/gc-rijndael:
34176         * modules/crypto/gc-sha1:
34177         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
34178         now that the conditional dependencies do the work for us.
34180 2011-11-17  Jim Meyering  <meyering@redhat.com>
34182         tests: factor st_ctime-comparison out of two headers
34183         * tests/test-utimens-common.h (ctime_compare): Define.
34184         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
34185         * tests/test-lutimens.h (test_lutimens): Likewise.
34186         * tests/test-utimens.h (test_utimens): Likewise.
34188         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
34189         Invoke the test program via an init.sh-using wrapper.
34190         * tests/test-getcwd.sh: New file.
34191         * modules/getcwd-tests (Files): Add it.
34192         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
34194 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
34196         gitlog-to-changelog: support multi-author commits.
34197         The FSF cares about keeping track of all authors of patches to its
34198         projects, but Git doesn't provide obvious support for multi-author
34199         changesets. Consensus seems to be forming around the use of extra
34200         Signed-off-by inspired lines in the log message formatted as
34201         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
34202         multi-author commits between version control systems.
34203         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
34204         log message and output in standard ChangeLog multi-author format.
34205         Reported by Peter Rosin <peda@lysator.liu.se>
34207 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
34208             Bruno Haible  <bruno@clisp.org>
34210         Fix some modules' file list.
34211         * modules/fstatat (Files): Add m4/lstat.m4.
34212         * modules/openat (Files): Likewise.
34213         * modules/unlinkat (Files): Likewise.
34215 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
34217         maint.mk: fix tight-scope.mk generation in VPATH builds.
34218         * top/maint.mk (tight-scope.mk): Make sure to prefix file
34219         reference with $(srcdir) so that the file is found correctly even
34220         when running `make syntax-check' in a VPATH build.
34222 2011-11-13  Bruno Haible  <bruno@clisp.org>
34223             Jim Meyering  <meyering@redhat.com>
34225         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
34226         * tests/init.sh (compare): Remove "No differences encountered" or
34227         synonymous output from the 'diff' program.
34229 2011-11-13  Bruno Haible  <bruno@clisp.org>
34231         Makefile: Tweak indentation.
34232         * Makefile: Use tab as first character in every line that contains rule
34233         commands.
34235 2011-11-13  Bruno Haible  <bruno@clisp.org>
34237         Syntax check for copyright statements.
34238         * check-copyright: New file.
34239         * Makefile (sc_check_copyright): New rule.
34241 2011-11-13  Simon Josefsson  <simon@josefsson.org>
34243         * build-aux/git-version-gen: Add --prefix to configure the tag
34244         match string.
34246 2011-11-13  Simon Josefsson  <simon@josefsson.org>
34248         * build-aux/git-version-gen: Add --help and --version.
34250 2011-11-12  Jim Meyering  <meyering@redhat.com>
34252         revamp the other test-exclude?.sh scripts to use init.sh, too
34253         * tests/test-exclude1.sh: Use init.sh.
34254         * tests/test-exclude2.sh: Likewise.
34255         * tests/test-exclude3.sh: Likewise.
34256         * tests/test-exclude4.sh: Likewise.
34257         * tests/test-exclude5.sh: Likewise.
34258         * tests/test-exclude6.sh: Likewise.
34259         * tests/test-exclude7.sh: Likewise.
34260         * tests/test-exclude8.sh: Likewise.
34261         * modules/exclude-tests (Files): List init.sh.
34263         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
34264         These shell scripts ignored failure of the binary test-exclude,
34265         so making the latter return 77 didn't cause them to be skipped.
34266         * tests/test-exclude5.sh: Exit with test-exclude's error status
34267         when that program fails.  Revamp to use init.sh.
34268         * tests/test-exclude2.sh: Likewise.
34270         test-exclude: fix a typo
34271         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
34273 2011-11-11  Bruno Haible  <bruno@clisp.org>
34275         obstack: Fix compilation error on MSVC 9.
34276         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
34278 2011-11-11  Jim Meyering  <meyering@redhat.com>
34280         test-exclude: skip tests rather than failing on deficient systems
34281         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
34282         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
34283         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
34284         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
34286 2011-11-10  Bruno Haible  <bruno@clisp.org>
34288         ptsname_r test: Avoid gcc warning on glibc systems.
34289         * tests/test-ptsname_r.c (null_ptr): New function.
34290         (test_errors): Use it.
34292 2011-11-10  Bruno Haible  <bruno@clisp.org>
34294         ptsname_r: Avoid compilation error on OSF/1 5.1.
34295         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
34296         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
34297         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
34298         function is not declared or incompatibly declared.
34299         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
34300         * modules/ptsname_r (Depends-on, configure.ac): Update.
34301         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
34303 2011-11-10  Bruno Haible  <bruno@clisp.org>
34305         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
34306         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
34307         When cross-compiling, guess yes on all platforms except AIX.
34308         Reported by Ludovic Courtès <ludo@gnu.org>.
34310 2011-11-09  Bruno Haible  <bruno@clisp.org>
34312         ptsname_r tests: Fix bugs.
34313         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
34314         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
34316 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
34318         fstatat: work with cross-compilation
34319         Problem reported by Ludovic Courtès in
34320         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
34321         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
34322         "cross-compiling" and assume the bug is present.  Replace
34323         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
34324         an inverted sense, to be more conservative about our assumptions.
34325         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
34327 2011-11-09  Bruno Haible  <bruno@clisp.org>
34329         Improve MODULES.html output.
34330         * modules/mkfifoat (Description): Use the word "function".
34331         * modules/readlinkat (Description): Likewise.
34332         * modules/symlinkat (Description): Likewise.
34334 2011-11-09  Eric Blake  <eblake@redhat.com>
34336         ptsname_r-tests: new test module
34337         * modules/ptsname_r-tests: New module.
34338         * tests/test-ptsname_r.c: New file.
34340         ptsname_r: new module
34341         * modules/ptsname_r: New module.
34342         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
34343         * lib/ptsname.c (__ptsname_r): Split...
34344         * lib/ptsname_r.c: ...into new file.
34345         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
34346         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
34347         * modules/stdlib (Makefile.am): Substitute witnesses.
34348         * lib/stdlib.in.h (ptsname_r): Declare it.
34349         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
34350         * MODULES.html.sh (Misc): Likewise.
34351         * modules/ptsname (Depends-on): Alter dependency.
34352         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
34354 2011-11-09  Jim Meyering  <meyering@redhat.com>
34356         announce-gen: be more concise when there's only one URL+tarball
34357         * build-aux/announce-gen (get_tool_versions): When you distribute
34358         only one type of tarball, combine the first two "Here are..."
34359         sections and make the key-checking grammar independent of
34360         how many tarballs there are.
34362 2011-11-09  Eric Blake  <eblake@redhat.com>
34364         openpty: provide a stub on mingw
34365         * lib/pty.in.h (includes): Provide forward declarations.
34366         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
34368         raise: fix mingw handling of SIGPIPE
34369         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
34371 2011-11-08  Bruno Haible  <bruno@clisp.org>
34373         More conditional dependencies.
34374         * modules/faccessat (Depends-on): Add conditions.
34375         * modules/fchmodat (Depends-on): Likewise.
34376         * modules/fchownat (Depends-on): Likewise.
34377         * modules/fstatat (Depends-on): Likewise.
34378         * modules/mkfifoat (Depends-on): Likewise.
34379         * modules/readlinkat (Depends-on): Likewise.
34380         * modules/symlinkat (Depends-on): Likewise.
34381         * modules/unlinkat (Depends-on): Likewise.
34382         * modules/utimensat (Depends-on): Likewise.
34383         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
34384         * modules/linkat (Depends-on): Refine the conditions.
34385         * modules/renameat (Depends-on): Likewise.
34387 2011-11-08  Bruno Haible  <bruno@clisp.org>
34389         faccessat: Move AC_LIBOBJ invocation to module description.
34390         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
34391         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
34392         invocation from here...
34393         * modules/faccessat (configure.ac): ... to here. Invoke
34394         gl_PREREQ_FACCESSAT.
34396 2011-11-08  Bruno Haible  <bruno@clisp.org>
34398         faccessat: Simplify autoconf macro.
34399         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
34400         gl_FUNC_EUIDACCESS.
34402 2011-11-08  Bruno Haible  <bruno@clisp.org>
34404         renameat: Fix dependencies.
34405         * modules/renameat (Depends-on): Add stdbool.
34407 2011-11-08  Bruno Haible  <bruno@clisp.org>
34409         mkfifoat: Fix module description.
34410         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
34411         not gl_UNISTD_MODULE_INDICATOR.
34413 2011-11-08  Bruno Haible  <bruno@clisp.org>
34415         fstatat: Remove unused dependency.
34416         * modules/fstatat (Depends-on): Remove fstat.
34418 2011-11-08  Simon Josefsson  <simon@josefsson.org>
34420         GNUmakefile: behave when Makefile is missing.
34421         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
34423 2011-11-08  Bruno Haible  <bruno@clisp.org>
34425         openat: Conditionalize dependencies.
34426         * lib/openat.c: Reduce the scope of some #includes.
34427         * modules/openat (Depends-on): Add conditions.
34429 2011-11-07  Jim Meyering  <meyering@redhat.com>
34431         maint.mk: extract GPG key ID without using a temporary file
34432         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
34433         without using a temporary file.  Based on a suggestion from Werner Koch
34434         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
34436 2011-11-07  Eric Blake  <eblake@redhat.com>
34438         grantpt: fix typo
34439         * lib/stdlib.in.h (grantpt): Check correct function.
34441         maint.mk: silence new syntax check
34442         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
34444 2011-11-06  Bruno Haible  <bruno@clisp.org>
34446         Doc about floating-point and math API.
34447         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
34448         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
34450 2011-11-06  Bruno Haible  <bruno@clisp.org>
34452         stdalign tests: Skip the test when compiled by Sun C.
34453         * tests/test-stdalign.c (main): Skip the test on Sun C.
34455 2011-11-06  Bruno Haible  <bruno@clisp.org>
34457         ansi-c++-opt: Complete the 2011-06-05 change.
34458         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
34459         does not support namespaces, set the variable to "no", not to ":".
34461 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
34463         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
34465 2011-11-06  Bruno Haible  <bruno@clisp.org>
34467         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
34468         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
34469         (minus_zerol) [HP-UX]: New macro.
34470         (unary_minus) [HP-UX]: New function.
34471         (copysignl) [HP-UX]: Use unary_minus function.
34473 2011-11-06  Bruno Haible  <bruno@clisp.org>
34475         ldexp, ldexpf, ldexpl: Enhance tests.
34476         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
34477         and tests/test-ldexpl.c.
34478         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
34479         LDEXP, MIN_EXP, MAX_EXP): New macros.
34480         Include test-ldexp.h.
34481         (main): Just call test_function.
34482         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
34483         infinity.h, nan.h.
34484         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
34485         MAX_EXP): New macros.
34486         Include test-ldexp.h.
34487         (x, y): Remove variables.
34488         (main): Just call test_function.
34489         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
34490         infinity.h, nan.h.
34491         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
34492         MAX_EXP): New macros.
34493         Include test-ldexp.h.
34494         (x, y): Remove variables.
34495         (main): Just call test_function.
34496         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
34497         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
34498         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
34499         (Depends-on): Add isnand-nolibm, signbit, float.
34500         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
34501         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
34502         (Depends-on): Add isnanf-nolibm, signbit, float.
34504 2011-11-06  Bruno Haible  <bruno@clisp.org>
34506         math tests: Cosmetics.
34507         * tests/test-math-c++.cc: Reorder declarations.
34509 2011-11-05  Bruno Haible  <bruno@clisp.org>
34511         fma*: Simplify test.
34512         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
34513         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
34515         Tests for module 'fmal'.
34516         * modules/fmal-tests: New file.
34517         * tests/test-fmal1.c: New file.
34518         * tests/test-fmal2.c: New file.
34520         New module 'fmal'.
34521         * lib/math.in.h (fmal): New declaration.
34522         * lib/fmal.c: New file.
34523         * m4/fmal.m4: New file.
34524         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
34525         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
34526         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
34527         REPLACE_FMAL.
34528         * modules/fmal: New file.
34529         * doc/posix-functions/fmal.texi: Mention the new module and the various
34530         bugs.
34532         Tests for module 'fmaf'.
34533         * modules/fmaf-tests: New file.
34534         * tests/test-fmaf1.c: New file.
34535         * tests/test-fmaf2.c: New file.
34537         New module 'fmaf'.
34538         * lib/math.in.h (fmaf): New declaration.
34539         * lib/fmaf.c: New file.
34540         * m4/fmaf.m4: New file.
34541         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
34542         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
34543         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
34544         REPLACE_FMAF.
34545         * modules/fmaf: New file.
34546         * doc/posix-functions/fmaf.texi: Mention the new module and the various
34547         bugs.
34549         Tests for module 'fma'.
34550         * modules/fma-tests: New file.
34551         * tests/test-fma1.c: New file.
34552         * tests/test-fma1.h: New file.
34553         * tests/test-fma2.c: New file.
34554         * tests/test-fma2.h: New file.
34556         New module 'fma'.
34557         * lib/math.in.h (fma): New declaration.
34558         * lib/fma.c: New file.
34559         * m4/fma.m4: New file.
34560         * m4/fegetround.m4: New file.
34561         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
34562         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
34563         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
34564         REPLACE_FMA.
34565         * modules/fma: New file.
34566         * doc/posix-functions/fma.texi: Mention the new module and the various
34567         bugs.
34569         Extend gl_MATHFUNC.
34570         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
34571         Support 'void' as argument type.
34572         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
34574 2011-11-05  Jim Meyering  <meyering@redhat.com>
34576         maint.mk: also prohibit inclusion of dirent.h without use
34577         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
34579 2011-11-05  Bruno Haible  <bruno@clisp.org>
34581         ldexpl tests: Avoid test failure on MSVC 9.
34582         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
34583         value. Needed in order to enforce the conversion from a value greater
34584         than LDBL_MAX to Infinity.
34586 2011-11-05  Bruno Haible  <bruno@clisp.org>
34588         New modules 'at-internal', 'openat-h', split off from module 'openat'.
34589         * modules/at-internal: New file, extracted from modules/openat.
34590         * modules/openat-h: New file.
34591         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
34592         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
34593         * modules/openat (Description): Add reference to POSIX function.
34594         (Files): Remove lib/openat.h, lib/openat-proc.c.
34595         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
34596         intprops, unistd.
34597         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
34598         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
34599         gl_FCNTL_MODULE_INDICATOR.
34600         (Include): Remove unistd.h, openat.h.
34601         * modules/areadlinkat (Files): Add lib/at-func.c.
34602         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
34603         openat-die, openat-h, save-cwd.
34604         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
34605         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
34606         openat-die, openat-h, save-cwd, unistd.
34607         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
34608         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
34609         openat-h, save-cwd. Remove fcntl-h, openat.
34610         * modules/fchmodat (Files): Remove lib/openat.h.
34611         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
34612         openat, stdbool, unistd.
34613         * modules/fchownat (Files): Remove lib/openat.h.
34614         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
34615         openat, stdbool, sys_stat.
34616         * modules/fdopendir (Files): Remove lib/openat-priv.h,
34617         lib/openat-proc.c.
34618         (Depends-on): Add at-internal.
34619         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
34620         * modules/fstatat (Files): Remove lib/openat.h.
34621         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
34622         stdbool, unistd.
34623         * modules/fts (Depends-on): Add openat-h.
34624         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
34625         openat.
34626         * modules/mkdirat (Files): Remove lib/openat.h.
34627         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
34628         openat, stdbool, sys_stat.
34629         * modules/mkfifoat (Files): Add lib/at-func.c.
34630         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
34631         openat-h, save-cwd. Remove fcntl-h, openat.
34632         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
34633         * modules/readlinkat (Files): Add lib/at-func.c.
34634         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
34635         openat-h, save-cwd. Remove fcntl-h, openat.
34636         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
34637         openat.
34638         * modules/selinux-at (Files): Add lib/at-func.c.
34639         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
34640         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
34641         * modules/symlinkat (Files): Add lib/at-func.c.
34642         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
34643         openat-h, save-cwd. Remove fcntl-h, openat.
34644         * modules/unlinkat (Files): Remove lib/openat.h.
34645         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
34646         stdbool.
34647         * modules/utimensat (Files): Add lib/at-func.c.
34648         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
34649         openat-die, openat-h, save-cwd.
34650         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
34651         * modules/fdutimensat-tests (Depends-on): Add openat.
34652         * modules/fstatat-tests (Depends-on): Add openat-h.
34653         * modules/readlinkat-tests (Depends-on): Add openat.
34654         * modules/symlinkat-tests (Depends-on): Add openat.
34656 2011-11-05  Bruno Haible  <bruno@clisp.org>
34658         openat: Include <stdbool.h>.
34659         * lib/openat.c: Include <stdbool.h>.
34661 2011-11-04  Bruno Haible  <bruno@clisp.org>
34663         fchownat, renameat, unlinkat: Fix dependencies.
34664         * modules/fchownat (Depends-on): Add fstatat.
34665         * modules/renameat (Depends-on): Likewise.
34666         * modules/unlinkat (Depends-on): Likewise.
34668 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
34670         openat: remove direct dependency on dirent
34671         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
34672         and hasn't been needed ever since fdopendir was split into its own
34673         module on 2009-08-31.
34674         * modules/openat (Depends-on): Remove dirent.
34676 2011-11-04  Bruno Haible  <bruno@clisp.org>
34678         renameat: Optimize code size.
34679         * modules/renameat (configure.ac): Don't compile at-func2.c if
34680         REPLACE_RENAMEAT is 1.
34682 2011-11-04  Bruno Haible  <bruno@clisp.org>
34684         openat tests: Fix file list.
34685         * modules/openat-tests (Files): Add tests/test-open.h.
34687 2011-11-04  Bruno Haible  <bruno@clisp.org>
34689         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
34690         * modules/fchmodat (Depends-on): Add openat-die.
34691         * modules/fchownat (Depends-on): Likewise.
34692         * modules/linkat (Depends-on): Likewise.
34693         * modules/renameat (Depends-on): Likewise.
34694         * modules/openat (Depends-on): Add dirent.
34696 2011-11-04  Jim Meyering  <meyering@redhat.com>
34698         at-func*.c: fix comments
34699         * lib/at-func2.c: Correct/improve first-line comment.
34700         * lib/at-func.c: Correct grammar in first-line comment.
34702 2011-11-04  Bruno Haible  <bruno@clisp.org>
34704         New module 'mkdirat', split off from module 'openat'.
34705         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
34706         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
34707         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
34708         * modules/mkdirat: New file, extracted from modules/openat.
34709         * modules/openat (Files): Remove lib/mkdirat.c.
34710         (Depends-on): Remove mkdir.
34711         (configure.ac): Remove AC_LIBOBJ of mkdirat.
34712         (Include): Remove <sys/stat.h>.
34713         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
34714         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
34715         tests/test-mkdir.h.
34716         (Depends-on): Remove ignore-value.
34717         (Makefile.am): Remove rules for test-mkdirat.
34718         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
34719         of module 'openat'.
34720         * NEWS: Mention the change.
34722 2011-11-04  Bruno Haible  <bruno@clisp.org>
34724         closedir: Avoid warning on mingw.
34725         * lib/closedir.c: Include <unistd.h>.
34727 2011-11-04  Bruno Haible  <bruno@clisp.org>
34729         New module 'fstatat', split off from module 'openat'.
34730         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
34731         defined.
34732         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
34733         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
34734         gl_FUNC_FSTATAT.
34735         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
34736         * modules/fstatat: New file, extracted from modules/openat.
34737         * modules/openat (Files): Remove lib/fstatat.c.
34738         (Depends-on): Remove lstat.
34739         (configure.ac): Remove AC_LIBOBJ of fstatat.
34740         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
34741         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
34742         tests/test-lstat.h, tests/test-stat.h.
34743         (Depends-on): Remove getcwd-lgpl.
34744         (Makefile.am): Remove rules for test-fstatat.
34745         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
34746         of module 'openat'.
34747         * NEWS: Mention the change.
34748         * modules/getcwd (Depends-on): Add fstatat.
34749         * modules/linkat (Depends-on): Likewise.
34750         * modules/mkfifoat-tests (Depends-on): Likewise.
34751         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
34753 2011-11-03  Bruno Haible  <bruno@clisp.org>
34755         New module 'unlinkat', split off from module 'openat'.
34756         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
34757         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
34758         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
34759         * modules/unlinkat: New file, extracted from modules/openat. Correct
34760         the dependency conditions.
34761         * modules/openat (Files): Remove lib/unlinkat.c.
34762         (Depends-on): Remove rmdir, unlink.
34763         (configure.ac): Remove AC_LIBOBJ of unlinkat.
34764         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
34765         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
34766         tests/test-rmdir.h, tests/test-unlink.h.
34767         (Depends-on): Remove unlinkdir.
34768         (Makefile.am): Remove rules for test-unlinkat.
34769         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
34770         of module 'openat'.
34771         * NEWS: Mention the change.
34772         * modules/linkat-tests (Depends-on): Add unlinkat.
34773         * modules/mkfifoat-tests (Depends-on): Likewise.
34774         * modules/readlinkat-tests (Depends-on): Likewise.
34776 2011-11-02  Bruno Haible  <bruno@clisp.org>
34778         New module 'fchmodat', split off from module 'openat'.
34779         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
34780         defined.
34781         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
34782         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
34783         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
34784         * modules/fchmodat: New file, extracted from modules/openat.
34785         * modules/openat (Files): Remove lib/fchmodat.c.
34786         (configure.ac): Remove AC_LIBOBJ of fchmodat.
34787         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
34788         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
34789         (Makefile.am): Remove rules for test-fchmodat.
34790         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
34791         of module 'openat'.
34792         * NEWS: Mention the change.
34794 2011-11-02  Jim Meyering  <meyering@redhat.com>
34796         putenv: indent #definition of "environ" to placate cppi
34797         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
34799         gitlog-to-changelog: provide a ChangeLog-repair mechanism
34800         Git logs are often treated as immutable, because editing them
34801         changes the SHA1 checksums of all descendants.  Thus, errors in
34802         git logs tend to stay there forever.  However, when we generate
34803         a ChangeLog file -- typically for distribution -- from that git log,
34804         we can actually make corrections in the generated file.  The key
34805         lies in recording in machine-readable/applicable form the desired
34806         corrections.  See --help for description and an example.
34807         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
34808         (usage): Describe it; alphabetize option descriptions.
34809         (main): Honor the new option, carefully.
34811 2011-11-01  Jim Meyering  <meyering@redhat.com>
34813         gitlog-to-changelog: avoid an infloop
34814         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
34815         that ends up being empty.
34817 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34819         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
34820         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
34821         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
34822         contains (possibly-quoted) backslashes.  This should avoid
34823         all-too-common shell bugs if COMPLICATED contains backslashes in
34824         the "wrong" places.  Reported by David Evans in
34825         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
34826         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
34827         because we want ASCII ranges.  Is there some reason we don't use
34828         the C locale everywhere in this script?
34829         (func_module, top level): Avoid unwanted pathname expansion when
34830         $repo_url_prefix or $repo_url_suffix_repl contain shell
34831         metacharacters like '?' and '*'.
34833 2011-11-01  Bruno Haible  <bruno@clisp.org>
34835         fchownat: Improve description.
34836         * modules/fchownat (Description): Add link to function.
34838 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34840         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
34841         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
34842         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
34843         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
34845 2011-11-01  Bruno Haible  <bruno@clisp.org>
34847         alignof: Avoid collision with stdalign module.
34848         * lib/alignof.h (alignof): Remove macro.
34849         * NEWS: Mention the change.
34850         Reported by Paul Eggert.
34852 2011-11-01  Bruno Haible  <bruno@clisp.org>
34854         New module 'fchownat', split off from module 'openat'.
34855         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
34856         defined.
34857         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
34858         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
34859         invoke gl_FUNC_FCHOWNAT.
34860         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
34861         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
34862         * modules/fchownat: New file, extracted from modules/openat.
34863         * modules/openat (Files): Remove lib/fchownat.c.
34864         (Depends-on): Remove lchown.
34865         (configure.ac): Remove AC_LIBOBJ of fchownat.
34866         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
34867         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
34868         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
34869         (Depends-on): Remove mgetgroups, usleep, stat-time.
34870         (configure.ac): Remove test for getegid.
34871         (Makefile.am): Remove rules for test-fchownat.
34872         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
34873         of module 'openat'.
34874         * NEWS: Mention the change.
34876 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
34878         stdalign: port better to MSVC and to Sun C 5.11
34879         This fixes some of the problems reported by Bruno Haible in
34880         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
34881         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
34882         shortcomings of MSVC and of Sun C 5.11.
34883         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
34884         around __declspec arg.
34885         * modules/stdalign-tests (Files): Add tests/macros.h.
34886         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
34887         Include macros.h, for ASSERT.
34888         (DECLARE_ALIGNED): Remove.
34889         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
34890         to catch bug), and to 1 if not (simplifies the rest of the code).
34891         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
34892         (CHECK_AUTO): Remove.
34893         (CHECK_ALIGNED): Check only the alignment of the static vars,
34894         since auto var alignment isn't supported by Sun C 5.11.
34895         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
34896         ASSERT failures are easier to diagnose.
34898 2011-10-31  Bruno Haible  <bruno@clisp.org>
34900         doc about some IRIX 5.3 problems.
34901         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
34902         on IRIX 5.3.
34903         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
34904         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
34905         5.3.
34906         * doc/posix-functions/grantpt.texi: Likewise.
34907         * doc/posix-functions/unlockpt.texi: Likewise.
34908         * doc/posix-functions/lgamma.texi: Likewise.
34909         * doc/posix-functions/nextafter.texi: Likewise.
34910         * doc/posix-functions/remainder.texi: Likewise.
34911         * doc/posix-functions/select.texi: Mention misplaced declaration on
34912         IRIX 5.3.
34913         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34915 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
34917         gitlog-to-changelog: fix git-log invocation.
34918         git-log mishandles date strings before 1970-01-01 UTC, and there is
34919         no use to specify --since=1970-01-01 by default anyway.
34920         * build-aux/gitlog-to-changelog: By default, when no --since option
34921         was given, do not specify explicit --since option to git-log.
34923 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
34925         gitlog-to-changelog: new option --append-dot.
34926         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
34927         first non-blank line of each commit message terminated with a dot.
34929 2011-10-30  Bruno Haible  <bruno@clisp.org>
34931         ffsl, ffsll: Avoid compilation error due to 'restrict'.
34932         * lib/ffsl.h: Include <config.h>.
34933         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
34935 2011-10-30  Jim Meyering  <meyering@redhat.com>
34937         GNUmakefile: reenable "make syntax-check" for most projects
34938         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
34939         build-aux variable", "syntax-check" would do nothing but succeed with
34940         the "No version control files detected..." diagnostic (unless you
34941         happened to override _build-aux via cfg.mk).
34942         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
34943         to precede inclusion of maint.mk.  Otherwise, these variables would
34944         be used undefined in any project that does not override the default.
34946 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
34948         gitlog-to-changelog: treat a message with only blank lines as empty.
34949         * build-aux/gitlog-to-changelog: Move the code that removes leading and
34950         trailing blank lines before the code that issues a warning about an
34951         empty commit message.
34953 2011-10-30  Jim Meyering  <meyering@redhat.com>
34955         test-parse-datetime.c: avoid new DST-related false positive test failure
34956         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
34957         based on the time/date we'll convert, not the current time.
34958         Otherwise, the moment we cross a DST boundary like today's in
34959         Europe, (CEST to CET), that offset ends up being one hour off.
34961 2011-10-27  Bruno Haible  <bruno@clisp.org>
34963         fstat: Tweak documentation.
34964         * modules/fstat (Description): More precise description.
34966 2011-10-27  Bruno Haible  <bruno@clisp.org>
34968         Update documentation regarding 'largefile' module.
34969         * doc/posix-functions/fstat.texi: Tweak wording.
34970         * doc/posix-functions/opendir.texi: Mention that the module fixes the
34971         problems with huge directories and/or small ino_t types.
34972         * doc/posix-functions/readdir.texi: Likewise.
34973         * doc/posix-functions/rewinddir.texi: Likewise.
34975 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
34977         maint.mk: don't maintain a second build-aux variable.
34978         * maint.mk (build_aux): Removed.  The maintainer-makefile module
34979         depends on GNUmakefile, which already maintains a cfg.mk
34980         overridable $(_build-aux) for projects with a non-standard
34981         build-aux directory location, although without the $(srcdir)
34982         prefix.  Use that variable consistently instead of introducing a
34983         second one.  Adjust all call sites.
34985 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
34987         Add stdalign module and use it in other modules.
34988         This is based on a previous proposal by Bruno Haible
34989         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
34991         stdalign: new module
34992         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
34993         * modules/stdalign: New files.
34994         * MODULES.html.sh (c1x_core_properties): Add stdalign.
34995         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
34997         stdalign-tests: new module
34998         * modules/stdalign-tests, tests/test-stdalign.c: New files.
35000         argp: use stdalign
35001         * lib/argp-parse.c: Include <stdalign.h>.
35002         (alignof): Remove.
35003         * modules/argp (Depends-on): Add stdalign.
35005         crypto libraries: use stdalign
35006         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
35007         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
35008         Do not include <stdlib.h> twice, in md4.c.
35009         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
35010         because we are accessing a pointer's bit-pattern, not a size.
35011         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
35012         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
35013         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
35014         * modules/crypto/sha512: Likewise.
35016         sys_socket: use stdalign, not alignof
35017         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
35018         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
35020 2011-10-27  Bruno Haible  <bruno@clisp.org>
35022         raise test: Avoid a test failure on Linux/MIPS.
35023         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
35024         because 99 is a valid signal on Linux/MIPS.
35026 2011-10-27  Bruno Haible  <bruno@clisp.org>
35028         nonblocking tests: Fix test failure on Linux/MIPS.
35029         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
35030         Set to 270000.
35032 2011-10-27  Bruno Haible  <bruno@clisp.org>
35034         utimensat: Work around problem on Linux/hppa.
35035         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
35036         values.
35037         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
35039 2011-10-25  Jim Meyering  <meyering@redhat.com>
35041         maint.mk: fix a bug in sc_prohibit_stddef_without_use
35042         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
35043         after symbols like NULL, size_t, etc.
35044         Reported by Alfred M. Szmidt.
35046         maint.mk: exempt ENODATA from a syntax-check rule
35047         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
35048         from the sc_prohibit_always-defined_macros syntax-check rule.
35049         Add a comment.  See this for more details:
35050         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
35052 2011-10-23  Jim Meyering  <meyering@redhat.com>
35054         fts: close parent dir FD before returning from post-traversal fts_read
35055         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
35056         unlink A, even though an FD open on A remained.  This is suboptimal
35057         (holding a file descriptor open longer than needed), but otherwise not
35058         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
35059         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
35060         that represents a real problem: it causes the removal of A to fail
35061         with e.g., "rm: cannot remove `A': Device or resource busy"
35063         fts visits each directory twice and keeps a cache (fts_fd_ring) of
35064         directory file descriptors.  After completing the final, FTS_DP,
35065         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
35066         cache, but then proceeded to add a new FD to it via the subsequent
35067         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
35068         final file descriptor would be closed only via fts_close's call to
35069         fd_ring_clear.  Now, it is usually closed earlier, via the final
35070         FTS_DP-returning fts_read call.
35071         * lib/fts.c (restore_initial_cwd): New function, converted from
35072         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
35073         Update callers.
35074         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
35075         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
35077 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
35078             Bruno Haible  <bruno@clisp.org>
35079             Jim Meyering  <jim@meyering.net>
35081         readme-release: improve safety of release prep instructions.
35082         * README-release: Don't git pull all branches when only master
35083         is needed for the release process.
35084         Run make maintainer-clean before changing trees and merging.
35085         Don't try to run ./configure right after git pull in case files
35086         that influence the bootstrap process have changed, move the
35087         ./configure step to after running ./bootstrap.
35088         Don't bootstrap "one last time"... it's the first time!
35090 2011-10-22  Bruno Haible  <bruno@clisp.org>
35092         errno, strerror-override: Support for MSVC 10.
35093         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
35094         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
35095         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
35096         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
35097         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
35098         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
35099         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
35100         Assign values compatible with MSVC 10.
35101         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
35102         New macros.
35103         (GNULIB_defined_EWINSOCK): New macro.
35104         * lib/strerror-override.c (strerror_override): Update accordingly.
35105         * lib/strerror-override.h: Likewise.
35106         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
35107         longer equal to the corresponding errno value.
35108         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
35110 2011-10-22  Bruno Haible  <bruno@clisp.org>
35112         perror: Recognize when test program crashes.
35113         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
35114         strerror, set gl_cv_func_perror_works to no.
35115         Reported by Daniel Richard G. <skunk@iskunk.org>.
35117         perror: Fix indentation.
35118         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
35120 2011-10-22  Bruno Haible  <bruno@clisp.org>
35122         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
35123         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
35124         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
35125         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
35126         functions, not as a macro.
35127         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
35128         macros.
35129         (isfinite, isinf, isnan, signbit): Check overloaded functions and
35130         absence of macro.
35131         Suggested by Eric Blake.
35132         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
35134 2011-10-21  Bruno Haible  <bruno@clisp.org>
35136         relocatable-prog-wrapper: Don't leave object files behind.
35137         * build-aux/install-reloc: Re-synchronize list of .o files to be
35138         removed with list of compilation units.
35140 2011-10-20  Bruno Haible  <bruno@clisp.org>
35142         openpty, posix_openpt: Remove code duplication.
35143         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
35144         * lib/openpty.c: Include <stdlib.h>.
35145         (openpty): Use posix_openpt on all platforms except IRIX.
35146         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
35148 2011-10-20  Bruno Haible  <bruno@clisp.org>
35150         unlockpt: Detect invalid argument.
35151         * lib/unlockpt.c: Include <fcntl.h>.
35152         (unlockpt): Check whether fd is valid, using fcntl().
35153         * modules/unlockpt (Depends-on): Add fcntl-h.
35155 2011-10-20  Bruno Haible  <bruno@clisp.org>
35157         openpty: Avoid compilation error on AIX 6.1.
35158         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
35160 2011-10-20  Bruno Haible  <bruno@clisp.org>
35162         posix_openpt: Support for OpenBSD.
35163         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
35164         (posix_openpt) [OpenBSD]: New code.
35165         * lib/grantpt.c: Include <fcntl.h>.
35166         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
35167         * modules/grantpt (Depends-on): Add fcntl-h.
35169 2011-10-20  Bruno Haible  <bruno@clisp.org>
35171         posix_openpt test: Coding style.
35172         * tests/test-posix_openpt.c: Use GNU coding style.
35174 2011-10-20  Bruno Haible  <bruno@clisp.org>
35176         grantpt: Support --avoid=pt_chown.
35177         * modules/grantpt (Files): Add lib/pty-private.h.
35179 2011-10-20  Bruno Haible  <bruno@clisp.org>
35181         posix_openpt: Fix autoconf macro.
35182         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
35183         unneeded check for _getpty.
35185 2011-10-20  Bruno Haible  <bruno@clisp.org>
35187         openpty: Update comments.
35188         * lib/openpty.c: Add comments about Minix.
35190 2011-10-19  Eric Blake  <eblake@redhat.com>
35192         openpty: relax license
35193         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
35195         pt_chown: use configmake to simplify build
35196         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
35198         ptsname and others: relax license
35199         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
35200         * modules/unlockpt (License): Likewise.
35201         * modules/pt_chown (License): Likewise.
35202         * modules/ptsname (License): Likewise.
35203         * modules/ttyname_r (License): Likewise.
35205 2011-10-19  Jim Meyering  <meyering@redhat.com>
35207         posix_openpt: remove spurious #endif
35208         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
35210 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
35212         maint.mk: Respect $(build_aux) in web-manual rule.
35213         * top/maint.mk (web-manual): Find gen-announce script in user's
35214         $(build_aux) directory instead of hard-coding 'build-aux'.
35216 2011-10-19  Bruno Haible  <bruno@clisp.org>
35218         posix_openpt: Fix compilation error.
35219         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
35220         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
35221         Mention the openpty module as an alternative.
35223 2011-10-19  Bruno Haible  <bruno@clisp.org>
35225         Support for old NeXTstep 3.3 frexp().
35226         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
35227         execution time of the test to 5 seconds.
35228         Reported by Daniel Richard G. <skunk@iskunk.org>.
35230 2011-10-19  Bruno Haible  <bruno@clisp.org>
35232         Support for old NeXTstep 3.3 sed.
35233         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
35234         part, use /.../, not \|...|. Escape periods in the header file name.
35235         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
35236         Reported by Daniel Richard G. <skunk@iskunk.org>.
35238 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
35240         Support for old NeXTstep 3.3 gcc.
35241         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
35242         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
35243         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
35244         * lib/spawn.in.h (_Restrict_arr_): Likewise.
35245         * lib/regex.h (_Restrict_arr_): Likewise.
35246         * lib/regex_internal.h (re_token_t): Likewise.
35247         * lib/regexec.c (check_node_accept_bytes): Likewise.
35248         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
35250 2011-10-18  Eric Blake  <eblake@redhat.com>
35252         posix_openpt: new module
35253         * modules/posix_openpt: New module.
35254         * m4/posix_openpt.m4: New file.
35255         * lib/posix_openpt.c: Likewise.
35256         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
35257         (gl_STDLIB_H_DEFAULTS): Set defaults.
35258         * modules/stdlib (Makefile.am): Substitute macros.
35259         * lib/stdlib.in.h (posix_openpt): Declare.
35260         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
35261         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
35262         * modules/posix_openpt-tests: New test module.
35263         * tests/test-posix_openpt.c: New test.
35265 2011-10-15  Bruno Haible  <bruno@clisp.org>
35267         xstrtoll: Fix compilation failure.
35268         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
35269         from lib/strtol.c.
35270         * doc/posix-headers/limits.texi: Mention missing numerical limits on
35271         some platforms.
35272         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35274 2011-10-15  Bruno Haible  <bruno@clisp.org>
35276         vasnprintf: Optimize bit search operation.
35277         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
35278         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
35279         gl_DOUBLE_EXPONENT_LOCATION.
35280         * modules/vasnprintf (Files): Add m4/exponentd.m4.
35281         * modules/unistdio/u8-vasnprintf (Files): Likewise.
35282         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
35283         * modules/unistdio/u16-vasnprintf (Files): Likewise.
35284         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
35285         * modules/unistdio/u32-vasnprintf (Files): Likewise.
35286         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
35287         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
35288         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
35290 2011-10-15  Bruno Haible  <bruno@clisp.org>
35292         vasnprintf: Fix comments.
35293         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
35295 2011-10-14  Bruno Haible  <bruno@clisp.org>
35297         Tests for module 'integer_length_ll'.
35298         * modules/integer_length_ll-tests: New file.
35299         * tests/test-integer_length_ll.c: New file.
35301         New module 'integer_length_ll'.
35302         * lib/integer_length_ll.c: New file.
35303         * modules/integer_length_ll: New file.
35305 2011-10-14  Bruno Haible  <bruno@clisp.org>
35307         Tests for module 'integer_length_l'.
35308         * modules/integer_length_l-tests: New file.
35309         * tests/test-integer_length_l.c: New file.
35311         New module 'integer_length_l'.
35312         * lib/integer_length_l.c: New file.
35313         * modules/integer_length_l: New file.
35315 2011-10-14  Bruno Haible  <bruno@clisp.org>
35317         Tests for module 'integer_length'.
35318         * modules/integer_length-tests: New file.
35319         * tests/test-integer_length.c: New file.
35321         New module 'integer_length'.
35322         * lib/integer_length.h: New file.
35323         * lib/integer_length.c: New file.
35324         * modules/integer_length: New file.
35326 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
35328         popen: Fix dependency conditions.
35329         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
35331 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
35333         perror: Fix autoconf test.
35334         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
35335         <stdlib.h> and <string.h>.
35337 2011-10-14  Bruno Haible  <bruno@clisp.org>
35339         ffsl: Optimize on 64-bit platforms.
35340         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
35341         unrolling.
35343 2011-10-13  Bruno Haible  <bruno@clisp.org>
35345         ffsl: Optimize on 32-bit platforms.
35346         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
35347         use ffs() without a loop.
35349         ffsl, ffsll: Optimize for GCC.
35350         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
35351         * lib/ffsl.c (GCC_BUILTIN): New macro.
35352         * lib/ffsll.c (GCC_BUILTIN): Likewise.
35354 2011-10-13  Bruno Haible  <bruno@clisp.org>
35356         ffs, bcopy, memset: Support symbol renaming via config.h.
35357         * lib/ffs.c: Include <config.h>.
35358         * lib/bcopy.c: Likewise.
35359         * lib/memset.c: Likewise.
35361 2011-10-10  Bruno Haible  <bruno@clisp.org>
35363         atanl: Simplify for platforms where 'long double' == 'double'.
35364         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
35365         alternative implementation.
35366         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35367         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35368         * modules/atanl (Depends-on): Add atan. Update conditions.
35370 2011-10-10  Bruno Haible  <bruno@clisp.org>
35372         acosl: Simplify for platforms where 'long double' == 'double'.
35373         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
35374         alternative implementation.
35375         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35376         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35377         * modules/acosl (Depends-on): Add acos. Update conditions.
35379 2011-10-10  Bruno Haible  <bruno@clisp.org>
35381         asinl: Simplify for platforms where 'long double' == 'double'.
35382         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
35383         alternative implementation.
35384         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35385         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35386         * modules/asinl (Depends-on): Add asin. Update conditions.
35388 2011-10-10  Bruno Haible  <bruno@clisp.org>
35390         tanl: Simplify for platforms where 'long double' == 'double'.
35391         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
35392         implementation.
35393         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35394         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35395         * modules/tanl (Depends-on): Add tan. Update conditions.
35396         (configure.ac): Don't compile trigl.c if
35397         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35399 2011-10-10  Bruno Haible  <bruno@clisp.org>
35401         cosl: Simplify for platforms where 'long double' == 'double'.
35402         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
35403         implementation.
35404         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35405         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35406         * modules/cosl (Depends-on): Add cos. Update conditions.
35407         (configure.ac): Don't compile sincosl.c and trigl.c if
35408         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35410 2011-10-10  Bruno Haible  <bruno@clisp.org>
35412         sinl: Simplify for platforms where 'long double' == 'double'.
35413         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
35414         implementation.
35415         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35416         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35417         * modules/sinl (Depends-on): Add sin. Update conditions.
35418         (configure.ac): Don't compile sincosl.c and trigl.c if
35419         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35421 2011-10-10  Bruno Haible  <bruno@clisp.org>
35423         logl: Simplify for platforms where 'long double' == 'double'.
35424         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
35425         implementation.
35426         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35427         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35428         * modules/logl (Depends-on): Add log. Update conditions.
35430 2011-10-10  Bruno Haible  <bruno@clisp.org>
35432         expl: Simplify for platforms where 'long double' == 'double'.
35433         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
35434         implementation.
35435         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35436         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35437         * modules/expl (Depends-on): Add exp. Update conditions.
35439 2011-10-10  Bruno Haible  <bruno@clisp.org>
35441         sqrtl: Simplify for platforms where 'long double' == 'double'.
35442         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
35443         alternative implementation.
35444         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35445         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35446         * modules/sqrtl (Depends-on): Update conditions.
35448 2011-10-10  Bruno Haible  <bruno@clisp.org>
35450         ldexpl: Simplify for platforms where 'long double' == 'double'.
35451         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
35452         alternative implementation.
35453         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35454         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35455         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
35457 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
35459         ffsll: set correct witness
35460         * modules/ffsll (configure.ac): Fix typo.
35462 2011-10-10  Bruno Haible  <bruno@clisp.org>
35464         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
35465         * lib/printf-frexpl.c: Include <config.h>.
35466         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
35467         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
35468         second time.
35469         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
35470         gl_LONG_DOUBLE_VS_DOUBLE.
35471         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
35472         conditions.
35474 2011-10-10  Bruno Haible  <bruno@clisp.org>
35476         frexpl: Simplify for platforms where 'long double' == 'double'.
35477         * lib/frexpl.c: Include <config.h>.
35478         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
35479         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
35480         time.
35481         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35482         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35483         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
35484         * modules/frexpl (Depends-on): Add frexp. Update conditions.
35485         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
35486         conditions.
35488 2011-10-10  Jim Meyering  <meyering@redhat.com>
35490         test-renameat: don't leave behind a temporary file
35491         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
35492           ERROR: files left in build directory after distclean:
35493           ./gltests/test-renameat.too
35494           make[1]: *** [distcleancheck] Error 1
35495         Reported by Tom G. Christensen.
35497 2011-10-09  Bruno Haible  <bruno@clisp.org>
35499         rint: Determine RINT_LIBM correctly on AIX 7.
35500         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
35501         directly, not only through a function pointer. Also accept an optional
35502         4th argument with extra code.
35503         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
35504         rintf() call by gcc when optimizing.
35506         mathfunc.m4: Refactor.
35507         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
35508         m4 variable.
35510 2011-10-09  Bruno Haible  <bruno@clisp.org>
35512         rintl: Simplify for platforms where 'long double' == 'double'.
35513         * lib/rintl.c: Include <config.h>.
35514         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
35515         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
35516         time.
35517         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35518         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35519         * modules/rintl (Depends-on): Add rint. Update conditions.
35521 2011-10-09  Bruno Haible  <bruno@clisp.org>
35523         roundl: Simplify for platforms where 'long double' == 'double'.
35524         * lib/roundl.c: Include <config.h>.
35525         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
35526         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
35527         time.
35528         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35529         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35530         * modules/roundl (Depends-on): Add round. Update conditions.
35532 2011-10-09  Bruno Haible  <bruno@clisp.org>
35534         truncl: Simplify for platforms where 'long double' == 'double'.
35535         * lib/truncl.c: Include <config.h>.
35536         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
35537         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
35538         time.
35539         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35540         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35541         * modules/truncl (Depends-on): Add trunc. Update conditions.
35543 2011-10-09  Bruno Haible  <bruno@clisp.org>
35545         ceill: Simplify for platforms where 'long double' == 'double'.
35546         * lib/ceill.c: Include <config.h>.
35547         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
35548         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
35549         time.
35550         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35551         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35552         * modules/ceill (Depends-on): Add ceil. Update conditions.
35554 2011-10-09  Bruno Haible  <bruno@clisp.org>
35556         floorl: Simplify for platforms where 'long double' == 'double'.
35557         * lib/floorl.c: Include <config.h>.
35558         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
35559         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
35560         time.
35561         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35562         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35563         * modules/floorl (Depends-on): Add floor. Update conditions.
35565 2011-10-09  Bruno Haible  <bruno@clisp.org>
35567         rint: Fix ordering constraints.
35568         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
35569         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
35570         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
35572 2011-10-09  Bruno Haible  <bruno@clisp.org>
35574         copysignl: Simplify for platforms where 'long double' == 'double'.
35575         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
35576         alternative.
35577         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35578         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35579         * modules/copysignl (Depends-on): Add copysign. Update conditions.
35581 2011-10-09  Bruno Haible  <bruno@clisp.org>
35583         Tests for module 'rintl'.
35584         * modules/rintl-tests: New file.
35585         * tests/test-rintl.c: New file.
35587         New module 'rintl'.
35588         * lib/math.in.h (rintl): New declaration.
35589         * lib/rintl.c: New file.
35590         * m4/rintl.m4: New file.
35591         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
35592         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
35593         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
35594         * modules/rintl: New file.
35595         * tests/test-math-c++.cc: Check the declaration of rintl.
35596         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
35597         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
35598         * doc/posix-functions/rintl.texi: Mention the new module.
35600 2011-10-09  Bruno Haible  <bruno@clisp.org>
35602         Tests for module 'rintf'.
35603         * modules/rintf-tests: New file.
35604         * tests/test-rintf.c: New file.
35606         New module 'rintf'.
35607         * lib/math.in.h (rintf): New declaration.
35608         * lib/rintf.c: New file.
35609         * m4/rintf.m4: New file.
35610         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
35611         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
35612         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
35613         * modules/rintf: New file.
35614         * tests/test-math-c++.cc: Check the declaration of rintf.
35615         * doc/posix-functions/rintf.texi: Mention the new module.
35617 2011-10-09  Bruno Haible  <bruno@clisp.org>
35619         rint: Support for MSVC.
35620         * lib/math.in.h (rint): New declaration.
35621         * lib/rint.c: New file.
35622         * m4/rint.m4: New file.
35623         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
35624         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
35625         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
35626         * modules/rint (Description): Fix.
35627         (Files): Add lib/rint.c, m4/rint.m4.
35628         (Depends-on): Add math.
35629         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
35630         gl_MATH_MODULE_INDICATOR.
35631         * tests/test-math-c++.cc: Check the declaration of rint.
35632         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
35633         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
35634         * doc/posix-functions/rint.texi: Mention the replacement provided by
35635         the module.
35637         rint tests: More tests.
35638         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
35639         minus-zero.h, infinity.h, nan.h.
35640         (main): Skip the test if the current rounding mode is not standard. Add
35641         tests for negative numbers, minus zero, infinity, NaN.
35642         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
35643         tests/nan.h.
35644         (Depends-on): Add isnand-nolibm.
35646 2011-10-09  Bruno Haible  <bruno@clisp.org>
35648         Tests for module 'copysignl'.
35649         * modules/copysignl-tests: New file.
35650         * tests/test-copysignl.c: New file.
35652         New module 'copysignl'.
35653         * lib/math.in.h (copysignl): New declaration.
35654         * lib/copysignl.c: New file.
35655         * m4/copysignl.m4: New file.
35656         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
35657         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
35658         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
35659         HAVE_COPYSIGNL.
35660         * modules/copysignl: New file.
35661         * tests/test-math-c++.cc: Check the declaration of copysignl.
35662         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
35663         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
35664         * doc/posix-functions/copysignl.texi: Mention the new module.
35666 2011-10-09  Bruno Haible  <bruno@clisp.org>
35668         Tests for module 'copysignf'.
35669         * modules/copysignf-tests: New file.
35670         * tests/test-copysignf.c: New file.
35672         New module 'copysignf'.
35673         * lib/math.in.h (copysignf): New declaration.
35674         * lib/copysignf.c: New file.
35675         * m4/copysignf.m4: New file.
35676         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
35677         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
35678         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
35679         HAVE_COPYSIGNF.
35680         * modules/copysignf: New file.
35681         * tests/test-math-c++.cc: Check the declaration of copysignf.
35682         * doc/posix-functions/copysignf.texi: Mention the new module.
35684 2011-10-09  Bruno Haible  <bruno@clisp.org>
35686         Ensure that HAVE_* variables are set to 1 before they are set to 0.
35687         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
35688         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
35689         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
35690         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
35691         gl_SIGNAL_H_DEFAULTS.
35693 2011-10-09  Bruno Haible  <bruno@clisp.org>
35695         poll: Make macro safer.
35696         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
35697         ac_cv_header_poll_h is not set.
35699 2011-10-09  Bruno Haible  <bruno@clisp.org>
35701         copysign: Provide replacement.
35702         * lib/math.in.h (copysign): New declaration.
35703         * lib/copysign.c: New file.
35704         * m4/copysign.m4: New file.
35705         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
35706         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
35707         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
35708         HAVE_COPYSIGN.
35709         * modules/copysign (Description): Clarify.
35710         (Files): Add lib/copysign.c, m4/copysign.m4.
35711         (Depends-on): Add math, signbit.
35712         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
35713         gl_MATH_MODULE_INDICATOR.
35714         * tests/test-math-c++.cc: Check the declaration of copysign.
35715         * doc/posix-functions/copysign.texi: Mention the effects of the module
35716         on Minix and MSVC.
35718 2011-10-09  Bruno Haible  <bruno@clisp.org>
35720         isinf: Ensure macro on AIX 5.1.
35721         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
35722         macro.
35723         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
35725 2011-10-09  Bruno Haible  <bruno@clisp.org>
35727         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
35728         * modules/snprintf-posix-tests (configure.ac): Require
35729         gl_LONG_DOUBLE_VS_DOUBLE.
35730         * modules/sprintf-posix-tests (configure.ac): Likewise.
35731         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
35732         * modules/vasprintf-posix-tests (configure.ac): Likewise.
35733         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
35734         * modules/vsprintf-posix-tests (configure.ac): Likewise.
35735         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
35736         tests on platforms where 'long double' is the same as 'double'.
35737         * tests/test-sprintf-posix.h (test_function): Likewise.
35738         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35739         * tests/test-vasprintf-posix.c (test_function): Likewise.
35741         *printf: Fix for platforms where 'long double' == 'double'.
35742         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
35743         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
35744         * modules/dprintf-posix (Files): Add m4/math_h.m4.
35745         * modules/fprintf-posix (Files): Likewise.
35746         * modules/obstack-printf-posix (Files): Likewise.
35747         * modules/snprintf-posix (Files): Likewise.
35748         * modules/sprintf-posix (Files): Likewise.
35749         * modules/vasnprintf (Files): Likewise.
35750         * modules/vasnprintf-posix (Files): Likewise.
35751         * modules/vasprintf-posix (Files): Likewise.
35752         * modules/vdprintf-posix (Files): Likewise.
35753         * modules/vfprintf-posix (Files): Likewise.
35754         * modules/vsnprintf-posix (Files): Likewise.
35755         * modules/vsprintf-posix (Files): Likewise.
35756         * modules/unistdio/u8-vasnprintf (Files): Likewise.
35757         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
35758         * modules/unistdio/u16-vasnprintf (Files): Likewise.
35759         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
35760         * modules/unistdio/u32-vasnprintf (Files): Likewise.
35761         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
35762         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
35764         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
35765         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
35766         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35767         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
35768         'long double'.
35769         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
35771         isinf: Fix for platforms where 'long double' == 'double'.
35772         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
35773         Don't blindly assume 80-bit 'long double'.
35775         isfinite: Fix for platforms where 'long double' == 'double'.
35776         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
35777         Don't blindly assume 80-bit 'long double'.
35779         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
35780         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
35781         * modules/isfinite-tests (configure.ac): Require
35782         gl_LONG_DOUBLE_VS_DOUBLE.
35783         * modules/isinf-tests (configure.ac): Likewise.
35784         * modules/isnan-tests (configure.ac): Likewise.
35785         * modules/isnanl-tests (configure.ac): Likewise.
35786         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
35787         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
35788         tests on platforms where 'long double' is the same as 'double'.
35789         * tests/test-isinf.c (test_isinfl): Likewise.
35790         * tests/test-isnan.c (test_long_double): Likewise.
35791         * tests/test-isnanl.h (main): Likewise.
35793 2011-10-08  Bruno Haible  <bruno@clisp.org>
35795         Tests for module 'tanhf'.
35796         * modules/tanhf-tests: New file.
35797         * tests/test-tanhf.c: New file.
35799         New module 'tanhf'.
35800         * lib/math.in.h (tanhf): New declaration.
35801         * lib/tanhf.c: New file.
35802         * m4/tanhf.m4: New file.
35803         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
35804         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
35805         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
35806         * modules/tanhf: New file.
35807         * tests/test-math-c++.cc: Check the declaration of tanhf.
35808         * doc/posix-functions/tanhf.texi: Mention the new module.
35810         tanh: Use a .m4 file.
35811         * m4/tanh.m4: New file.
35812         * modules/tanh (Files): Add it.
35813         (configure.ac): Just invoke gl_FUNC_TANH.
35815 2011-10-08  Bruno Haible  <bruno@clisp.org>
35817         Tests for module 'coshf'.
35818         * modules/coshf-tests: New file.
35819         * tests/test-coshf.c: New file.
35821         New module 'coshf'.
35822         * lib/math.in.h (coshf): New declaration.
35823         * lib/coshf.c: New file.
35824         * m4/coshf.m4: New file.
35825         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
35826         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
35827         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
35828         * modules/coshf: New file.
35829         * tests/test-math-c++.cc: Check the declaration of coshf.
35830         * doc/posix-functions/coshf.texi: Mention the new module.
35832         cosh: Use a .m4 file.
35833         * m4/cosh.m4: New file.
35834         * modules/cosh (Files): Add it.
35835         (configure.ac): Just invoke gl_FUNC_COSH.
35837 2011-10-08  Bruno Haible  <bruno@clisp.org>
35839         Tests for module 'sinhf'.
35840         * modules/sinhf-tests: New file.
35841         * tests/test-sinhf.c: New file.
35843         New module 'sinhf'.
35844         * lib/math.in.h (sinhf): New declaration.
35845         * lib/sinhf.c: New file.
35846         * m4/sinhf.m4: New file.
35847         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
35848         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
35849         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
35850         * modules/sinhf: New file.
35851         * tests/test-math-c++.cc: Check the declaration of sinhf.
35852         * doc/posix-functions/sinhf.texi: Mention the new module.
35854         sinh: Use a .m4 file.
35855         * m4/sinh.m4: New file.
35856         * modules/sinh (Files): Add it.
35857         (configure.ac): Just invoke gl_FUNC_SINH.
35859 2011-10-08  Bruno Haible  <bruno@clisp.org>
35861         Tests for module 'atan2f'.
35862         * modules/atan2f-tests: New file.
35863         * tests/test-atan2f.c: New file.
35865         New module 'atan2f'.
35866         * lib/math.in.h (atan2f): New declaration.
35867         * lib/atan2f.c: New file.
35868         * m4/atan2f.m4: New file.
35869         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
35870         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
35871         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
35872         * modules/atan2f: New file.
35873         * tests/test-math-c++.cc: Check the declaration of atan2f.
35874         * doc/posix-functions/atan2f.texi: Mention the new module.
35876         atan2: Use a .m4 file.
35877         * m4/atan2.m4: New file.
35878         * modules/atan2 (Files): Add it.
35879         (configure.ac): Just invoke gl_FUNC_ATAN2.
35881 2011-10-08  Bruno Haible  <bruno@clisp.org>
35883         Tests for module 'atanf'.
35884         * modules/atanf-tests: New file.
35885         * tests/test-atanf.c: New file.
35887         New module 'atanf'.
35888         * lib/math.in.h (atanf): New declaration.
35889         * lib/atanf.c: New file.
35890         * m4/atanf.m4: New file.
35891         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
35892         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
35893         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
35894         * modules/atanf: New file.
35895         * tests/test-math-c++.cc: Check the declaration of atanf.
35896         * doc/posix-functions/atanf.texi: Mention the new module.
35898         atan: Use a .m4 file.
35899         * m4/atan.m4: New file.
35900         * modules/atan (Files): Add it.
35901         (configure.ac): Just invoke gl_FUNC_ATAN.
35903 2011-10-08  Bruno Haible  <bruno@clisp.org>
35905         Tests for module 'acosf'.
35906         * modules/acosf-tests: New file.
35907         * tests/test-acosf.c: New file.
35909         New module 'acosf'.
35910         * lib/math.in.h (acosf): New declaration.
35911         * lib/acosf.c: New file.
35912         * m4/acosf.m4: New file.
35913         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
35914         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
35915         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
35916         * modules/acosf: New file.
35917         * tests/test-math-c++.cc: Check the declaration of acosf.
35918         * doc/posix-functions/acosf.texi: Mention the new module.
35920         acos: Use a .m4 file.
35921         * m4/acos.m4: New file.
35922         * modules/acos (Files): Add it.
35923         (configure.ac): Just invoke gl_FUNC_ACOS.
35925 2011-10-08  Bruno Haible  <bruno@clisp.org>
35927         Tests for module 'asinf'.
35928         * modules/asinf-tests: New file.
35929         * tests/test-asinf.c: New file.
35931         New module 'asinf'.
35932         * lib/math.in.h (asinf): New declaration.
35933         * lib/asinf.c: New file.
35934         * m4/asinf.m4: New file.
35935         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
35936         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
35937         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
35938         * modules/asinf: New file.
35939         * tests/test-math-c++.cc: Check the declaration of asinf.
35940         * doc/posix-functions/asinf.texi: Mention the new module.
35942         asin: Use a .m4 file.
35943         * m4/asin.m4: New file.
35944         * modules/asin (Files): Add it.
35945         (configure.ac): Just invoke gl_FUNC_ASIN.
35947 2011-10-08  Bruno Haible  <bruno@clisp.org>
35949         Tests for module 'tanf'.
35950         * modules/tanf-tests: New file.
35951         * tests/test-tanf.c: New file.
35953         New module 'tanf'.
35954         * lib/math.in.h (tanf): New declaration.
35955         * lib/tanf.c: New file.
35956         * m4/tanf.m4: New file.
35957         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
35958         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
35959         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
35960         * modules/tanf: New file.
35961         * tests/test-math-c++.cc: Check the declaration of tanf.
35962         * doc/posix-functions/tanf.texi: Mention the new module.
35964         tan: Use a .m4 file.
35965         * m4/tan.m4: New file.
35966         * modules/tan (Files): Add it.
35967         (configure.ac): Just invoke gl_FUNC_TAN.
35969 2011-10-08  Bruno Haible  <bruno@clisp.org>
35971         Tests for module 'cosf'.
35972         * modules/cosf-tests: New file.
35973         * tests/test-cosf.c: New file.
35975         New module 'cosf'.
35976         * lib/math.in.h (cosf): New declaration.
35977         * lib/cosf.c: New file.
35978         * m4/cosf.m4: New file.
35979         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
35980         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
35981         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
35982         * modules/cosf: New file.
35983         * tests/test-math-c++.cc: Check the declaration of cosf.
35984         * doc/posix-functions/cosf.texi: Mention the new module.
35986         cos: Use a .m4 file.
35987         * m4/cos.m4: New file.
35988         * modules/cos (Files): Add it.
35989         (configure.ac): Just invoke gl_FUNC_COS.
35991 2011-10-08  Bruno Haible  <bruno@clisp.org>
35993         Tests for module 'sinf'.
35994         * modules/sinf-tests: New file.
35995         * tests/test-sinf.c: New file.
35997         New module 'sinf'.
35998         * lib/math.in.h (sinf): New declaration.
35999         * lib/sinf.c: New file.
36000         * m4/sinf.m4: New file.
36001         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
36002         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
36003         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
36004         * modules/sinf: New file.
36005         * tests/test-math-c++.cc: Check the declaration of sinf.
36006         * doc/posix-functions/sinf.texi: Mention the new module.
36008         sin: Use a .m4 file.
36009         * m4/sin.m4: New file.
36010         * modules/sin (Files): Add it.
36011         (configure.ac): Just invoke gl_FUNC_SIN.
36013 2011-10-08  Bruno Haible  <bruno@clisp.org>
36015         Tests for module 'powf'.
36016         * modules/powf-tests: New file.
36017         * tests/test-powf.c: New file.
36019         New module 'powf'.
36020         * lib/math.in.h (powf): New declaration.
36021         * lib/powf.c: New file.
36022         * m4/powf.m4: New file.
36023         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
36024         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
36025         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
36026         * modules/powf: New file.
36027         * tests/test-math-c++.cc: Check the declaration of powf.
36028         * doc/posix-functions/powf.texi: Mention the new module.
36030         pow: Use a .m4 file.
36031         * m4/pow.m4: New file.
36032         * modules/pow (Files): Add it.
36033         (configure.ac): Just invoke gl_FUNC_POW.
36035 2011-10-08  Bruno Haible  <bruno@clisp.org>
36037         Tests for module 'log10f'.
36038         * modules/log10f-tests: New file.
36039         * tests/test-log10f.c: New file.
36041         New module 'log10f'.
36042         * lib/math.in.h (log10f): New declaration.
36043         * lib/log10f.c: New file.
36044         * m4/log10f.m4: New file.
36045         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
36046         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
36047         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
36048         * modules/log10f: New file.
36049         * tests/test-math-c++.cc: Check the declaration of log10f.
36050         * doc/posix-functions/log10f.texi: Mention the new module.
36052         log10: Use a .m4 file.
36053         * m4/log10.m4: New file.
36054         * modules/log10 (Files): Add it.
36055         (configure.ac): Just invoke gl_FUNC_LOG10.
36057 2011-10-08  Bruno Haible  <bruno@clisp.org>
36059         Tests for module 'logf'.
36060         * modules/logf-tests: New file.
36061         * tests/test-logf.c: New file.
36063         New module 'logf'.
36064         * lib/math.in.h (logf): New declaration.
36065         * lib/logf.c: New file.
36066         * m4/logf.m4: New file.
36067         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
36068         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
36069         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
36070         * modules/logf: New file.
36071         * tests/test-math-c++.cc: Check the declaration of logf.
36072         * doc/posix-functions/logf.texi: Mention the new module.
36074         log: Use a .m4 file.
36075         * m4/log.m4: New file.
36076         * modules/log (Files): Add it.
36077         (configure.ac): Just invoke gl_FUNC_LOG.
36079 2011-10-08  Bruno Haible  <bruno@clisp.org>
36081         Tests for module 'expf'.
36082         * modules/expf-tests: New file.
36083         * tests/test-expf.c: New file.
36085         New module 'expf'.
36086         * lib/math.in.h (expf): New declaration.
36087         * lib/expf.c: New file.
36088         * m4/expf.m4: New file.
36089         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
36090         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
36091         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
36092         * modules/expf: New file.
36093         * tests/test-math-c++.cc: Check the declaration of expf.
36094         * doc/posix-functions/expf.texi: Mention the new module.
36096         exp: Use a .m4 file.
36097         * m4/exp.m4: New file.
36098         * modules/exp (Files): Add it.
36099         (configure.ac): Just invoke gl_FUNC_EXP.
36101 2011-10-08  Bruno Haible  <bruno@clisp.org>
36103         Tests for module 'sqrtf'.
36104         * modules/sqrtf-tests: New file.
36105         * tests/test-sqrtf.c: New file.
36107         New module 'sqrtf'.
36108         * lib/math.in.h (sqrtf): New declaration.
36109         * lib/sqrtf.c: New file.
36110         * m4/sqrtf.m4: New file.
36111         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
36112         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
36113         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
36114         * modules/sqrtf: New file.
36115         * tests/test-math-c++.cc: Check the declaration of sqrtf.
36116         * doc/posix-functions/sqrtf.texi: Mention the new module.
36118 2011-10-08  Bruno Haible  <bruno@clisp.org>
36120         Tests: Avoid link failures w.r.t. libintl.
36121         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
36122         $(LIBINTL).
36123         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
36124         $(LIBINTL).
36125         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
36126         against $(LIBINTL).
36127         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
36128         $(LIBINTL).
36129         * modules/openat-tests (Makefile.am): Link test-fchmodat against
36130         $(LIBINTL).
36131         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
36133 2011-10-08  Bruno Haible  <bruno@clisp.org>
36135         pow tests: Defeat compiler optimizations.
36136         * tests/test-pow.c (main): Assign arguments to x and y before use.
36138 2011-10-08  Bruno Haible  <bruno@clisp.org>
36140         gnulib-tool: Improve last commit.
36141         * gnulib-tool (func_modules_transitive_closure): Simplify code.
36142         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
36143         ignore dependencies that are not among the modules list.
36145 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
36147         gnulib-tool: don't follow dependencies to avoided modules
36148         This fixes a bug that is related to the previous one.
36149         * gnulib-tool (func_modules_transitive_closure)
36150         (func_emit_autoconf_snippets):
36151         Check whether a dependency is acceptable before using it.
36152         (--extract-dependencies): Report an error if --avoid is also used,
36153         since this combination of options is not yet supported.
36155         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
36156         Problem reported by Peter Dyballa in
36157         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
36158         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
36159         when echoing "$condition".
36161 2011-10-07  Bruno Haible  <bruno@clisp.org>
36163         Fix documentation about math functions on MacOS X.
36164         * doc/posix-functions/exp2.texi: Don't say the function is missing on
36165         MacOS X 10.5.
36166         * doc/posix-functions/fdim.texi: Likewise.
36167         * doc/posix-functions/feclearexcept.texi: Likewise.
36168         * doc/posix-functions/fegetenv.texi: Likewise.
36169         * doc/posix-functions/fegetround.texi: Likewise.
36170         * doc/posix-functions/feholdexcept.texi: Likewise.
36171         * doc/posix-functions/feraiseexcept.texi: Likewise.
36172         * doc/posix-functions/fesetenv.texi: Likewise.
36173         * doc/posix-functions/fesetround.texi: Likewise.
36174         * doc/posix-functions/fetestexcept.texi: Likewise.
36175         * doc/posix-functions/feupdateenv.texi: Likewise.
36176         * doc/posix-functions/fmax.texi: Likewise.
36177         * doc/posix-functions/fmin.texi: Likewise.
36178         * doc/posix-functions/log2.texi: Likewise.
36179         * doc/posix-functions/modff.texi: Likewise.
36180         * doc/posix-functions/nan.texi: Likewise.
36181         * doc/posix-functions/nanf.texi: Likewise.
36182         * doc/posix-functions/nextafterf.texi: Likewise.
36183         * doc/posix-functions/remquo.texi: Likewise.
36185 2011-10-07  Bruno Haible  <bruno@clisp.org>
36187         modff: Drop assumption about library that defines modff.
36188         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
36189         AC_CHECK_FUNCS.
36190         * modules/modff (Files): Add m4/mathfunc.m4.
36192 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
36194         raise tests: Avoid a GCC warning.
36195         * tests/test-raise.c (handler): Use _Noreturn.
36197 2011-10-07  Bruno Haible  <bruno@clisp.org>
36199         Tests for module 'ldexpf'.
36200         * modules/ldexpf-tests: New file.
36201         * tests/test-ldexpf.c: New file.
36203         New module 'ldexpf'.
36204         * lib/math.in.h (ldexpf): New declaration.
36205         * lib/ldexpf.c: New file.
36206         * m4/ldexpf.m4: New file.
36207         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
36208         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
36209         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
36210         * modules/ldexpf: New file.
36211         * tests/test-math-c++.cc: Check the declaration of ldexpf.
36212         * doc/posix-functions/ldexpf.texi: Mention the new module.
36214 2011-10-06  Bruno Haible  <bruno@clisp.org>
36216         frexpf: Work around problems on IRIX and mingw.
36217         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
36218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
36219         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
36220         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
36221         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
36222         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
36223         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
36225 2011-10-06  Bruno Haible  <bruno@clisp.org>
36227         fabsf: Drop assumption about library that defines fabsf.
36228         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
36229         AC_CHECK_FUNCS.
36230         * modules/fabsf (Files): Add m4/mathfunc.m4.
36232 2011-10-06  Bruno Haible  <bruno@clisp.org>
36234         frexpf: Drop assumption about library that defines frexpf.
36235         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
36236         'int *', 'float *', 'long double *', 'float', 'long double'.
36237         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
36238         AC_CHECK_FUNCS.
36239         * modules/frexpf (Files): Add m4/mathfunc.m4.
36241         Tests for module 'frexpf'.
36242         * modules/frexpf-tests: New file.
36243         * tests/test-frexpf.c: New file.
36245         New module 'frexpf'.
36246         * lib/math.in.h (frexpf): New declaration.
36247         * lib/frexpf.c: New file.
36248         * m4/frexpf.m4: New file.
36249         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
36250         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
36251         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
36252         * modules/frexpf: New file.
36253         * tests/test-math-c++.cc: Check the declaration of frexpf.
36254         * doc/posix-functions/frexpf.texi: Mention the new module.
36256 2011-10-06  Bruno Haible  <bruno@clisp.org>
36258         math: Sort function declarations of math.in.h.
36259         * lib/math.in.h (frexp, logb): Move declarations.
36261 2011-10-05  Bruno Haible  <bruno@clisp.org>
36263         Tests for module 'modff'.
36264         * modules/modff-tests: New file.
36265         * tests/test-modff.c: New file.
36267         New module 'modff'.
36268         * lib/math.in.h (modff): New declaration.
36269         * lib/modff.c: New file.
36270         * m4/modff.m4: New file.
36271         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
36272         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
36273         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
36274         * modules/modff: New file.
36275         * tests/test-math-c++.cc: Check the declaration of modff.
36276         * doc/posix-functions/modff.texi: Mention the new module.
36278         modf tests: Make test sharper.
36279         * tests/test-modf.c (main): Strengthen upper bound.
36281         modf: Use a .m4 file.
36282         * m4/modf.m4: New file.
36283         * modules/modf (Files): Add it.
36284         (configure.ac): Just invoke gl_FUNC_MODF.
36286 2011-10-05  Bruno Haible  <bruno@clisp.org>
36288         Tests for module 'fmodf'.
36289         * modules/fmodf-tests: New file.
36290         * tests/test-fmodf.c: New file.
36292         New module 'fmodf'.
36293         * lib/math.in.h (fmodf): New declaration.
36294         * lib/fmodf.c: New file.
36295         * m4/fmodf.m4: New file.
36296         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
36297         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
36298         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
36299         * modules/fmodf: New file.
36300         * tests/test-math-c++.cc: Check the declaration of fmodf.
36301         * doc/posix-functions/fmodf.texi: Mention the new module.
36303         fmod: Use a .m4 file.
36304         * m4/fmod.m4: New file.
36305         * modules/fmod (Files): Add it.
36306         (configure.ac): Just invoke gl_FUNC_FMOD.
36308 2011-10-05  Bruno Haible  <bruno@clisp.org>
36310         Tests for module 'fabsf'.
36311         * modules/fabsf-tests: New file.
36312         * tests/test-fabsf.c: New file.
36314         New module 'fabsf'.
36315         * lib/math.in.h (fabsf): New declaration.
36316         * lib/fabsf.c: New file.
36317         * m4/fabsf.m4: New file.
36318         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
36319         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
36320         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
36321         * modules/fabsf: New file.
36322         * tests/test-math-c++.cc: Check the declaration of fabsf.
36323         * doc/posix-functions/fabsf.texi: Mention the new module.
36325         fabs: Use a .m4 file.
36326         * m4/fabs.m4: New file.
36327         * modules/fabs (Files): Add it.
36328         (configure.ac): Just invoke gl_FUNC_FABS.
36330 2011-10-05  Jim Meyering  <meyering@redhat.com>
36332         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
36333         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
36334         ls -lL regression introduced in coreutils-8.12, it does so at the
36335         cost of an additional stat call in the common case.  Besides, now
36336         that the kernel change that prompted commit 95f7c57f has been reverted
36337         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
36338         we have no use for commit 95f7c57f, "file-has-acl: use
36339         acl_extended_file_nofollow if available".
36341 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
36343         file-has-acl: revert unintended change in behavior of ls -L
36344         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
36345         derived from...
36346         (file_has_acl): ...code here.  Call it.
36347         This problem was introduced with 2011-07-22 commit 95f7c57f,
36348         "file-has-acl: use acl_extended_file_nofollow if available".
36349         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
36351 2011-10-03  Bruno Haible  <bruno@clisp.org>
36353         poll: Avoid link errors on MSVC.
36354         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
36355         * modules/poll (Depends-on): Add sockets.
36356         (Link): New section.
36357         * NEWS: Mention the change.
36358         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
36359         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
36360         $(LIB_POLL) instead of $(LIBSOCKET).
36362 2011-10-03  Bruno Haible  <bruno@clisp.org>
36364         sys_select tests: Fix link error on MSVC 9.
36365         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
36366         with $(LIB_SELECT) instead of $(LIBSOCKET).
36368 2011-10-03  Bruno Haible  <bruno@clisp.org>
36370         sys_select: Fix compilation error on mingw.
36371         * lib/sys_select.in.h: On native Windows, include <io.h>.
36373 2011-10-03  Bruno Haible  <bruno@clisp.org>
36375         wmemset: Support for MSVC.
36376         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
36377         whether wmemset() exists.
36379 2011-10-03  Bruno Haible  <bruno@clisp.org>
36381         wmemmove: Support for MSVC.
36382         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
36383         whether wmemmove() exists.
36385 2011-10-03  Bruno Haible  <bruno@clisp.org>
36387         wmemcpy: Support for MSVC.
36388         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
36389         whether wmemcpy() exists.
36391 2011-10-03  Bruno Haible  <bruno@clisp.org>
36393         wmemcmp: Support for MSVC.
36394         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
36395         whether wmemcmp() exists.
36397 2011-10-03  Bruno Haible  <bruno@clisp.org>
36399         wmemchr: Support for MSVC.
36400         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
36401         whether wmemchr() exists.
36403 2011-10-03  Bruno Haible  <bruno@clisp.org>
36405         glthread/*, strsignal: Support for MSVC.
36406         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
36407         including <winsock.h> on MSVC 9.
36408         * lib/glthread/lock.h: Likewise.
36409         * lib/glthread/thread.h: Likewise.
36410         * lib/glthread/tls.h: Likewise.
36411         * lib/glthread/yield.h: Likewise.
36412         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
36413         if HAVE_UNISTD_H is false.
36414         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
36416 2011-10-03  Bruno Haible  <bruno@clisp.org>
36418         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
36419         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
36420         Set to 100000.
36422 2011-10-03  Bruno Haible  <bruno@clisp.org>
36424         acl: Fix specification.
36425         * lib/file-has-acl.c (file_has_acl): Fix specification.
36427 2011-10-03  Bruno Haible  <bruno@clisp.org>
36429         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
36430         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
36431         (compute_curr_prefix, shared_library_fullname,
36432         find_shared_library_fullname, get_shared_library_fullname, relocate):
36433         Use it together with PIC && INSTALLDIR.
36434         Reported by <jojelino@gmail.com>
36435         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
36437 2011-10-01  Jim Meyering  <meyering@redhat.com>
36439         maint.mk: adjust a release-related rule not to require use of gzip
36440         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
36441         Instead, check each file in $(DIST_ARCHIVES).  This is better for
36442         projects that build only .tar.xz files.  Also fix an erroneous test.
36444         test-linkat: don't leave behind a temporary file
36445         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
36446         Otherwise, coreutils' "make distcheck" would fail with this:
36447           Only in /c/cu/tests/torture/coreutils/test/\
36448             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
36449           make[2]: *** [my-distcheck] Error 1
36451         float, math: add omitted file
36452         * lib/itold.c: Add file, required for yesterday's float change.
36454 2011-10-01  Bruno Haible  <bruno@clisp.org>
36456         isinf: Fix for OpenBSD/x86.
36457         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
36458         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
36459         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
36461 2011-10-01  Bruno Haible  <bruno@clisp.org>
36463         isfinite: Fix syntax error in configure test.
36464         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
36466         isfinite: Fix typo.
36467         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
36468         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
36470 2011-10-01  Bruno Haible  <bruno@clisp.org>
36472         nonblocking tests: Fix test failure on Linux/IA-64.
36473         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
36474         Set to 270000.
36476 2011-10-01  Bruno Haible  <bruno@clisp.org>
36478         mkfifoat tests: Fix a test failure on mingw.
36479         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
36480         with error ENOSYS.
36482 2011-09-30  Bruno Haible  <bruno@clisp.org>
36484         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
36485         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
36486         'long double'. Set REPLACE_ITOLD.
36487         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
36488         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
36489         * lib/itold.c: New file.
36490         * modules/float (Files): Add lib/itold.c.
36491         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
36492         (Makefile.am): Substitute REPLACE_ITOLD.
36493         * modules/math (Depends-on): Add float.
36494         (Makefile.am): Substitute REPLACE_ITOLD.
36495         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
36496         * doc/posix-headers/math.texi: Likewise.
36497         * doc/posix-functions/logl.texi: Likewise.
36499 2011-09-30  Bruno Haible  <bruno@clisp.org>
36501         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
36502         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
36503         Set to 140000.
36505 2011-09-30  Bruno Haible  <bruno@clisp.org>
36507         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
36508         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
36509         invocation, say "right after AC_PROG_CC_STDC", not "right after
36510         AC_PROG_CC".
36511         Reported by Gary V. Vaughan <gary@gnu.org>.
36513 2011-09-30  Bruno Haible  <bruno@clisp.org>
36515         Centralize C99 requirement.
36516         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
36517         * modules/stdarg (configure.ac-early): Invoke it instead of
36518         AC_PROG_CC_STDC.
36519         Reported by Gary V. Vaughan and Paul Eggert.
36521 2011-09-29  Bruno Haible  <bruno@clisp.org>
36523         float: Fix LDBL_MAX value on Linux/PowerPC.
36524         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
36525         on Linux/PowerPC.
36526         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
36527         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
36528         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
36529         platform.
36530         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
36532 2011-09-29  Bruno Haible  <bruno@clisp.org>
36534         doc: Improve doc about gl_EARLY.
36535         * doc/gnulib-tool.texi (Initial import): Mention where to place an
36536         AC_PROG_CC_STDC invocation.
36537         Reported by Gary V. Vaughan <gary@gnu.org>.
36539 2011-09-28  Bruno Haible  <bruno@clisp.org>
36541         fgetc, fputc, fread, fwrite tests: Fix link error.
36542         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
36543         on non-MSVC platforms.
36544         * tests/test-fputc.c (main): Likewise.
36545         * tests/test-fread.c (main): Likewise.
36546         * tests/test-fwrite.c (main): Likewise.
36547         Reported by Jim Meyering.
36549 2011-09-27  Bruno Haible  <bruno@clisp.org>
36551         fputc, fwrite tests: Avoid test failure on MSVC.
36552         * tests/test-fgetc.c: Include msvc-inval.h.
36553         (main): Invoke gl_msvc_inval_ensure_handler.
36554         * tests/test-fputc.c: Include msvc-inval.h.
36555         (main): Invoke gl_msvc_inval_ensure_handler.
36556         * tests/test-fread.c: Include msvc-inval.h.
36557         (main): Invoke gl_msvc_inval_ensure_handler.
36558         * tests/test-fwrite.c: Include msvc-inval.h.
36559         (main): Invoke gl_msvc_inval_ensure_handler.
36560         * modules/fgetc-tests (Depends-on): Add msvc-inval.
36561         * modules/fputc-tests (Depends-on): Likewise.
36562         * modules/fread-tests (Depends-on): Likewise.
36563         * modules/fwrite-tests (Depends-on): Likewise.
36565 2011-09-27  Bruno Haible  <bruno@clisp.org>
36567         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
36568         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
36569         (raise): Remove older, duplicated declaration.
36570         (_gl_raise_SIGPIPE): New declaration.
36571         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
36572         (rpl_raise): Remove function.
36573         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
36574         a gnulib-defined SIGPIPE here.
36575         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
36576         'sigprocmask' has detected missing signal-blocking and the module
36577         'sigpipe' is enabled.
36578         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
36580 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
36582         base64-tests: avoid memory leak
36583         * tests/test-base64.c (main): Plug memory leak.
36585         base32: new module
36586         * modules/base32: New module.
36587         * lib/base32.c: New file.
36588         * lib/base32.h: Likewise.
36589         * m4/base32.m4: Likewise.
36590         * modules/base32-tests: New test.
36591         * tests/test-base32.c: Likewise.
36592         * MODULES.html.sh (Misc): Mention it.
36594 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
36596         gnulib: use more-standard license notice wording
36597         * gnulib-tool (func_emit_copyright_notice): When emitting a
36598         license notice into a file, use the standard wording as suggested
36599         by the current information for GNU maintainers, except say "file"
36600         rather than "program".  The new wording gives a license version
36601         number, which addresses an issue raised by Glenn Morris in
36602         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
36603         * m4/onceonly.m4: Use that same wording here, too.
36605         dup2: minor simplification
36606         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
36607         as lib/dup2.c no longer uses 'inline'.
36609 2011-09-25  Bruno Haible  <bruno@clisp.org>
36611         strings: Fix compilation error on MSVC.
36612         * lib/strings.in.h: Include <stddef.h> for size_t.
36614 2011-09-25  Bruno Haible  <bruno@clisp.org>
36616         fflush et al.: Document limitation on MSVC.
36617         * doc/posix-functions/fflush.texi: Document possible crash in handling
36618         mode other than DEFAULT_HANDLING.
36619         * doc/posix-functions/fgetc.texi: Likewise.
36620         * doc/posix-functions/fputc.texi: Likewise.
36621         * doc/posix-functions/fread.texi: Likewise.
36622         * doc/posix-functions/fwrite.texi: Likewise.
36624 2011-09-25  Bruno Haible  <bruno@clisp.org>
36626         msvc-inval: Allow three invalid parameter handling modes.
36627         * lib/msvc-inval.h: Don't include <stdlib.h> here.
36628         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
36629         macros.
36630         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
36631         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
36632         SANE_LIBRARY_HANDLING as a no-op.
36633         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
36634         <stdlib.h>.
36635         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
36637 2011-09-25  Bruno Haible  <bruno@clisp.org>
36639         msvc-inval: Make handler multithread-safe.
36640         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
36641         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
36642         declarations.
36643         (gl_msvc_inval_current): New declaration.
36644         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
36645         Operate on the structure returned by gl_msvc_inval_current().
36646         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
36647         Remove varaiables.
36648         (tls_index, tls_initialized): New variables.
36649         (not_per_thread): New variable.
36650         (gl_msvc_inval_current): New function.
36651         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
36652         returned by gl_msvc_inval_current().
36654 2011-09-25  Bruno Haible  <bruno@clisp.org>
36656         msvc-inval: Install handler globally.
36657         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
36658         !_MSC_VER.
36659         (gl_msvc_invalid_parameter_handler): Remove declaration.
36660         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
36661         declarations.
36662         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
36663         Install the handler globally, don't uninstall it.
36664         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
36665         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
36666         currently valid, call RaiseException instead.
36667         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
36668         for !_MSC_VER.
36670 2011-09-25  Bruno Haible  <bruno@clisp.org>
36672         strerror_r-posix: Fix for MSVC 9.
36673         * lib/strerror_r.c (local_snprintf): New function.
36674         (snprintf): Define to local_snprintf, not to _snprintf.
36676 2011-09-25  Bruno Haible  <bruno@clisp.org>
36678         ftruncate: Support for MSVC 9.
36679         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
36680         (chsize_nothrow): New function.
36681         (chsize): Redefine as a macro.
36682         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
36683         * modules/ftruncate (Depends-on): Add msvc-inval.
36685 2011-09-25  Bruno Haible  <bruno@clisp.org>
36687         New module 'fstat'.
36688         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
36689         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
36690         * lib/fchdir.c (rpl_fstat): Remove function.
36691         * m4/fstat.m4: New file.
36692         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
36693         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
36694         declared.
36695         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
36696         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
36697         * modules/fstat: New file.
36698         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
36699         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
36700         is set.
36701         * doc/posix-functions/fstat.texi: Mention the new module and the
36702         problem on MSVC.
36703         * NEWS: Mention the change.
36704         * modules/acl (Depends-on): Add fstat.
36705         * modules/chdir-safer (Depends-on): Likewise.
36706         * modules/chown (Depends-on): Likewise.
36707         * modules/copy-file (Depends-on): Likewise.
36708         * modules/fchdir (Depends-on): Likewise.
36709         * modules/fdopendir (Depends-on): Likewise.
36710         * modules/fopen (Depends-on): Likewise.
36711         * modules/fts (Depends-on): Likewise.
36712         * modules/getcwd (Depends-on): Likewise.
36713         * modules/isapipe (Depends-on): Likewise.
36714         * modules/linkat (Depends-on): Likewise.
36715         * modules/lseek (Depends-on): Likewise.
36716         * modules/mkdir-p (Depends-on): Likewise.
36717         * modules/open (Depends-on): Likewise.
36718         * modules/openat (Depends-on): Likewise.
36719         * modules/read-file (Depends-on): Likewise.
36720         * modules/renameat (Depends-on): Likewise.
36721         * modules/utimens (Depends-on): Likewise.
36723 2011-09-25  Bruno Haible  <bruno@clisp.org>
36725         linkat: Fix compilation on MSVC 9.
36726         * lib/linkat.c: Don't include <stdint.h>.
36728 2011-09-25  Bruno Haible  <bruno@clisp.org>
36730         fclose: Support for MSVC 9.
36731         * lib/fclose.c: Include msvc-inval.h.
36732         (fclose_nothrow): New function.
36733         (rpl_fclose): Use it.
36734         * modules/fclose (Depends-on): Add msvc-inval.
36735         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
36737 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
36739         dup2: minor simplifications
36740         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
36741         that it's a performance win.
36742         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
36743         ! defined __CYGWIN__)" to "ifdef F_GETFL".
36745 2011-09-24  Jim Meyering  <meyering@redhat.com>
36747         test-futimens: avoid a warning from gcc -Wshadow
36748         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
36749         to avoid a shadowing warning.
36751 2011-09-24  Bruno Haible  <bruno@clisp.org>
36753         fdopen: Support for MSVC 9.
36754         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
36755         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
36756         * lib/fdopen.c: Include msvc-inval.h.
36757         (fdopen_nothrow): New function.
36758         (rpl_fdopen): Use it.
36759         * modules/fdopen (Depends-on): Add msvc-inval.
36760         * modules/fclose-tests (Depends-on): Add fdopen.
36761         * modules/fflush-tests (Depends-on): Likewise.
36762         * modules/fgetc-tests (Depends-on): Likewise.
36763         * modules/fputc-tests (Depends-on): Likewise.
36764         * modules/fread-tests (Depends-on): Likewise.
36765         * modules/freopen-tests (Depends-on): Likewise.
36766         * modules/fseeko-tests (Depends-on): Likewise.
36767         * modules/ftello-tests (Depends-on): Likewise.
36768         * modules/fwrite-tests  (Depends-on): Likewise.
36769         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
36771 2011-09-24  Bruno Haible  <bruno@clisp.org>
36773         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
36774         * modules/fgetc-tests (Depends-on): Add unistd.
36775         * modules/fputc-tests (Depends-on): Likewise.
36776         * modules/fread-tests (Depends-on): Likewise.
36777         * modules/fwrite-tests (Depends-on): Likewise.
36779 2011-09-24  Bruno Haible  <bruno@clisp.org>
36781         dup: Simplify autoconf test.
36782         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
36783         on gl_MSVC_INVAL's result.
36785 2011-09-24  Bruno Haible  <bruno@clisp.org>
36787         Tests for function fwrite().
36788         * modules/fwrite-tests: New file.
36789         * tests/test-fwrite.c: New file.
36790         * modules/stdio-tests (Depends-on): Add fwrite-tests.
36792         Tests for function fread().
36793         * modules/fread-tests: New file.
36794         * tests/test-fread.c: New file.
36795         * modules/stdio-tests (Depends-on): Add fread-tests.
36797         Activate fputc tests.
36798         * modules/stdio-tests (Depends-on): Add fputc-tests.
36800         Enhance fgetc, fputc tests.
36801         * tests/test-fgetc.c (main): Also test the stream's error indicator.
36802         * tests/test-fputc.c (main): Likewise.
36804 2011-09-24  Bruno Haible  <bruno@clisp.org>
36806         write: Support for MSVC 9.
36807         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
36808         is not 1.
36809         * lib/write.c (write_nothrow): New function.
36810         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
36811         not 1. Use write_nothrow.
36812         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
36813         invalid parameter handler.
36814         (gl_PREREQ_WRITE): New macro.
36815         * modules/write (Depends-on): Add msvc-inval.
36816         (configure.ac): Invoke gl_PREREQ_WRITE.
36817         * doc/posix-functions/write.texi: Mention the problem on MSVC.
36819 2011-09-24  Bruno Haible  <bruno@clisp.org>
36821         read: Fix last commit.
36822         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
36824 2011-09-24  Bruno Haible  <bruno@clisp.org>
36826         dup2: Fix last commit.
36827         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
36828         (rpl_dup2): Disable fcntl workaround on native Windows.
36830         sigprocmask: Make code safer.
36831         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
36832         section that changes macro definitions for this compilation unit.
36834 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
36836         dup2: clarify by coalescing Windows-specific material
36837         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
36838         "msvc-nothrow.h"' to the Windows-specific section, so that the
36839         Emacs source need not contain these include files.
36840         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
36841         Windows-specific fixes into this function rather than just the
36842         nothrow fix, as this shortens and clarifies the code.  Always
36843         define as a function, as that's a bit cleaner than having it be
36844         sometimes a function and sometimes a macro.
36845         (rpl_dup2): Move the Windows-specific stuff out of here and into
36846         ms_windows_dup2.  Don't protect the Haiku-related fix with
36847         "#if !defined __linux__", as the same code also works around
36848         a Linux kernel bug, and it doesn't add any system calls on any
36849         platform.  Add comment about FreeBSD 6.1.
36851         sigprocmask: move #include directive
36852         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
36853         Windows-specific section, so that the Emacs source need not
36854         contain msvc-inval.h.
36856 2011-09-23  Bruno Haible  <bruno@clisp.org>
36858         read: Support for MSVC 9.
36859         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
36860         is not 1.
36861         * lib/read.c (read_nothrow): New function.
36862         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
36863         read_nothrow.
36864         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
36865         invalid parameter handler.
36866         (gl_PREREQ_READ): New macro.
36867         * modules/read (Depends-on): Add msvc-inval.
36868         (configure.ac): Invoke gl_PREREQ_READ.
36869         * doc/posix-functions/read.texi: Mention the problem on MSVC.
36871 2011-09-23  Bruno Haible  <bruno@clisp.org>
36873         close: Support for MSVC 9.
36874         * lib/close.c: Include <errno.h>, msvc-inval.h.
36875         (close_nothrow): New function.
36876         (rpl_close): Use it.
36877         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
36878         invalid parameter handler.
36879         * modules/close (Depends-on): Add msvc-inval.
36880         * modules/dup2-tests (Depends-on): Add close.
36881         * modules/dup3-tests (Depends-on): Likewise.
36882         * modules/fcntl-tests (Depends-on): Likewise.
36883         * modules/spawn-pipe-tests (Depends-on): Likewise.
36884         * modules/unistd-safer-tests (Depends-on): Likewise.
36885         * doc/posix-functions/close.texi: Mention the problem on MSVC.
36887 2011-09-23  Bruno Haible  <bruno@clisp.org>
36889         New module 'dup'.
36890         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
36891         Allow replacement.
36892         * lib/dup.c: New file.
36893         * lib/fchdir.c (rpl_dup): Remove function.
36894         * m4/dup.m4: New file.
36895         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
36896         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
36897         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
36898         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
36899         * modules/dup: New file.
36900         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
36901         'dup' module is in use.
36902         * modules/fdopendir (Depends-on): Add dup.
36903         * modules/fdutimensat-tests (Depends-on): Likewise.
36904         * modules/fts (Depends-on): Likewise.
36905         * modules/futimens-tests (Depends-on): Likewise.
36906         * modules/posix_spawnp-tests (Depends-on): Likewise.
36907         * modules/unistd-safer-tests (Depends-on): Likewise.
36908         * modules/utimens-tests (Depends-on): Likewise.
36909         * doc/posix-functions/dup.texi: Mention the new module and the problem
36910         on MSVC.
36912 2011-09-23  Bruno Haible  <bruno@clisp.org>
36914         getdtablesize: Support for MSVC 9.
36915         * lib/getdtablesize.c: Include msvc-inval.h.
36916         (_setmaxstdio_nothrow): New function.
36917         (_setmaxstdio): Redefine it.
36918         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
36919         * modules/getdtablesize (Depends-on): Add msvc-inval.
36920         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
36922 2011-09-23  Bruno Haible  <bruno@clisp.org>
36924         signal-h: Rename from signal.
36925         * modules/signal-h: Renamed from modules/signal.
36926         * modules/pthread_sigmask (Depends-on): Update.
36927         * modules/raise (Depends-on): Likewise.
36928         * modules/sigaction (Depends-on): Likewise.
36929         * modules/sigpipe (Depends-on): Likewise.
36930         * modules/sigprocmask (Depends-on): Likewise.
36931         * modules/sys_select (Depends-on): Likewise.
36932         * modules/signal-h-tests: Renamed from modules/signal-tests.
36933         (Files, Depends-on, Makefile.am): Update.
36934         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
36935         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
36936         (Files, Makefile.am): Update.
36937         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
36938         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
36939         * modules/signal: New placeholder file.
36940         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
36941         * doc/posix-headers/signal.texi: Update.
36942         * NEWS: Mention the change.
36944 2011-09-23  Bruno Haible  <bruno@clisp.org>
36946         sigprocmask: Avoid crashes through signal() on MSVC 9.
36947         * lib/sigprocmask.c: Include msvc-inval.h.
36948         (signal_nothrow): New function.
36949         (signal): Redefine it.
36950         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
36951         * modules/sigprocmask (Depends-on): Add msvc-inval.
36952         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
36954 2011-09-23  Bruno Haible  <bruno@clisp.org>
36956         Tests for module 'raise'.
36957         * modules/raise-tests: New file.
36958         * tests/test-raise.c: New file.
36960         raise: Support for MSVC.
36961         * lib/signal.in.h (raise): New declaration.
36962         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
36963         for native Windows platforms.
36964         * m4/raise.m4: New file.
36965         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
36966         HAVE_RAISE, REPLACE_RAISE.
36967         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
36968         REPLACE_RAISE.
36969         * modules/raise (Status, Notice): Remove fields.
36970         (Files): Add m4/raise.m4.
36971         (Depends-on): Add signal, msvc-inval.
36972         (configure.ac): Use the common idioms.
36973         (Maintainer): Add me.
36974         * tests/test-signal-c++.cc: Check the signature of raise.
36975         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
36977 2011-09-23  Bruno Haible  <bruno@clisp.org>
36979         pipe2: Fix compilation on pre-C99 compilers.
36980         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
36982 2011-09-23  Bruno Haible  <bruno@clisp.org>
36984         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
36985         * lib/msvc-nothrow.h: New file.
36986         * lib/msvc-nothrow.c: New file.
36987         * m4/msvc-nothrow.m4: New file.
36988         * modules/msvc-nothrow: New file.
36989         * lib/dup2.c: Include msvc-nothrow.h.
36990         (rpl_dup2): No need to protect _get_osfhandle call here.
36991         * lib/accept4.c: Include msvc-nothrow.h.
36992         * lib/error.c: Likewise.
36993         * lib/fcntl.c: Likewise.
36994         * lib/lseek.c: Likewise.
36995         * lib/nonblocking.c: Likewise.
36996         * lib/poll.c: Likewise.
36997         * lib/read.c: Likewise.
36998         * lib/select.c: Likewise.
36999         * lib/sockets.h: Likewise.
37000         * lib/sockets.c: Likewise.
37001         * lib/stdio-read.c: Likewise.
37002         * lib/stdio-write.c: Likewise.
37003         * lib/write.c: Likewise.
37004         * lib/w32sock.h: Likewise.
37005         * lib/w32spawn.h: Likewise.
37006         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
37007         * lib/fsync.c: Likewise.
37008         * lib/isapipe.c: Likewise.
37009         * modules/dup2 (Depends-on): Add msvc-nothrow.
37010         * modules/accept4 (Depends-on): Likewise.
37011         * modules/error (Depends-on): Likewise.
37012         * modules/fcntl (Depends-on): Likewise.
37013         * modules/lseek (Depends-on): Likewise.
37014         * modules/nonblocking (Depends-on): Likewise.
37015         * modules/poll (Depends-on): Likewise.
37016         * modules/read (Depends-on): Likewise.
37017         * modules/select (Depends-on): Likewise.
37018         * modules/sockets (Depends-on): Likewise.
37019         * modules/sigpipe (Depends-on): Likewise.
37020         * modules/write (Depends-on): Likewise.
37021         * modules/accept (Depends-on): Likewise.
37022         * modules/bind (Depends-on): Likewise.
37023         * modules/connect (Depends-on): Likewise.
37024         * modules/gethostname (Depends-on): Likewise.
37025         * modules/getpeername (Depends-on): Likewise.
37026         * modules/getsockname (Depends-on): Likewise.
37027         * modules/getsockopt (Depends-on): Likewise.
37028         * modules/ioctl (Depends-on): Likewise.
37029         * modules/listen (Depends-on): Likewise.
37030         * modules/recv (Depends-on): Likewise.
37031         * modules/recvfrom (Depends-on): Likewise.
37032         * modules/send (Depends-on): Likewise.
37033         * modules/sendto (Depends-on): Likewise.
37034         * modules/setsockopt (Depends-on): Likewise.
37035         * modules/shutdown (Depends-on): Likewise.
37036         * modules/socket (Depends-on): Likewise.
37037         * modules/execute (Depends-on): Likewise.
37038         * modules/spawn-pipe (Depends-on): Likewise.
37039         * modules/flock (Depends-on): Likewise.
37040         * modules/fsync (Depends-on): Likewise.
37041         * modules/isapipe (Depends-on): Likewise.
37042         * tests/test-cloexec.c: Include msvc-nothrow.h.
37043         * tests/test-dup-safer.c: Likewise.
37044         * tests/test-dup2.c: Likewise.
37045         * tests/test-dup3.c: Likewise.
37046         * tests/test-fcntl.c: Likewise.
37047         * tests/test-pipe.c: Likewise.
37048         * tests/test-pipe2.c: Likewise.
37049         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
37050         * modules/unistd-safer-tests (Depends-on): Likewise.
37051         * modules/dup2-tests (Depends-on): Likewise.
37052         * modules/dup3-tests (Depends-on): Likewise.
37053         * modules/fcntl-tests (Depends-on): Likewise.
37054         * modules/pipe-posix-tests (Depends-on): Likewise.
37055         * modules/pipe2-tests (Depends-on): Likewise.
37057 2011-09-23  Bruno Haible  <bruno@clisp.org>
37059         dup2: Make code more maintainable.
37060         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
37061         (rpl_dup2): Use it.
37062         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
37063         * modules/dup2 (configure.ac): Invoke it.
37064         Reported by Paul Eggert.
37066 2011-09-23  Bruno Haible  <bruno@clisp.org>
37068         msvc-inval: Fix compilation error.
37069         * lib/msvc-inval.h: Include <excpt.h>.
37071 2011-09-23  Bruno Haible  <bruno@clisp.org>
37073         mkdir: Tweak for MSVC 9.
37074         * lib/sys_stat.in.h: Update comments.
37075         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
37077         Tests for module 'chdir'.
37078         * modules/chdir-tests: New file.
37079         * tests/test-chdir.c: New file.
37081         New module 'chdir'.
37082         * modules/chdir: New file.
37083         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
37084         (chdir): New declaration.
37085         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
37086         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
37087         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
37088         * tests/test-unistd-c++.cc: Check signature of chdir.
37089         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
37090         * modules/chdir-long (Depends-on): Add chdir.
37091         * modules/fchdir (Depends-on): Likewise.
37092         * modules/rename (Depends-on): Likewise.
37093         * modules/savewd (Depends-on): Likewise.
37095         rmdir: Support for mingw, MSVC 9.
37096         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
37097         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
37099         getcwd: Tweak for MSVC 9.
37100         * lib/unistd.in.h: Update comments.
37101         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
37103 2011-09-22  Bruno Haible  <bruno@clisp.org>
37105         strerror_r-posix: Avoid a link error on MSVC.
37106         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
37107         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
37109 2011-09-22  Bruno Haible  <bruno@clisp.org>
37111         select: Avoid link errors on MSVC.
37112         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
37113         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
37114         * modules/pselect (Link): Likewise.
37115         * NEWS: Mention the change.
37116         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
37117         test-select-stdin against $(LIB_SELECT).
37118         * modules/pselect-tests (Makefile.am): Link test-pselect against
37119         $(LIB_SELECT).
37121 2011-09-22  Bruno Haible  <bruno@clisp.org>
37123         select: Avoid compilation error on MSVC.
37124         * lib/select.c: Don't include <stdbool.h>.
37126 2011-09-21  Bruno Haible  <bruno@clisp.org>
37128         Consolidate all uses of PATH_MAX in *.m4 files.
37129         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
37130         macros.
37131         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
37132         and gl_PATHMAX_SNIPPET.
37133         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
37134         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
37135         * modules/chdir-long (Files): Add m4/pathmax.m4.
37136         * modules/getcwd (Files): Likewise.
37138 2011-09-21  Bruno Haible  <bruno@clisp.org>
37140         ftruncate: Un-deprecate, concentrate on Win32 support.
37141         * modules/ftruncate (Status, Notice): Remove sections.
37142         (Depends-on): Add largefile.
37143         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
37144         non-mingw platforms.
37145         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
37146         include <io.h>.
37147         * modules/perror-tests (Depends-on): Add ftruncate.
37148         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
37149         'ftruncate' module.
37151 2011-09-21  Bruno Haible  <bruno@clisp.org>
37153         Add dependencies to new dirent related modules.
37154         * modules/opendir (Depends-on): Add closedir.
37155         * modules/getcwd (Depends-on): Add opendir, closedir.
37156         * modules/dirent-safer-tests (Depends-on): Likewise.
37157         * modules/fdopendir-tests (Depends-on): Likewise.
37158         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
37159         * modules/renameat-tests (Depends-on): Likewise.
37161 2011-09-21  Bruno Haible  <bruno@clisp.org>
37163         opendir: Avoid compilation error on mingw.
37164         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
37165         * modules/opendir (Depends-on): Add unistd.
37167 2011-09-21  Bruno Haible  <bruno@clisp.org>
37169         ftruncate tests: Avoid a test failure on mingw.
37170         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
37172 2011-09-21  Bruno Haible  <bruno@clisp.org>
37174         select tests: Avoid test failures on OSF/1 5.1 and mingw.
37175         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
37176         native Windows.
37178 2011-09-21  Bruno Haible  <bruno@clisp.org>
37180         New module 'fdopen'.
37181         * lib/stdio.in.h (fdopen): New declaration.
37182         * lib/fdopen.c: New file.
37183         * m4/fdopen.m4: New file.
37184         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
37185         REPLACE_FDOPEN.
37186         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
37187         REPLACE_FDOPEN.
37188         * modules/fdopen: New file.
37189         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
37190         * tests/test-stdio-c++.cc: Check signature of fdopen.
37191         * doc/posix-functions/fdopen.texi: Mention the new module.
37193 2011-09-21  Bruno Haible  <bruno@clisp.org>
37195         unlockpt tests: Avoid test failure on NetBSD 5.1.
37196         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
37197         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
37199 2011-09-21  Bruno Haible  <bruno@clisp.org>
37201         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
37202         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
37203         * tests/test-getlogin_r.c (main): Likewise.
37205 2011-09-20  Bruno Haible  <bruno@clisp.org>
37207         time tests: Don't require pid_t.
37208         * doc/posix-headers/time.texi: Revert last change.
37209         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
37210         * tests/test-time.c: Comment out the check for pid_t.
37212 2011-09-20  Bruno Haible  <bruno@clisp.org>
37214         fsync tests: Avoid a test failure on mingw.
37215         * tests/test-fsync.c (main): Allow a failure with EIO.
37217 2011-09-20  Bruno Haible  <bruno@clisp.org>
37219         euidaccess: Update comments.
37220         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
37222 2011-09-20  Bruno Haible  <bruno@clisp.org>
37224         Ensure EBADF returns for socket functions on mingw.
37225         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
37226         descriptor is invalid.
37227         * lib/bind.c (rpl_bind): Likewise.
37228         * lib/connect.c (rpl_connect): Likewise.
37229         * lib/getpeername.c (rpl_getpeername): Likewise.
37230         * lib/getsockname.c (rpl_getsockname): Likewise.
37231         * lib/getsockopt.c (rpl_getsockopt): Likewise.
37232         * lib/listen.c (rpl_listen): Likewise.
37233         * lib/recv.c (rpl_recv): Likewise.
37234         * lib/recvfrom.c (rpl_recvfrom): Likewise.
37235         * lib/send.c (rpl_send): Likewise.
37236         * lib/sendto.c (rpl_sendto): Likewise.
37237         * lib/setsockopt.c (rpl_setsockopt): Likewise.
37238         * lib/shutdown.c (rpl_shutdown): Likewise.
37240 2011-09-20  Bruno Haible  <bruno@clisp.org>
37242         select tests: EBADF tests.
37243         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
37244         test_bad_fd): New functions.
37245         (test_function): Invoke also test_bad_fd.
37247 2011-09-20  Bruno Haible  <bruno@clisp.org>
37249         Tests for module 'posix_spawn_file_actions_addopen.
37250         * modules/posix_spawn_file_actions_addopen-tests: New file.
37251         * tests/test-posix_spawn_file_actions_addopen.c: New file.
37253         Tests for module 'posix_spawn_file_actions_adddup2'.
37254         * modules/posix_spawn_file_actions_adddup2-tests: New file.
37255         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
37257         Tests for module 'posix_spawn_file_actions_addclose'.
37258         * modules/posix_spawn_file_actions_addclose-tests: New file.
37259         * tests/test-posix_spawn_file_actions_addclose.c: New file.
37261 2011-09-20  Bruno Haible  <bruno@clisp.org>
37263         Tests for module 'unlockpt'.
37264         * modules/unlockpt-tests: New file.
37265         * tests/test-unlockpt.c: New file.
37266         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
37268         Tests for module 'grantpt'.
37269         * modules/grantpt-tests: New file.
37270         * tests/test-grantpt.c: New file.
37271         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
37273 2011-09-20  Bruno Haible  <bruno@clisp.org>
37275         freopen tests: EBADF tests.
37276         * tests/test-freopen.c: Include errno.h, unistd.h.
37277         (main): Add tests for EBADF, commented out for the moment.
37279         fclose tests: EBADF tests.
37280         * tests/test-fclose.c (main): Add tests for EBADF.
37282         fflush tests: EBADF tests.
37283         * tests/test-fflush.c: Include errno.h, macros.h.
37284         (main): Add tests for EBADF.
37286         ftello tests: EBADF tests.
37287         * tests/test-ftello4.sh: New file.
37288         * tests/test-ftello4.c: New file.
37289         * modules/ftello-tests (Files): Add them.
37290         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
37292         fseeko tests: EBADF tests.
37293         * tests/test-fseeko4.sh: New file.
37294         * tests/test-fseeko4.c: New file.
37295         * modules/fseeko-tests (Files): Add them.
37296         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
37298         Tests for function fputc().
37299         * modules/fputc-tests: New file.
37300         * tests/test-fputc.c: New file.
37301         * modules/stdio-tests (Depends-on): Add fputc-tests.
37303         Tests for function fgetc().
37304         * modules/fgetc-tests: New file.
37305         * tests/test-fgetc.c: New file.
37306         * modules/stdio-tests (Depends-on): Add fgetc-tests.
37308         Tests for function fdopen().
37309         * modules/fdopen-tests: New file.
37310         * tests/test-fdopen.c: New file.
37311         * modules/stdio-tests (Depends-on): Add fdopen-tests.
37313         Tests for module 'vdprintf'.
37314         * modules/vdprintf-tests: New file.
37315         * tests/test-vdprintf.c: New file.
37317         Tests for module 'dprintf'.
37318         * modules/dprintf-tests: New file.
37319         * tests/test-dprintf.c: New file.
37321 2011-09-20  Bruno Haible  <bruno@clisp.org>
37323         Tests for module 'ioctl'.
37324         * modules/ioctl-tests: New file.
37325         * tests/test-ioctl.c: New file.
37327 2011-09-20  Bruno Haible  <bruno@clisp.org>
37329         fcntl tests: EBADF tests.
37330         * tests/test-fcntl.c (main): Add more tests for EBADF.
37332 2011-09-20  Bruno Haible  <bruno@clisp.org>
37334         utimensat tests: EBADF tests.
37335         * tests/test-utimensat.c (main): Add tests for EBADF.
37337         renameat tests: EBADF tests.
37338         * tests/test-renameat.c (main): Add tests for EBADF.
37340         mkfifoat tests: EBADF tests.
37341         * tests/test-mkfifoat.c (main): Add tests for EBADF.
37343         readlinkat tests: EBADF tests.
37344         * tests/test-readlinkat.c (main): Add tests for EBADF.
37346         symlinkat tests: EBADF tests.
37347         * tests/test-symlinkat.c (main): Add tests for EBADF.
37349         linkat tests: EBADF tests.
37350         * tests/test-linkat.c (main): Add tests for EBADF.
37352         Tests for module 'faccessat'.
37353         * modules/faccessat-tests: New file.
37354         * tests/test-faccessat.c: New file.
37356         fdopendir tests: EBADF tests.
37357         * tests/test-fdopendir.c (main): Add more tests for EBADF.
37359         openat tests: EBADF tests.
37360         * tests/test-fchownat.c (main): Add tests for EBADF.
37361         * tests/test-fstatat.c (main): Likewise.
37362         * tests/test-mkdirat.c (main): Likewise.
37363         * tests/test-openat.c (main): Likewise.
37364         * tests/test-unlinkat.c (main): Likewise.
37365         * tests/test-fchmodat.c: New file.
37366         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
37367         (Makefile.am): Also run 'test-fchmodat'.
37369 2011-09-20  Bruno Haible  <bruno@clisp.org>
37371         utimens, futimens, fdutimensat tests: EBADF tests.
37372         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
37374         Tests for function fstat().
37375         * modules/fstat-tests: New file.
37376         * tests/test-fstat.c: New file.
37377         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
37379 2011-09-20  Bruno Haible  <bruno@clisp.org>
37381         test-ttyname_r tests: EBADF tests.
37382         * tests/test-ttyname_r.c (main): Add tests for EBADF.
37384         Tests for module 'isatty'.
37385         * modules/isatty-tests: New file.
37386         * tests/test-isatty.c: New file.
37388         Tests for module 'write'.
37389         * modules/write-tests: New file.
37390         * tests/test-write.c: New file.
37392         Tests for module 'read'.
37393         * modules/read-tests: New file.
37394         * tests/test-read.c: New file.
37396         pwrite tests: EBADF tests.
37397         * tests/test-pwrite.c (main): Add tests for EBADF.
37399         pread tests: EBADF tests.
37400         * tests/test-pread.c (main): Add tests for EBADF.
37402         lseek tests: EBADF tests.
37403         * tests/test-lseek.c (main): Add more tests for EBADF.
37405         Tests for module 'ftruncate'.
37406         * modules/ftruncate-tests: New file.
37407         * tests/test-ftruncate.sh: New file.
37408         * tests/test-ftruncate.c: New file.
37410         fsync tests: EBADF tests.
37411         * tests/test-fsync.c (main): Add more tests for EBADF.
37413         fdatasync tests: EBADF tests.
37414         * tests/test-fdatasync.c (main): Add more tests for EBADF.
37416         Tests for module 'fchown'.
37417         * modules/fchown-tests: New file.
37418         * tests/test-fchown.c: New file.
37420         Tests for module 'fchmod'.
37421         * modules/fchmod-tests: New file.
37422         * tests/test-fchmod.c: New file.
37424         fchdir tests: EBADF tests.
37425         * tests/test-fchdir.c (main): Add more tests for EBADF.
37427         dup2 tests: EBADF tests.
37428         * tests/test-dup2.c (main): Add more tests for EBADF.
37430         Tests for module 'dup'.
37431         * modules/dup-tests: New file.
37432         * tests/test-dup.c: New file.
37434         Tests for module 'close'.
37435         * modules/close-tests: New file.
37436         * tests/test-close.c: New file.
37438 2011-09-20  Bruno Haible  <bruno@clisp.org>
37440         Tests for module 'shutdown'.
37441         * modules/shutdown-tests: New file.
37442         * tests/test-shutdown.c: New file.
37444         Tests for module 'setsockopt'.
37445         * modules/setsockopt-tests: New file.
37446         * tests/test-setsockopt.c: New file.
37448         Tests for module 'sendto'.
37449         * modules/sendto-tests: New file.
37450         * tests/test-sendto.c: New file.
37452         Tests for module 'send'.
37453         * modules/send-tests: New file.
37454         * tests/test-send.c: New file.
37456         Tests for module 'recvfrom'.
37457         * modules/recvfrom-tests: New file.
37458         * tests/test-recvfrom.c: New file.
37460         Tests for module 'recv'.
37461         * modules/recv-tests: New file.
37462         * tests/test-recv.c: New file.
37464         Tests for module 'listen'.
37465         * modules/listen-tests: New file.
37466         * tests/test-listen.c: New file.
37468         Tests for module 'getsockopt'.
37469         * modules/getsockopt-tests: New file.
37470         * tests/test-getsockopt.c: New file.
37472         Tests for module 'getsockname'.
37473         * modules/getsockname-tests: New file.
37474         * tests/test-getsockname.c: New file.
37476         Tests for module 'getpeername'.
37477         * modules/getpeername-tests: New file.
37478         * tests/test-getpeername.c: New file.
37480         Tests for module 'connect'.
37481         * modules/connect-tests: New file.
37482         * tests/test-connect.c: New file.
37484         Tests for module 'bind'.
37485         * modules/bind-tests: New file.
37486         * tests/test-bind.c: New file.
37488         accept4 tests: Fix for native Windows.
37489         * tests/test-accept4.c: Include sockets.h.
37490         (main): Invoke gl_sockets_startup.
37491         * modules/accept4-tests (Depends-on): Add sockets.
37493         accept tests: Fix for native Windows.
37494         * tests/test-accept.c: Include sockets.h.
37495         (main): Invoke gl_sockets_startup.
37496         * modules/accept-tests (Depends-on): Add sockets.
37498 2011-09-19  Bruno Haible  <bruno@clisp.org>
37500         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
37501         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
37502         do...while(0).
37503         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
37504         Suggested by Paul Eggert.
37506 2011-09-19  Bruno Haible  <bruno@clisp.org>
37508         sched: Ensure pid_t is defined.
37509         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
37510         not define pid_t.
37511         * lib/sched.in.h: Include <sys/types.h>.
37512         * doc/posix-headers/sched.texi: Mention the pid_t problem.
37513         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37515 2011-09-19  Bruno Haible  <bruno@clisp.org>
37517         msvc-inval: Ensure the entire expansion is a single statement.
37518         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
37519         of braces.
37521 2011-09-19  Jim Meyering  <meyering@redhat.com>
37523         tests: use printf, not echo in init.sh's warn_ function
37524         * tests/init.sh (warn_): Use printf, not echo.  The latter would
37525         misbehave when given strings containing a backslash or starting
37526         with e.g., -n.  James Youngman suggested setting IFS.
37528 2011-09-19  Eric Blake  <eblake@redhat.com>
37530         futimens: enhance test
37531         * tests/test-futimens.h (test_futimens): Also check for EBADF on
37532         closed non-negative fd.
37534         date: accept 'hence' as opposite of 'ago'
37535         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
37536         * tests/test-parse-datetime.c (main): Enhance test.
37537         Suggested by Jesse Wilson.
37539 2011-09-19  Jim Meyering  <meyering@redhat.com>
37541         getcwd: don't fail in a deep directory on a system without openat
37542         Before this change, getcwd would fail when called from a directory
37543         of depth PATH_MAX / 3 or greater.  That was due to the fact that
37544         the non-openat implementation used "..", "../..", "../../..", etc.
37545         to access ancestor directories.  With too many, that string would
37546         be longer than PATH_MAX.
37547         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
37548         using gnulib's openat replacement.
37549         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
37550         we're using the replacement function.
37552 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
37554         maint.mk: avoid warnings from perl about missing files
37555         * top/maint.mk (def_sym_regex): Ignore files listed in
37556         $(gl_other_headers_) that do not exist, say because a project
37557         does not use a corresponding module.
37559 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
37561         stat: use pathmax.h only if needed
37562         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
37563         This is better for Emacs, which does not have a mingw port and
37564         therefore can avoid the pathmax module.
37566         utimens: remove dependency on dup2
37567         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
37568         to work around the Linux kernel bug.
37569         * modules/utimens (Depends-on): Remove dup2.
37571 2011-09-18  Bruno Haible  <bruno@clisp.org>
37573         inet_ntop, inet_pton: Look for it also in libresolv.
37574         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
37575         libnsl, search for it in libresolv.
37576         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
37577         Needed on Solaris 7.
37579 2011-09-18  Bruno Haible  <bruno@clisp.org>
37581         accept, accept4 tests: Avoid link error on Solaris.
37582         * modules/accept-tests (Makefile.am): Link test-accept against
37583         $(LIBSOCKET).
37584         * modules/accept4-tests (Makefile.am): Link test-accept4 against
37585         $(LIBSOCKET).
37587         accept4: Avoid link error on Solaris.
37588         * modules/accept4 (Link): New section.
37590         socket functions: Avoid link errors on Solaris.
37591         * modules/accept (Depends-on): Add socketlib.
37592         (Link): New section.
37593         * modules/bind (Depends-on): Add socketlib.
37594         (Link): New section.
37595         * modules/connect (Depends-on): Add socketlib.
37596         (Link): New section.
37597         * modules/getpeername (Depends-on): Add socketlib.
37598         (Link): New section.
37599         * modules/getsockname (Depends-on): Add socketlib.
37600         (Link): New section.
37601         * modules/getsockopt (Depends-on): Add socketlib.
37602         (Link): New section.
37603         * modules/listen (Depends-on): Add socketlib.
37604         (Link): New section.
37605         * modules/recv (Depends-on): Add socketlib.
37606         (Link): New section.
37607         * modules/recvfrom (Depends-on): Add socketlib.
37608         (Link): New section.
37609         * modules/send (Depends-on): Add socketlib.
37610         (Link): New section.
37611         * modules/sendto (Depends-on): Add socketlib.
37612         (Link): New section.
37613         * modules/setsockopt (Depends-on): Add socketlib.
37614         (Link): New section.
37615         * modules/shutdown (Depends-on): Add socketlib.
37616         (Link): New section.
37617         * modules/socket (Depends-on): Add socketlib.
37618         (Link): New section.
37620 2011-09-18  Bruno Haible  <bruno@clisp.org>
37622         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
37623         * tests/test-ptsname.c (main): Terminate the test if it takes longer
37624         than 5 seconds.
37625         * modules/ptsname-tests (configure.ac): Test for alarm.
37627 2011-09-18  Bruno Haible  <bruno@clisp.org>
37629         posix_spawn_file_actions_add*: Fix module dependencies.
37630         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
37631         posix_spawn_file_actions_init.
37632         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
37633         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
37635 2011-09-18  Bruno Haible  <bruno@clisp.org>
37637         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
37638         * tests/test-rename.h (test_rename): Allow error code EEXIST.
37639         * tests/test-renameat.c (main): Likewise.
37641 2011-09-18  Bruno Haible  <bruno@clisp.org>
37643         Tests for module 'accept4'.
37644         * modules/accept4-tests: New file.
37645         * tests/test-accept4.c: New file.
37647 2011-09-18  Bruno Haible  <bruno@clisp.org>
37649         Tests for module 'accept'.
37650         * modules/accept-tests: New file.
37651         * tests/test-accept.c: New file.
37653 2011-09-18  Bruno Haible  <bruno@clisp.org>
37655         dup2: Support for MSVC.
37656         * lib/dup2.c: Include msvc-inval.h.
37657         (rpl_dup2): Handle invalid parameter notifications during dup2 and
37658         _get_osfhandle calls.
37659         * modules/dup2 (Depends-on): Add msvc-inval.
37660         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
37662         New module 'msvc-inval'.
37663         * lib/msvc-inval.h: New file.
37664         * lib/msvc-inval.c: New file.
37665         * m4/msvc-inval.m4: New file.
37666         * modules/msvc-inval: New file.
37668 2011-09-17  Bruno Haible  <bruno@clisp.org>
37670         Tests for module 'pclose'.
37671         * modules/pclose-tests: New file.
37673         New module 'pclose'.
37674         * lib/stdio.in.h (pclose): New declaration.
37675         * lib/pclose.c: New file.
37676         * m4/pclose.m4: New file.
37677         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
37678         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
37679         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
37680         * modules/pclose: New file.
37681         * modules/popen-tests (Depends-on): Add pclose.
37682         * modules/popen-safer-tests (Depends-on): Likewise.
37683         * doc/posix-functions/pclose.texi: Mention the new module.
37685 2011-09-17  Bruno Haible  <bruno@clisp.org>
37687         popen: Support for MSVC.
37688         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
37689         * lib/popen.c (popen): Provide alternate definition for native Windows.
37690         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
37691         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
37692         * modules/popen (Depends-on, configure.ac): Update condition.
37693         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
37694         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
37695         fixed.
37697 2011-09-17  Bruno Haible  <bruno@clisp.org>
37699         isnanl, isnand, isnanf: Work around MSVC bug.
37700         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
37702 2011-09-17  Bruno Haible  <bruno@clisp.org>
37704         sys_socket tests: Fix recent mistake.
37705         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
37707 2011-09-17  Bruno Haible  <bruno@clisp.org>
37709         putenv: Support for MSVC.
37710         * modules/putenv (Depends-on): Add environ.
37711         * lib/putenv.c (environ): Disable declaration.
37712         * lib/unistd.in.h: Update comment.
37714 2011-09-17  Bruno Haible  <bruno@clisp.org>
37716         math: Avoid macro redefinition warnings on MSVC.
37717         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
37718         Undefine before redefining.
37720 2011-09-17  Bruno Haible  <bruno@clisp.org>
37722         doc: Mention functions which are declared as macros.
37723         * doc/posix-functions/*[fl].texi: Mention that some functions are
37724         defined as macros with arguments only.
37726 2011-09-17  Bruno Haible  <bruno@clisp.org>
37728         Add dependencies to new dirent related modules.
37729         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
37730         * modules/fts (Depends-on): Likewise.
37731         * modules/glob (Depends-on): Likewise.
37732         * modules/savedir (Depends-on): Likewise.
37733         * modules/scandir (Depends-on): Likewise.
37734         * modules/dirent-safer (Depends-on): Add opendir, closedir.
37735         * modules/fdopendir (Depends-on): Add opendir.
37737 2011-09-17  Bruno Haible  <bruno@clisp.org>
37739         inet_pton: Support for MSVC on Windows Vista or newer.
37740         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
37741         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
37742         HAVE_DECL_INET_PTON is defined.
37743         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
37744         On platforms with <winsock2.h>, test whether inet_pton is declared in
37745         <ws2tcpip.h>. If so, arrange to replace it.
37746         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
37747         REPLACE_INET_PTON.
37748         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
37749         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
37750         (Depends-on, configure.ac): Update condition.
37751         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
37753 2011-09-17  Bruno Haible  <bruno@clisp.org>
37755         inet_ntop: Support for MSVC on Windows Vista or newer.
37756         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
37757         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
37758         HAVE_DECL_INET_NTOP is defined.
37759         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
37760         On platforms with <winsock2.h>, test whether inet_ntop is declared in
37761         <ws2tcpip.h>. If so, arrange to replace it.
37762         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
37763         REPLACE_INET_NTOP.
37764         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
37765         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
37766         (Depends-on, configure.ac): Update condition.
37767         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
37769 2011-09-16  Eric Blake  <eblake@redhat.com>
37771         test-fsync: yet another enhancement
37772         * tests/test-fsync.c (main): Also test behavior on read-only text
37773         file.
37775 2011-09-16  Bruno Haible  <bruno@clisp.org>
37777         Enhance fsync, fdatasync tests.
37778         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
37779         * tests/test-fdatasync.c (main): Likewise.
37781 2011-09-16  Bruno Haible  <bruno@clisp.org>
37783         Support for MSVC compiler: Ensure mode_t gets defined.
37784         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
37785         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37786         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
37787         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
37788         * tests/test-fcntl-h.c: Check that mode_t is defined.
37789         * tests/test-sys_stat.c: Likewise.
37790         * tests/test-sys_types.c: Likewise.
37791         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
37792         * doc/posix-headers/sys_stat.texi: Likewise.
37793         * doc/posix-headers/sys_types.texi: Likewise.
37795 2011-09-16  Bruno Haible  <bruno@clisp.org>
37797         sys_stat: Support for MSVC.
37798         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
37799         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
37800         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
37801         MSVC.
37803 2011-09-16  Bruno Haible  <bruno@clisp.org>
37805         Support for MSVC compiler: Ensure off_t gets defined.
37806         * lib/unistd.in.h: Include <sys/types.h>.
37807         * tests/test-fcntl-h.c: Check that off_t is defined.
37808         * tests/test-sys_stat.c: Likewise.
37809         * tests/test-sys_types.c: Likewise.
37811 2011-09-16  Eric Blake  <eblake@redhat.com>
37813         fdatasync: port to Solaris
37814         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
37815         * modules/fdatasync (Link): Document it.
37816         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
37818         fdatasync: port to MacOS X 10.7
37819         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
37820         declared.
37821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
37822         * modules/unistd (Makefile.am): Substitute it.
37823         * lib/unistd.in.h (fdatasync): Declare on MacOS.
37824         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
37826         fdatasync: minor improvements
37827         * modules/fdatasync (Depends-on): Add condition for fsync.
37828         * lib/fdatasync.c (fdatasync): Add comment.
37829         * tests/test-unistd-c++.cc: Test fdatasync.
37831         unistd: update refs to newer POSIX
37832         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
37833         Suggested by Bruno Haible.
37835         fdatasync: new module
37836         * modules/fsync (Description): Document difference to fdatasync.
37837         * modules/fdatasync: New module.
37838         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
37839         * lib/fdatasync.c (fdatasync): Likewise.
37840         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
37841         defaults.
37842         * modules/unistd (Makefile.am): Set witnesses.
37843         * lib/unistd.in.h (fdatasync): Declare.
37844         * MODULES.html.sh: Document it.
37845         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
37846         * modules/fdatasync-tests: New test.
37847         * tests/test-fdatasync.c: Likewise.
37849 2011-09-16  Eric Blake  <eblake@redhat.com>
37851         test-fsync: enhance tests
37852         * modules/fsync-tests (Depends-on): Add errno, for mingw.
37853         * tests/test-fsync.c (main): Enhance test.
37855 2011-09-15  Bruno Haible  <bruno@clisp.org>
37857         Support for MSVC compiler: Ensure ssize_t gets defined.
37858         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
37859         * doc/posix-headers/stdio.texi: Likewise.
37860         * modules/stdio (Depends-on): Add ssize_t.
37861         * modules/sys_socket (Depends-on): Likewise.
37862         * modules/sys_types (Depends-on): Likewise.
37863         * modules/sys_uio (Depends-on): Likewise.
37864         * modules/unistd (Depends-on): Likewise.
37865         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
37866         * tests/test-sys_types.c: Check that ssize_t is defined.
37868 2011-09-14  Bruno Haible  <bruno@clisp.org>
37870         Avoid using #, the m4 comment starter character, near brackets.
37871         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
37872         delimiter character in sed expressions.
37873         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
37874         Suggested by Eric Blake.
37876         Properly quote AC_CHECK_DECLS' 4th argument.
37877         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
37878         argument.
37879         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
37880         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
37881         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37882         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
37883         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
37884         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
37885         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
37886         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
37887         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
37888         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
37889         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
37890         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
37891         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
37892         * m4/isinf.m4 (gl_ISINF): Likewise.
37893         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
37894         * m4/readutmp.m4 (gl_READUTMP): Likewise.
37895         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37896         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
37897         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
37898         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
37899         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
37900         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
37901         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
37902         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
37903         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
37904         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
37905         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
37906         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
37907         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37908         Reported by Eric Blake.
37910         Properly quote AC_CHECK_DECL's 4th argument.
37911         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
37912         argument.
37913         * m4/argp.m4 (gl_ARGP): Likewise.
37914         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
37915         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
37916         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
37917         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
37918         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
37919         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
37920         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
37921         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
37922         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
37923         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
37924         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
37925         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
37926         Reported by Eric Blake.
37928 2011-09-14  Eric Blake  <eblake@redhat.com>
37930         opendir: avoid compile warning
37931         * lib/opendir.c (includes): Always include errno.h.
37932         Reported by Tatsuro MATSUOKA.
37934 2011-09-14  Jim Meyering  <meyering@redhat.com>
37936         maint.mk: sc_tight_scope: propagate failure from sub-make
37937         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
37938         Reported by Martin von Gagern.
37940 2011-09-13  Bruno Haible  <bruno@clisp.org>
37942         tempname: Support for MSVC.
37943         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
37944         MSVC.
37945         * modules/tempname (Depends-on): Add fcntl-h.
37947 2011-09-13  Bruno Haible  <bruno@clisp.org>
37949         sys_time: Support for MSVC.
37950         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
37951         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
37952         include <winsock2.h>.
37953         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
37954         function declarations that collide with POSIX.
37955         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
37956         (Makefile.am): Substitute HAVE_WINSOCK2_H.
37958 2011-09-13  Bruno Haible  <bruno@clisp.org>
37960         stat: Support for MSVC.
37961         * lib/stat.c: Include pathmax.h.
37962         * modules/stat (Depends-on): Add pathmax.
37964         pathmax: Support for native Windows.
37965         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
37967 2011-09-12  Bruno Haible  <bruno@clisp.org>
37969         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
37970         * lib/dirent.in.h (struct dirent): New type.
37971         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
37972         DT_WHT): New macros.
37973         (DIR): New type.
37974         (opendir, closedir): Declare only if the module 'opendir' is enabled.
37975         (readdir, rewinddir): New declarations.
37976         * lib/dirent-private.h: New file.
37977         * lib/opendir.c: New file.
37978         * lib/readdir.c: New file.
37979         * lib/rewinddir.c: New file.
37980         * lib/closedir.c: New file.
37981         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
37982         * m4/opendir.m4: New file.
37983         * m4/readdir.m4: New file.
37984         * m4/rewinddir.m4: New file.
37985         * m4/closedir.m4: New file.
37986         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
37987         REPLACE_CLOSEDIR here.
37988         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
37989         readdir, rewinddir are declared.
37990         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
37991         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
37992         HAVE_REWINDDIR, HAVE_CLOSEDIR.
37993         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
37994         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
37995         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
37996         * modules/opendir: New file.
37997         * modules/readdir: New file.
37998         * modules/rewinddir: New file.
37999         * modules/closedir: New file.
38000         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
38001         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
38002         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
38003         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
38004         * NEWS: Mention the 'fchdir' change.
38006 2011-09-11  Bruno Haible  <bruno@clisp.org>
38008         asm-underscore.m4: Support for MSVC.
38009         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
38010         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
38012 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
38014         Doc about crypt functions.
38015         * doc/posix-functions/crypt.texi: Expand range of glibc versions
38016         needing for _GNU_SOURCE to get crypt.
38017         * doc/posix-functions/encrypt.texi: Likewise.
38018         * doc/posix-functions/setkey.texi: Likewise.
38020 2011-09-11  Bruno Haible  <bruno@clisp.org>
38022         doc: Update regarding MSVC 9.
38023         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
38024         tested".
38025         * doc/posix-functions/*.texi: Update with info about MSVC 9.
38026         * doc/posix-headers/*.texi: Likewise.
38027         * doc/pastposix-functions/*.texi: Likewise.
38028         * doc/glibc-functions/*.texi: Likewise.
38029         * doc/glibc-headers/*.texi: Likewise.
38031 2011-09-11  Bruno Haible  <bruno@clisp.org>
38033         unistd et al.: Don't assume <unistd.h> exists.
38034         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
38035         does not exist.
38036         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
38037         exist. But include <stdlib.h>.
38038         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
38039         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
38040         symlink() does not exist.
38041         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
38042         include <io.h> instead.
38043         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
38044         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
38045         include <direct.h> instead.
38046         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
38047         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
38048         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
38049         <io.h> instead.
38050         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
38051         correctly if the system does not have hard links.
38052         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
38053         <direct.h> instead.
38054         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
38055         it when looking for function declarations.
38056         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
38057         <direct.h> and <io.h> instead.
38058         * doc/posix-headers/unistd.texi: More details about MSVC problem.
38060 2011-09-11  Bruno Haible  <bruno@clisp.org>
38062         strcase: Support for MSVC.
38063         * modules/strcase (Status, Notice): Remove obsoletion mark.
38064         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
38065         * doc/posix-functions/strncasecmp.texi: Likewise.
38067         strings: Don't assume <strings.h> exists.
38068         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
38069         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
38070         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
38071         * doc/posix-headers/strings.texi: Mention the MSVC problem.
38073 2011-09-11  Bruno Haible  <bruno@clisp.org>
38075         dirent: Don't assume <dirent.h> exists.
38076         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
38077         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
38078         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
38079         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
38081 2011-09-11  Bruno Haible  <bruno@clisp.org>
38083         Fix wint_t on MSVC.
38084         * lib/wchar.in.h (wint_t): On MSVC, override it.
38085         * lib/wctype.in.h (wint_t): Likewise.
38086         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
38087         MSVC.
38088         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
38089         * doc/posix-headers/wctype.texi: Likewise.
38091 2011-09-11  Bruno Haible  <bruno@clisp.org>
38093         sys_types: Fix typo.
38094         * lib/sys_types.in.h: Fix typo in comment.
38095         Reported by Paul Eggert.
38097         Support for MSVC compiler: Ensure size_t gets defined.
38098         * modules/strings (Depends-on): Add 'sys_types'.
38099         * modules/sys_uio (Depends-on): Likewise.
38100         * lib/sys_uio.in.h: Update comment.
38102         C++ tests for module 'sys_types'.
38103         * modules/sys_types-c++-tests: New file.
38104         * tests/test-sys_types-c++.cc: New file.
38106         Tests for module 'sys_types'.
38107         * modules/sys_types-tests: New file.
38108         * tests/test-sys_types.c: New file.
38110         New module 'sys_types'.
38111         * lib/sys_types.in.h: New file.
38112         * m4/sys_types_h.m4: New file.
38113         * modules/sys_types: New file.
38114         * doc/posix-headers/sys_types.texi: Mention the new module and the
38115         size_t problem on MSVC 9.
38117 2011-09-11  Bruno Haible  <bruno@clisp.org>
38119         Support for MSVC compiler: Avoid division by a literal 0.
38120         * lib/math.in.h (NAN): Define through a function call also on MSVC.
38121         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
38122         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
38123         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
38124         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
38125         * tests/infinity.h: New file.
38126         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
38127         on MSVC.
38128         * tests/test-ceilf1.c: Include infinity.h.
38129         (main): Use Infinityf.
38130         * tests/test-ceil1.c: Include infinity.h.
38131         (main): Use Infinityd.
38132         * tests/test-ceill.c: Include infinity.h.
38133         (main): Use Infinityl.
38134         * tests/test-dprintf-posix.c: Include infinity.h.
38135         (test_function): Use Infinityd.
38136         * tests/test-floorf1.c: Include infinity.h.
38137         (main): Use Infinityf.
38138         * tests/test-floor1.c: Include infinity.h.
38139         (main): Use Infinityd.
38140         * tests/test-floorl.c: Include infinity.h.
38141         (main): Use Infinityl.
38142         * tests/test-fprintf-posix.c: Include infinity.h.
38143         (test_function): Use Infinityd.
38144         * tests/test-frexp.c: Include infinity.h.
38145         (main): Use Infinityd.
38146         * tests/test-frexpl.c: Include infinity.h.
38147         (main): Use Infinityl.
38148         * tests/test-isfinite.c: Include infinity.h.
38149         (test_isfinitef): Use Infinityf.
38150         (test_isfinited): Use Infinityd.
38151         (test_isfinitel): Use Infinityl.
38152         * tests/test-isinf.c: Include infinity.h.
38153         (test_isinff): Use Infinityf.
38154         (test_isinfd): Use Infinityd.
38155         (test_isinfl): Use Infinityl.
38156         * tests/test-isnan.c: Include infinity.h.
38157         (test_float): Use Infinityf.
38158         (test_double): Use Infinityd.
38159         (test_long_double): Use Infinityl.
38160         * tests/test-isnanf.h: Include infinity.h.
38161         (main): Use Infinityf.
38162         * tests/test-isnand.h: Include infinity.h.
38163         (main): Use Infinityd.
38164         * tests/test-isnanl.h: Include infinity.h.
38165         (main): Use Infinityl.
38166         * tests/test-ldexpl.c: Include infinity.h.
38167         (main): Use Infinityl.
38168         * tests/test-printf-posix.h: Include infinity.h.
38169         (test_function): Use Infinityd.
38170         * tests/test-roundf1.c: Include infinity.h.
38171         (main): Use Infinityf.
38172         * tests/test-round1.c: Include infinity.h.
38173         (main): Use Infinityd.
38174         * tests/test-roundl.c: Include infinity.h.
38175         (main): Use Infinityl.
38176         * tests/test-signbit.c: Include infinity.h.
38177         (test_signbitf): Use Infinityf.
38178         (test_signbitd): Use Infinityd.
38179         (test_signbitl): Use Infinityl.
38180         * tests/test-snprintf-posix.h: Include infinity.h.
38181         (test_function): Use Infinityd, Infinityl.
38182         * tests/test-sprintf-posix.h: Include infinity.h.
38183         (test_function): Use Infinityd, Infinityl.
38184         * tests/test-truncf1.c: Include infinity.h.
38185         (main): Use Infinityf.
38186         * tests/test-trunc1.c: Include infinity.h.
38187         (main): Use Infinityd.
38188         * tests/test-truncl.c: Include infinity.h.
38189         (main): Use Infinityl.
38190         * tests/test-vasnprintf-posix.c: Include infinity.h.
38191         (test_function): Use Infinityd, Infinityl.
38192         * tests/test-vasprintf-posix.c: Include infinity.h.
38193         (test_function): Use Infinityd, Infinityl.
38194         * modules/ceilf-tests (Files): Add tests/infinity.h.
38195         * modules/ceil-tests (Files): Likewise.
38196         * modules/ceill-tests (Files): Likewise.
38197         * modules/dprintf-posix-tests (Files): Likewise.
38198         * modules/floorf-tests (Files): Likewise.
38199         * modules/floor-tests (Files): Likewise.
38200         * modules/floorl-tests (Files): Likewise.
38201         * modules/fprintf-posix-tests (Files): Likewise.
38202         * modules/frexp-tests (Files): Likewise.
38203         * modules/frexp-nolibm-tests (Files): Likewise.
38204         * modules/frexpl-tests (Files): Likewise.
38205         * modules/frexpl-nolibm-tests (Files): Likewise.
38206         * modules/isfinite-tests (Files): Likewise.
38207         * modules/isinf-tests (Files): Likewise.
38208         * modules/isnan-tests (Files): Likewise.
38209         * modules/isnanf-tests (Files): Likewise.
38210         * modules/isnanf-nolibm-tests (Files): Likewise.
38211         * modules/isnand-tests (Files): Likewise.
38212         * modules/isnand-nolibm-tests (Files): Likewise.
38213         * modules/isnanl-tests (Files): Likewise.
38214         * modules/isnanl-nolibm-tests (Files): Likewise.
38215         * modules/ldexpl-tests (Files): Likewise.
38216         * modules/printf-posix-tests (Files): Likewise.
38217         * modules/roundf-tests (Files): Likewise.
38218         * modules/round-tests (Files): Likewise.
38219         * modules/roundl-tests (Files): Likewise.
38220         * modules/signbit-tests (Files): Likewise.
38221         * modules/snprintf-posix-tests (Files): Likewise.
38222         * modules/sprintf-posix-tests (Files): Likewise.
38223         * modules/truncf-tests (Files): Likewise.
38224         * modules/trunc-tests (Files): Likewise.
38225         * modules/truncl-tests (Files): Likewise.
38226         * modules/vasnprintf-posix-tests (Files): Likewise.
38227         * modules/vasprintf-posix-tests (Files): Likewise.
38228         * modules/vdprintf-posix-tests (Files): Likewise.
38229         * modules/vfprintf-posix-tests (Files): Likewise.
38230         * modules/vprintf-posix-tests (Files): Likewise.
38231         * modules/vsnprintf-posix-tests (Files): Likewise.
38232         * modules/vsprintf-posix-tests (Files): Likewise.
38233         * modules/xprintf-posix-tests (Files): Likewise.
38235 2011-09-11  Bruno Haible  <bruno@clisp.org>
38237         Ensure pid_t gets defined.
38238         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
38239         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
38240         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38241         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38242         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
38243         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
38244         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
38245         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38246         * tests/test-fcntl-h.c: Check that pid_t is defined.
38247         * tests/test-sched.c: Likewise.
38248         * tests/test-termios.c: Likewise.
38249         * tests/test-time.c: Likewise.
38250         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
38251         * doc/posix-headers/signal.texi: Likewise.
38252         * doc/posix-headers/sys_types.texi: Likewise.
38253         * doc/posix-headers/time.texi: Likewise.
38255 2011-09-11  Bruno Haible  <bruno@clisp.org>
38257         acl: Fix compilation on Solaris 10 (older version).
38258         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
38259         of ACE_EVERYONE.
38260         * lib/set-mode-acl.c (qset_acl): Likewise.
38261         Reported by Christian Jullien <eligis@orange.fr>.
38263 2011-09-10  Bruno Haible  <bruno@clisp.org>
38265         iconv, unsetenv: Add support for MSVC compiler.
38266         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
38267         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
38269 2011-09-10  Bruno Haible  <bruno@clisp.org>
38271         *printf: Add support for MSVC compiler.
38272         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
38273         handles the exception caused by the %n directive. When cross-compiling,
38274         guess no on native Windows.
38275         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
38276         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
38277         emulate it through vsnprintf.
38278         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
38279         * doc/posix-functions/dprintf.texi: Update documentation regarding
38280         MSVC 9.
38281         * doc/posix-functions/fprintf.texi: Likewise.
38282         * doc/posix-functions/printf.texi: Likewise.
38283         * doc/posix-functions/snprintf.texi: Likewise.
38284         * doc/posix-functions/sprintf.texi: Likewise.
38285         * doc/posix-functions/swprintf.texi: Likewise.
38286         * doc/posix-functions/vdprintf.texi: Likewise.
38287         * doc/posix-functions/vfprintf.texi: Likewise.
38288         * doc/posix-functions/vprintf.texi: Likewise.
38289         * doc/posix-functions/vsnprintf.texi: Likewise.
38290         * doc/posix-functions/vsprintf.texi: Likewise.
38291         * doc/glibc-functions/asprintf.texi: Likewise.
38292         * doc/glibc-functions/obstack_printf.texi: Likewise.
38293         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
38294         * doc/glibc-functions/vasprintf.texi: Likewise.
38296 2011-09-10  Bruno Haible  <bruno@clisp.org>
38298         nocrash: Add support for native Windows.
38299         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
38301 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
38302             Bruno Haible  <bruno@clisp.org>
38304         absolute-header, include-next: Add support for MSVC compiler.
38305         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
38306         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
38307         directory separator in #line directives.
38308         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
38309         recognize also backslash as directory separator in #line directives.
38311 2011-09-08  Jim Meyering  <meyering@redhat.com>
38313         maint.mk: mark the post-release commit log with "maint: " prefix
38314         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
38315         one-line commit-log summary.
38317 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
38318             Bruno Haible  <bruno@clisp.org>
38320         Doc about crypt functions.
38321         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
38322         systems.
38323         * doc/posix-functions/encrypt.texi: Likewise.
38324         * doc/posix-functions/setkey.texi: Likewise.
38326 2011-09-08  Simon Josefsson  <simon@josefsson.org>
38328         * lib/gc.h: Fix copyright header.
38330 2011-09-07  Bruno Haible  <bruno@clisp.org>
38332         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
38333         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
38334         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
38336 2011-09-07  Bruno Haible  <bruno@clisp.org>
38338         openat: Work around compilation error with OSF/1 5.1 DTK cc.
38339         * lib/fopen.c: Use different syntax for include of <stdio.h>.
38340         * lib/freopen.c: Likewise.
38341         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
38342         * lib/lstat.c: Likewise.
38343         * lib/stat.c: Likewise.
38344         * lib/open.c: Use different syntax for include of <fcntl.h>.
38345         * lib/openat.c: Include fcntl.h again, explicitly.
38347 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
38349         parse-datetime: document the newly accepted format
38350         * doc/parse-datetime.texi (Combined date and time of day items):
38351         New section.
38353 2011-09-06  Bruno Haible  <bruno@clisp.org>
38355         acl: Fix a test failure on newer Solaris 10 with ZFS.
38356         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
38357         ENOSYS as no ACL.
38358         Reported by Jim Meyering.
38360 2011-09-06  Bruno Haible  <bruno@clisp.org>
38362         acl: Update for AIX >= 5.3 with NFS.
38363         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
38364         ENOSYS as no ACL.
38366         acl: Fix a test failure on AIX >= 5.3 with NFS.
38367         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
38368         as no ACL.
38370 2011-09-06  Bruno Haible  <bruno@clisp.org>
38372         acl: Fix a test failure on IRIX 6.5 with NFS.
38373         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
38374         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
38375         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
38376         * lib/copy-acl.c (qcopy_acl): Likewise.
38378 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
38380         openat: port to AIX 7.1 with large files
38381         AIX 7.1 does a "#define openat open64at" if large files are in use,
38382         so we can't simply #undef openat.  Use the orig_openat trick (similar
38383         to orig_open in lib/open.c) to work around the problem.  Problem
38384         reported by Kevin Brott for GNU tar, in the thread containing
38385         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
38386         * lib/openat.c (__need_system_fcntl_h): Define first.
38387         Include <fcntl.h> and <sys/types.h> before undefining.
38388         (orig_openat) [HAVE_OPENAT]: New inline function.
38389         (openat) [HAVE_OPENAT]: Do not undef.
38390         (rpl_openat): Use orig_openat, not openat.
38392 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
38393             Bruno Haible  <bruno@clisp.org>
38395         acl: Avoid errors on NonStop Kernel.
38396         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
38397         ENOTSUP errors.
38399 2011-09-05  Bruno Haible  <bruno@clisp.org>
38401         acl: Clean up Solaris code.
38402         * lib/acl-internal.h: Remove no-op #if.
38403         * lib/file-has-acl.c: Likewise.
38404         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
38405         * lib/copy-acl.c (qcopy_acl): Likewise.
38407 2011-09-05  Bruno Haible  <bruno@clisp.org>
38409         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
38410         binaries built on the original Solaris 10.
38411         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
38412         trivial.
38414 2011-09-05  Bruno Haible  <bruno@clisp.org>
38416         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
38417         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
38418         10.
38419         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
38420         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
38421         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
38422         instead of acl_get, facl_get, acl_set, facl_set.
38424 2011-09-05  Bruno Haible  <bruno@clisp.org>
38426         copy-file: Try unit tests on more file systems.
38427         * tests/test-copy-file-1.sh: New file.
38428         * tests/test-copy-file-2.sh: New file.
38429         * modules/copy-file-tests (Files): Add them.
38430         (Makefile.am): Add them to TESTS.
38432         acl: Try unit tests on more file systems.
38433         * tests/test-file-has-acl-1.sh: New file.
38434         * tests/test-file-has-acl-2.sh: New file.
38435         * tests/test-set-mode-acl-1.sh: New file.
38436         * tests/test-set-mode-acl-2.sh: New file.
38437         * tests/test-copy-acl-1.sh: New file.
38438         * tests/test-copy-acl-2.sh: New file.
38439         * modules/acl-tests (Files): Add them.
38440         (Makefile.am): Add them to TESTS.
38442 2011-09-04  Bruno Haible  <bruno@clisp.org>
38444         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
38445         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
38446         10.
38447         (OLD_ALLOW, OLD_DENY): New macros.
38448         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
38449         ACE_ACCESS_ALLOWED_ACE_TYPE.
38450         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
38451         ACE_ACCESS_DENIED_ACE_TYPE.
38452         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
38453         (NEW_ACE_EXECUTE): Fix value.
38454         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
38455         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
38456         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
38457         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
38458         NEW_ACE_SYNCHRONIZE): New macros.
38459         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
38460         instead of acl_fromtext, acl_set, facl_set.
38461         Fixes a coreutils/tests/cp/perm failure.
38463 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
38465         openat: test for fstatat (..., 0) bug
38466         Further testing with tar suggests that fstatat (..., 0)
38467         does not work in general, on AIX 7.1; see
38468         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
38469         So, give up entirely on AIX 7.1's fstatat, and fall back on our
38470         replacement fstatat (which is what older AIX releases were using
38471         anyway).
38472         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
38473         use is now changed to orig_fstatat.  This was probably the right
38474         thing to do anyway.
38475         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
38476         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
38477         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
38478         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
38479         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
38480         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
38481         if the bug is found.
38483         openat: test for fstatat (AT_FDCWD, ..., 0) bug
38484         This tests for another fstatat bug on AIX 7.1:
38485         fstatat (AT_FDCWD, ..., 0) does not work.  See
38486         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
38487         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
38488         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
38489         (rpl_fstatat): Adjust so that it works around either (or both)
38490         bugs if present.
38491         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
38493 2011-09-03  Karl Berry  <karl@gnu.org>
38495         * doc/regex.texi (Character Class Operators): Avoid literal ":"
38496         in index entries.
38498 2011-09-02  Bruno Haible  <bruno@clisp.org>
38500         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
38501         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
38502         values of AR, ARFLAGS, RANLIB.
38503         Reported by John W. Eaton <jwe@gnu.org> for Octave.
38505 2011-09-02  Bruno Haible  <bruno@clisp.org>
38507         Find 'ar' program that fits with --host argument.
38508         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
38510 2011-09-02  Bruno Haible  <bruno@clisp.org>
38512         tests: init.sh: Support any non-GNU diff.
38513         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
38514         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
38515         Solaris 8.
38517 2011-09-02  Bruno Haible  <bruno@clisp.org>
38519         tests: init.sh: work also with any non-GNU diff that supports -u
38520         * tests/init.sh: Relax check for diff -u support.
38521         Rather than checking for GNU diff via --version, simply check
38522         for support for -u itself.  Useful at least on OpenBSD 4.9,
38523         AIX 7.1, IRIX 6.5, and Solaris 10.
38525 2011-09-01  Bruno Haible  <bruno@clisp.org>
38527         strtoimax, strtoumax: Document problem on HP-UX 11.
38528         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
38529         * doc/posix-functions/strtoumax.texi: Likewise.
38531 2011-09-01  Bruno Haible  <bruno@clisp.org>
38533         strtoumax: Avoid link error on OSF/1 with DTK cc.
38534         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
38535         defined as a function.
38536         * modules/strtoumax (Depends-on, configure.ac): Test only whether
38537         strtoumax is defined, not whether it is declared.
38539 2011-09-01  Bruno Haible  <bruno@clisp.org>
38541         strtoimax: Avoid link error on OSF/1 with DTK cc.
38542         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
38543         defined as a function.
38544         * modules/strtoimax (Depends-on, configure.ac): Test only whether
38545         strtoimax is defined, not whether it is declared.
38547 2011-09-01  Bruno Haible  <bruno@clisp.org>
38549         imaxdiv: Avoid link error on OSF/1 with DTK cc.
38550         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
38551         as a function.
38552         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
38553         whether it is declared.
38555 2011-09-01  Bruno Haible  <bruno@clisp.org>
38557         imaxabs: Avoid link error on OSF/1 with DTK cc.
38558         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
38559         as a function.
38560         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
38561         whether it is declared.
38563 2011-09-01  Bruno Haible  <bruno@clisp.org>
38565         Tests for module 'strtoumax'.
38566         * modules/strtoumax-tests: New file.
38567         * tests/test-strtoumax.c: New file.
38569         Tests for module 'strtoimax'.
38570         * modules/strtoimax-tests: New file.
38571         * tests/test-strtoimax.c: New file.
38573         Tests for module 'imaxdiv'.
38574         * modules/imaxdiv-tests: New file.
38575         * tests/test-imaxdiv.c: New file.
38577         Tests for module 'imaxabs'.
38578         * modules/imaxabs-tests: New file.
38579         * tests/test-imaxabs.c: New file.
38581 2011-09-01  Bruno Haible  <bruno@clisp.org>
38583         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
38584         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
38585         pthread_create.
38587 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
38589         openat: work around AIX 7.1 fstatat issue
38590         This should fix the problem that was not properly fixed
38591         in the previous change, dated 2011-08-30.
38592         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
38593         __need_system_stat_h defined.
38594         (orig_fstatat) [HAVE_FSTATAT]: New function.
38595         (rpl_fstatat): Go back to the old way of doing things,
38596         except call orig_fstatat instead of fstatat.
38597         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
38598         Remove unnecessary check whether fstatat fills in st_size etc.
38600 2011-09-01  Bruno Haible  <bruno@clisp.org>
38602         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
38603         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
38604         just include the system's header.
38606 2011-08-31  Jim Meyering  <meyering@redhat.com>
38608         tests: avoid spurious assertion failure in test-float.c on ppc64
38609         * tests/test-float.c (test_long_double): Comment out an assertion,
38610         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
38611         with gcc-4.4.4.
38613         maint: indent with spaces, not TABs
38614         I need to get in the habit of running gnulib's "make check".
38615         Both of these would have been caught.
38616         * m4/largefile.m4: Indent with spaces, not TABs.
38617         * lib/parse-datetime.y (iso_8601_time): Likewise.
38618         Spotted by Pádraig Brady.
38620         test-parse-datetime.c: accommodate a relatively strict gcc warning
38621         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
38622         to avoid a warning from gcc's -Werror=missing-declarations.
38623         Insert a few spaces-before-funcall-parenthesis.
38625 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
38627         parse-datetime: accept ISO 8601 date and time rep with "T" separator
38628         The parser now accepts ISO 8601 date-time strings with "T" as the
38629         separator.  It has long parsed dates like "2004-02-29 16:21:42"
38630         with a space between the date and time strings.  Now it also parses
38631         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
38632         variants like "2004-02-29T16:21:42.333-07:00"
38633         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
38634         of day representation using the 'T' separator character.
38635         * doc/parse-datetime.texi (General date syntax): replace use of
38636         deprecated --iso-8601 option with --rfc-3339 in example of date
38637         command output formats that can be parsed.
38638         * tests/test-parse-datetime.c (tm_diff): New function, taken from
38639         lib/parse-datetime.y.
38640         (gmt_offset): New function.
38641         (main): Add additional test cases to validate ISO8601 extended
38642         date and time of day parsing.
38644 2011-08-31  Bruno Haible  <bruno@clisp.org>
38646         freopen: Documentation.
38647         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
38648         name.
38649         Reported by Claudio Bley <claudio.bley@gmail.com>.
38651 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
38653         freopen: Don't crash if the filename argument is NULL.
38654         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
38655         NULL.
38657 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
38659         openat: work around AIX 7.1 fstatat bug
38660         Problem reported by Kevin Brott for GNU tar, in the thread containing
38661         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
38662         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
38663         FSTATAT_ST_SIZE_ETC_BROKEN.
38664         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
38665         rpl_fstatat.
38666         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
38667         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
38668         AC_CHECK_FUNCS_ONCE for fstatat.
38669         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
38670         fchmodat, mkdirat, openat and unlinkat.
38672 2011-08-30  Bruno Haible  <bruno@clisp.org>
38674         Avoid endless recursions if config.h includes some header files.
38675         * lib/fopen.c (__need_FILE): Define already before including config.h.
38676         * lib/freopen.c (__need_FILE): Likewise.
38677         * lib/open.c (__need_system_fcntl_h): Likewise.
38678         * lib/stat.c (__need_system_sys_stat_h): Likewise.
38679         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
38680         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
38682 2011-08-25  Karl Berry  <karl@gnu.org>
38684         * config/srclist.txt (ylwrap): new try.
38685         * build-aux/ylwrap: new file.
38687 2011-08-23  Bruno Haible  <bruno@clisp.org>
38689         tmpdir: Use a good default directory on native Windows.
38690         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
38691         (P_tmpdir): Default to _P_tmpdir on native Windows.
38692         (path_search): On native Windows, try the value returned by GetTempPath
38693         before trying P_tmpdir.
38694         * modules/tmpdir (Depends-on): Add pathmax.
38695         Suggested by John Darrington <john@darrington.wattle.id.au>.
38697 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
38699         doc: fix typo in README-release
38700         * top/README-release: Capitalize first word of a sentence.
38702 2011-08-19  Jim Meyering  <meyering@redhat.com>
38704         fts: do not exhaust memory when processing million-entry directories
38705         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
38706         directory would require about 256*N bytes of memory.  Thus, it was
38707         easy to construct a directory too large to be processed by any of
38708         those tools.  With this change, fts' maximum memory utilization is
38709         now limited to around 30MB.
38710         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
38711         (fts_read): When we've processed the final entry (i.e., when
38712         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
38713         using the parent entry to read any remaining entries.  Dispatch
38714         depending on what fts_build returns:
38715         - NULL+stop, aka failure: stop
38716         - NULL otherwise: move up in the dir hierarchy
38717         - non-NULL: handle this new entry
38718         (fts_build): Declare and use new local, continue_readdir.
38719         Prepare to be called from fts_read, when the entries
38720         from a partially-read directory have just been exhausted.
38721         In that case, we'll skip the opendir and instead use the parent's
38722         fts_dirp and derive dir_fd from that.
38723         Finally, in the readdir loop, if we read max_entries entries,
38724         exit the loop ensuring *not* to call closedir.  This is required
38725         so that fts_dirp can be reused on a subsequent call.
38726         Prompted by Ben England's report of memory exhaustion in find
38727         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
38729         maint: fts: move decl of `dp' down into while loop; split a long line
38730         * lib/fts.c (fts_build): No semantic change.
38732         fts: add/use new struct member, fts_dirp
38733         We are about to use this to manage any directory with
38734         too many entries to read all of them into memory at once.
38735         To do that, we'll need to save the DIR* pointer in each
38736         affected FTSENT struct.
38737         * lib/fts_.h: Include <dirent.h>.
38738         (struct FTSENT) [fts_dirp]: New member.
38739         * lib/fts.c (closedir_and_clear): Define.
38740         Use it in place of closedir so that we are sure to
38741         clear the new fts_dirp member when done with it.
38742         (fts_alloc): Initialize the new member.
38743         (fts_lfree): Free, if needed.
38745         maint: fts: give __opendir2 a new parameter and rename
38746         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
38747         than surreptitiously using sole caller's "dir_fd".
38748         (fts_opendir): Rename from __opendir2.
38750         maint: fts.c: remove __opendir2's now-unused parameter, oflag
38751         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
38753         maint: fts.c: correct off-by-one indentation
38754         * lib/fts.c (fts_build): Correct indentation, change style
38755         of a couple of block comments, and bracing style.
38757         maint: fts.c: move __opendir2 #define "up" out of function body
38758         * lib/fts.c (__opendir2): Move "up".  No semantic change.
38760         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
38761         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
38762         out for a long time and besides was useful only on BSD systems.
38764 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
38766         regex: port to Stratus OpenVOS
38767         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
38768         define to empty, rather than attempting nonportable optimizations.
38769         Problem reported by Paul Green in:
38770         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
38771         and fix suggested by Eric Blake in:
38772         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
38774 2011-08-17  Eric Blake  <eblake@redhat.com>
38776         getcwd: fix test failures on mingw
38777         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
38778         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
38779         test if long directory cannot be created, and allow mingw errno.
38781         getcwd-lgpl: fix m4 to match relaxed test for BSD
38782         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
38783         (gl_FUNC_GETCWD_SIGNATURE): New macro.
38784         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
38785         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
38786         signature problem.
38788         getcwd: fix compilation on mingw64
38789         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
38790         getcwd.
38791         Reported by Marc-André Lureau.
38793         pipe2: silence compiler warning
38794         * lib/pipe2.c (pipe2): Hide label if it is not used.
38796 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
38798         relocatable-prog: fix link error
38799         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
38800         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
38801         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
38802         into modules/relocatable-lib without noticing that
38803         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
38804         also needs to build relocatable.c.
38806 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
38808         getaddrinfo: fix sh typo in gai_strerrorA decl checking
38809         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
38810         shell code: it contained a 'break' that was not in a loop.
38811         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
38812         via a shell-language loop; this may have been true in old Autoconf
38813         versions, but it's not true in Autoconf 2.68.  I found this bug
38814         when testing coreutils git on Solaris 8, whose shell complains
38815         about the syntax error.
38817 2011-08-12  Simon Josefsson  <simon@josefsson.org>
38819         * lib/base64.c: Fix comment to reference RFC 4648.
38820         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
38821         <gvtulder@gmail.com>.
38823 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
38825         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
38827         po/Makefile.in.in: fix make -q problem
38828         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
38829         rule, since there's no file named 'check-macro-version' and its
38830         use as a file breaks make -q.
38831         (all): Don't depend on check-macro-version.
38832         (CHECK_MACRO_VERSION): New macro.
38833         (stamp-po): Use it.
38835         configmake: fix make -q problem
38836         * modules/configmake (configmake.h): Update configmake.h's time stamp
38837         even if the file does not change.  Otherwise, 'make -q' fails.
38838         Problem reported by Simon Josefsson in
38839         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
38841 2011-08-11  Jim Meyering  <meyering@redhat.com>
38843         git-version-gen: correct the advice in a comment
38844         * build-aux/git-version-gen: Correct comment.
38845         Don't recommend to list .tarball-version in .gitignore.
38847 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
38849         base64: fix off-by-one buffer size bug
38850         Problem and (trivial) fix reported by Gijs van Tulder in
38851         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
38852         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
38853         * tests/test-base64.c (main): Catch the bug.
38855 2011-08-10  Eric Blake  <eblake@redhat.com>
38857         closein: correct comments
38858         * lib/closein.c (close_stdin): Improve comments.
38860 2011-08-09  Bruno Haible  <bruno@clisp.org>
38862         More tests for 'fseeko'.
38863         * tests/test-fseeko3.c: New file, from Eric Blake.
38864         * tests/test-fseeko3.sh: New file.
38865         * modules/fseeko-tests (Files): Add them.
38866         (TESTS): Add test-fseeko3.sh.
38867         (check_PROGRAMS): Add test-fseeko3.
38869 2011-08-09  Eric Blake  <eblake@redhat.com>
38871         fseeko: remove unneeded hack
38872         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
38874         fseeko: fix bug on glibc
38875         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
38876         Reported by John W. Eaton.
38878 2011-08-08  Bruno Haible  <bruno@clisp.org>
38880         unictype/base: Fix interoperability with preinstalled libunistring.
38881         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
38882         Reported by Simon Josefsson.
38884 2011-08-08  Bruno Haible  <bruno@clisp.org>
38886         iswblank: Detect declaration correctly.
38887         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
38888         AC_CHECK_DECLS invocation.
38890 2011-08-08  Bruno Haible  <bruno@clisp.org>
38892         tcgetsid: Detect declaration correctly.
38893         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
38894         AC_CHECK_DECLS invocation.
38895         Reported by Simon Josefsson.
38897 2011-08-08  Eric Blake  <eblake@redhat.com>
38899         largefile: fix typo that regressed large file support
38900         * modules/largefile (configure.ac-early): Fix section name.
38902 2011-08-06  Karl Berry  <karl@gnu.org>
38904         * MODULES.html.sh (func_all_files): _Noreturn is no longer
38905         a separate module.
38907 2011-08-05  Simon Josefsson  <simon@josefsson.org>
38909         openat: Fix warnings and commens when building unlinkat.c on Hurd.
38910         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
38911         get prototype for free.
38913 2011-08-04  Bruno Haible  <bruno@clisp.org>
38915         Tests for module 'pathmax'.
38916         * modules/pathmax-tests: New file.
38917         * tests/test-pathmax.c: New file.
38919         canonicalize-lgpl: Support larger filenames on the Hurd.
38920         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
38921         Reported by Paul Eggert.
38923         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
38924         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
38925         * lib/chdir-long.h: Include pathmax.h.
38926         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
38927         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
38928         (PATH_MAX): Remove code that is done by pathmax.h.
38929         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
38930         * lib/tmpfile.c: Add a comment.
38931         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
38932         * modules/chdir-long (Depends-on): Add pathmax.
38933         * modules/getcwd (Depends-on): Add pathmax.
38934         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
38935         is not defined.
38936         * doc/posix-headers/limits.texi: Mention the pathmax module.
38937         * NEWS: Mention the change.
38939 2011-08-02  Bruno Haible  <bruno@clisp.org>
38941         pthread_sigmask: Actually use results of gl_THREADLIB.
38942         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
38943         gl_THREADLIB, not gl_[]THREADLIB.
38944         Reported by Eric Blake.
38946 2011-08-02  Jim Meyering  <meyering@redhat.com>
38948         maint.mk: relax the default _gl_TS_function_match regexp
38949         * top/maint.mk (_gl_TS_function_match): Don't require at least one
38950         space between function name and "(" in an "extern" declaration.
38951         That would fail to match a decl with no space there: extern void foo();
38953 2011-07-31  Iain Nicol  <iain@thenicols.net>
38955         git-version-gen: document that EXTRA_DIST must include .version
38956         * build-aux/git-version-gen: In the how-to-use comment, document
38957         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
38958         will fail when run from an unpacked distribution tarball.
38960 2011-08-01  Bruno Haible  <bruno@clisp.org>
38962         wctype-h: Fix last change.
38963         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
38964         REPLACE_TOWLOWER to 0.
38965         Reported by Sam Steingold <sds@gnu.org>.
38967 2011-07-31  Bruno Haible  <bruno@clisp.org>
38969         frexpl: Update autoconf test.
38970         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
38971         according to changes of 2011-06-20.
38973 2011-07-31  Bruno Haible  <bruno@clisp.org>
38975         sys_utsname: Add support for Minix.
38976         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
38977         <sys/utsname.h>.
38978         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
38979         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
38981 2011-07-31  Bruno Haible  <bruno@clisp.org>
38983         strings: Add support for Minix.
38984         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
38985         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
38986         * doc/posix-headers/strings.texi: Document the Minix problem.
38988 2011-07-31  Bruno Haible  <bruno@clisp.org>
38990         wctype-h: Add support for Minix.
38991         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
38992         REPLACE_TOWLOWER.
38993         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
38994         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
38995         REPLACE_ISWCNTRL.
38997 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
38999         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
39000         This is a performance improvement for 64-bit hosts: it causes the
39001         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
39003 2011-07-31  Bruno Haible  <bruno@clisp.org>
39005         stdioext: Add support for Minix.
39006         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
39007         * lib/fpurge.c (fpurge): Likewise.
39008         * lib/freadahead.c (freadahead): Likewise.
39009         * lib/freadable.c (freadable): Likewise.
39010         * lib/freading.c (freading): Likewise.
39011         * lib/freadptr.c (freadptr): Likewise.
39012         * lib/freadseek.c (freadptrinc): Likewise.
39013         * lib/fseeko.c (rpl_fseeko): Likewise.
39014         * lib/fseterr.c (fseterr): Likewise.
39015         * lib/fwritable.c (fwritable): Likewise.
39016         * lib/fwriting.c (fwriting): Likewise.
39017         * lib/fflush.c (clear_ungetc_buffer): Update comment.
39018         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
39020 2011-07-31  Bruno Haible  <bruno@clisp.org>
39022         errno: Port to Minix.
39023         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
39024         ECONNABORTED are defined.
39025         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
39026         GNULIB_defined_ECONNABORTED): New macros.
39027         * lib/strerror-override.h (strerror_override): Test also
39028         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
39029         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
39030         ECONNABORTED.
39031         * doc/posix-headers/errno.texi: Mention the Minix problem.
39033 2011-07-31  Bruno Haible  <bruno@clisp.org>
39035         Work around declaration collisions on Minix.
39036         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
39037         defined, set REPLACE_MBSINIT.
39038         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
39039         defined, set REPLACE_MBRTOWC.
39040         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
39041         set REPLACE_MBRLEN.
39042         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
39043         defined, set REPLACE_MBSRTOWCS.
39044         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
39045         defined, set REPLACE_WCRTOMB.
39046         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
39047         defined, set REPLACE_WCSRTOMBS.
39049 2011-07-31  Bruno Haible  <bruno@clisp.org>
39051         Add support for Minix with ACK compiler.
39052         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
39053         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
39054         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
39056 2011-07-31  Bruno Haible  <bruno@clisp.org>
39058         Documentation about Minix.
39059         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
39060         * doc/glibc-headers/*.texi: Likewise.
39061         * doc/posix-functions/*.texi: Likewise.
39062         * doc/glibc-functions/*.texi: Likewise.
39064 2011-07-31  Bruno Haible  <bruno@clisp.org>
39066         snippet/warn-on-use: Fix indentation.
39067         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
39069 2011-07-25  Jim Meyering  <meyering@redhat.com>
39071         tests: test-update-copyright.sh: remove unnecessary "rm" commands
39072         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
39073         commands.
39075 2011-07-27  Jim Meyering  <meyering@redhat.com>
39077         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
39078         * top/maint.mk (gl_extract_significant_defines_): Now that
39079         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
39080         gnulib/lib/signal.in.h, and now that we recommend to
39081         define-if-undefined those two symbols in application code,
39082         we must filter them out of the "significant" list.
39083         This avoids a "make syntax-check" failure in coreutils.
39085 2011-07-26  Eric Blake  <eblake@redhat.com>
39087         warnings: add comments about previous patch
39088         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
39089         * m4/include_next.m4: Likewise.
39090         * m4/warn-on-use.m4: Likewise.
39091         * m4/warnings.m4: Likewise, and simplify use.
39092         Suggested by Stefano Lattarini.
39094         include-next, warnings: support older autoconf
39095         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
39096         AS_VAR_PUSHDEF in a way that works with older autoconf.
39097         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
39098         Reported by Daniel P. Berrange.
39100 2011-07-25  Bruno Haible  <bruno@clisp.org>
39102         fseek, ftell: Fix doc.
39103         * doc/posix-functions/fseek.texi: Reword statement about
39104         AC_SYS_LARGEFILE.
39105         * doc/posix-functions/ftell.texi: Likewise.
39107 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
39108             Bruno Haible  <bruno@clisp.org>
39110         Add dependencies to the 'largefile' module.
39111         * modules/fopen (Depends-on): Add 'largefile'.
39112         * modules/freopen (Depends-on): Likewise.
39113         * modules/fseeko (Depends-on): Likewise.
39114         * modules/ftello (Depends-on): Likewise.
39115         * modules/glob (Depends-on): Likewise.
39116         * modules/lseek (Depends-on): Likewise.
39117         * modules/lstat (Depends-on): Likewise.
39118         * modules/mkostemp (Depends-on): Likewise.
39119         * modules/mkostemps (Depends-on): Likewise.
39120         * modules/mkstemp (Depends-on): Likewise.
39121         * modules/mkstemps (Depends-on): Likewise.
39122         * modules/open (Depends-on): Likewise.
39123         * modules/openat (Depends-on): Likewise.
39124         * modules/pread (Depends-on): Likewise.
39125         * modules/pwrite (Depends-on): Likewise.
39126         * modules/scandir (Depends-on): Likewise.
39127         * modules/stat (Depends-on): Likewise.
39128         * modules/tmpfile (Depends-on): Likewise.
39129         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
39130         since the containing module now depends on the largefile module.
39131         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
39132         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
39133         off_t is fixed by gnulib.
39134         * doc/posix-functions/freopen.texi: Likewise.
39135         * doc/posix-functions/fseeko.texi: Likewise.
39136         * doc/posix-functions/fstatat.texi: Likewise.
39137         * doc/posix-functions/ftello.texi: Likewise.
39138         * doc/posix-functions/glob.texi: Likewise.
39139         * doc/posix-functions/lseek.texi: Likewise.
39140         * doc/posix-functions/lstat.texi: Likewise.
39141         * doc/posix-functions/mkstemp.texi: Likewise.
39142         * doc/posix-functions/open.texi: Likewise.
39143         * doc/posix-functions/openat.texi: Likewise.
39144         * doc/posix-functions/pread.texi: Likewise.
39145         * doc/posix-functions/pwrite.texi: Likewise.
39146         * doc/posix-functions/scandir.texi: Likewise.
39147         * doc/posix-functions/stat.texi: Likewise.
39148         * doc/posix-functions/tmpfile.texi: Likewise.
39149         * doc/glibc-functions/mkostemp.texi: Likewise.
39150         * doc/glibc-functions/mkostemps.texi: Likewise.
39151         * doc/glibc-functions/mkstemps.texi: Likewise.
39153 2011-07-25  Bruno Haible  <bruno@clisp.org>
39155         fcntl: Move AC_LIBOBJ invocation to module description.
39156         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
39157         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
39159         fcntl: Remove call-in from fchdir.m4.
39160         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
39161         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
39163         dup3: Remove potential call-in from fchdir.m4.
39164         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
39165         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
39167         dup2: Move AC_LIBOBJ invocation to module description.
39168         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
39169         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
39170         Don't invoke AC_LIBOBJ.
39171         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
39173         dup2: Remove call-in from fchdir.m4.
39174         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
39175         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
39177         fclose: Move AC_LIBOBJ invocation to module description.
39178         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
39179         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
39180         to 1.
39181         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
39183         fclose: Remove call-in from close.m4.
39184         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
39185         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
39187         close: Move AC_LIBOBJ invocation to module description.
39188         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
39189         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
39190         1.
39191         * modules/close (configure.ac): Invoke AC_LIBOBJ.
39193         close: Remove call-in from fchdir.m4.
39194         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
39195         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
39197         open: Move AC_LIBOBJ invocation to module description.
39198         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
39199         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
39200         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
39202         open: Remove call-in from fchdir.m4.
39203         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
39204         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
39206         fchdir: Start to remove gl_REPLACE_* idiom.
39207         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
39208         (gl_FUNC_FCHDIR): Invoke it.
39210 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
39212         * lib/ftell.c (ftell): Comment out cast.
39214         close: use gl_REPLACE_FCLOSE only if defined
39215         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
39216         is defined.  The close module doesn't depend on the fclose module
39217         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
39218         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
39219         I reproduced the problem with "./gnulib-tool --test close sys_socket".
39221 2011-07-24  Jim Meyering  <meyering@redhat.com>
39223         test-select.h: avoid warning when using gcc's -Wmissing-declarations
39224         * tests/test-select.h (test_function): Declare as "static".
39226 2011-07-24  Bruno Haible  <bruno@clisp.org>
39228         doc: Mention the effects of AC_SYS_LARGEFILE.
39229         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
39230         on this function.
39231         * doc/posix-functions/aio_error.texi: Likewise.
39232         * doc/posix-functions/aio_fsync.texi: Likewise.
39233         * doc/posix-functions/aio_read.texi: Likewise.
39234         * doc/posix-functions/aio_return.texi: Likewise.
39235         * doc/posix-functions/aio_suspend.texi: Likewise.
39236         * doc/posix-functions/aio_write.texi: Likewise.
39237         * doc/posix-functions/fgetpos.texi: Likewise.
39238         * doc/posix-functions/fopen.texi: Likewise.
39239         * doc/posix-functions/freopen.texi: Likewise.
39240         * doc/posix-functions/fsetpos.texi: Likewise.
39241         * doc/posix-functions/fstatvfs.texi: Likewise.
39242         * doc/posix-functions/ftruncate.texi: Likewise.
39243         * doc/posix-functions/ftw.texi: Likewise.
39244         * doc/posix-functions/getrlimit.texi: Likewise.
39245         * doc/posix-functions/glob.texi: Likewise.
39246         * doc/posix-functions/lio_listio.texi: Likewise.
39247         * doc/posix-functions/lockf.texi: Likewise.
39248         * doc/posix-functions/mkstemp.texi: Likewise.
39249         * doc/posix-functions/mmap.texi: Likewise.
39250         * doc/posix-functions/nftw.texi: Likewise.
39251         * doc/posix-functions/openat.texi: Likewise.
39252         * doc/posix-functions/opendir.texi: Likewise.
39253         * doc/posix-functions/posix_fadvise.texi: Likewise.
39254         * doc/posix-functions/posix_fallocate.texi: Likewise.
39255         * doc/posix-functions/pread.texi: Likewise.
39256         * doc/posix-functions/pwrite.texi: Likewise.
39257         * doc/posix-functions/readdir.texi: Likewise.
39258         * doc/posix-functions/readdir_r.texi: Likewise.
39259         * doc/posix-functions/rewinddir.texi: Likewise.
39260         * doc/posix-functions/scandir.texi: Likewise.
39261         * doc/posix-functions/seekdir.texi: Likewise.
39262         * doc/posix-functions/setrlimit.texi: Likewise.
39263         * doc/posix-functions/statvfs.texi: Likewise.
39264         * doc/posix-functions/telldir.texi: Likewise.
39265         * doc/posix-functions/tmpfile.texi: Likewise.
39266         * doc/posix-functions/truncate.texi: Likewise.
39267         * doc/glibc-functions/fallocate.texi: Likewise.
39268         * doc/glibc-functions/fstatfs.texi: Likewise.
39269         * doc/glibc-functions/fts_children.texi: Likewise.
39270         * doc/glibc-functions/fts_read.texi: Likewise.
39271         * doc/glibc-functions/getdirentries.texi: Likewise.
39272         * doc/glibc-functions/mkostemp.texi: Likewise.
39273         * doc/glibc-functions/mkostemps.texi: Likewise.
39274         * doc/glibc-functions/mkstemps.texi: Likewise.
39275         * doc/glibc-functions/preadv.texi: Likewise.
39276         * doc/glibc-functions/pwritev.texi: Likewise.
39277         * doc/glibc-functions/sendfile.texi: Likewise.
39278         * doc/glibc-functions/statfs.texi: Likewise.
39280 2011-07-24  Bruno Haible  <bruno@clisp.org>
39282         doc: Fix typo.
39283         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
39285 2011-07-24  Bruno Haible  <bruno@clisp.org>
39287         doc: Mention fsusage.
39288         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
39290 2011-07-24  Bruno Haible  <bruno@clisp.org>
39292         doc: Mention new glibc headers and functions.
39293         * doc/glibc-headers/gshadow.texi: New file.
39294         * doc/glibc-functions/endsgent.texi: New file.
39295         * doc/glibc-functions/fgetsgent.texi: New file.
39296         * doc/glibc-functions/fgetsgent_r.texi: New file.
39297         * doc/glibc-functions/getsgent.texi: New file.
39298         * doc/glibc-functions/getsgent_r.texi: New file.
39299         * doc/glibc-functions/getsgnam.texi: New file.
39300         * doc/glibc-functions/getsgnam_r.texi: New file.
39301         * doc/glibc-functions/putsgent.texi: New file.
39302         * doc/glibc-functions/setsgent.texi: New file.
39303         * doc/glibc-functions/sgetsgent.texi: New file.
39304         * doc/glibc-functions/sgetsgent_r.texi: New file.
39305         * doc/glibc-functions/malloc_info.texi: New file.
39306         * doc/glibc-functions/preadv.texi: New file.
39307         * doc/glibc-functions/pwritev.texi: New file.
39308         * doc/glibc-functions/register_printf_modifier.texi: New file.
39309         * doc/glibc-functions/register_printf_specifier.texi: New file.
39310         * doc/glibc-functions/register_printf_type.texi: New file.
39311         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
39312         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
39313         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
39314         * doc/glibc-functions/pthread_getname_np.texi: New file.
39315         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
39316         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
39317         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
39318         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
39319         * doc/glibc-functions/pthread_setname_np.texi: New file.
39320         * doc/glibc-functions/pthread_sigqueue.texi: New file.
39321         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
39322         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
39323         * doc/glibc-functions/qsort_r.texi: New file.
39324         * doc/glibc-functions/quick_exit.texi: New file.
39325         * doc/glibc-functions/syncfs.texi: New file.
39326         * doc/gnulib.texi: Include them.
39327         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
39328         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
39329         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
39330         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
39331         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
39332         * doc/glibc-functions/execvpe.texi: Likewise.
39334 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
39336         ftell: don't include <unistd.h>
39337         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
39338         guaranteed to define off_t, and the ftell module depends on the
39339         stdio module.
39341         ftell: do not assume wraparound signed arithmetic
39342         * lib/ftell.c: Include <limits.h>.
39343         (ftell): Don't assume wraparound signed arithmetic.
39345 2011-07-24  Bruno Haible  <bruno@clisp.org>
39347         close: No longer depend on module 'fclose'.
39348         * modules/close (Depends-on): Remove fclose.
39349         * NEWS: Mention the change.
39350         Suggested by Sam Steingold <sds@gnu.org>.
39352 2011-07-24  Bruno Haible  <bruno@clisp.org>
39354         fsusage: Enable large volume support on AIX >= 5.2.
39355         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
39356         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
39357         instead of STAT_STATVFS.
39358         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
39360         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
39361         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
39362         f_blocks field only on MacOS X.
39364         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
39365         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
39366         * modules/fsusage (Depends-on): Add largefile.
39368 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
39370         * README: Modernize discussion of signed integers.
39371         Assuming overflow wraparound is no longer safe.
39372         Mention ones' complement and signed magnitude.
39374 2011-07-22  Bruno Haible  <bruno@clisp.org>
39376         select tests, pselect tests: Refactor.
39377         * tests/test-select.h: New file, extracted from tests/test-select.c.
39378         (select_fn): New type.
39379         (test, do_select, do_select_nowait, do_select_wait, test_tty,
39380         test_connect_first, test_accept_first, test_pair, test_socket_pair,
39381         test_pipe): Add my_select argument.
39382         (test_function): Renamed from main. Add my_select argument.
39383         * tests/test-select.c: Move most code to tests/test-select.h. Include
39384         test-select.h.
39385         * modules/select-tests (Files): Add tests/test-select.h.
39386         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
39387         (my_select, main): New functions.
39388         * modules/pselect-tests (Files): Add tests/test-select.h,
39389         tests/macros.h, tests/signature.h.
39390         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
39391         (configure.ac): Check for <sys/wait.h>.
39393 2011-07-22  Bruno Haible  <bruno@clisp.org>
39395         sys_select tests: Check the signature of FD_*.
39396         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
39397         signature tests from here...
39398         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
39399         here.
39400         * modules/sys_select-tests (Files): Add tests/signature.h.
39402 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
39404         largefile: new module, replacing large-inode
39405         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
39406         * MODULES.html.sh: Add largefile, remove large-inode.
39407         * modules/largefile, m4/largefile.m4: New files.
39408         * modules/large-inode, m4/large-inode.m4: Remove.
39410         fsusage: port to MacOS X 10.7 with 4 TiB file systems
39411         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
39412         implementations that use only 32 bits to count blocks.
39413         On typical hosts with 1024-byte blocks, this fails with file
39414         systems as small as 4 TiB.  Problem reported by Herb Wartens
39415         <http://debbugs.gnu.org/9140> and this should also fix a similar
39416         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
39418         large-inode: New module
39419         * MODULES.html.sh: Add it.
39420         * modules/large-inode, m4/large-inode.m4: New files.
39422         extensions: Enable extensions on MacOS X 10.5 and later.
39423         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
39425 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
39427         file-has-acl: use acl_extended_file_nofollow if available
39428         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
39429         (acl_extended_file): New macro.
39430         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
39431         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
39433 2011-07-21  Bruno Haible  <bruno@clisp.org>
39435         Declare system functions in a way that works with C++.
39436         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
39437         declare fdopendir as extern "C".
39438         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
39439         declare frexpl as extern "C".
39440         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
39441         declare gai_strerror as extern "C".
39442         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
39443         programs, declare gai_strerror as extern "C".
39444         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
39445         declare getlogin_r as extern "C".
39446         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
39447         as extern "C".
39448         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
39449         declare ldexpl as extern "C".
39450         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
39451         as extern "C".
39452         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
39453         program, declare getmntinfo as extern "C".
39454         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
39455         stpncpy as extern "C".
39456         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
39457         program, declare __xpg_strerror_r as extern "C".
39458         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
39459         strndup as extern "C".
39460         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
39461         declare memset and bzero as extern "C".
39462         Reported by Sam Steingold <sds@gnu.org>.
39464 2011-07-12  Jim Meyering  <meyering@redhat.com>
39466         maint.mk: prohibit inclusion of "verify.h" without use
39467         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
39469 2011-07-19  Pádraig Brady  <P@draigBrady.com>
39471         timer-time: A new module to check for timer_settime()
39472         * m4/timer_time.m4: Check for the posix function.
39473         * modules/timer-time: Add the new module.
39474         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
39475         Mention it.
39477 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
39478             Bruno Haible  <bruno@clisp.org>
39480         pthread_sigmask: assume POSIX threads if --avoid=threadlib
39481         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
39482         not defined, assume POSIX threads and look for pthread_sigmask in
39483         $LIBS, without changing $CPPFLAGS.
39485 2011-07-19  Bruno Haible  <bruno@clisp.org>
39487         strstr: Update cross-compilation guess.
39488         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
39489         CPUs, guess no, in view of glibc
39490         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
39491         Suggested by Eric Blake. Reported by Reuben Thomas.
39493 2011-07-19  Pádraig Brady  <P@draigBrady.com>
39495         getopt-gnu: suppress core dumps from detection code
39496         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
39497         to suppress core dumps that may well occur on glibc systems.
39498         * modules/getopt-gnu: Depend on nocrash.
39500 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
39502         pthread_sigmask: ensure usleep is declared
39503         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
39504         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
39506 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
39508         doc: Document NonStop portability issues.
39509         * doc/posix-functions/sigaction.texi (sigaction):
39510         * doc/posix-headers/signal.texi (signal.h):
39511         Document NonStop.  See Joachim Schmitz in
39512         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
39514 2011-07-15  Bruno Haible  <bruno@clisp.org>
39516         ffsl, ffsll: Avoid unportable behaviour.
39517         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
39519 2011-07-15  Bruno Haible  <bruno@clisp.org>
39521         ffs: More tests.
39522         * tests/test-ffs.c (NBITS): New macro.
39523         (main): Add more tests.
39524         * tests/test-ffsl.c (NBITS): New macro.
39525         (main): Add more tests.
39526         * tests/test-ffsll.c (NBITS): New macro.
39527         (main): Add more tests.
39529 2011-07-15  Eric Blake  <eblake@redhat.com>
39531         ffsl, ffsll: new modules
39532         * modules/ffsl: New file.
39533         * modules/ffsll: Likewise.
39534         * m4/ffsl.m4: Likewise.
39535         * m4/ffsll.m4: Likewise.
39536         * lib/ffsl.c: Likewise.
39537         * lib/ffsl.h: Likewise.
39538         * lib/ffsll.c: Likewise.
39539         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
39540         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
39541         * modules/string (Makefile.am): Substitute witnesses.
39542         * lib/strings.in.h (ffsl, ffsll): Declare.
39543         * modules/ffsl-tests: New test file.
39544         * modules/ffsll-tests: Likewise.
39545         * tests/test-ffsl.c: Likewise.
39546         * tests/test-ffsll.c: Likewise.
39547         * MODULES.html.sh (Integer arithmetic functions): Mention it.
39548         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
39549         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
39551         ffs: fix m4 prerequisite
39552         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
39554         ffs: avoid undefined behavior
39555         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
39556         * tests/test-ffs.c (naive, main): Avoid signed shifts.
39557         Reported by Bruno Haible.
39559 2011-07-12  Bruno Haible  <bruno@clisp.org>
39561         pthread_sigmask: Rely on module 'threadlib'.
39562         * modules/pthread_sigmask (Depends-on): Add threadlib.
39563         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
39564         is defined.
39566 2011-07-12  Bruno Haible  <bruno@clisp.org>
39568         regex: Depend on module 'strcase'.
39569         * modules/regex (Depends-on): Add strcase, for strcasecmp().
39571 2011-07-12  Jim Meyering  <meyering@redhat.com>
39573         warn-on-use: fix typo in file name
39574         * modules/snippet/warn-on-use (Files): Correct file name:
39575         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
39577 2011-07-12  Bruno Haible  <bruno@clisp.org>
39579         strings: Document module.
39580         * doc/posix-headers/strings.texi: Mention module 'strings'.
39582 2011-07-12  Bruno Haible  <bruno@clisp.org>
39584         Rename module '_Noreturn' to 'snippet/_Noreturn'.
39585         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
39586         (Files, Makefile.am): Update.
39587         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
39588         * modules/stdlib (Depends-on): Update.
39590 2011-07-12  Bruno Haible  <bruno@clisp.org>
39592         * NEWS: Mention the changes.
39594         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
39595         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
39596         (Files, Makefile.am): Update.
39597         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
39598         * modules/arpa_inet (Depends-on): Update.
39599         * modules/ctype (Depends-on): Update.
39600         * modules/dirent (Depends-on): Update.
39601         * modules/fcntl-h (Depends-on): Update.
39602         * modules/glob (Depends-on): Update.
39603         * modules/iconv-h (Depends-on): Update.
39604         * modules/inttypes-incomplete (Depends-on): Update.
39605         * modules/langinfo (Depends-on): Update.
39606         * modules/locale (Depends-on): Update.
39607         * modules/math (Depends-on): Update.
39608         * modules/netdb (Depends-on): Update.
39609         * modules/poll-h (Depends-on): Update.
39610         * modules/pty (Depends-on): Update.
39611         * modules/search (Depends-on): Update.
39612         * modules/signal (Depends-on): Update.
39613         * modules/spawn (Depends-on): Update.
39614         * modules/stdio (Depends-on): Update.
39615         * modules/stdlib (Depends-on): Update.
39616         * modules/string (Depends-on): Update.
39617         * modules/strings (Depends-on): Update.
39618         * modules/sys_file (Depends-on): Update.
39619         * modules/sys_ioctl (Depends-on): Update.
39620         * modules/sys_select (Depends-on): Update.
39621         * modules/sys_socket (Depends-on): Update.
39622         * modules/sys_stat (Depends-on): Update.
39623         * modules/sys_time (Depends-on): Update.
39624         * modules/sys_times (Depends-on): Update.
39625         * modules/sys_utsname (Depends-on): Update.
39626         * modules/sys_wait (Depends-on): Update.
39627         * modules/termios (Depends-on): Update.
39628         * modules/time (Depends-on): Update.
39629         * modules/unistd (Depends-on): Update.
39630         * modules/wchar (Depends-on): Update.
39631         * modules/wctype-h (Depends-on): Update.
39632         * MODULES.html.sh (Support for building libraries and executables):
39633         Update.
39635         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
39636         * modules/snippet/unused-parameter: Renamed from
39637         modules/unused-parameter.
39638         (Files, Makefile.am): Update.
39639         * build-aux/snippet/unused-parameter.h: Renamed from
39640         build-aux/unused-parameter.h.
39641         * modules/selinux-h (Depends-on): Update.
39642         * modules/unistr/base (Depends-on): Update.
39643         * MODULES.html.sh (Core language properties): Update.
39645         Rename module 'link-warning' to 'snippet/link-warning'.
39646         * modules/snippet/link-warning: Renamed from modules/link-warning.
39647         (Files, Makefile.am): Update.
39648         * build-aux/snippet/link-warning.h: Renamed from
39649         build-aux/link-warning.h.
39650         * MODULES.html.sh (Support for building libraries and executables):
39651         Update.
39653         Rename module 'c++defs' to 'snippet/c++defs'.
39654         * modules/snippet/c++defs: Renamed from modules/c++defs.
39655         (Files, Makefile.am): Update.
39656         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
39657         * modules/arpa_inet (Depends-on): Update.
39658         * modules/ctype (Depends-on): Update.
39659         * modules/dirent (Depends-on): Update.
39660         * modules/fcntl-h (Depends-on): Update.
39661         * modules/glob (Depends-on): Update.
39662         * modules/iconv-h (Depends-on): Update.
39663         * modules/langinfo (Depends-on): Update.
39664         * modules/locale (Depends-on): Update.
39665         * modules/math (Depends-on): Update.
39666         * modules/netdb (Depends-on): Update.
39667         * modules/poll-h (Depends-on): Update.
39668         * modules/pty (Depends-on): Update.
39669         * modules/search (Depends-on): Update.
39670         * modules/signal (Depends-on): Update.
39671         * modules/spawn (Depends-on): Update.
39672         * modules/stdio (Depends-on): Update.
39673         * modules/stdlib (Depends-on): Update.
39674         * modules/string (Depends-on): Update.
39675         * modules/strings (Depends-on): Update.
39676         * modules/sys_ioctl (Depends-on): Update.
39677         * modules/sys_select (Depends-on): Update.
39678         * modules/sys_socket (Depends-on): Update.
39679         * modules/sys_stat (Depends-on): Update.
39680         * modules/sys_time (Depends-on): Update.
39681         * modules/sys_wait (Depends-on): Update.
39682         * modules/termios (Depends-on): Update.
39683         * modules/time (Depends-on): Update.
39684         * modules/unistd (Depends-on): Update.
39685         * modules/wchar (Depends-on): Update.
39686         * modules/wctype-h (Depends-on): Update.
39688         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
39689         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
39690         (Files, Makefile.am): Update.
39691         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
39692         * modules/argv-iter (Depends-on): Update.
39693         * modules/arpa_inet (Depends-on): Update.
39694         * modules/dirent (Depends-on): Update.
39695         * modules/fcntl-h (Depends-on): Update.
39696         * modules/fnmatch (Depends-on): Update.
39697         * modules/getopt-posix (Depends-on): Update.
39698         * modules/glob (Depends-on): Update.
39699         * modules/iconv-h (Depends-on): Update.
39700         * modules/inttypes-incomplete (Depends-on): Update.
39701         * modules/locale (Depends-on): Update.
39702         * modules/math (Depends-on): Update.
39703         * modules/netdb (Depends-on): Update.
39704         * modules/search (Depends-on): Update.
39705         * modules/signal (Depends-on): Update.
39706         * modules/spawn (Depends-on): Update.
39707         * modules/stdio (Depends-on): Update.
39708         * modules/stdlib (Depends-on): Update.
39709         * modules/string (Depends-on): Update.
39710         * modules/strings (Depends-on): Update.
39711         * modules/sys_socket (Depends-on): Update.
39712         * modules/sys_stat (Depends-on): Update.
39713         * modules/sys_time (Depends-on): Update.
39714         * modules/sys_times (Depends-on): Update.
39715         * modules/sys_utsname (Depends-on): Update.
39716         * modules/time (Depends-on): Update.
39717         * modules/unistd (Depends-on): Update.
39718         * modules/wchar (Depends-on): Update.
39719         * MODULES.html.sh (Support for building libraries and executables):
39720         Update.
39722 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
39724         Improvements on _Noreturn and related modules.
39726         modules/_Exit-tests: test _Noreturn too
39727         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
39728         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
39729         (main): Use them.
39731         stdnoreturn, stdnoreturn-tests: remove modules
39732         They're not needed here and a bit premature for use elsewhere.  See
39733         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
39734         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
39735         * tests/test-stdnoreturn.c: Remove files.
39736         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
39737         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
39738         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
39739         and using noreturn.
39740         * modules/openat, modules/sigpipe-die, modules/xalloc:
39741         * modules/xmemdup0, modules/xstrtol:
39742         Remove dependency on stdnoreturn.
39744         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
39745         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
39746         Reparenthesize to avoid GCC warning.
39747         Support Microsoft's syntax.
39748         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
39750         _Noreturn-tests: remove module
39751         * modules/_Noreturn-tests: Remove.
39752         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
39753         * tests/test-_Noreturn.c: Remove.
39754         * tests/test-stdnoreturn.c: Merge from the old
39755         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
39757 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
39759         _Noreturn, stdnoreturn, and related modules.
39761         * top/maint.mk: Adjust to new noreturn support.
39762         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
39763         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
39765         xalloc: use stdnoreturn.h
39766         * lib/xalloc.h: Include <stdnoreturn.h>.
39767         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
39768         * modules/xalloc (Depends-on): Add stdnoreturn.
39770         xstrtol: use stdnoreturn.h
39771         * lib/xstrtol.h: Include <stdnoreturn.h>.
39772         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
39773         * modules/xstrtol (Depends-on): Add stdnoreturn.
39775         xmemdup0: use stdnoreturn.h
39776         * lib/xmemdup0.h: Include <stdnoreturn.h>.
39777         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
39778         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
39780         sigpipe-die: use stdnoreturn.h
39781         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
39782         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
39783         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
39785         openat: use stdnoreturn.h
39786         * lib/openat.h: Include <stdnoreturn.h>.
39787         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
39788         * modules/openat (Depends-on): Add stdnoreturn.
39790         * lib/openat-die.c (openat_save_fail): Modernize comment.
39792         * lib/xalloc-die.c (xalloc_die): Modernize comment.
39794         * lib/glthread/thread.h: Modernize comment.
39796         obstack: use _Noreturn
39797         * lib/obstack.c (__attribute__): Remove macro.
39798         (print_and_abort): Use _Noreturn.
39800         c-stack: use _Noreturn
39801         * lib/c-stack.c (die, overflow_handler, segv_handler):
39802         Use _Noreturn rather than __attribute__((noreturn)).
39804         argmatch-tests, exclude_tests: use _Noreturn
39805         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
39806         Remove.
39807         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
39809         stdlib: use _Noreturn
39810         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
39811         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
39812         * modules/stdlib (Depends-on): Add _Noreturn.
39813         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
39815         stdnoreturn-tests: new module
39816         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
39818         stdnoreturn: new module
39819         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
39820         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
39822         _Noreturn-tests: new module
39823         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
39825         _Noreturn: new module
39826         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
39827         New section, mentioning it.
39828         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
39830         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
39832 2011-07-11  Eric Blake  <eblake@redhat.com>
39834         ffs: new module
39835         * modules/ffs: New file.
39836         * m4/ffs.m4: Likewise.
39837         * lib/ffs.c: Likewise.
39838         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
39839         * modules/strings (Makefile.am): Substitute witness.
39840         (Depends-on): Add c++defs.
39841         * lib/strings.in.h (ffs): Declare.
39842         * modules/ffs-tests: New test file.
39843         * tests/test-ffs.c: Test new module.
39844         * MODULES.html.sh (Integer arithmetic functions): Mention it.
39845         * doc/posix-functions/ffs.texi (ffs): Likewise.
39847         regex: avoid compiler warning
39848         * lib/regex.c (includes): Include <strings.h>, for use of
39849         strcasecmp in regcomp.c.
39850         Reported by Joachim Schmitz.
39852 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
39854         stdint: respect system's intmax_t if INTMAX_MAX
39855         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
39856         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
39857         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
39858         long but int64_t is long long, and where we will clash with the
39859         system intmax_t if we override it.  See
39860         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
39861         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
39862         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
39863         similarly for UINTMAX_C.
39865 2011-07-08  Bruno Haible  <bruno@clisp.org>
39867         pthread_sigmask tests: Avoid a compiler warning.
39868         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
39869         non-zero.
39871         sigprocmask tests: A better way to avoid a compiler warning.
39872         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
39873         (main): Complain if system() returns non-zero.
39874         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
39876 2011-07-08  Bruno Haible  <bruno@clisp.org>
39878         pthread_sigmask: Work around IRIX bug.
39879         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
39880         bug.
39881         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
39882         there may be unblocked pending signals.
39883         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
39885 2011-07-08  Bruno Haible  <bruno@clisp.org>
39887         pthread_sigmask: Work around Cygwin bug.
39888         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
39889         bug.
39890         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
39891         the system's pthread_sigmask function.
39892         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
39894 2011-07-08  Bruno Haible  <bruno@clisp.org>
39896         pthread_sigmask: Work around bug in single-threaded implementation.
39897         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
39898         FreeBSD, HP-UX, Solaris bug.
39899         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
39900         * lib/pthread_sigmask.c: Include <stddef.h>.
39901         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
39902         the system's pthread_sigmask function.
39903         * modules/pthread_sigmask (configure.ac): Invoke
39904         gl_PREREQ_PTHREAD_SIGMASK.
39905         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
39906         HP-UX, Solaris.
39908 2011-07-08  Eric Blake  <eblake@redhat.com>
39910         test-sigprocmask: avoid compiler warning
39911         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
39912         * tests/test-sigprocmask.c (main): Use it to silence warning.
39913         Reported by Jim Meyering.
39915         test-snprintf: avoid compiler warning
39916         * tests/test-snprintf.c (main): Avoid shadowed declaration.
39917         * tests/test-vsnprintf.c (main): Likewise.
39918         Reported by Jim Meyering.
39920 2011-07-08  Bruno Haible  <bruno@clisp.org>
39922         Tests for module 'pthread_sigmask'.
39923         * modules/pthread_sigmask-tests: New file.
39924         * tests/test-pthread_sigmask1.c: New file, based on
39925         tests/test-sigprocmask.c.
39926         * tests/test-pthread_sigmask2.c: New file.
39928 2011-07-08  Jim Meyering  <meyering@redhat.com>
39930         test-getopt.h: avoid warning about an unused variable
39931         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
39933 2011-07-07  Jim Meyering  <meyering@redhat.com>
39935         maint: reduce list of files exempt from sc_prohibit_leading_TABs
39936         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
39937         now that it no longer contains leading TABs.
39938         Remove unused "url=FIXME" statement.
39940 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
39942         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
39943         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
39944         When gl_THREADLIB is not in use, assume that the POSIX sematics
39945         are desired.  This is better for Emacs, which uses POSIX semantics
39946         on GNUish and/or POSIXish platforms, and does not use threads at
39947         all otherwise.
39949         pthread_sigmask: fix typo when testing for libraries
39950         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
39951         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
39953 2011-07-08  Eric Blake  <eblake@redhat.com>
39955         fts: introduce FTS_NOATIME
39956         * lib/fts_.h (FTS_NOATIME): New bit flag.
39957         (FTS_OPTIONMASK): Adjust.
39958         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
39959         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
39961 2011-07-08  Bruno Haible  <bruno@clisp.org>
39963         Tests for module 'thread'.
39964         * modules/thread-tests: New file.
39965         * tests/test-thread_self.c: New file.
39966         * tests/test-thread_create.cc: New file.
39968 2011-07-08  Bruno Haible  <bruno@clisp.org>
39970         thread: Avoid gcc warnings when using gl_thread_self().
39971         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
39972         'void *'.
39973         (gl_thread_self_pointer): Update.
39975 2011-07-07  Bruno Haible  <bruno@clisp.org>
39977         signal-c++-tests: Check declaration of pthread_sigmask.
39978         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
39979         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
39980         $(LIB_PTHREAD_SIGMASK).
39982 2011-07-07  Bruno Haible  <bruno@clisp.org>
39984         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
39985         * lib/signal.in.h (pthread_sigmask): Override if
39986         REPLACE_PTHREAD_SIGMASK is 1.
39987         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
39988         REPLACE_PTHREAD_SIGMASK.
39989         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
39990         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
39991         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
39992         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
39993         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
39995 2011-07-07  Bruno Haible  <bruno@clisp.org>
39997         pthread_sigmask: Ensure declaration in <signal.h>.
39998         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
39999         include <pthread.h>.
40000         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
40001         problem.
40003 2011-07-07  Bruno Haible  <bruno@clisp.org>
40005         pthread_sigmask: Document the module.
40006         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
40008 2011-07-07  Bruno Haible  <bruno@clisp.org>
40010         pthread_sigmask: Follow gnulib conventions.
40011         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
40012         gl_PTHREAD_SIGMASK.
40013         * modules/pthread_sigmask (configure.ac): Update.
40015 2011-07-07  Bruno Haible  <bruno@clisp.org>
40017         pthread_sigmask: Make declaration C++ safe.
40018         * lib/signal.in.h: In two special conditions, just do an #include_next.
40019         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
40020         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
40021         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
40022         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
40023         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
40024         not REPLACE_PTHREAD_MASK.
40025         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
40026         not REPLACE_PTHREAD_MASK.
40027         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
40029 2011-07-07  Bruno Haible  <bruno@clisp.org>
40031         pthread_sigmask: Fix return value.
40032         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
40033         * lib/pthread_sigmask.c: New file.
40034         * modules/pthread_sigmask (Files): Add it.
40035         (configure.ac): Invoke AC_LIBOBJ.
40037 2011-07-07  Eric Blake  <eblake@redhat.com>
40039         getopt: more portable argv creation
40040         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
40041         const, use char arrays rather than strings.
40042         Suggested by Paul Eggert.
40044 2011-07-07  Bruno Haible  <bruno@clisp.org>
40046         Tests for module 'sigprocmask'.
40047         * modules/sigprocmask-tests: New file.
40048         * tests/test-sigprocmask.c: New file.
40050 2011-07-07  Bruno Haible  <bruno@clisp.org>
40052         float tests: Tweak.
40053         * tests/test-float.c (main): Tweak skip message.
40055 2011-07-07  Eric Blake  <eblake@redhat.com>
40057         getopt: avoid compiler warning during configure
40058         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
40059         assigning string literals to non-const pointer.
40061         getopt-gnu: avoid crash in glibc getopt
40062         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
40063         * tests/test-getopt.h (test_getopt): Enhance test.
40064         * tests/test-getopt_long.h (test_getopt_long): Likewise.
40065         * doc/posix-functions/getopt.texi (getopt): Document it.
40066         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
40067         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40068         Likewise.
40070 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
40072         getopt: handle W; without long options in getopt [BZ #12922]
40073         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
40074         but no long options are defined, just return 'W'.
40076 2011-07-07  Bruno Haible  <bruno@clisp.org>
40078         Avoid literal tabs.
40079         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
40080         variable containing a tab instead of a literal tab.
40081         Reported by Jim Meyering.
40083 2011-07-07  Bruno Haible  <bruno@clisp.org>
40085         Comments.
40086         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
40088 2011-07-06  Bruno Haible  <bruno@clisp.org>
40090         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
40091         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
40092         <winsock2.h>.
40093         (rpl_fd_isset, FD_ISSET): New definitions, copied from
40094         lib/sys_socket.in.h.
40095         (close, gethostname): Hide declarations from <winsock2.h>.
40096         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
40097         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
40098         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
40099         (select): Don't override if gnulib's <sys/select.h> was already
40100         included.
40101         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
40102         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
40103         setsockopt, shutdown, select): Tweak indentation.
40105 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
40107         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
40108         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
40109         in an application that does not use the sys_select module.
40111 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
40113         poll: do not return 0 on timeout=-1
40114         * lib/poll.c: Loop with yield if no events occurred.
40116 2011-07-06  Eric Blake  <eblake@redhat.com>
40118         pthread_sigmask: always replace when not using pthread
40119         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
40120         replacement when using some threading other than pthread.  Fix
40121         logic bug.
40123 2011-07-06  Bruno Haible  <bruno@clisp.org>
40125         Comments.
40126         * m4/printf.m4: Update comments about mingw.
40128 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
40130         sys_select: define sigset_t more portably
40131         * lib/sys_select.in.h: Always include <sys/types.h>, since
40132         we now need sigset_t and mingw defines it there.
40133         Include <signal.h> before split inclusion guard, to avoid
40134         mishaps on Solaris, whose <signal.h> eventually includes us.
40135         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
40136         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
40137         which come from ...
40138         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
40139         gl_CHECK_TYPE_SIGSET_T.
40140         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
40141         does the real work.
40142         * modules/sys_select (Depends-on): Add 'signal'.
40144         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
40145         Suggested by Bruno Haible.
40147         pselect: Use pthread_sigmask, not sigprocmask.
40148         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
40149         multithreaded apps better than sigprocmask does.
40150         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
40151         sigprocmask directly.
40153 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
40155         * lib/pselect.c (pselect): Use plain name, without "rpl_".
40156         Don't #undef,  since we don't need any underlying pselect.
40157         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
40158         (Depends-on): Add select.
40159         (Link): Add $(LIBSOCKET).
40160         These changes suggested by Bruno Haible.
40162         pselect: document better
40163         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
40164         * doc/posix-functions/pselect.texi (pselect): Document new module.
40166         pthread_sigmask: new module
40167         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
40168         * doc/posix-functions/pthread_sigmask.texi: Document new module.
40169         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
40170         This is done only as a macro; I don't know how well that'll
40171         work for C++.  Move <sys/types.h> include before the include_next,
40172         to avoid mishap on Solaris.
40173         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
40174         * modules/signal (Makefile.am): Substitute the check's results.
40175         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
40177         test-pselect: new module
40178         * modules/pselect-tests, tests/test-pselect.c: New files.
40179         * tests/test-select.c, tests/test-sys_select-c++.cc:
40180         If TEST_PSELECT is defined, test pselect instead of testing select.
40182         * tests/test-sys_select.c (sigset_t): Test for it, too.
40183         Suggested by Bruno Haible.
40185 2011-07-05  Eric Blake  <eblake@redhat.com>
40187         snprintf: guarantee %1$d, for libintl
40188         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
40189         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
40190         * doc/posix-functions/snprintf.texi (snprintf): Update.
40191         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
40192         * tests/test-snprintf.c (main): Enhance test.
40193         * tests/test-vsnprintf.c (main): Likewise.
40195 2011-07-05  Jim Meyering  <meyering@redhat.com>
40197         maint: exempt stdio-read.c and stdio-write.c from the cppi check
40198         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
40199         per Bruno's request, to accommodate this idiom (no space after "#")
40200         even when the function is inside an #if block:
40201         char *
40202         gets (char *s)
40203         #undef gets
40204         {
40205           ...
40206         }
40208 2011-07-04  Jim Meyering  <meyering@redhat.com>
40210         maint: indent with spaces, not TABs, and add a rule to check this
40211         * tests/test-userspec.c: Indent with spaces, not TABs.
40212         * tests/test-argp.c: Likewise.
40213         * tests/test-c-stack2.sh: Likewise.
40214         * tests/test-parse-duration.sh: Likewise
40215         * m4/strtod.m4: Likewise.
40216         * m4/alloca.m4: Likewise.
40217         * m4/pselect.m4: Likewise.
40218         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
40220 2011-07-03  Jim Meyering  <meyering@redhat.com>
40222         maint.mk: correct omissions in prohibit_argmatch_without_use check
40223         This rule would mistakenly report that argmatch.h is included without
40224         use even when both the argmatch and invalid_arg macro were used.
40225         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
40226         of argmatch and invalid_arg.
40228 2011-07-03  Bruno Haible  <bruno@clisp.org>
40230         Comments about EINTR.
40231         * lib/safe-read.h: Explain the purpose of this module.
40232         * lib/safe-write.h: Likewise.
40233         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
40234         module.
40235         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
40236         module.
40237         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40239 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
40241         xnanosleep: Rewrite to use new dtotimespec module.
40242         It has the conversion code that used to be in xnanosleep.
40243         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
40244         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
40245         (TIME_T_MAX): Remove.
40246         (xnanosleep): Rewrite in terms of dtotimespec.
40247         * modules/xnanosleep (Depends-on): Add dtotimespec.
40248         Remove intprops, stdbool.
40250         timespec-add, timespec-sub: new modules
40251         * lib/timespec.h (timespec_add, timespec_sub): New decls.
40252         * lib/timespec-add.c, lib/timespec-sub.c:
40253         * modules/timespec-add, modules/timespec-sub: New files.
40255         dtotimespec: new module
40256         * lib/timespec.h (dtotimespec): New decl.
40257         * lib/dtotimespec.c, modules/dtotimespec: New files.
40259         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
40261         pselect: new module
40262         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
40263         (pselect): New decls.
40264         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
40265         since the standard pselect decl uses 'restrict'.
40266         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
40267         HAVE_PSELECT, REPLACE_PSELECT.
40268         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
40269         HAVE_PSELECT, REPLACE_PSELECT.
40270         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
40272         sys_select: don't depend on sys_socket
40273         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
40274         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
40275         This fix works on GNU and GNU-like platforms, but has not been tested
40276         on native Windows.
40277         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
40278         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
40279         gl_HEADER_SYS_SOCKET.
40280         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
40281         gl_PREREQ_SYS_H_WINSOCK2.
40283 2011-06-29  Eric Blake  <eblake@redhat.com>
40285         pipe2: fix C89 compile problem
40286         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
40287         Reported by Bruno Haible.
40289         pipe, pipe2: don't corrupt fd on error
40290         * lib/pipe.c (pipe): Leave fd unchanged on error.
40291         * lib/pipe2.c (pipe2): Likewise.
40292         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
40293         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
40295 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
40297         mmap-anon: do not use regular expressions inadvertently
40298         * m4/mmap-anon.m4: Remove trailing period from strings sought
40299         in the output.
40301 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
40303         nanosleep: fix integer overflow problem
40304         * lib/nanosleep.c (my_usleep): Don't assume signed integer
40305         arithmetic wraps around on overflow.
40307         nanosleep: simplify carrying
40308         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
40309         first call to the underyling nanosleep, not for the last one.
40310         This doesn't fix any bugs, but it simplifies the computation of
40311         the remaining delay.  Found while auditing integer overflow issues.
40313         dup2: remove test for existence of fcntl
40314         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
40315         "#if HAVE_FCNTL", in the configure-time test program.
40316         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
40317         and therefore speeds up "configure" a bit.  Found while
40318         adding the dup2 module to Emacs.
40320 2011-06-24  Eric Blake  <eblake@redhat.com>
40322         maint.mk: enhance useless header checks
40323         * top/maint.mk (_sc_header_without_use): Check both include
40324         styles.
40325         (sc_prohibit_assert_without_use)
40326         (sc_prohibit_close_stream_without_use)
40327         (sc_prohibit_getopt_without_use)
40328         (sc_prohibit_quotearg_without_use)
40329         (sc_prohibit_quote_without_use)
40330         (sc_prohibit_long_options_without_use)
40331         (sc_prohibit_inttostr_without_use)
40332         (sc_prohibit_ignore_value_without_use)
40333         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
40334         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
40335         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
40336         (sc_prohibit_hash_pjw_without_use)
40337         (sc_prohibit_safe_read_without_use)
40338         (sc_prohibit_argmatch_without_use)
40339         (sc_prohibit_canonicalize_without_use)
40340         (sc_prohibit_root_dev_ino_without_use)
40341         (sc_prohibit_openat_without_use)
40342         (sc_prohibit_c_ctype_without_use)
40343         (sc_prohibit_signal_without_use)
40344         (sc_prohibit_stdio--_without_use)
40345         (sc_prohibit_stdio-safer_without_use)
40346         (sc_prohibit_strings_without_use)
40347         (sc_prohibit_intprops_without_use)
40348         (sc_prohibit_stddef_without_use)
40349         (sc_prohibit_xfreopen_without_use): Update clients.
40351 2011-06-24  Jim Meyering  <meyering@redhat.com>
40353         syntax-check: keep one maint.mk rule in sync with its header
40354         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
40355         of the bug Eric has just fixed, with today's commit 25e4c2ec.
40356         I prefer to avoid temporary files here, so use <(...), but that
40357         is not supported by /bin/sh, so...
40358         (SHELL): Define to /bin/bash.
40360 2011-06-24  Eric Blake  <eblake@redhat.com>
40362         maint.mk: update sc_prohibit_intprops_without_use
40363         * top/maint.mk (_intprops_names): Match recent changes.
40365 2011-06-24  Bruno Haible  <bruno@clisp.org>
40367         strerror-override: No-op tweak.
40368         * lib/strerror-override.h (strerror_override): Reorder conditions,
40369         for consistency with lib/strerror-override.c.
40371 2011-06-23  Eric Blake  <eblake@redhat.com>
40373         maint.mk: test further PATH_MAX issues
40374         * top/maint.mk (sc_prohibit_path_max_array): Rename...
40375         (sc_prohibit_path_max_allocation): ...and also test alloca.
40376         Suggested by Jim Meyering.
40378 2011-06-22  Eric Blake  <eblake@redhat.com>
40380         maint.mk: add syntax-check to avoid char[PATH_MAX]
40381         * top/maint.mk (sc_prohibit_path_max_array): New rule.
40383         stat: be robust to PATH_MAX definition
40384         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
40385         * modules/stat (Depends-on): Add verify.
40387         link: work around IRIX bug
40388         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
40389         * lib/link.c (rpl_link): Work around it.
40390         * tests/test-link.h (test_link): Enhance test.
40391         * doc/posix-functions/link.texi (link): Document the bug.
40393         getopt: silence clang warning
40394         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
40395         dereference.
40396         Reported by Gustavo Martin Domato.
40398 2011-06-22  Jim Meyering  <meyering@redhat.com>
40400         bootstrap: do not insert a blank line into each .gitignore file
40401         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
40403 2011-06-21  Eric Blake  <eblake@redhat.com>
40405         perror: test for output mismatch
40406         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
40407         perror on IRIX.
40409         strerror_r: fix OpenBSD behavior on out-of-range
40410         * lib/strerror_r.c (strerror_r): Always use maximal string.
40411         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
40413         strerror_r: fix OpenBSD behavior on 0
40414         * lib/strerror-override.c (strerror_override): Also override 0
40415         when needed.
40416         * lib/strerror-override.h (strerror_override): Likewise.
40417         * lib/strerror.c (strerror): Simplify, now that 0 override is done
40418         earlier.
40419         * lib/strerror_r.c (strerror_r): Likewise.
40420         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
40421         behavior...
40422         (gl_FUNC_STRERROR_0): ...into new macro.
40423         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
40424         is overridden.
40425         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
40426         * modules/strerror-override (Files): Add strerror.m4.
40427         (configure.ac): Also provide override for 0 when needed.
40428         * doc/posix-functions/strerror.texi (strerror): Document this.
40429         * doc/posix-functions/perror.texi (perror): Likewise.
40431         perror: adjust array size
40432         * modules/perror (Depends-on): Add strerror-override.
40433         * lib/perror.c (perror): Use it to avoid magic number.
40435         strerror-override: reduce size
40436         * lib/strerror-override.c (strerror_override): Use fewer lines.
40438 2011-06-20  Bruno Haible  <bruno@clisp.org>
40440         pathmax: Ensure correct value for PATH_MAX on HP-UX.
40441         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
40443 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
40445         alloca: port to compilers that can optimize like GCC 4.6.0
40446         * lib/alloca.c (find_stack_direction): New signature, taken from
40447         Autoconf git.  This works with GCC 4.6.0.  This code should never
40448         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
40449         be used with other compilers that optimize as well as GCC 4.6.0 does.
40450         (alloca): Adjust to new signature.
40451         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
40452         New macro, which patches Autoconf in a similar way.
40454         c-stack: stop worrying about stack direction
40455         * lib/c-stack.c (find_stack_direction): Remove.
40456         (segv_handler): Don't worry about stack direction growth, as it's
40457         too much of a pain to configure this correctly, given how compilers
40458         are optimizing-away our stack-growth detection code.  Instead, assume
40459         that any access to just before or just after the stack is OK.
40460         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
40461         Don't require AC_FUNC_ALLOCA; no longer needed.
40463 2011-06-20  Eric Blake  <eblake@redhat.com>
40465         test-stat: don't allocate PATH_MAX bytes
40466         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
40467         PATH_MAX-sized buffer.
40468         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
40469         * modules/stat-tests (Depends-on): Likewise.
40470         * tests/test-fstatat.c (includes): Drop pathmax.h.
40471         * tests/test-stat.c (includes): Likewise.
40472         Reported by Bruno Haible.
40474 2011-06-20  Bruno Haible  <bruno@clisp.org>
40476         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
40477         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
40478         * lib/float.c: New file.
40479         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
40480         REPLACE_FLOAT_LDBL.
40481         * modules/float (Files): Add lib/float.c.
40482         (configure.ac): Invoke AC_LIBOBJ.
40483         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
40485 2011-06-20  Bruno Haible  <bruno@clisp.org>
40487         Tests for module 'float'.
40488         * modules/float-tests: New file.
40489         * tests/test-float.c: New file.
40491 2011-06-19  Bruno Haible  <bruno@clisp.org>
40493         isinf: Coding style.
40494         * lib/isinf.c: Use GNU coding style.
40496 2011-06-19  Bruno Haible  <bruno@clisp.org>
40498         linkat test: Avoid test failure on AIX 7.1.
40499         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
40500         * tests/test-link.h (test_link): Likewise.
40502 2011-06-19  Bruno Haible  <bruno@clisp.org>
40504         pread test: Avoid test failure on OpenBSD 4.9.
40505         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
40507 2011-06-19  Bruno Haible  <bruno@clisp.org>
40509         sprintf-posix: Fix test failure on AIX 7.1.
40510         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
40511         * doc/posix-functions/dprintf.texi: Mention limited precision problem
40512         on AIX.
40513         * doc/posix-functions/fprintf.texi: Likewise.
40514         * doc/posix-functions/printf.texi: Likewise.
40515         * doc/posix-functions/snprintf.texi: Likewise.
40516         * doc/posix-functions/sprintf.texi: Likewise.
40517         * doc/posix-functions/vdprintf.texi: Likewise.
40518         * doc/posix-functions/vfprintf.texi: Likewise.
40519         * doc/posix-functions/vprintf.texi: Likewise.
40520         * doc/posix-functions/vsnprintf.texi: Likewise.
40521         * doc/posix-functions/vsprintf.texi: Likewise.
40523 2011-06-19  Bruno Haible  <bruno@clisp.org>
40525         roundl-ieee: Fix test failure on AIX 7.1.
40526         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
40527         * doc/posix-functions/roundl.texi: Mention problem with negative
40528         arguments.
40530 2011-06-19  Bruno Haible  <bruno@clisp.org>
40532         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
40533         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
40534         * doc/posix-functions/round.texi: Mention problem with negative
40535         arguments.
40536         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
40538 2011-06-19  Bruno Haible  <bruno@clisp.org>
40540         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
40541         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
40542         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
40543         * doc/posix-functions/roundf.texi: Mention problem with negative
40544         arguments.
40545         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
40547 2011-06-19  Bruno Haible  <bruno@clisp.org>
40549         ceilf-ieee: Work around bug on MacOS X 10.5.
40550         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
40552         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
40553         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
40554         IEEE compliant, avoid compiler optimizations.
40555         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
40556         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
40557         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
40558         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
40559         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
40560         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
40561         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
40562         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40563         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40564         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
40566 2011-06-19  Bruno Haible  <bruno@clisp.org>
40568         ceilf-ieee: Work around bug on AIX 7.1.
40569         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
40570         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
40572 2011-06-19  Bruno Haible  <bruno@clisp.org>
40574         ceil-ieee: Work around bug on AIX 7.1.
40575         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
40576         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
40578 2011-06-18  Bruno Haible  <bruno@clisp.org>
40580         fsync test: Avoid test failure on MacOS X and AIX.
40581         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
40582         EINVAL.
40584 2011-06-18  Bruno Haible  <bruno@clisp.org>
40586         openat, fdopendir tests: Fix link errors.
40587         * modules/openat-tests (Depends-on): Add progname.
40588         * modules/fdopendir-tests (Depends-on): Likewise.
40589         * tests/test-fchownat.c: Include progname.h.
40590         (main): Call set_program_name.
40591         * tests/test-fstatat.c: Include progname.h.
40592         (main): Call set_program_name.
40593         * tests/test-mkdirat.c: Include progname.h.
40594         (main): Call set_program_name.
40595         * tests/test-openat.c: Include progname.h.
40596         (main): Call set_program_name.
40597         * tests/test-unlinkat.c: Include progname.h.
40598         (main): Call set_program_name.
40599         * tests/test-fdopendir.c: Include progname.h.
40600         (main): Call set_program_name.
40602 2011-06-18  Bruno Haible  <bruno@clisp.org>
40604         Doc update.
40605         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
40606         HP-UX.
40607         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
40609 2011-06-18  Bruno Haible  <bruno@clisp.org>
40611         getcwd tests: Avoid compilation error on HP-UX 11.31.
40612         * modules/getcwd-tests (Depends-on): Add pathmax.
40613         * tests/test-getcwd.c: Include pathmax.h.
40615 2011-06-18  Bruno Haible  <bruno@clisp.org>
40617         isfinite, isinf: Fix link error on AIX 6 and 7.
40618         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
40619         needed, also test the macro with a 'float' argument.
40620         * m4/isinf.m4 (gl_ISINF): Likewise.
40622 2011-06-18  Bruno Haible  <bruno@clisp.org>
40624         getloadavg: Don't clobber LIBS. Regression from previous commit.
40625         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
40626         AC_CHECK_LIB from here...
40627         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
40628         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
40629         gl_func_getloadavg_done.
40630         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40632 2011-06-18  Bruno Haible  <bruno@clisp.org>
40634         clean-temp: Improve documentation.
40635         * lib/clean-temp.h: Explain better how to use this module.
40636         Reported by John Darrington <john@darrington.wattle.id.au>.
40638 2011-06-17  Bruno Haible  <bruno@clisp.org>
40640         pread, pwrite: Avoid cc warning on AIX.
40641         * lib/unistd.in.h (pread): Undefine before defining as a macro.
40642         (pwrite): Likewise.
40644 2011-06-17  Bruno Haible  <bruno@clisp.org>
40646         spawn-pipe tests: Fix link error.
40647         * tests/test-spawn-pipe-child.c: Undefine fprintf.
40648         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40650 2011-06-17  Bruno Haible  <bruno@clisp.org>
40652         Tests: Remove unnecessary dependency.
40653         * modules/canonicalize-tests (Depends-on): Remove progname.
40654         * modules/chown-tests (Depends-on): Likewise.
40655         * modules/dirname-tests (Depends-on): Likewise.
40656         * modules/fdopendir-tests (Depends-on): Likewise.
40657         * modules/fdutimensat-tests (Depends-on): Likewise.
40658         * modules/hash-tests (Depends-on): Likewise.
40659         * modules/lchown-tests (Depends-on): Likewise.
40660         * modules/linkat-tests (Depends-on): Likewise.
40661         * modules/renameat-tests (Depends-on): Likewise.
40662         * modules/spawn-pipe-tests (Depends-on): Likewise.
40663         * modules/utimensat-tests (Depends-on): Likewise.
40665 2011-06-17  Bruno Haible  <bruno@clisp.org>
40667         spawn-pipe tests: Fix link error.
40668         * tests/test-spawn-pipe-child.c: Undefine fflush.
40670 2011-06-17  Bruno Haible  <bruno@clisp.org>
40672         Fix tests link errors.
40673         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
40674         * modules/chown-tests (Makefile.am): Don't link test-chown with
40675         LIBINTL.
40676         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
40677         LIBINTL.
40678         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
40679         LIBINTL.
40680         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
40681         LIBINTL.
40683 2011-06-16  Bruno Haible  <bruno@clisp.org>
40685         crypto/gc-sha1: Fix recent regression.
40686         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
40687         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
40689         crypto/gc-md5: Fix recent regression.
40690         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
40692         crypto/gc-md4: Fix recent regression.
40693         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
40694         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
40696         crypto/gc-arctwo: Fix recent regression.
40697         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
40698         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
40700         crypto/gc-rijndael: Fix recent regression.
40701         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
40702         (configure.ac): Invoke AC_LIBOBJ here.
40703         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
40704         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40706         crypto/gc-hmac-sha1: Fix recent regression.
40707         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
40708         (configure.ac): Invoke AC_LIBOBJ here.
40709         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
40710         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40712         crypto/gc-hmac-md5: Fix recent regression.
40713         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
40714         (configure.ac): Invoke AC_LIBOBJ here.
40715         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
40716         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40718         crypto/gc-des: Fix recent regression.
40719         * modules/crypto/gc-des (Files): Remove m4/des.m4.
40720         (configure.ac): Invoke AC_LIBOBJ here.
40721         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
40722         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40724         crypto/gc-arcfour: Fix recent regression.
40725         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
40726         (configure.ac): Invoke AC_LIBOBJ here.
40727         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
40728         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40730 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
40732         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
40733         After the 2011-05-21 change, this macro requires
40734         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
40735         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40737 2011-06-16  Bruno Haible  <bruno@clisp.org>
40739         fprintftime: Move AC_LIBOBJ invocations to module description.
40740         * m4/fprintftime.m4: Remove file.
40741         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
40742         (configure.ac): Remove gl_FPRINTFTIME call.
40743         (Makefile.am): Augment lib_SOURCES.
40744         Reported by Jim Meyering.
40746 2011-06-16  Bruno Haible  <bruno@clisp.org>
40748         tmpfile-safer: Finish 2011-05-23 commit.
40749         * m4/stdio-safer.m4: Really remove file.
40750         Reported by Jim Meyering.
40752 2011-06-16  Bruno Haible  <bruno@clisp.org>
40754         syntax-check: Fix typo.
40755         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
40756         printf-posix.m4.
40757         Reported by Jim Meyering.
40759 2011-06-13  Jim Meyering  <meyering@redhat.com>
40761         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
40762         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
40764 2011-05-23  Bruno Haible  <bruno@clisp.org>
40766         yesno: Move AC_LIBOBJ invocations to module description.
40767         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
40768         * modules/yesno (Makefile.am): Augment lib_SOURCES.
40770 2011-05-23  Bruno Haible  <bruno@clisp.org>
40772         xstrtol: Move AC_LIBOBJ invocations to module description.
40773         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
40774         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
40776 2011-05-23  Bruno Haible  <bruno@clisp.org>
40778         xstrtold: Move AC_LIBOBJ invocations to module description.
40779         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
40780         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
40782 2011-05-23  Bruno Haible  <bruno@clisp.org>
40784         xstrtod: Move AC_LIBOBJ invocations to module description.
40785         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
40786         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
40788 2011-05-23  Bruno Haible  <bruno@clisp.org>
40790         xnanosleep: Move AC_LIBOBJ invocations to module description.
40791         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
40792         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
40794 2011-05-23  Bruno Haible  <bruno@clisp.org>
40796         xgetcwd: Move AC_LIBOBJ invocations to module description.
40797         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
40798         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
40800 2011-05-23  Bruno Haible  <bruno@clisp.org>
40802         xalloc: Move AC_LIBOBJ invocations to module description.
40803         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
40804         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
40806 2011-05-23  Bruno Haible  <bruno@clisp.org>
40808         write-any-file: Move AC_LIBOBJ invocations to module description.
40809         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
40810         invocation.
40811         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
40813 2011-05-23  Bruno Haible  <bruno@clisp.org>
40815         utimens: Move AC_LIBOBJ invocations to module description.
40816         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
40817         * modules/utimens (Makefile.am): Augment lib_SOURCES.
40819 2011-05-23  Bruno Haible  <bruno@clisp.org>
40821         utimecmp: Move AC_LIBOBJ invocations to module description.
40822         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
40823         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
40825 2011-05-23  Bruno Haible  <bruno@clisp.org>
40827         userspec: Move AC_LIBOBJ invocations to module description.
40828         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
40829         * modules/userspec (Makefile.am): Augment lib_SOURCES.
40831 2011-05-23  Bruno Haible  <bruno@clisp.org>
40833         unlinkdir: Move AC_LIBOBJ invocations to module description.
40834         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
40835         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
40837 2011-05-23  Bruno Haible  <bruno@clisp.org>
40839         unistd-safer: Move AC_LIBOBJ invocations to module description.
40840         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
40841         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
40843 2011-05-23  Bruno Haible  <bruno@clisp.org>
40845         tempname: Move AC_LIBOBJ invocations to module description.
40846         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
40847         * modules/tempname (Makefile.am): Augment lib_SOURCES.
40849 2011-05-23  Bruno Haible  <bruno@clisp.org>
40851         strftime: Move AC_LIBOBJ invocations to module description.
40852         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
40853         * modules/strftime (Makefile.am): Augment lib_SOURCES.
40855 2011-05-23  Bruno Haible  <bruno@clisp.org>
40857         stdlib-safer: Move AC_LIBOBJ invocations to module description.
40858         * m4/stdlib-safer.m4: Remove file.
40859         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
40860         (configure.ac): Remove gl_STDLIB_SAFER call.
40861         (Makefile.am): Augment lib_SOURCES.
40863 2011-05-23  Bruno Haible  <bruno@clisp.org>
40865         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
40866         * m4/stdio-safer.m4: Remove file.
40867         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
40868         (configure.ac): Remove gl_TMPFILE_SAFER call.
40869         (Makefile.am): Augment lib_SOURCES.
40871 2011-05-23  Bruno Haible  <bruno@clisp.org>
40873         popen-safer: Move AC_LIBOBJ invocations to module description.
40874         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
40875         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
40876         (configure.ac): Remove gl_POPEN_SAFER call.
40877         (Makefile.am): Augment lib_SOURCES.
40879 2011-05-23  Bruno Haible  <bruno@clisp.org>
40881         freopen-safer: Move AC_LIBOBJ invocations to module description.
40882         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
40883         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
40884         (configure.ac): Remove gl_FREOPEN_SAFER call.
40885         (Makefile.am): Augment lib_SOURCES.
40887 2011-05-23  Bruno Haible  <bruno@clisp.org>
40889         fopen-safer: Move AC_LIBOBJ invocations to module description.
40890         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
40891         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
40892         (configure.ac): Remove gl_FOPEN_SAFER call.
40893         (Makefile.am): Augment lib_SOURCES.
40895 2011-05-23  Bruno Haible  <bruno@clisp.org>
40897         crypto/sha512: Move AC_LIBOBJ invocations to module description.
40898         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
40899         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
40901 2011-05-23  Bruno Haible  <bruno@clisp.org>
40903         crypto/sha256: Move AC_LIBOBJ invocations to module description.
40904         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
40905         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
40907 2011-05-23  Bruno Haible  <bruno@clisp.org>
40909         crypto/sha1: Move AC_LIBOBJ invocations to module description.
40910         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
40911         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
40913 2011-05-23  Bruno Haible  <bruno@clisp.org>
40915         settime: Move AC_LIBOBJ invocations to module description.
40916         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
40917         * modules/settime (Makefile.am): Augment lib_SOURCES.
40919 2011-05-23  Bruno Haible  <bruno@clisp.org>
40921         savedir: Move AC_LIBOBJ invocations to module description.
40922         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
40923         * modules/savedir (Makefile.am): Augment lib_SOURCES.
40925 2011-05-23  Bruno Haible  <bruno@clisp.org>
40927         save-cwd: Move AC_LIBOBJ invocations to module description.
40928         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
40929         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
40931 2011-05-23  Bruno Haible  <bruno@clisp.org>
40933         same: Move AC_LIBOBJ invocations to module description.
40934         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
40935         * modules/same (Makefile.am): Augment lib_SOURCES.
40937 2011-05-23  Bruno Haible  <bruno@clisp.org>
40939         safe-write: Move AC_LIBOBJ invocations to module description.
40940         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
40941         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
40942         instead of gl_SAFE_WRITE.
40943         (Makefile.am): Augment lib_SOURCES.
40945 2011-05-23  Bruno Haible  <bruno@clisp.org>
40947         safe-read: Move AC_LIBOBJ invocations to module description.
40948         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
40949         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
40950         of gl_SAFE_READ.
40951         (Makefile.am): Augment lib_SOURCES.
40953 2011-05-23  Bruno Haible  <bruno@clisp.org>
40955         safe-alloc: Move AC_LIBOBJ invocations to module description.
40956         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
40957         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
40959 2011-05-23  Bruno Haible  <bruno@clisp.org>
40961         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
40962         * m4/rijndael.m4: Remove file.
40963         * modules/crypto/rijndael (Files): Remove it.
40964         (configure.ac): Remove gl_RIJNDAEL call.
40965         (Makefile.am): Augment lib_SOURCES.
40967 2011-05-23  Bruno Haible  <bruno@clisp.org>
40969         readtokens: Move AC_LIBOBJ invocations to module description.
40970         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
40971         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
40973 2011-05-23  Bruno Haible  <bruno@clisp.org>
40975         read-file: Move AC_LIBOBJ invocations to module description.
40976         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
40977         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
40978         of gl_FUNC_READ_FILE.
40979         (Makefile.am): Augment lib_SOURCES.
40981 2011-05-23  Bruno Haible  <bruno@clisp.org>
40983         quotearg: Move AC_LIBOBJ invocations to module description.
40984         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
40985         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
40987 2011-05-23  Bruno Haible  <bruno@clisp.org>
40989         quote: Move AC_LIBOBJ invocations to module description.
40990         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
40991         * modules/quote (Makefile.am): Augment lib_SOURCES.
40993 2011-05-23  Bruno Haible  <bruno@clisp.org>
40995         posixver: Move AC_LIBOBJ invocations to module description.
40996         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
40997         * modules/posixver (Makefile.am): Augment lib_SOURCES.
40999 2011-05-23  Bruno Haible  <bruno@clisp.org>
41001         posixtm: Move AC_LIBOBJ invocations to module description.
41002         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
41003         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
41005 2011-05-23  Bruno Haible  <bruno@clisp.org>
41007         physmem: Move AC_LIBOBJ invocations to module description.
41008         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
41009         * modules/physmem (Makefile.am): Augment lib_SOURCES.
41011 2011-05-23  Bruno Haible  <bruno@clisp.org>
41013         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
41014         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
41015         invocation.
41016         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
41018 2011-05-23  Bruno Haible  <bruno@clisp.org>
41020         mpsort: Move AC_LIBOBJ invocations to module description.
41021         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
41022         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
41024 2011-05-23  Bruno Haible  <bruno@clisp.org>
41026         modechange: Move AC_LIBOBJ invocations to module description.
41027         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
41028         * modules/modechange (Makefile.am): Augment lib_SOURCES.
41030 2011-05-23  Bruno Haible  <bruno@clisp.org>
41032         mkdir-p: Move AC_LIBOBJ invocations to module description.
41033         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
41034         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
41036 2011-05-23  Bruno Haible  <bruno@clisp.org>
41038         mkancesdirs: Move AC_LIBOBJ invocations to module description.
41039         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
41040         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
41042 2011-05-23  Bruno Haible  <bruno@clisp.org>
41044         mgetgroups: Move AC_LIBOBJ invocations to module description.
41045         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
41046         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
41048 2011-05-23  Bruno Haible  <bruno@clisp.org>
41050         memxor: Move AC_LIBOBJ invocations to module description.
41051         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
41052         * modules/memxor (Makefile.am): Augment lib_SOURCES.
41054 2011-05-23  Bruno Haible  <bruno@clisp.org>
41056         memcoll: Move AC_LIBOBJ invocations to module description.
41057         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
41058         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
41060 2011-05-23  Bruno Haible  <bruno@clisp.org>
41062         memcasecmp: Move AC_LIBOBJ invocations to module description.
41063         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
41064         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
41066 2011-05-23  Bruno Haible  <bruno@clisp.org>
41068         crypto/md5: Move AC_LIBOBJ invocations to module description.
41069         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
41070         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
41072 2011-05-23  Bruno Haible  <bruno@clisp.org>
41074         crypto/md4: Move AC_LIBOBJ invocations to module description.
41075         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
41076         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
41078 2011-05-23  Bruno Haible  <bruno@clisp.org>
41080         crypto/md2: Move AC_LIBOBJ invocations to module description.
41081         * m4/md2.m4: Remove file.
41082         * modules/crypto/md2 (Files): Remove it.
41083         (configure.ac): Remove gl_MD2 call.
41084         (Makefile.am): Augment lib_SOURCES.
41086 2011-05-23  Bruno Haible  <bruno@clisp.org>
41088         long-options: Move AC_LIBOBJ invocations to module description.
41089         * m4/long-options.m4: Remove file.
41090         * modules/long-options (Files): Remove it.
41091         (configure.ac): Remove gl_LONG_OPTIONS call.
41092         (Makefile.am): Augment lib_SOURCES.
41094 2011-05-23  Bruno Haible  <bruno@clisp.org>
41096         i-ring: Move AC_LIBOBJ invocations to module description.
41097         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
41098         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
41100 2011-05-23  Bruno Haible  <bruno@clisp.org>
41102         idcache: Move AC_LIBOBJ invocations to module description.
41103         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
41104         * modules/idcache (Makefile.am): Augment lib_SOURCES.
41106 2011-05-23  Bruno Haible  <bruno@clisp.org>
41108         human: Move AC_LIBOBJ invocations to module description.
41109         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
41110         * modules/human (Makefile.am): Augment lib_SOURCES.
41112 2011-05-23  Bruno Haible  <bruno@clisp.org>
41114         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
41115         * m4/hmac-sha1.m4: Remove file.
41116         * modules/crypto/hmac-sha1 (Files): Remove it.
41117         (configure.ac): Remove gl_HMAC_SHA1 call.
41118         (Makefile.am): Augment lib_SOURCES.
41120 2011-05-23  Bruno Haible  <bruno@clisp.org>
41122         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
41123         * m4/hmac-md5.m4: Remove file.
41124         * modules/crypto/hmac-md5 (Files): Remove it.
41125         (configure.ac): Remove gl_HMAC_MD5 call.
41126         (Makefile.am): Augment lib_SOURCES.
41128 2011-05-23  Bruno Haible  <bruno@clisp.org>
41130         hash: Move AC_LIBOBJ invocations to module description.
41131         * m4/hash.m4: Remove file.
41132         * modules/hash (Files): Remove it.
41133         (configure.ac): Remove gl_HASH call.
41134         (Makefile.am): Augment lib_SOURCES.
41136 2011-05-23  Bruno Haible  <bruno@clisp.org>
41138         hard-locale: Move AC_LIBOBJ invocations to module description.
41139         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
41140         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
41142 2011-05-23  Bruno Haible  <bruno@clisp.org>
41144         getugroups: Move AC_LIBOBJ invocations to module description.
41145         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
41146         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
41148 2011-05-23  Bruno Haible  <bruno@clisp.org>
41150         gettime: Move AC_LIBOBJ invocations to module description.
41151         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
41152         * modules/gettime (Makefile.am): Augment lib_SOURCES.
41154 2011-05-23  Bruno Haible  <bruno@clisp.org>
41156         getndelim2: Move AC_LIBOBJ invocations to module description.
41157         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
41158         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
41160 2011-05-23  Bruno Haible  <bruno@clisp.org>
41162         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
41163         * m4/gc-pbkdf2-sha1.m4: Remove file.
41164         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
41165         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
41166         (Makefile.am): Augment lib_SOURCES.
41168 2011-05-23  Bruno Haible  <bruno@clisp.org>
41170         fts: Move AC_LIBOBJ invocations to module description.
41171         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
41172         * modules/fts (configure.ac): ... to here.
41174 2011-05-23  Bruno Haible  <bruno@clisp.org>
41176         file-type: Move AC_LIBOBJ invocations to module description.
41177         * m4/file-type.m4: Remove file.
41178         * modules/file-type (Files): Remove it.
41179         (configure.ac): Remove gl_FILE_TYPE call.
41180         (Makefile.am): Augment lib_SOURCES.
41182 2011-05-23  Bruno Haible  <bruno@clisp.org>
41184         filenamecat*: Respect rules for use of AC_LIBOBJ.
41185         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
41186         Remove AC_LIBOBJ invocation.
41187         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
41188         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
41190 2011-05-23  Bruno Haible  <bruno@clisp.org>
41192         filemode: Move AC_LIBOBJ invocations to module description.
41193         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
41194         * modules/filemode (Makefile.am): Augment lib_SOURCES.
41196 2011-05-23  Bruno Haible  <bruno@clisp.org>
41198         openat-safer: Move AC_LIBOBJ invocations to module description.
41199         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
41200         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
41202 2011-05-23  Bruno Haible  <bruno@clisp.org>
41204         fcntl-safer: Move AC_LIBOBJ invocations to module description.
41205         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
41206         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
41208 2011-05-23  Bruno Haible  <bruno@clisp.org>
41210         exclude: Move AC_LIBOBJ invocations to module description.
41211         * m4/exclude.m4: Remove file.
41212         * modules/exclude (Files): Remove it.
41213         (configure.ac): Remove gl_EXCLUDE call.
41214         (Makefile.am): Augment lib_SOURCES.
41216 2011-05-23  Bruno Haible  <bruno@clisp.org>
41218         dirname*: Respect rules for use of AC_LIBOBJ.
41219         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
41220         invocations.
41221         * modules/dirname (Makefile.am): Augment lib_SOURCES.
41222         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
41224 2011-05-23  Bruno Haible  <bruno@clisp.org>
41226         dirent-safer: Move AC_LIBOBJ invocations to module description.
41227         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
41228         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
41230 2011-05-23  Bruno Haible  <bruno@clisp.org>
41232         crypto/des: Move AC_LIBOBJ invocations to module description.
41233         * m4/des.m4: Remove file.
41234         * modules/crypto/des (Files): Remove it.
41235         (configure.ac): Remove gl_DES call.
41236         (Makefile.am): Augment lib_SOURCES.
41238 2011-05-23  Bruno Haible  <bruno@clisp.org>
41240         cycle-check: Move AC_LIBOBJ invocations to module description.
41241         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
41242         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
41244 2011-05-23  Bruno Haible  <bruno@clisp.org>
41246         c-strtold: Move AC_LIBOBJ invocations to module description.
41247         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
41248         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
41250 2011-05-23  Bruno Haible  <bruno@clisp.org>
41252         c-strtod: Move AC_LIBOBJ invocations to module description.
41253         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
41254         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
41256 2011-05-23  Bruno Haible  <bruno@clisp.org>
41258         crc: Move AC_LIBOBJ invocations to module description.
41259         * m4/crc.m4: Remove file.
41260         * modules/crc (Files): Remove it.
41261         (configure.ac): Remove gl_CRC call.
41262         (Makefile.am): Augment lib_SOURCES.
41264 2011-05-23  Bruno Haible  <bruno@clisp.org>
41266         close-stream: Move AC_LIBOBJ invocations to module description.
41267         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
41268         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
41270 2011-05-23  Bruno Haible  <bruno@clisp.org>
41272         closeout: Move AC_LIBOBJ invocations to module description.
41273         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
41274         * modules/closeout (Makefile.am): Augment lib_SOURCES.
41276 2011-05-23  Bruno Haible  <bruno@clisp.org>
41278         closein: Move AC_LIBOBJ invocations to module description.
41279         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
41280         * modules/closein (Makefile.am): Augment lib_SOURCES.
41282 2011-05-23  Bruno Haible  <bruno@clisp.org>
41284         cloexec: Move AC_LIBOBJ invocations to module description.
41285         * m4/cloexec.m4: Remove file.
41286         * modules/cloexec (Files): Remove it.
41287         (configure.ac): Remove gl_CLOEXEC call.
41288         (Makefile.am): Augment lib_SOURCES.
41290 2011-05-23  Bruno Haible  <bruno@clisp.org>
41292         check-version: Move AC_LIBOBJ invocations to module description.
41293         * m4/check-version.m4: Remove file.
41294         * modules/check-version (Files): Remove it.
41295         (configure.ac): Remove gl_CHECK_VERSION call.
41296         (Makefile.am): Augment lib_SOURCES.
41298 2011-05-23  Bruno Haible  <bruno@clisp.org>
41300         chdir-safer: Move AC_LIBOBJ invocations to module description.
41301         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
41302         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
41304 2011-05-23  Bruno Haible  <bruno@clisp.org>
41306         canonicalize: Move AC_LIBOBJ invocations to module description.
41307         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
41308         AC_LIBOBJ invocation.
41309         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
41311 2011-05-23  Bruno Haible  <bruno@clisp.org>
41313         canon-host: Move AC_LIBOBJ invocations to module description.
41314         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
41315         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
41316         instead of gl_CANON_HOST.
41317         (Makefile.am): Augment lib_SOURCES.
41319 2011-05-23  Bruno Haible  <bruno@clisp.org>
41321         backupfile: Move AC_LIBOBJ invocations to module description.
41322         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
41323         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
41325 2011-05-23  Bruno Haible  <bruno@clisp.org>
41327         argmatch: Move AC_LIBOBJ invocations to module description.
41328         * m4/argmatch.m4: Remove file.
41329         * modules/argmatch (Files): Remove it.
41330         (configure.ac): Remove gl_ARGMATCH call.
41331         (Makefile.am): Augment lib_SOURCES.
41333 2011-05-23  Bruno Haible  <bruno@clisp.org>
41335         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
41336         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
41337         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
41339 2011-05-23  Bruno Haible  <bruno@clisp.org>
41341         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
41342         * m4/arcfour.m4: Remove file.
41343         * modules/crypto/arcfour (Files): Remove it.
41344         (configure.ac): Remove gl_ARCFOUR call.
41345         (Makefile.am): Augment lib_SOURCES.
41347 2011-05-22  Bruno Haible  <bruno@clisp.org>
41349         write: Move AC_LIBOBJ invocations to module description.
41350         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
41351         * modules/write (configure.ac): ... to here.
41353 2011-05-22  Bruno Haible  <bruno@clisp.org>
41355         wmemset: Move AC_LIBOBJ invocations to module description.
41356         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
41357         here...
41358         * modules/wmemset (configure.ac): ... to here.
41360 2011-05-22  Bruno Haible  <bruno@clisp.org>
41362         wmemmove: Move AC_LIBOBJ invocations to module description.
41363         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
41364         here...
41365         * modules/wmemmove (configure.ac): ... to here.
41367 2011-05-22  Bruno Haible  <bruno@clisp.org>
41369         wmemcpy: Move AC_LIBOBJ invocations to module description.
41370         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
41371         here...
41372         * modules/wmemcpy (configure.ac): ... to here.
41374 2011-05-22  Bruno Haible  <bruno@clisp.org>
41376         wmemcmp: Move AC_LIBOBJ invocations to module description.
41377         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
41378         here...
41379         * modules/wmemcmp (configure.ac): ... to here.
41381 2011-05-22  Bruno Haible  <bruno@clisp.org>
41383         wmemchr: Move AC_LIBOBJ invocations to module description.
41384         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
41385         here...
41386         * modules/wmemchr (configure.ac): ... to here.
41388 2011-05-22  Bruno Haible  <bruno@clisp.org>
41390         wcswidth: Move AC_LIBOBJ invocations to module description.
41391         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
41392         here...
41393         * modules/wcswidth (configure.ac): ... to here.
41395 2011-05-22  Bruno Haible  <bruno@clisp.org>
41397         wcwidth: Respect rules for use of AC_LIBOBJ.
41398         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
41399         invocation from here...
41400         * modules/wcwidth (configure.ac): ... to here.
41401         (Depends-on): Update conditions.
41403 2011-05-22  Bruno Haible  <bruno@clisp.org>
41405         wctype: Move AC_LIBOBJ invocations to module description.
41406         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
41407         invocation from here...
41408         * modules/wctype (configure.ac): ... to here.
41409         (Depends-on): Update conditions.
41411 2011-05-22  Bruno Haible  <bruno@clisp.org>
41413         wctrans: Move AC_LIBOBJ invocations to module description.
41414         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
41415         invocation from here...
41416         * modules/wctrans (configure.ac): ... to here.
41418 2011-05-22  Bruno Haible  <bruno@clisp.org>
41420         wctomb: Move AC_LIBOBJ invocations to module description.
41421         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
41422         invocations from here...
41423         * modules/wctomb (configure.ac): ... to here.
41425 2011-05-22  Bruno Haible  <bruno@clisp.org>
41427         wctob: Move AC_LIBOBJ invocations to module description.
41428         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
41429         gl_PREREQ_WCTOB invocations from here...
41430         * modules/wctob (configure.ac): ... to here.
41431         (Depends-on): Update conditions.
41433 2011-05-22  Bruno Haible  <bruno@clisp.org>
41435         wcsxfrm: Move AC_LIBOBJ invocations to module description.
41436         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
41437         here...
41438         * modules/wcsxfrm (configure.ac): ... to here.
41440 2011-05-22  Bruno Haible  <bruno@clisp.org>
41442         wcstok: Move AC_LIBOBJ invocations to module description.
41443         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
41444         * modules/wcstok (configure.ac): ... to here.
41446 2011-05-22  Bruno Haible  <bruno@clisp.org>
41448         wcsstr: Move AC_LIBOBJ invocations to module description.
41449         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
41450         * modules/wcsstr (configure.ac): ... to here.
41452 2011-05-22  Bruno Haible  <bruno@clisp.org>
41454         wcsspn: Move AC_LIBOBJ invocations to module description.
41455         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
41456         * modules/wcsspn (configure.ac): ... to here.
41458 2011-05-22  Bruno Haible  <bruno@clisp.org>
41460         wcsrtombs: Move AC_LIBOBJ invocations to module description.
41461         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
41462         gl_PREREQ_WCSRTOMBS invocations from here...
41463         * modules/wcsrtombs (configure.ac): ... to here.
41465 2011-05-22  Bruno Haible  <bruno@clisp.org>
41467         wcsrchr: Move AC_LIBOBJ invocations to module description.
41468         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
41469         here...
41470         * modules/wcsrchr (configure.ac): ... to here.
41472 2011-05-22  Bruno Haible  <bruno@clisp.org>
41474         wcspbrk: Move AC_LIBOBJ invocations to module description.
41475         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
41476         here...
41477         * modules/wcspbrk (configure.ac): ... to here.
41479 2011-05-22  Bruno Haible  <bruno@clisp.org>
41481         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
41482         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
41483         gl_PREREQ_WCSNRTOMBS invocations from here...
41484         * modules/wcsnrtombs (configure.ac): ... to here.
41486 2011-05-22  Bruno Haible  <bruno@clisp.org>
41488         wcsnlen: Move AC_LIBOBJ invocations to module description.
41489         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
41490         here...
41491         * modules/wcsnlen (configure.ac): ... to here.
41493 2011-05-22  Bruno Haible  <bruno@clisp.org>
41495         wcsncpy: Move AC_LIBOBJ invocations to module description.
41496         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
41497         here...
41498         * modules/wcsncpy (configure.ac): ... to here.
41500 2011-05-22  Bruno Haible  <bruno@clisp.org>
41502         wcsncmp: Move AC_LIBOBJ invocations to module description.
41503         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
41504         here...
41505         * modules/wcsncmp (configure.ac): ... to here.
41507 2011-05-22  Bruno Haible  <bruno@clisp.org>
41509         wcsncat: Move AC_LIBOBJ invocations to module description.
41510         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
41511         here...
41512         * modules/wcsncat (configure.ac): ... to here.
41514 2011-05-22  Bruno Haible  <bruno@clisp.org>
41516         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
41517         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
41518         from here...
41519         * modules/wcsncasecmp (configure.ac): ... to here.
41521 2011-05-22  Bruno Haible  <bruno@clisp.org>
41523         wcslen: Move AC_LIBOBJ invocations to module description.
41524         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
41525         * modules/wcslen (configure.ac): ... to here.
41527 2011-05-22  Bruno Haible  <bruno@clisp.org>
41529         wcsdup: Move AC_LIBOBJ invocations to module description.
41530         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
41531         * modules/wcsdup (configure.ac): ... to here.
41533 2011-05-22  Bruno Haible  <bruno@clisp.org>
41535         wcscspn: Move AC_LIBOBJ invocations to module description.
41536         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
41537         here...
41538         * modules/wcscspn (configure.ac): ... to here.
41540 2011-05-22  Bruno Haible  <bruno@clisp.org>
41542         wcscpy: Move AC_LIBOBJ invocations to module description.
41543         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
41544         * modules/wcscpy (configure.ac): ... to here.
41546 2011-05-22  Bruno Haible  <bruno@clisp.org>
41548         wcscoll: Move AC_LIBOBJ invocations to module description.
41549         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
41550         here...
41551         * modules/wcscoll (configure.ac): ... to here.
41553 2011-05-22  Bruno Haible  <bruno@clisp.org>
41555         wcscmp: Move AC_LIBOBJ invocations to module description.
41556         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
41557         * modules/wcscmp (configure.ac): ... to here.
41559 2011-05-22  Bruno Haible  <bruno@clisp.org>
41561         wcschr: Move AC_LIBOBJ invocations to module description.
41562         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
41563         * modules/wcschr (configure.ac): ... to here.
41565 2011-05-22  Bruno Haible  <bruno@clisp.org>
41567         wcscat: Move AC_LIBOBJ invocations to module description.
41568         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
41569         * modules/wcscat (configure.ac): ... to here.
41571 2011-05-22  Bruno Haible  <bruno@clisp.org>
41573         wcscasecmp: Move AC_LIBOBJ invocations to module description.
41574         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
41575         here...
41576         * modules/wcscasecmp (configure.ac): ... to here.
41578 2011-05-22  Bruno Haible  <bruno@clisp.org>
41580         wcrtomb: Move AC_LIBOBJ invocations to module description.
41581         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
41582         invocations from here...
41583         * modules/wcrtomb (configure.ac): ... to here.
41585 2011-05-22  Bruno Haible  <bruno@clisp.org>
41587         wcpncpy: Move AC_LIBOBJ invocations to module description.
41588         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
41589         here...
41590         * modules/wcpncpy (configure.ac): ... to here.
41592 2011-05-22  Bruno Haible  <bruno@clisp.org>
41594         wcpcpy: Move AC_LIBOBJ invocations to module description.
41595         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
41596         * modules/wcpcpy (configure.ac): ... to here.
41598 2011-05-22  Bruno Haible  <bruno@clisp.org>
41600         waitpid: Move AC_LIBOBJ invocations to module description.
41601         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
41602         invocation from here...
41603         * modules/waitpid (configure.ac): ... to here.
41605 2011-05-22  Bruno Haible  <bruno@clisp.org>
41607         utimensat: Move AC_LIBOBJ invocations to module description.
41608         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
41609         here...
41610         * modules/utimensat (configure.ac): ... to here.
41612 2011-05-22  Bruno Haible  <bruno@clisp.org>
41614         usleep: Move AC_LIBOBJ invocations to module description.
41615         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
41616         here...
41617         * modules/usleep (configure.ac): ... to here.
41619 2011-05-22  Bruno Haible  <bruno@clisp.org>
41621         unlockpt: Move AC_LIBOBJ invocations to module description.
41622         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
41623         gl_PREREQ_UNLOCKPT invocations from here...
41624         * modules/unlockpt (configure.ac): ... to here.
41626 2011-05-22  Bruno Haible  <bruno@clisp.org>
41628         unlink: Respect rules for use of AC_LIBOBJ.
41629         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
41630         * modules/unlink (configure.ac): ... to here.
41632 2011-05-22  Bruno Haible  <bruno@clisp.org>
41634         uname: Move AC_LIBOBJ invocations to module description.
41635         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
41636         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
41637         here...
41638         * modules/uname (configure.ac): ... to here.
41640 2011-05-22  Bruno Haible  <bruno@clisp.org>
41642         ttyname_r: Move AC_LIBOBJ invocations to module description.
41643         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
41644         gl_PREREQ_TTYNAME_R invocations from here...
41645         * modules/ttyname_r (configure.ac): ... to here.
41647 2011-05-22  Bruno Haible  <bruno@clisp.org>
41649         tsearch: Move AC_LIBOBJ invocations to module description.
41650         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
41651         invocations from here...
41652         * modules/tsearch (configure.ac): ... to here.
41654 2011-05-22  Bruno Haible  <bruno@clisp.org>
41656         towctrans: Move AC_LIBOBJ invocations to module description.
41657         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
41658         AC_LIBOBJ invocation from here...
41659         * modules/towctrans (configure.ac): ... to here.
41661 2011-05-22  Bruno Haible  <bruno@clisp.org>
41663         tmpfile: Move AC_LIBOBJ invocations to module description.
41664         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
41665         invocations from here...
41666         * modules/tmpfile (configure.ac): ... to here.
41668 2011-05-22  Bruno Haible  <bruno@clisp.org>
41670         times: Move AC_LIBOBJ invocations to module description.
41671         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
41672         * modules/times (configure.ac): ... to here.
41674 2011-05-22  Bruno Haible  <bruno@clisp.org>
41676         time_r: Move AC_LIBOBJ invocations to module description.
41677         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
41678         invocations from here...
41679         * modules/time_r (configure.ac): ... to here.
41681 2011-05-22  Bruno Haible  <bruno@clisp.org>
41683         timegm: Move AC_LIBOBJ invocations to module description.
41684         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
41685         invocations from here...
41686         * modules/timegm (configure.ac): ... to here.
41688 2011-05-22  Bruno Haible  <bruno@clisp.org>
41690         tcgetsid: Move AC_LIBOBJ invocations to module description.
41691         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
41692         and gl_PREREQ_TCGETSID invocations from here...
41693         * modules/tcgetsid (configure.ac): ... to here.
41694         (Depends-on): Update conditions.
41696 2011-05-22  Bruno Haible  <bruno@clisp.org>
41698         symlinkat: Move AC_LIBOBJ invocations to module description.
41699         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
41700         here...
41701         * modules/symlinkat (configure.ac): ... to here.
41703 2011-05-22  Bruno Haible  <bruno@clisp.org>
41705         symlink: Move AC_LIBOBJ invocations to module description.
41706         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
41707         here...
41708         * modules/symlink (configure.ac): ... to here.
41710 2011-05-22  Bruno Haible  <bruno@clisp.org>
41712         strverscmp: Move AC_LIBOBJ invocations to module description.
41713         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
41714         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
41715         from here...
41716         * modules/strverscmp (configure.ac): ... to here.
41718 2011-05-22  Bruno Haible  <bruno@clisp.org>
41720         strtok_r: Move AC_LIBOBJ invocations to module description.
41721         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
41722         and gl_PREREQ_STRTOK_R invocations from here...
41723         * modules/strtok_r (configure.ac): ... to here.
41724         (Depends-on): Update conditions.
41726 2011-05-22  Bruno Haible  <bruno@clisp.org>
41728         strtoumax: Move AC_LIBOBJ invocations to module description.
41729         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
41730         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
41731         from here...
41732         * modules/strtoumax (configure.ac): ... to here.
41734 2011-05-22  Bruno Haible  <bruno@clisp.org>
41736         strtoimax: Move AC_LIBOBJ invocations to module description.
41737         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
41738         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
41739         from here...
41740         * modules/strtoimax (configure.ac): ... to here.
41742 2011-05-22  Bruno Haible  <bruno@clisp.org>
41744         strtoull: Move AC_LIBOBJ invocations to module description.
41745         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
41746         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
41747         from here...
41748         * modules/strtoull (configure.ac): ... to here.
41750 2011-05-22  Bruno Haible  <bruno@clisp.org>
41752         strtoll: Move AC_LIBOBJ invocations to module description.
41753         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
41754         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
41755         here...
41756         * modules/strtoll (configure.ac): ... to here.
41758 2011-05-22  Bruno Haible  <bruno@clisp.org>
41760         strtoul: Move AC_LIBOBJ invocations to module description.
41761         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
41762         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
41763         * modules/strtoul (configure.ac): ... to here.
41765 2011-05-22  Bruno Haible  <bruno@clisp.org>
41767         strtol: Move AC_LIBOBJ invocations to module description.
41768         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
41769         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
41770         * modules/strtol (configure.ac): ... to here.
41772 2011-05-22  Bruno Haible  <bruno@clisp.org>
41774         strtod: Move AC_LIBOBJ invocations to module description.
41775         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
41776         invocations from here...
41777         * modules/strtod (configure.ac): ... to here.
41779 2011-05-22  Bruno Haible  <bruno@clisp.org>
41781         strstr*: Move AC_LIBOBJ invocations to module description.
41782         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
41783         invocations from here...
41784         * modules/strstr-simple (configure.ac): ... to here.
41785         * modules/strstr (configure.ac): ... and here.
41787 2011-05-22  Bruno Haible  <bruno@clisp.org>
41789         strsignal: Move AC_LIBOBJ invocations to module description.
41790         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
41791         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
41792         * modules/strsignal (configure.ac): ... to here.
41793         (Depends-on): Update conditions.
41795 2011-05-22  Bruno Haible  <bruno@clisp.org>
41797         strsep: Move AC_LIBOBJ invocations to module description.
41798         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
41799         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
41800         here...
41801         * modules/strsep (configure.ac): ... to here.
41803 2011-05-22  Bruno Haible  <bruno@clisp.org>
41805         strptime: Move AC_LIBOBJ invocations to module description.
41806         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
41807         gl_PREREQ_STRPTIME invocations from here...
41808         * modules/strptime (configure.ac): ... to here.
41810 2011-05-22  Bruno Haible  <bruno@clisp.org>
41812         strpbrk: Move AC_LIBOBJ invocations to module description.
41813         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
41814         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
41815         here...
41816         * modules/strpbrk (configure.ac): ... to here.
41818 2011-05-22  Bruno Haible  <bruno@clisp.org>
41820         strnlen: Move AC_LIBOBJ invocations to module description.
41821         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
41822         invocations from here...
41823         * modules/strnlen (configure.ac): ... to here.
41825 2011-05-22  Bruno Haible  <bruno@clisp.org>
41827         strndup: Move AC_LIBOBJ invocations to module description.
41828         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
41829         invocations from here...
41830         * modules/strndup (configure.ac): ... to here.
41831         (Depends-on): Update conditions.
41833 2011-05-22  Bruno Haible  <bruno@clisp.org>
41835         strncat: Move AC_LIBOBJ invocations to module description.
41836         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
41837         invocations from here...
41838         * modules/strncat (configure.ac): ... to here.
41840 2011-05-22  Bruno Haible  <bruno@clisp.org>
41842         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
41843         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
41844         invocations from here...
41845         * modules/strdup (configure.ac): ... to here.
41846         * modules/strdup-posix (configure.ac): ... and here.
41848 2011-05-22  Bruno Haible  <bruno@clisp.org>
41850         strcspn: Move AC_LIBOBJ invocations to module description.
41851         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
41852         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
41853         here...
41854         * modules/strcspn (configure.ac): ... to here.
41856 2011-05-22  Bruno Haible  <bruno@clisp.org>
41858         strchrnul: Move AC_LIBOBJ invocations to module description.
41859         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
41860         gl_PREREQ_STRCHRNUL invocations from here...
41861         * modules/strchrnul (configure.ac): ... to here.
41863 2011-05-22  Bruno Haible  <bruno@clisp.org>
41865         strcasestr*: Move AC_LIBOBJ invocations to module description.
41866         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
41867         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
41868         * modules/strcasestr-simple (configure.ac): ... to here.
41869         * modules/strcasestr (configure.ac): ... and here.
41871 2011-05-22  Bruno Haible  <bruno@clisp.org>
41873         strcase: Move AC_LIBOBJ invocations to module description.
41874         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
41875         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
41876         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
41877         gl_PREREQ_STRNCASECMP invocations from here...
41878         * modules/strcase (configure.ac): ... to here.
41880 2011-05-22  Bruno Haible  <bruno@clisp.org>
41882         stpncpy: Move AC_LIBOBJ invocations to module description.
41883         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
41884         here...
41885         * modules/stpncpy (configure.ac): ... to here.
41887 2011-05-22  Bruno Haible  <bruno@clisp.org>
41889         stpcpy: Move AC_LIBOBJ invocations to module description.
41890         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
41891         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
41892         here...
41893         * modules/stpcpy (configure.ac): ... to here.
41895 2011-05-21  Bruno Haible  <bruno@clisp.org>
41897         stat: Move AC_LIBOBJ invocations to module description.
41898         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
41899         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
41900         here...
41901         * modules/stat (configure.ac): ... to here.
41903 2011-05-21  Bruno Haible  <bruno@clisp.org>
41905         sleep: Move AC_LIBOBJ invocations to module description.
41906         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
41907         * modules/sleep (configure.ac): ... to here.
41909 2011-05-21  Bruno Haible  <bruno@clisp.org>
41911         signbit: Move AC_LIBOBJ invocations to module description.
41912         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
41913         * modules/signbit (configure.ac): ... to here.
41915 2011-05-21  Bruno Haible  <bruno@clisp.org>
41917         sigprocmask: Move AC_LIBOBJ invocations to module description.
41918         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
41919         gl_PREREQ_SIGPROMASK invocations from here...
41920         * modules/sigprocmask (configure.ac): ... to here.
41922 2011-05-21  Bruno Haible  <bruno@clisp.org>
41924         sigaction: Move AC_LIBOBJ invocations to module description.
41925         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
41926         gl_PREREQ_SIGACTION invocations from here...
41927         * modules/sigaction (configure.ac): ... to here.
41929 2011-05-21  Bruno Haible  <bruno@clisp.org>
41931         sig2str: Move AC_LIBOBJ invocations to module description.
41932         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
41933         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
41934         here...
41935         * modules/sig2str (configure.ac): ... to here.
41937 2011-05-21  Bruno Haible  <bruno@clisp.org>
41939         setlocale: Move AC_LIBOBJ invocations to module description.
41940         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
41941         gl_PREREQ_SETLOCALE invocations from here...
41942         * modules/setlocale (configure.ac): ... to here.
41944 2011-05-21  Bruno Haible  <bruno@clisp.org>
41946         unsetenv: Move AC_LIBOBJ invocations to module description.
41947         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
41948         and gl_PREREQ_UNSETENV invocations from here...
41949         * modules/unsetenv (configure.ac): ... to here.
41950         (Depends-on): Update.
41952 2011-05-21  Bruno Haible  <bruno@clisp.org>
41954         setenv: Move AC_LIBOBJ invocations to module description.
41955         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
41956         here...
41957         * modules/setenv (configure.ac): ... to here.
41959 2011-05-21  Bruno Haible  <bruno@clisp.org>
41961         selinux-h: Move AC_LIBOBJ invocations to module description.
41962         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
41963         AC_LIBOBJ invocation from here...
41964         * modules/selinux-h (configure.ac): ... to here.
41966 2011-05-21  Bruno Haible  <bruno@clisp.org>
41968         select: Respect rules for use of AC_LIBOBJ.
41969         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
41970         here...
41971         * modules/select (configure.ac): ... to here.
41973 2011-05-21  Bruno Haible  <bruno@clisp.org>
41975         scandir: Move AC_LIBOBJ invocations to module description.
41976         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
41977         invocations from here...
41978         * modules/scandir (configure.ac): ... to here.
41980 2011-05-21  Bruno Haible  <bruno@clisp.org>
41982         rpmatch: Move AC_LIBOBJ invocations to module description.
41983         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
41984         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
41985         here...
41986         * modules/rpmatch (configure.ac): ... to here.
41988 2011-05-21  Bruno Haible  <bruno@clisp.org>
41990         rmdir: Respect rules for use of AC_LIBOBJ.
41991         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
41992         * modules/rmdir (configure.ac): ... to here.
41994 2011-05-21  Bruno Haible  <bruno@clisp.org>
41996         renameat: Move AC_LIBOBJ invocations to module description.
41997         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
41998         here...
41999         * modules/renameat (configure.ac): ... to here.
42001 2011-05-21  Bruno Haible  <bruno@clisp.org>
42003         rename: Respect rules for use of AC_LIBOBJ.
42004         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
42005         here...
42006         * modules/rename (configure.ac): ... to here.
42008 2011-05-21  Bruno Haible  <bruno@clisp.org>
42010         remove: Move AC_LIBOBJ invocations to module description.
42011         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
42012         here...
42013         * modules/remove (configure.ac): ... to here.
42015 2011-05-21  Bruno Haible  <bruno@clisp.org>
42017         relocatable-lib: Move AC_LIBOBJ invocations to module description.
42018         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
42019         macro.
42020         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
42021         * modules/relocatable-lib (configure.ac): ... to here.
42022         * modules/relocatable-prog-wrapper (configure.ac): Invoke
42023         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
42025 2011-05-21  Bruno Haible  <bruno@clisp.org>
42027         relocatable-prog: Move AC_LIBOBJ invocations to module description.
42028         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
42029         here...
42030         * modules/relocatable-prog (configure.ac): ... to here.
42032 2011-05-21  Bruno Haible  <bruno@clisp.org>
42034         regex: Move AC_LIBOBJ invocations to module description.
42035         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
42036         invocations from here...
42037         * modules/regex (configure.ac): ... to here.
42039 2011-05-21  Bruno Haible  <bruno@clisp.org>
42041         realloc-*: Move AC_LIBOBJ invocations to module description.
42042         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
42043         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
42044         AC_LIBOBJ invocations from here...
42045         * modules/realloc-gnu (configure.ac): ... to here.
42046         * modules/realloc-posix (configure.ac): ... and here.
42048 2011-05-21  Bruno Haible  <bruno@clisp.org>
42050         readutmp: Move AC_LIBOBJ invocations to module description.
42051         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
42052         * modules/readutmp (configure.ac): ... to here.
42054 2011-05-21  Bruno Haible  <bruno@clisp.org>
42056         readlinkat: Move AC_LIBOBJ invocations to module description.
42057         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
42058         here...
42059         * modules/readlinkat (configure.ac): ... to here.
42061 2011-05-21  Bruno Haible  <bruno@clisp.org>
42063         readlink: Move AC_LIBOBJ invocations to module description.
42064         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
42065         gl_PREREQ_READLINK invocations from here...
42066         * modules/readlink (configure.ac): ... to here.
42068 2011-05-21  Bruno Haible  <bruno@clisp.org>
42070         readline: Move AC_LIBOBJ invocations to module description.
42071         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
42072         gl_PREREQ_READLINE invocations from here...
42073         * modules/readline (configure.ac): ... to here.
42075 2011-05-21  Bruno Haible  <bruno@clisp.org>
42077         read: Move AC_LIBOBJ invocations to module description.
42078         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
42079         * modules/read (configure.ac): ... to here.
42081 2011-05-21  Bruno Haible  <bruno@clisp.org>
42083         rawmemchr: Move AC_LIBOBJ invocations to module description.
42084         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
42085         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
42086         from here...
42087         * modules/rawmemchr (configure.ac): ... to here.
42089 2011-05-21  Bruno Haible  <bruno@clisp.org>
42091         random_r: Move AC_LIBOBJ invocations to module description.
42092         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
42093         gl_PREREQ_RANDOM_R invocations from here...
42094         * modules/random_r (configure.ac): ... to here.
42096 2011-05-21  Bruno Haible  <bruno@clisp.org>
42098         pwrite: Move AC_LIBOBJ invocations to module description.
42099         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
42100         * modules/pwrite (configure.ac): ... to here.
42102 2011-05-21  Bruno Haible  <bruno@clisp.org>
42104         putenv: Move AC_LIBOBJ invocations to module description.
42105         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
42106         * modules/putenv (configure.ac): ... to here.
42108 2011-05-21  Bruno Haible  <bruno@clisp.org>
42110         login_tty: Move AC_LIBOBJ invocations to module description.
42111         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
42112         * modules/login_tty (configure.ac): ... to here.
42114 2011-05-21  Bruno Haible  <bruno@clisp.org>
42116         openpty: Move AC_LIBOBJ invocations to module description.
42117         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
42118         * modules/openpty (configure.ac): ... to here.
42120 2011-05-21  Bruno Haible  <bruno@clisp.org>
42122         forkpty: Move AC_LIBOBJ invocations to module description.
42123         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
42124         * modules/forkpty (configure.ac): ... to here.
42126 2011-05-21  Bruno Haible  <bruno@clisp.org>
42128         ptsname: Move AC_LIBOBJ invocations to module description.
42129         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
42130         invocations from here...
42131         * modules/ptsname (configure.ac): ... to here.
42133 2011-05-21  Bruno Haible  <bruno@clisp.org>
42135         pread: Move AC_LIBOBJ invocations to module description.
42136         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
42137         * modules/pread (configure.ac): ... to here.
42139 2011-05-21  Bruno Haible  <bruno@clisp.org>
42141         posix_spawn*: Move AC_LIBOBJ invocations to module description.
42142         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
42143         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
42144         * modules/posix_spawn (configure.ac): ... to here.
42145         * modules/posix_spawnp (configure.ac): ... and here.
42147 2011-05-21  Bruno Haible  <bruno@clisp.org>
42149         popen: Move AC_LIBOBJ invocations to module description.
42150         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
42151         invocations from here...
42152         * modules/popen (configure.ac): ... to here.
42154 2011-05-21  Bruno Haible  <bruno@clisp.org>
42156         poll: Move AC_LIBOBJ invocations to module description.
42157         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
42158         invocations from here...
42159         * modules/poll (configure.ac): ... to here.
42161 2011-05-21  Bruno Haible  <bruno@clisp.org>
42163         pipe-posix: Move AC_LIBOBJ invocations to module description.
42164         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
42165         * modules/pipe-posix (configure.ac): ... to here.
42167 2011-05-21  Bruno Haible  <bruno@clisp.org>
42169         openat: Respect rules for use of AC_LIBOBJ.
42170         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
42171         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
42172         * modules/openat (configure.ac): ... to here.
42174 2011-05-21  Bruno Haible  <bruno@clisp.org>
42176         obstack-printf*: Move AC_LIBOBJ invocations to module description.
42177         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
42178         invocation from here...
42179         * modules/obstack-printf (configure.ac): ... to here.
42180         * modules/obstack-printf-posix (configure.ac): ... and here.
42182 2011-05-21  Bruno Haible  <bruno@clisp.org>
42184         nl_langinfo: Move AC_LIBOBJ invocations to module description.
42185         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
42186         from here...
42187         * modules/nl_langinfo (configure.ac): ... to here.
42189 2011-05-21  Bruno Haible  <bruno@clisp.org>
42191         nanosleep: Move AC_LIBOBJ invocations to module description.
42192         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
42193         gl_PREREQ_NANOSLEEP invocations from here...
42194         * modules/nanosleep (configure.ac): ... to here.
42196 2011-05-21  Bruno Haible  <bruno@clisp.org>
42198         mountlist: Move AC_LIBOBJ invocations to module description.
42199         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
42200         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
42201         * modules/mountlist (configure.ac): ... to here.
42203 2011-05-21  Bruno Haible  <bruno@clisp.org>
42205         mktime: Respect rules for use of AC_LIBOBJ.
42206         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
42207         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
42208         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
42209         (gl_FUNC_MKTIME_INTERNAL): ... and here...
42210         * modules/mktime (configure.ac): ... to here.
42211         * modules/mktime-internal (configure.ac): ... and here.
42212         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
42214 2011-05-21  Bruno Haible  <bruno@clisp.org>
42216         mkstemps: Move AC_LIBOBJ invocations to module description.
42217         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
42218         here...
42219         * modules/mkstemps (configure.ac): ... to here.
42221 2011-05-21  Bruno Haible  <bruno@clisp.org>
42223         mkstemp: Move AC_LIBOBJ invocations to module description.
42224         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
42225         gl_PREREQ_MKSTEMP invocations from here...
42226         * modules/mkstemp (configure.ac): ... to here.
42228 2011-05-21  Bruno Haible  <bruno@clisp.org>
42230         mkostemps: Move AC_LIBOBJ invocations to module description.
42231         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
42232         here...
42233         * modules/mkostemps (configure.ac): ... to here.
42235 2011-05-21  Bruno Haible  <bruno@clisp.org>
42237         mkostemp: Move AC_LIBOBJ invocations to module description.
42238         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
42239         gl_PREREQ_MKOSTEMP invocations from here...
42240         * modules/mkostemp (configure.ac): ... to here.
42242 2011-05-21  Bruno Haible  <bruno@clisp.org>
42244         mknod: Move AC_LIBOBJ invocations to module description.
42245         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
42246         * modules/mknod (configure.ac): ... to here.
42248 2011-05-21  Bruno Haible  <bruno@clisp.org>
42250         mkfifoat: Move AC_LIBOBJ invocations to module description.
42251         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
42252         here...
42253         * modules/mkfifoat (configure.ac): ... to here.
42255 2011-05-21  Bruno Haible  <bruno@clisp.org>
42257         mkfifo: Respect rules for use of AC_LIBOBJ.
42258         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
42259         here...
42260         * modules/mkfifo (configure.ac): ... to here.
42262 2011-05-21  Bruno Haible  <bruno@clisp.org>
42264         mkdtemp: Move AC_LIBOBJ invocations to module description.
42265         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
42266         invocations from here...
42267         * modules/mkdtemp (configure.ac): ... to here.
42269 2011-05-21  Bruno Haible  <bruno@clisp.org>
42271         mkdir: Move AC_LIBOBJ invocations to module description.
42272         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
42273         * modules/mkdir (configure.ac): ... to here.
42275 2011-05-21  Bruno Haible  <bruno@clisp.org>
42277         memset: Move AC_LIBOBJ invocations to module description.
42278         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
42279         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
42280         here...
42281         * modules/memset (configure.ac): ... to here.
42283 2011-05-21  Bruno Haible  <bruno@clisp.org>
42285         memrchr: Move AC_LIBOBJ invocations to module description.
42286         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
42287         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
42288         here...
42289         * modules/memrchr (configure.ac): ... to here.
42291 2011-05-21  Bruno Haible  <bruno@clisp.org>
42293         mempcpy: Move AC_LIBOBJ invocations to module description.
42294         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
42295         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
42296         here...
42297         * modules/mempcpy (configure.ac): ... to here.
42299 2011-05-21  Bruno Haible  <bruno@clisp.org>
42301         memmove: Move AC_LIBOBJ invocations to module description.
42302         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
42303         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
42304         here...
42305         * modules/memmove (configure.ac): ... to here.
42307 2011-05-21  Bruno Haible  <bruno@clisp.org>
42309         memmem*: Move AC_LIBOBJ invocations to module description.
42310         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
42311         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
42312         here...
42313         (gl_FUNC_MEMMEM): ... and here...
42314         * modules/memmem-simple (configure.ac): ... to here.
42315         * modules/memmem (configure.ac): ... and here.
42317 2011-05-21  Bruno Haible  <bruno@clisp.org>
42319         memcpy: Move AC_LIBOBJ invocations to module description.
42320         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
42321         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
42322         here...
42323         * modules/memcpy (configure.ac): ... to here.
42325 2011-05-21  Bruno Haible  <bruno@clisp.org>
42327         memcmp: Simplify autoconf macro.
42328         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
42329         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
42330         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
42332 2011-05-21  Bruno Haible  <bruno@clisp.org>
42334         memcmp: Move AC_LIBOBJ invocations to module description.
42335         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
42336         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
42337         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
42338         * modules/memcmp (configure.ac): ... to here.
42339         (Depends-on): Update conditions.
42341 2011-05-21  Bruno Haible  <bruno@clisp.org>
42343         memchr: Respect rules for use of AC_LIBOBJ.
42344         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
42345         invocations from here...
42346         * modules/memchr (configure.ac): ... to here.
42348 2011-05-21  Bruno Haible  <bruno@clisp.org>
42350         mbtowc: Move AC_LIBOBJ invocations to module description.
42351         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
42352         invocations from here...
42353         * modules/mbtowc (configure.ac): ... to here.
42355 2011-05-21  Bruno Haible  <bruno@clisp.org>
42357         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
42358         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
42359         gl_PREREQ_MBSRTOWCS invocations from here...
42360         * modules/mbsrtowcs (configure.ac): ... to here.
42362 2011-05-21  Bruno Haible  <bruno@clisp.org>
42364         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
42365         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
42366         gl_PREREQ_MBSNRTOWCS invocations from here...
42367         * modules/mbsnrtowcs (configure.ac): ... to here.
42369 2011-05-21  Bruno Haible  <bruno@clisp.org>
42371         mbsinit: Move AC_LIBOBJ invocations to module description.
42372         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
42373         invocations from here...
42374         * modules/mbsinit (configure.ac): ... to here.
42376 2011-05-21  Bruno Haible  <bruno@clisp.org>
42378         mbrlen: Move AC_LIBOBJ invocations to module description.
42379         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
42380         invocations from here...
42381         * modules/mbrlen (configure.ac): ... to here.
42383 2011-05-21  Bruno Haible  <bruno@clisp.org>
42385         mbrtowc: Respect rules for use of AC_LIBOBJ.
42386         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
42387         invocations from here...
42388         * modules/mbrtowc (configure.ac): ... to here.
42390 2011-05-21  Bruno Haible  <bruno@clisp.org>
42392         malloc-*: Move AC_LIBOBJ invocations to module description.
42393         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
42394         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
42395         AC_LIBOBJ invocations from here...
42396         * modules/malloc-gnu (configure.ac): ... to here.
42397         * modules/malloc-posix (configure.ac): ... and here.
42399 2011-05-21  Bruno Haible  <bruno@clisp.org>
42401         lstat, openat: Respect rules for use of AC_LIBOBJ.
42402         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
42403         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
42404         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
42405         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
42406         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
42407         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
42408         here.
42409         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
42411 2011-05-21  Bruno Haible  <bruno@clisp.org>
42413         lseek: Move AC_LIBOBJ invocations to module description.
42414         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
42415         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
42416         * modules/lseek (configure.ac): ... to here.
42418 2011-05-21  Bruno Haible  <bruno@clisp.org>
42420         linkat: Move AC_LIBOBJ invocations to module description.
42421         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
42422         here...
42423         * modules/linkat (configure.ac): ... to here.
42425 2011-05-21  Bruno Haible  <bruno@clisp.org>
42427         link: Respect rules for use of AC_LIBOBJ.
42428         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
42429         * modules/link (configure.ac): ... to here.
42431 2011-05-21  Bruno Haible  <bruno@clisp.org>
42433         lchown: Move AC_LIBOBJ invocations to module description.
42434         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
42435         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
42436         * modules/lchown (configure.ac): ... to here.
42438 2011-05-21  Bruno Haible  <bruno@clisp.org>
42440         iswctype: Move AC_LIBOBJ invocations to module description.
42441         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
42442         here...
42443         * modules/iswctype (configure.ac): ... to here.
42445 2011-05-21  Bruno Haible  <bruno@clisp.org>
42447         iswblank: Move AC_LIBOBJ invocations to module description.
42448         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
42449         here...
42450         * modules/iswblank (configure.ac): ... to here.
42452 2011-05-21  Bruno Haible  <bruno@clisp.org>
42454         atanl: Move AC_LIBOBJ invocations to module description.
42455         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
42456         * modules/atanl (configure.ac): ... to here.
42458 2011-05-21  Bruno Haible  <bruno@clisp.org>
42460         acosl: Move AC_LIBOBJ invocations to module description.
42461         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
42462         * modules/acosl (configure.ac): ... to here.
42464 2011-05-21  Bruno Haible  <bruno@clisp.org>
42466         asinl: Respect rules for use of AC_LIBOBJ.
42467         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
42468         * modules/asinl (configure.ac): ... to here.
42470 2011-05-21  Bruno Haible  <bruno@clisp.org>
42472         tanl: Move AC_LIBOBJ invocations to module description.
42473         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
42474         * modules/tanl (configure.ac): ... to here.
42476 2011-05-21  Bruno Haible  <bruno@clisp.org>
42478         cosl: Move AC_LIBOBJ invocations to module description.
42479         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
42480         * modules/cosl (configure.ac): ... to here.
42482 2011-05-21  Bruno Haible  <bruno@clisp.org>
42484         sinl: Move AC_LIBOBJ invocations to module description.
42485         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
42486         * modules/sinl (configure.ac): ... to here.
42488 2011-05-21  Bruno Haible  <bruno@clisp.org>
42490         logl: Move AC_LIBOBJ invocations to module description.
42491         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
42492         * modules/logl (configure.ac): ... to here.
42494 2011-05-21  Bruno Haible  <bruno@clisp.org>
42496         expl: Move AC_LIBOBJ invocations to module description.
42497         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
42498         * modules/expl (configure.ac): ... to here.
42500 2011-05-21  Bruno Haible  <bruno@clisp.org>
42502         roundl: Move AC_LIBOBJ invocations to module description.
42503         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
42504         * modules/roundl (configure.ac): ... to here.
42506 2011-05-21  Bruno Haible  <bruno@clisp.org>
42508         round: Move AC_LIBOBJ invocations to module description.
42509         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
42510         * modules/round (configure.ac): ... to here.
42512 2011-05-21  Bruno Haible  <bruno@clisp.org>
42514         roundf: Move AC_LIBOBJ invocations to module description.
42515         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
42516         * modules/roundf (configure.ac): ... to here.
42518 2011-05-21  Bruno Haible  <bruno@clisp.org>
42520         truncl: Move AC_LIBOBJ invocations to module description.
42521         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
42522         * modules/truncl (configure.ac): ... to here.
42524 2011-05-21  Bruno Haible  <bruno@clisp.org>
42526         trunc: Move AC_LIBOBJ invocations to module description.
42527         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
42528         * modules/trunc (configure.ac): ... to here.
42530 2011-05-21  Bruno Haible  <bruno@clisp.org>
42532         truncf: Move AC_LIBOBJ invocations to module description.
42533         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
42534         * modules/truncf (configure.ac): ... to here.
42536 2011-05-21  Bruno Haible  <bruno@clisp.org>
42538         ceill: Move AC_LIBOBJ invocations to module description.
42539         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
42540         * modules/ceill (configure.ac): ... to here.
42542 2011-05-21  Bruno Haible  <bruno@clisp.org>
42544         ceil: Move AC_LIBOBJ invocations to module description.
42545         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
42546         * modules/ceil (configure.ac): ... to here.
42548 2011-05-21  Bruno Haible  <bruno@clisp.org>
42550         ceilf: Move AC_LIBOBJ invocations to module description.
42551         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
42552         * modules/ceilf (configure.ac): ... to here.
42554 2011-05-21  Bruno Haible  <bruno@clisp.org>
42556         floorl: Respect rules for use of AC_LIBOBJ.
42557         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
42558         * modules/floorl (configure.ac): ... to here.
42560 2011-05-21  Bruno Haible  <bruno@clisp.org>
42562         floor: Respect rules for use of AC_LIBOBJ.
42563         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
42564         * modules/floor (configure.ac): ... to here.
42566 2011-05-21  Bruno Haible  <bruno@clisp.org>
42568         floorf: Move AC_LIBOBJ invocations to module description.
42569         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
42570         * modules/floorf (configure.ac): ... to here.
42572 2011-05-20  Bruno Haible  <bruno@clisp.org>
42574         sqrtl: Respect rules for use of AC_LIBOBJ.
42575         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
42576         * modules/sqrtl (configure.ac): ... to here.
42578 2011-05-20  Bruno Haible  <bruno@clisp.org>
42580         ldexpl: Respect rules for use of AC_LIBOBJ.
42581         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
42582         * modules/ldexpl (configure.ac): ... to here.
42584 2011-05-20  Bruno Haible  <bruno@clisp.org>
42586         frexpl*: Respect rules for use of AC_LIBOBJ.
42587         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
42588         invocation from here...
42589         * modules/frexpl (configure.ac): ... to here.
42590         * modules/frexpl-nolibm (configure.ac): ... and here.
42592 2011-05-20  Bruno Haible  <bruno@clisp.org>
42594         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
42595         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
42596         invocation from here...
42597         * modules/frexp (configure.ac): ... to here.
42598         * modules/frexp-nolibm (configure.ac): ... and here.
42600 2011-05-20  Bruno Haible  <bruno@clisp.org>
42602         isnan: Respect rules for use of AC_LIBOBJ.
42603         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
42604         invocations here.
42605         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
42606         REPLACE_ISNAN.
42607         * modules/isnand (configure.ac): Likewise.
42608         * modules/isnanl (configure.ac): Likewise.
42610 2011-05-20  Bruno Haible  <bruno@clisp.org>
42612         isnanl*: Respect rules for use of AC_LIBOBJ.
42613         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
42614         invocation from here...
42615         * modules/isnanl (configure.ac): ... to here.
42616         * modules/isnanl-nolibm (configure.ac): ... and here.
42618 2011-05-20  Bruno Haible  <bruno@clisp.org>
42620         isnand*: Move AC_LIBOBJ invocations to module description.
42621         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
42622         invocation from here...
42623         * modules/isnand (configure.ac): ... to here.
42624         * modules/isnand-nolibm (configure.ac): ... and here.
42626 2011-05-20  Bruno Haible  <bruno@clisp.org>
42628         isnanf*: Move AC_LIBOBJ invocations to module description.
42629         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
42630         invocation from here...
42631         * modules/isnanf (configure.ac): ... to here.
42632         * modules/isnanf-nolibm (configure.ac): ... and here.
42634 2011-05-20  Bruno Haible  <bruno@clisp.org>
42636         isnan*: Separate the AC_LIBOBJ invocations.
42637         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
42638         AC_LIBOBJ invocation.
42639         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
42640         here.
42641         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
42642         AC_LIBOBJ invocation.
42643         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
42644         here.
42645         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
42646         AC_LIBOBJ invocation.
42647         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
42648         here.
42649         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
42651 2011-05-08  Bruno Haible  <bruno@clisp.org>
42653         isinf: Move AC_LIBOBJ invocations to module description.
42654         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
42655         * modules/isinf (configure.ac): ... to here.
42657 2011-05-08  Bruno Haible  <bruno@clisp.org>
42659         isfinite: Move AC_LIBOBJ invocations to module description.
42660         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
42661         * modules/isfinite (configure.ac): ... to here.
42663 2011-05-08  Bruno Haible  <bruno@clisp.org>
42665         isblank: Move AC_LIBOBJ invocations to module description.
42666         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
42667         here...
42668         * modules/isblank (configure.ac): ... to here.
42670 2011-05-08  Bruno Haible  <bruno@clisp.org>
42672         isapipe: Move AC_LIBOBJ invocations to module description.
42673         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
42674         gl_PREREQ_ISAPIPE invocations from here...
42675         * modules/isapipe (configure.ac): ... to here.
42676         (Depends-on): Update condition.
42678 2011-05-08  Bruno Haible  <bruno@clisp.org>
42680         ioctl: Move AC_LIBOBJ invocations to module description.
42681         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
42682         invocations from here...
42683         * modules/ioctl (configure.ac): ... to here.
42684         (Depends-on): Update condition.
42686 2011-05-08  Bruno Haible  <bruno@clisp.org>
42688         imaxdiv: Move AC_LIBOBJ invocations to module description.
42689         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
42690         invocations from here...
42691         * modules/imaxdiv (configure.ac): ... to here.
42693 2011-05-08  Bruno Haible  <bruno@clisp.org>
42695         imaxabs: Move AC_LIBOBJ invocations to module description.
42696         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
42697         invocations from here...
42698         * modules/imaxabs (configure.ac): ... to here.
42700 2011-05-08  Bruno Haible  <bruno@clisp.org>
42702         getaddrinfo: Move AC_LIBOBJ invocations to module description.
42703         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
42704         AC_LIBOBJ invocations from here...
42705         * modules/getaddrinfo (configure.ac): ... to here.
42706         (Depends-on): Add conditions.
42708 2011-05-08  Bruno Haible  <bruno@clisp.org>
42710         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
42711         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
42712         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
42713         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
42714         (gl_PREREQ_INET_PTON): ... from here.
42715         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
42716         gl_PREREQ_INET_PTON here.
42717         (Depends-on): Update condition.
42719 2011-05-08  Bruno Haible  <bruno@clisp.org>
42721         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
42722         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
42723         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
42724         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
42725         (gl_PREREQ_INET_NTOP): ... from here.
42726         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
42727         gl_PREREQ_INET_NTOP here.
42728         (Depends-on): Update condition.
42730 2011-05-08  Bruno Haible  <bruno@clisp.org>
42732         iconv_open: Move AC_LIBOBJ invocations to module description.
42733         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
42734         AC_LIBOBJ invocations from here...
42735         * modules/iconv_open (configure.ac): ... to here.
42737 2011-05-08  Bruno Haible  <bruno@clisp.org>
42739         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
42740         If module 'iconv_open' is among the main modules and module
42741         'iconv_open-utf' is among the tests dependencies, then
42742         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
42743         return the special iconv_t values. Therefore iconv() and iconv_close()
42744         must support these special iconv_t values, already in lib, not only in
42745         tests.
42746         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
42747         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
42748         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
42749         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
42750         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
42751         (Depends-on): Add the dependencies of iconv_open-utf.
42752         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
42753         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
42754         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
42756 2011-05-08  Bruno Haible  <bruno@clisp.org>
42758         group-member: Move AC_LIBOBJ invocations to module description.
42759         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
42760         gl_PREREQ_GROUP_MEMBER invocations from here...
42761         * modules/group-member (configure.ac): ... to here.
42763 2011-05-08  Bruno Haible  <bruno@clisp.org>
42765         grantpt: Move AC_LIBOBJ invocations to module description.
42766         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
42767         invocations from here...
42768         * modules/grantpt (configure.ac): ... to here.
42770 2011-05-08  Bruno Haible  <bruno@clisp.org>
42772         glob: Move AC_LIBOBJ invocations to module description.
42773         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
42774         from here...
42775         * modules/glob (configure.ac): ... to here.
42777 2011-05-08  Bruno Haible  <bruno@clisp.org>
42779         getusershell: Move AC_LIBOBJ invocations to module description.
42780         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
42781         Move AC_LIBOBJ invocation from here...
42782         * modules/getusershell (configure.ac): ... to here.
42783         (Depends-on): Update condition.
42785 2011-05-08  Bruno Haible  <bruno@clisp.org>
42787         gettimeofday: Move AC_LIBOBJ invocations to module description.
42788         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
42789         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
42790         gl_PREREQ_GETTIMEOFDAY invocations from here...
42791         * modules/gettimeofday (configure.ac): ... to here.
42793 2011-05-08  Bruno Haible  <bruno@clisp.org>
42795         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
42796         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
42797         just gl_FUNC_TZSET.
42798         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
42799         (gl_FUNC_TZSET_CLOBBER): Remove actions.
42800         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
42801         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
42803 2011-05-08  Bruno Haible  <bruno@clisp.org>
42805         getsubopt: Move AC_LIBOBJ invocations to module description.
42806         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
42807         gl_PREREQ_GETSUBOPT invocations from here...
42808         * modules/getsubopt (configure.ac): ... to here.
42810 2011-05-08  Bruno Haible  <bruno@clisp.org>
42812         getpass-gnu: Move AC_LIBOBJ invocations to module description.
42813         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
42814         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
42815         * modules/getpass-gnu (configure.ac): ... to here.
42817 2011-05-08  Bruno Haible  <bruno@clisp.org>
42819         getpass: Move AC_LIBOBJ invocations to module description.
42820         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
42821         gl_PREREQ_GETPASS invocations from here...
42822         * modules/getpass (configure.ac): ... to here.
42824 2011-05-08  Bruno Haible  <bruno@clisp.org>
42826         getpagesize: Move AC_LIBOBJ invocations to module description.
42827         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
42828         from here...
42829         * modules/getpagesize (configure.ac): ... to here.
42831 2011-05-08  Bruno Haible  <bruno@clisp.org>
42833         getopt: Move AC_LIBOBJ invocations to module description.
42834         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
42835         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
42836         invocations from here...
42837         * modules/getopt-gnu (configure.ac): ... to here.
42838         * modules/getopt-posix (configure.ac): ... and here.
42839         (Depends-on): Update condition.
42841 2011-05-08  Bruno Haible  <bruno@clisp.org>
42843         getopt, argp: Respect rules for use of AC_LIBOBJ.
42844         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
42845         (gl_REPLACE_GETOPT_ALWAYS): New macro.
42846         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
42847         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
42849 2011-05-08  Bruno Haible  <bruno@clisp.org>
42851         getlogin_r: Move AC_LIBOBJ invocations to module description.
42852         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
42853         gl_PREREQ_GETLOGIN_R invocations from here...
42854         * modules/getlogin_r (configure.ac): ... to here.
42856 2011-05-08  Bruno Haible  <bruno@clisp.org>
42858         getlogin: Move AC_LIBOBJ invocations to module description.
42859         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
42860         here...
42861         * modules/getlogin (configure.ac): ... to here.
42863 2011-05-08  Bruno Haible  <bruno@clisp.org>
42865         getloadavg: Move AC_LIBOBJ invocations to module description.
42866         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
42867         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
42868         * modules/getloadavg (configure.ac): ... to here.
42870 2011-05-08  Bruno Haible  <bruno@clisp.org>
42872         gethrxtime: Move AC_LIBOBJ invocations to module description.
42873         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
42874         LIB_GETHRXTIME from here...
42875         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
42876         invocations from here...
42877         * modules/gethrxtime (configure.ac): ... to here.
42879 2011-05-08  Bruno Haible  <bruno@clisp.org>
42881         gethostname: Move AC_LIBOBJ invocations to module description.
42882         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
42883         gl_PREREQ_GETHOSTNAME invocations from here...
42884         * modules/gethostname (configure.ac): ... to here.
42886 2011-05-08  Bruno Haible  <bruno@clisp.org>
42888         getgroups: Move AC_LIBOBJ invocations to module description.
42889         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
42890         here...
42891         * modules/getgroups (configure.ac): ... to here.
42893 2011-05-08  Bruno Haible  <bruno@clisp.org>
42895         getdtablesize: Move AC_LIBOBJ invocations to module description.
42896         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
42897         invocation from here...
42898         * modules/getdtablesize (configure.ac): ... to here.
42900 2011-05-08  Bruno Haible  <bruno@clisp.org>
42902         getdomainname: Move AC_LIBOBJ invocations to module description.
42903         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
42904         gl_PREREQ_GETDOMAINNAME invocations from here...
42905         * modules/getdomainname (configure.ac): ... to here.
42907 2011-05-08  Bruno Haible  <bruno@clisp.org>
42909         getline: Move AC_LIBOBJ invocations to module description.
42910         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
42911         invocations from here...
42912         * modules/getline (configure.ac): ... to here.
42914 2011-05-08  Bruno Haible  <bruno@clisp.org>
42916         getline: Simplify.
42917         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
42918         It's already handled through the module dependency.
42920 2011-05-08  Bruno Haible  <bruno@clisp.org>
42922         getdelim: Move AC_LIBOBJ invocations to module description.
42923         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
42924         and gl_PREREQ_GETDELIM invocations from here...
42925         * modules/getdelim (configure.ac): ... to here.
42926         (Depends-on): Fix condition.
42928 2011-05-08  Bruno Haible  <bruno@clisp.org>
42930         getcwd: Move AC_LIBOBJ invocations to module description.
42931         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
42932         invocations from here...
42933         * modules/getcwd (configure.ac): ... to here.
42935 2011-05-08  Bruno Haible  <bruno@clisp.org>
42937         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
42938         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
42939         here...
42940         * modules/getcwd-lgpl (configure.ac): ... to here.
42942 2011-05-07  Bruno Haible  <bruno@clisp.org>
42944         crypto/gc: Move AC_LIBOBJ invocations to module description.
42945         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
42946         * modules/crypto/gc (configure.ac): ... to here.
42948 2011-05-07  Bruno Haible  <bruno@clisp.org>
42950         fwriting: Move AC_LIBOBJ invocations to module description.
42951         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
42952         here...
42953         * modules/fwriting (configure.ac): ... to here.
42955 2011-05-07  Bruno Haible  <bruno@clisp.org>
42957         fwritable: Move AC_LIBOBJ invocations to module description.
42958         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
42959         here...
42960         * modules/fwritable (configure.ac): ... to here.
42962 2011-05-07  Bruno Haible  <bruno@clisp.org>
42964         futimens: Move AC_LIBOBJ invocations to module description.
42965         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
42966         here...
42967         * modules/futimens (configure.ac): ... to here.
42969 2011-05-07  Bruno Haible  <bruno@clisp.org>
42971         ftruncate: Move AC_LIBOBJ invocations to module description.
42972         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
42973         gl_PREREQ_FTRUNCATE invocations from here...
42974         * modules/ftruncate (configure.ac): ... to here.
42976 2011-05-07  Bruno Haible  <bruno@clisp.org>
42978         fsync: Move AC_LIBOBJ invocations to module description.
42979         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
42980         invocations from here...
42981         * modules/fsync (configure.ac): ... to here.
42983 2011-05-07  Bruno Haible  <bruno@clisp.org>
42985         fsusage: Move AC_LIBOBJ invocations to module description.
42986         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
42987         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
42988         * modules/fsusage (configure.ac): ... to here.
42990 2011-05-07  Bruno Haible  <bruno@clisp.org>
42992         freopen: Move AC_LIBOBJ invocations to module description.
42993         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
42994         invocations from here...
42995         * modules/freopen (configure.ac): ... to here.
42997 2011-05-07  Bruno Haible  <bruno@clisp.org>
42999         free: Move AC_LIBOBJ invocations to module description.
43000         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
43001         invocations from here...
43002         * modules/free (configure.ac): ... to here.
43004 2011-05-07  Bruno Haible  <bruno@clisp.org>
43006         freadable: Move AC_LIBOBJ invocations to module description.
43007         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
43008         here...
43009         * modules/freadable (configure.ac): ... to here.
43011 2011-05-07  Bruno Haible  <bruno@clisp.org>
43013         fpurge: Move AC_LIBOBJ invocations to module description.
43014         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
43015         invocations from here...
43016         * modules/fpurge (configure.ac): ... to here.
43018 2011-05-07  Bruno Haible  <bruno@clisp.org>
43020         fpending: Move AC_LIBOBJ invocations to module description.
43021         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
43022         gl_FUNC_FPENDING.
43023         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
43024         invocations from here...
43025         * modules/fpending (configure.ac): ... to here.
43027 2011-05-07  Bruno Haible  <bruno@clisp.org>
43029         fopen: Move AC_LIBOBJ invocations to module description.
43030         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
43031         invocations from here...
43032         * modules/fopen (configure.ac): ... to here.
43034 2011-05-07  Bruno Haible  <bruno@clisp.org>
43036         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
43037         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
43038         gl_FUNC_FNMATCH_POSIX.
43039         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
43040         invocations from here...
43041         * modules/fnmatch (configure.ac): ... to here.
43042         * modules/fnmatch-gnu (configure.ac): ... and here.
43044 2011-05-07  Bruno Haible  <bruno@clisp.org>
43046         flock: Move AC_LIBOBJ invocations to module description.
43047         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
43048         invocations from here...
43049         * modules/flock (configure.ac): ... to here.
43051 2011-05-07  Bruno Haible  <bruno@clisp.org>
43053         fileblocks: Move AC_LIBOBJ invocations to module description.
43054         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
43055         gl_PREREQ_FILEBLOCKS invocations from here...
43056         * modules/fileblocks (configure.ac): ... to here.
43058 2011-05-06  Bruno Haible  <bruno@clisp.org>
43060         fflush: Move AC_LIBOBJ invocations to module description.
43061         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
43062         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
43063         invocations from here...
43064         * modules/fflush (configure.ac): ... to here.
43066 2011-05-06  Bruno Haible  <bruno@clisp.org>
43068         fdopendir: Move AC_LIBOBJ invocations to module description.
43069         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
43070         here...
43071         * modules/fdopendir (configure.ac): ... to here.
43072         (Depends-on): Improve conditions.
43074 2011-05-06  Bruno Haible  <bruno@clisp.org>
43076         _Exit: Move AC_LIBOBJ invocations to module description.
43077         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
43078         invocations from here...
43079         * modules/_Exit (configure.ac): ... to here.
43081 2011-05-21  Bruno Haible  <bruno@clisp.org>
43083         euidaccess: Respect rules for use of AC_LIBOBJ.
43084         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
43085         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
43086         from here...
43087         * modules/euidaccess (configure.ac): ... to here.
43089 2011-05-06  Bruno Haible  <bruno@clisp.org>
43091         error: Move AC_LIBOBJ invocations to module description.
43092         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
43093         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
43094         invocations from here...
43095         * modules/error (configure.ac): ... to here.
43097 2011-05-06  Bruno Haible  <bruno@clisp.org>
43099         duplocale: Move AC_LIBOBJ invocations to module description.
43100         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
43101         gl_PREREQ_DUPLOCALE invocations from here...
43102         * modules/duplocale (configure.ac): ... to here.
43104 2011-05-05  Bruno Haible  <bruno@clisp.org>
43106         dirfd: Move AC_LIBOBJ invocations to module description.
43107         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
43108         gl_FUNC_DIRFD.
43109         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
43110         here...
43111         * modules/dirfd (configure.ac): ... to here.
43112         (Depends-on): Fix condition.
43114 2011-05-05  Bruno Haible  <bruno@clisp.org>
43116         chown: Respect rules for use of AC_LIBOBJ.
43117         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
43118         * modules/chown (configure.ac): ... to here.
43120 2011-05-05  Bruno Haible  <bruno@clisp.org>
43122         chdir-long: Move AC_LIBOBJ invocations to module description.
43123         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
43124         gl_PREREQ_CHDIR_LONG invocations from here...
43125         * modules/chdir-long (configure.ac): ... to here.
43127 2011-05-05  Bruno Haible  <bruno@clisp.org>
43129         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
43130         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
43131         from here...
43132         * modules/canonicalize-lgpl (configure.ac): ... to here.
43134 2011-05-05  Bruno Haible  <bruno@clisp.org>
43136         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
43137         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
43138         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
43139         REPLACE_CALLOC.
43140         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
43141         * modules/calloc-gnu (configure.ac): Likewise.
43143 2011-05-05  Bruno Haible  <bruno@clisp.org>
43145         btowc: Move AC_LIBOBJ invocations to module description.
43146         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
43147         invocations from here...
43148         * modules/btowc (configure.ac): ... to here.
43150 2011-05-21  Bruno Haible  <bruno@clisp.org>
43152         atexit: Move AC_LIBOBJ invocations to module description.
43153         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
43154         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
43155         here...
43156         * modules/atexit (configure.ac): ... to here.
43158 2011-05-05  Bruno Haible  <bruno@clisp.org>
43160         atoll: Move AC_LIBOBJ invocations to module description.
43161         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
43162         invocations from here...
43163         * modules/atoll (configure.ac): ... to here.
43165 2011-05-05  Bruno Haible  <bruno@clisp.org>
43167         argz: Move AC_LIBOBJ invocations to module description.
43168         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
43169         * modules/argz (configure.ac): ... to here.
43171 2011-05-05  Bruno Haible  <bruno@clisp.org>
43173         alphasort: Move AC_LIBOBJ invocations to module description.
43174         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
43175         gl_PREREQ_ALPHASORT invocations from here...
43176         * modules/alphasort (configure.ac): ... to here.
43178 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
43180         verify: new macro verify_expr; verify_true deprecated
43181         * NEWS: Mention this.
43182         * doc/verify.texi (Compile-time Assertions): Document this.
43183         * lib/verify.h (verify_true): Deprecate.
43184         (verify_expr): New macro.
43185         * tests/test-verify.c (function): Test verify_expr.
43187 2011-06-14  Jim Meyering  <meyering@redhat.com>
43189         init.sh: give more portable redirection-related advice in a comment
43190         * tests/init.sh (stderr_fileno_): Update the advice in comments.
43191         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
43192         for lots of discussion.  Stefano Lattarini suggested the solution
43193         of putting "9>&2" after the command.  Reported by Bruno Haible.
43195 2011-06-13  Bruno Haible  <bruno@clisp.org>
43197         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
43198         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
43199         'none'.
43201 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
43203         ftoastr: use strtof only if HAVE_STRTOF
43204         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
43205         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
43206         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
43207         * modules/ftoastr (configure.ac): Check for strtof.
43209 2011-06-13  Bruno Haible  <bruno@clisp.org>
43211         gnulib-tool: Addendum to 2011-06-08 commit.
43212         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
43213         and --witness-c-macro have been given, augment AM_CPPFLAGS.
43215 2011-06-13  Bruno Haible  <bruno@clisp.org>
43217         fseeko: Provide a non-inline replacement of fseek().
43218         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
43219         * modules/fseeko (Depends-on): Add fseek.
43220         * modules/fseek (License): Change to LGPLv2+.
43222 2011-06-13  Bruno Haible  <bruno@clisp.org>
43224         ftello: Provide a non-inline replacement of ftell().
43225         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
43226         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
43227         not have ftello() (such as on mingw).
43228         * modules/ftello (Depends-on): Add ftell.
43229         * modules/ftell (License): Change to LGPLv2+.
43231 2011-05-07  Bruno Haible  <bruno@clisp.org>
43233         ftell: Move AC_LIBOBJ invocations to module description.
43234         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
43235         * modules/ftell (configure.ac): ... to here.
43237 2011-05-07  Bruno Haible  <bruno@clisp.org>
43239         ftello: Respect rules for use of AC_LIBOBJ.
43240         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
43241         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
43242         here...
43243         * modules/ftello (configure.ac): ... to here.
43245 2011-05-07  Bruno Haible  <bruno@clisp.org>
43247         fseeko: Simplify.
43248         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
43249         (gl_FUNC_FSEEKO): Inline it here.
43251 2011-05-07  Bruno Haible  <bruno@clisp.org>
43253         fseek: Move AC_LIBOBJ invocations to module description.
43254         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
43255         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
43256         * modules/fseek (configure.ac): ... to here.
43258 2011-05-07  Bruno Haible  <bruno@clisp.org>
43260         fseek: Respect rules for use of AC_LIBOBJ.
43261         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
43262         here...
43263         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
43265 2011-05-07  Bruno Haible  <bruno@clisp.org>
43267         fseeko: Respect rules for use of AC_LIBOBJ.
43268         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
43269         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
43270         here...
43271         * modules/fseeko (configure.ac): ... to here.
43273 2011-06-13  Bruno Haible  <bruno@clisp.org>
43275         gnulib-tool: Allow comments in the 'Depends-on' section.
43276         * doc/gnulib.texi (Module description): Mention comment syntax in the
43277         Depends-on section.
43278         * gnulib-tool (func_get_dependencies): Filter out comment lines.
43280 2011-06-13  Bruno Haible  <bruno@clisp.org>
43282         file-set.h: guard __attibute__ use, now that it's not always defined
43283         * lib/file-set.h (record_file): Use __attribute__ only with compiler
43284         versions that support it.  This fixes a coreutils build failure with
43285         the vendor cc on HP-UX 11.31.
43287 2011-06-12  Bruno Haible  <bruno@clisp.org>
43289         acl: Add support for HP-UX >= 11.11 JFS ACLs.
43290         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
43291         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
43292         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
43293         (acl, aclsort): New declarations.
43294         (aclv_nontrivial): New declaration.
43295         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
43296         (file_has_acl): Read also the second kind of HP-UX ACLs.
43297         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
43298         kind of HP-UX ACLs if the first kind fails.
43299         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
43300         second kind of HP-UX ACLs.
43301         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
43302         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
43303         agree.
43304         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
43305         hpuxjfs.
43306         Handle hpuxjfs.
43307         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
43308         hpuxjfs.
43309         Handle hpuxjfs.
43310         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
43311         (func_test_same_acls): Use both lsacl and getacl.
43312         Handle hpuxjfs.
43313         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
43314         (func_test_same_acls): Use both lsacl and getacl.
43315         Handle hpuxjfs.
43317 2011-06-12  Bruno Haible  <bruno@clisp.org>
43319         acl: Complete the 2010-08-10 fix.
43320         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
43321         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
43322         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
43323         explicitly.
43324         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
43325         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
43327 2011-06-12  Bruno Haible  <bruno@clisp.org>
43329         spawn-pipe tests: Comments.
43330         * tests/test-spawn-pipe-child.c (main): Update comment.
43331         Reported by James Youngman <jay@gnu.org>.
43333 2011-06-11  James Youngman  <jay@gnu.org>
43335         New module 'stat-size'.
43336         * modules/stat-size: New module.  Provides macros for accessing
43337         file size information in instances of struct stat.  Depends on the
43338         fileblocks module because it calls st_blocks.
43339         * lib/stat-size.h: New file, adapted from coreutils' system.h.
43340         * doc/gnulib.texi: Include stat-size.texi.
43341         * doc/stat-size.texi: Documentation for this module.
43342         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
43343         * m4/fileblocks.m4: Mention that stat-size depends on the call to
43344         AC_STRUCT_ST_BLOCKS.
43346 2011-06-09  Bruno Haible  <bruno@clisp.org>
43348         thread: Support pthreads-win32.
43349         * lib/glthread/thread.h (gl_thread_self): Define differently on
43350         pthreads-win32.
43351         (gl_null_thread): New declaration.
43352         (gl_thread_self_pointer): New macro.
43353         * lib/glthread/thread.c (gl_null_thread): New constant.
43354         * tests/test-lock.c: Use gl_thread_self_pointer instead of
43355         gl_thread_self.
43356         * tests/test-tls.c: Likewise.
43357         Suggested by Paul Eggert. Reported by Eric Blake.
43359 2011-06-09  Bruno Haible  <bruno@clisp.org>
43361         thread: Fix confusion between NULL and 0.
43362         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
43363         Reported by Paul Eggert.
43365 2011-06-09  Bruno Haible  <bruno@clisp.org>
43367         spawn-pipe tests: Avoid test failure on HP-UX 11.
43368         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
43369         is closed.
43371 2011-06-09  Bruno Haible  <bruno@clisp.org>
43373         acl tests: Fix compilation error on HP-UX 11.
43374         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
43376 2011-06-09  Bruno Haible  <bruno@clisp.org>
43378         rmdir: Avoid test failure on HP-UX 10.20.
43379         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
43380         EEXIST.
43382 2011-06-08  Eric Blake  <eblake@redhat.com>
43384         perror: fix test on mingw
43385         * modules/perror-tests (Depends-on): Add dup2.
43387         strerror_r-posix: fix on MacOS
43388         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
43389         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
43390         logic bug.
43391         * lib/strerror_r.c (strerror_r): Fix the bug.
43392         * lib/strerror.c (strerror): Likewise.
43393         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
43394         problem.
43395         * doc/posix-functions/strerror.texi (strerror): Likewise.
43396         * doc/posix-functions/perror.texi (perror): Likewise.
43397         * tests/test-strerror.c (main): Enhance test.
43398         * tests/test-strerror_r.c (main): Likewise.
43400 2011-06-08  Bruno Haible  <bruno@clisp.org>
43402         gnulib-tool: Better isolation between different gnulib-tool invocations.
43403         * gnulib-tool: New option --witness-c-macro.
43404         (witness_c_macro): New variable.
43405         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
43406         AM_CPPFLAGS define it as a C macro.
43407         (func_emit_tests_Makefile_am): Likewise.
43408         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
43409         read it from there.
43410         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
43411         m4_define, not AC_DEFUN.
43412         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
43413         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
43414         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
43415         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
43416         s|...|...|, to substitute the values of the GNULIB_* module indicator
43417         variables.
43418         * modules/dirent (Makefile.am): Likewise.
43419         * modules/fcntl-h (Makefile.am): Likewise.
43420         * modules/iconv-h (Makefile.am): Likewise.
43421         * modules/langinfo (Makefile.am): Likewise.
43422         * modules/locale (Makefile.am): Likewise.
43423         * modules/math (Makefile.am): Likewise.
43424         * modules/netdb (Makefile.am): Likewise.
43425         * modules/poll-h (Makefile.am): Likewise.
43426         * modules/pty (Makefile.am): Likewise.
43427         * modules/search (Makefile.am): Likewise.
43428         * modules/signal (Makefile.am): Likewise.
43429         * modules/spawn (Makefile.am): Likewise.
43430         * modules/stdio (Makefile.am): Likewise.
43431         * modules/stdlib (Makefile.am): Likewise.
43432         * modules/string (Makefile.am): Likewise.
43433         * modules/sys_ioctl (Makefile.am): Likewise.
43434         * modules/sys_select (Makefile.am): Likewise.
43435         * modules/sys_socket (Makefile.am): Likewise.
43436         * modules/sys_stat (Makefile.am): Likewise.
43437         * modules/sys_times (Makefile.am): Likewise.
43438         * modules/sys_utsname (Makefile.am): Likewise.
43439         * modules/sys_wait (Makefile.am): Likewise.
43440         * modules/termios (Makefile.am): Likewise.
43441         * modules/time (Makefile.am): Likewise.
43442         * modules/unistd (Makefile.am): Likewise.
43443         * modules/wchar (Makefile.am): Likewise.
43445 2011-06-08  Eric Blake  <eblake@redhat.com>
43447         strerror: simplify replacement
43448         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
43449         * modules/strerror (configure.ac): No prereqs needed here...
43450         * modules/strerror-override (configure.ac): ...but this needs it.
43451         (Files): Add file for needed prereq macro.
43453 2011-06-08  Bruno Haible  <bruno@clisp.org>
43455         strerror_r-posix: Tweaks.
43456         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
43457         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
43458         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
43459         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
43460         (gl_FUNC_STRERROR_R): ... to here.
43461         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
43463 2011-06-07  Eric Blake  <eblake@redhat.com>
43465         perror: document fixed bugs
43466         * doc/posix-functions/perror.texi (perror): Document recent
43467         patches.
43469 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
43471         stat-time: get_stat_birthtime failure is better-defined
43472         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
43473         return a timestamp whose tv_sec and tv_nsec values are both -1.
43474         Previously, the spec said only that the tv_nsec value was negative.
43475         This upward-compatible change simplifies GNU tar a bit.
43477 2011-06-07  Eric Blake  <eblake@redhat.com>
43479         strerror_r-posix: work around cygwin 1.7.9
43480         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
43481         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
43482         bug without replacing strerror_r.
43483         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
43484         strerror_r is buggy, but without requiring strerror_r compilation.
43485         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
43487         test-perror: relax test to ignore cygwin bug
43488         * tests/test-perror2.c (main): Relax test on requiring detection
43489         of stream errors, and use unbuffered stream.
43490         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
43491         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
43492         * doc/posix-functions/fputc.texi (fputc): Likewise.
43493         * doc/posix-functions/fputs.texi (fputs): Likewise.
43494         * doc/posix-functions/fputws.texi (fputws): Likewise.
43495         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
43496         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
43497         * doc/posix-functions/getopt.texi (getopt): Likewise.
43498         * doc/posix-functions/perror.texi (perror): Likewise.
43499         * doc/posix-functions/printf.texi (printf): Likewise.
43500         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
43501         * doc/posix-functions/psignal.texi (psignal): Likewise.
43502         * doc/posix-functions/putc.texi (putc): Likewise.
43503         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
43504         Likewise.
43505         * doc/posix-functions/putchar.texi (putchar): Likewise.
43506         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
43507         Likewise.
43508         * doc/posix-functions/puts.texi (puts): Likewise.
43509         * doc/posix-functions/putwc.texi (putwc): Likewise.
43510         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
43511         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
43512         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
43513         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
43514         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
43515         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
43516         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
43517         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
43519 2011-05-22  Bruno Haible  <bruno@clisp.org>
43521         strerror: Move AC_LIBOBJ invocations to module description.
43522         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
43523         gl_PREREQ_STRERROR invocations from here...
43524         * modules/strerror (configure.ac): ... to here.
43526 2011-05-21  Bruno Haible  <bruno@clisp.org>
43528         perror: Use common idiom.
43529         * modules/perror (configure.ac): Reorder statements.
43531 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
43533         tests: fix usage message in 'mktempd_'
43534         * tests/init.sh (mktempd_): In the usage message, use literal
43535         'mktempd_', not '$ME' (which is even undefined), as the name of
43536         the subroutine.
43538 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
43540         tests init: new function 'fatal_', for hard errors
43541         Before this patch, the only way offered by tests/init.sh to
43542         properly signal a hard error was the `framework_failure_'
43543         function.  But the error message issued by that function,
43544         as its name would suggest, refers to a set-up failure in the
43545         testsuite, while hard errors can obviously also be due to
43546         other reasons.  The best way to fix this inconsistency is to
43547         introduce a new function with a more general error message.
43548         * tests/init.sh (fatal_): New function.
43550 2011-06-06  Eric Blake  <eblake@redhat.com>
43552         canonicalize-lgpl: use common idiom
43553         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
43554         over newer POSIX -Rf.
43555         Reported by Bruno Haible.
43557         canonicalize-lgpl: work around AIX realpath bug
43558         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
43559         * doc/posix-functions/realpath.texi (realpath): Document it.
43560         Reported by Bruno Haible.
43562         strerror: work around FreeBSD bug
43563         * lib/strerror.c (strerror): Special case 0.
43564         Reported by Bruno Haible.
43566         strerror-override: avoid bloating errno module
43567         * modules/errno (Files, configure.ac): Move replacement strings...
43568         * modules/strerror-override: ...to new module.
43569         * modules/strerror (Depends-on): Add strerror-override.
43570         * modules/strerror_r-posix (Depends-on): Likewise.
43571         * MODULES.html.sh: Document new module.
43572         Reported by Bruno Haible.
43574 2011-06-06  Bruno Haible  <bruno@clisp.org>
43576         spawn-pipe tests: Rename program.
43577         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
43578         * tests/test-spawn-pipe-child.c: Update comment.
43579         * tests/test-spawn-pipe.sh: Update.
43580         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
43582         spawn-pipe tests: Link the child program only against libc.
43583         * tests/test-spawn-pipe-child.c: New file, extracted from
43584         tests/test-spawn-pipe.c.
43585         (main): Expect only one argument.
43586         (is_open): New function, copied from tests/test-pipe.c.
43587         * tests/test-spawn-pipe.c: Don't include <errno.h>.
43588         (child_main): Remove function.
43589         (test_pipe): Pass only one argument to the child program.
43590         (main): Remove child process code. Expect the child program's name as
43591         first argument.
43592         * tests/test-spawn-pipe.sh: Pass the child program's name as first
43593         argument.
43594         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
43595         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
43596         test-spawn-pipe-child against no libraries.
43598 2011-06-06  Bruno Haible  <bruno@clisp.org>
43600         careadlinkat: Avoid mismatch between ssize_t and int.
43601         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
43602         * lib/careadlinkat.c (careadlinkatcwd): Define always.
43604 2011-06-06  Jim Meyering  <meyering@redhat.com>
43606         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
43607         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
43608         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
43610 2011-06-05  Bruno Haible  <bruno@clisp.org>
43612         ansi-c++-opt: Interoperability with libtool.
43613         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
43614         set the variable to "no", not to ":".
43615         * NEWS: Mention the change.
43617 2011-06-05  Bruno Haible  <bruno@clisp.org>
43619         acl: Fix test failure on AIX 7.
43620         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
43621         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
43623 2011-06-05  Bruno Haible  <bruno@clisp.org>
43625         pipe-filter-ii: Fix test failure on AIX and IRIX.
43626         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
43627         with EAGAIN, retry with a smaller buffer size.
43629 2011-06-05  Bruno Haible  <bruno@clisp.org>
43631         localename: Fix link dependencies.
43632         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
43633         * modules/localename-tests (Makefile.am): Link test-localename with
43634         $(LIBTHREAD).
43636 2011-06-05  Bruno Haible  <bruno@clisp.org>
43638         error: Avoid gcc warning.
43639         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
43641 2011-06-05  Bruno Haible  <bruno@clisp.org>
43643         unsetenv: Avoid gcc warning.
43644         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
43646 2011-06-05  Bruno Haible  <bruno@clisp.org>
43648         setenv: Avoid gcc warning.
43649         * lib/setenv.c (setenv): Provide declaration if system lacks it.
43651 2011-06-05  Bruno Haible  <bruno@clisp.org>
43653         sys_select: Ensure memset is declared also on AIX 7.
43654         * lib/sys_select.in.h: Include <string.h> also on AIX.
43655         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
43656         self-contained also on AIX 7.1.
43658 2011-06-04  Jim Meyering  <meyering@redhat.com>
43660         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
43661         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
43662         function name, "error".
43663         (_gl_translatable_diag_func_re): New configurable variable.
43665 2011-06-04  Bruno Haible  <bruno@clisp.org>
43667         getopt: Avoid gcc warning.
43668         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
43670 2011-06-04  Bruno Haible  <bruno@clisp.org>
43672         strerror_r: Fix comments.
43673         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
43674         commit.
43676 2011-06-04  Bruno Haible  <bruno@clisp.org>
43678         perror: Fix compilation error.
43679         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
43680         Undefine fprintf, not sprintf.
43681         * modules/perror (Depends-on): Remove intprops, verify.
43683 2011-06-04  Bruno Haible  <bruno@clisp.org>
43685         setlocale: Enable replacement on Cygwin 1.5.
43686         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
43687         Cygwin 1.5.x.
43688         * doc/posix-functions/setlocale.texi: Mention that the problem with the
43689         LC_CTYPE category also exists on Cygwin 1.5.x.
43691 2011-06-04  Bruno Haible  <bruno@clisp.org>
43693         strerror-override: Don't disable symbol renamings.
43694         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
43695         * lib/strerror-override.c: Include config.h.
43696         (strerror_override): Don't undefine.
43698 2011-06-03  Bruno Haible  <bruno@clisp.org>
43700         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
43701         * lib/localename.h: Update copyright header.
43702         * lib/localename.c: Likewise.
43703         * lib/relocatable.h: Likewise.
43704         * lib/relocatable.c: Likewise.
43706 2011-06-02  Bruno Haible  <bruno@clisp.org>
43708         doc: Fix a module name.
43709         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
43711 2011-06-02  Bruno Haible  <bruno@clisp.org>
43713         pipe2: Remove dependency on 'nonblocking' module.
43714         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
43715         O_NONBLOCK is defined by gnulib.
43716         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
43717         is zero.
43718         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
43719         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
43720         defined by gnulib.
43721         (get_nonblocking_flag): New function.
43722         (main): Test O_NONBLOCK flag only if it is nonzero.
43723         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
43725 2011-06-03  Jim Meyering  <meyering@redhat.com>
43727         maint: three new prohibit-header-without-use rules
43728         Prohibit use of cloexec.h, posixver.h, same.h without use.
43729         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
43730         (sc_prohibit_posixver_without_use): Likewise.
43731         (sc_prohibit_same_without_use): Likewise.
43733 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
43735         allocator: 'die' routine is now given requested size
43736         * lib/allocator.h (struct allocator.die): New size arg.
43737         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
43738         If the actual problem is an ssize_t limitation, not a size_t or
43739         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
43741 2011-06-01  Eric Blake  <eblake@redhat.com>
43743         strerror: drop strerror_r dependency
43744         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
43745         * lib/strerror-override.c (strerror_override): ...to new file.
43746         * lib/strerror-override.h: Add prototype.
43747         * lib/strerror-impl.h: Delete.
43748         * lib/strerror.c (strerror): New implementation.
43749         * modules/errno (Files): Add new files.
43750         (configure.ac): Compile new file as appropriate.
43751         * modules/strerror (Files): Drop unused file.
43752         (Depends-on): Drop strerror_r-posix.
43753         * MODULES.html.sh: Document strerror_r-posix.
43754         Requested by Sam Steingold.
43756         perror: call strerror_r directly
43757         * modules/perror (Files): Drop strerror-impl.h.
43758         * lib/perror.c (perror): Use our own stack buffer, rather than
43759         calling a wrapper that uses static storage.
43760         * doc/posix-functions/perror.texi (perror): Document a limitation
43761         of our replacement.
43763         strerror_r: fix includes for FreeBSD
43764         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
43765         since we use abort on some platforms.
43766         Reported by Matthias Bolte.
43768 2011-05-31  Bruno Haible  <bruno@clisp.org>
43770         Fix link errors in tests: openat-die uses gettext-h.
43771         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
43772         against $(LIBINTL).
43773         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
43774         against $(LIBINTL).
43775         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
43776         $(LIBINTL).
43777         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
43778         against $(LIBINTL).
43779         * modules/linkat-tests (Makefile.am): Link test-linkat against
43780         $(LIBINTL).
43781         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
43782         $(LIBINTL).
43783         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
43784         against $(LIBINTL).
43785         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
43786         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
43787         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
43788         $(LIBINTL).
43789         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
43790         $(LIBINTL).
43791         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
43792         $(LIBINTL).
43793         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43795 2011-05-31  Bruno Haible  <bruno@clisp.org>
43797         Fix link errors in tests: wait-process uses gettext-h.
43798         * modules/nonblocking-pipe-tests (Makefile.am): Set
43799         test_nonblocking_pipe_main_LDADD.
43800         * modules/nonblocking-socket-tests (Makefile.am): Link
43801         test-nonblocking-socket-main against $(LIBINTL).
43802         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43804 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
43806         assert-h: work around 'verify' incompatibility
43807         * lib/verify.h: Use @...@ directives, not ifdef.
43808         * modules/assert-h (assert.h): Implement the directives.
43809         (assert.h): Substitute the symbol-prefix more consistently.
43811 2011-05-29  Jim Meyering  <meyering@redhat.com>
43813         trim: remove three superfluous assignments
43814         * lib/trim.c (trim2): Remove three superfluous assignments
43815         and correct brace positioning.
43817 2011-05-29  Bruno Haible  <bruno@clisp.org>
43819         wctype-h: Avoid namespace pollution on Solaris 2.6.
43820         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
43821         identifiers.
43822         * doc/posix-headers/wctype.texi: Mention the problem.
43823         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43825 2011-05-28  Jim Meyering  <meyering@redhat.com>
43827         parse-datetime.y: accommodate -Wstrict-overflow
43828         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
43829         placate -Wstrict-overflow.
43831         trim: avoid a warning from -O2 -Wstrict-overflow
43832         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
43834 2011-05-29  Bruno Haible  <bruno@clisp.org>
43836         gnulib-tool: Fix bug in yesterday's commit.
43837         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
43838         twice.
43840 2011-05-29  Bruno Haible  <bruno@clisp.org>
43842         Allow multiple gnulib generated include files to be combined.
43843         * gnulib-tool (func_compute_include_guard_prefix): New function.
43844         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
43845         ${gl_include_guard_prefix} references.
43846         (func_import, func_create_testdir): Invoke
43847         func_compute_include_guard_prefix.
43848         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
43849         * lib/ctype.in.h: Likewise.
43850         * lib/dirent.in.h: Likewise.
43851         * lib/errno.in.h: Likewise.
43852         * lib/fcntl.in.h: Likewise.
43853         * lib/float.in.h: Likewise.
43854         * lib/getopt.in.h: Likewise.
43855         * lib/iconv.in.h: Likewise.
43856         * lib/langinfo.in.h: Likewise.
43857         * lib/locale.in.h: Likewise.
43858         * lib/math.in.h: Likewise.
43859         * lib/netdb.in.h: Likewise.
43860         * lib/netinet_in.in.h: Likewise.
43861         * lib/poll.in.h: Likewise.
43862         * lib/pthread.in.h: Likewise.
43863         * lib/pty.in.h: Likewise.
43864         * lib/sched.in.h: Likewise.
43865         * lib/se-selinux.in.h: Likewise.
43866         * lib/search.in.h: Likewise.
43867         * lib/signal.in.h: Likewise.
43868         * lib/spawn.in.h: Likewise.
43869         * lib/stdarg.in.h: Likewise.
43870         * lib/stddef.in.h: Likewise.
43871         * lib/stdint.in.h: Likewise.
43872         * lib/stdio.in.h: Likewise.
43873         * lib/stdlib.in.h: Likewise.
43874         * lib/string.in.h: Likewise.
43875         * lib/strings.in.h: Likewise.
43876         * lib/sys_file.in.h: Likewise.
43877         * lib/sys_ioctl.in.h: Likewise.
43878         * lib/sys_select.in.h: Likewise.
43879         * lib/sys_socket.in.h: Likewise.
43880         * lib/sys_stat.in.h: Likewise.
43881         * lib/sys_time.in.h: Likewise.
43882         * lib/sys_times.in.h: Likewise.
43883         * lib/sys_uio.in.h: Likewise.
43884         * lib/sys_utsname.in.h: Likewise.
43885         * lib/sys_wait.in.h: Likewise.
43886         * lib/sysexits.in.h: Likewise.
43887         * lib/termios.in.h: Likewise.
43888         * lib/time.in.h: Likewise.
43889         * lib/unistd.in.h: Likewise.
43890         * lib/wchar.in.h: Likewise.
43891         * lib/wctype.in.h: Likewise.
43892         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
43893         * modules/ctype (Makefile.am): Likewise.
43894         * modules/dirent (Makefile.am): Likewise.
43895         * modules/errno (Makefile.am): Likewise.
43896         * modules/fcntl-h (Makefile.am): Likewise.
43897         * modules/float (Makefile.am): Likewise.
43898         * modules/getopt-posix (Makefile.am): Likewise.
43899         * modules/iconv-h (Makefile.am): Likewise.
43900         * modules/langinfo (Makefile.am): Likewise.
43901         * modules/locale (Makefile.am): Likewise.
43902         * modules/math (Makefile.am): Likewise.
43903         * modules/netdb (Makefile.am): Likewise.
43904         * modules/netinet_in (Makefile.am): Likewise.
43905         * modules/poll-h (Makefile.am): Likewise.
43906         * modules/pthread (Makefile.am): Likewise.
43907         * modules/pty (Makefile.am): Likewise.
43908         * modules/sched (Makefile.am): Likewise.
43909         * modules/search (Makefile.am): Likewise.
43910         * modules/selinux-h (Makefile.am): Likewise.
43911         * modules/signal (Makefile.am): Likewise.
43912         * modules/spawn (Makefile.am): Likewise.
43913         * modules/stdarg (Makefile.am): Likewise.
43914         * modules/stddef (Makefile.am): Likewise.
43915         * modules/stdint (Makefile.am): Likewise.
43916         * modules/stdio (Makefile.am): Likewise.
43917         * modules/stdlib (Makefile.am): Likewise.
43918         * modules/string (Makefile.am): Likewise.
43919         * modules/strings (Makefile.am): Likewise.
43920         * modules/sys_file (Makefile.am): Likewise.
43921         * modules/sys_ioctl (Makefile.am): Likewise.
43922         * modules/sys_select (Makefile.am): Likewise.
43923         * modules/sys_socket (Makefile.am): Likewise.
43924         * modules/sys_stat (Makefile.am): Likewise.
43925         * modules/sys_time (Makefile.am): Likewise.
43926         * modules/sys_times (Makefile.am): Likewise.
43927         * modules/sys_uio (Makefile.am): Likewise.
43928         * modules/sys_utsname (Makefile.am): Likewise.
43929         * modules/sys_wait (Makefile.am): Likewise.
43930         * modules/sysexits (Makefile.am): Likewise.
43931         * modules/termios (Makefile.am): Likewise.
43932         * modules/time (Makefile.am): Likewise.
43933         * modules/unistd (Makefile.am): Likewise.
43934         * modules/wchar (Makefile.am): Likewise.
43935         * modules/wctype-h (Makefile.am): Likewise.
43936         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
43938 2011-05-29  Bruno Haible  <bruno@clisp.org>
43940         assert-h: Allow multiple gnulib generated replacements to coexist.
43941         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
43943 2011-05-29  Bruno Haible  <bruno@clisp.org>
43945         argp: Allow coexistence with strerror_r-posix module.
43946         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
43947         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
43948         by gnulib's <string.h> replacement), assume it has the POSIX signature,
43949         not the glibc signature.
43951 2011-05-28  Bruno Haible  <bruno@clisp.org>
43953         gnulib-tool: Alternative structure of testdirs, similar to --import.
43954         * gnulib-tool: New option --single-configure.
43955         (func_usage): Document it.
43956         (single_configure): New variable.
43957         (func_modules_transitive_closure_separately,
43958         func_modules_transitive_closure_separately,
43959         func_determine_use_libtests, func_modules_add_dummy_separately,
43960         func_modules_to_filelist_separately): New functions, extracted from
43961         func_import.
43962         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
43963         (func_import): Use the new functions.
43964         (func_create_testdir): Set final_modules. Handle $single_configure =
43965         true case.
43967 2011-05-28  Bruno Haible  <bruno@clisp.org>
43969         getloadavg: Remove an unreliable safety check.
43970         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
43971         getloadavg.c is in place.
43972         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
43973         Reported by Sam Steingold <sds@gnu.org>.
43975 2011-05-28  Bruno Haible  <bruno@clisp.org>
43977         doc: Cleanup yet another file produced by texinfo.tex.
43978         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
43980 2011-05-28  Bruno Haible  <bruno@clisp.org>
43982         Finish the conditional dependencies mechanism.
43983         * gnulib-tool: New option --no-conditional-dependencies.
43984         (func_usage): Document it. Don't mark --conditional-dependencies as
43985         experimental.
43986         (cond_dependencies): The possible values can now be true, false, empty.
43987         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
43988         (func_import): Store setting in gnulib-cache.m4 and read it from there.
43989         * doc/gnulib-tool.texi (Conditional dependencies): New section.
43991 2011-05-28  Bruno Haible  <bruno@clisp.org>
43993         doc: Use a recent texinfo.tex.
43994         * doc/Makefile (tex_opts): New variable.
43995         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
43997 2011-05-28  Jim Meyering  <meyering@redhat.com>
43999         intprops.h: adjust comment to match code change
44000         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
44001         only once, it *may* have side effects.  Also fix an unrelated typo.
44002         (_GL_INT_SIGNED): Likewise.
44004 2011-05-26  Simon Josefsson  <simon@josefsson.org>
44006         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
44008 2011-05-26  Bruno Haible  <bruno@clisp.org>
44010         mbsrchr: Avoid collision with system function on Interix.
44011         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
44012         Reported by Markus Duft <mduft@gentoo.org>.
44014 2011-05-15  James Youngman  <jay@gnu.org>
44016         getopt: for ambiguous options, enumerate the possibilities.
44017         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
44018         the ambiguous options when an ambiguous prefix is given. This was
44019         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
44020         glibc change was
44021         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
44023 2011-05-25  Eric Blake  <eblake@redhat.com>
44025         getcwd: work around mingw bug
44026         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
44027         * doc/posix-functions/getcwd.texi (getcwd): Document it.
44028         Reported by Matthias Bolte.
44030 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
44032         test-intprops: disable -Wtype-limits diagnostics
44033         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
44034         diagnostics.  Otherwise, the integer overflow macros generate many
44035         diagnostics.  Reported by Jim Meyering in
44036         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
44038         intprops: shorten, to pacify gcc -Woverlength-strings
44039         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
44040         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
44041         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
44042         likely to run afoul of C compiler limits for string constant lengths.
44043         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
44045 2011-05-24  Eric Blake  <eblake@redhat.com>
44047         docs: document recently fixed glibc printf bug
44048         * doc/posix-functions/fprintf.texi (fprintf): Document it.
44049         * doc/posix-functions/printf.texi (printf): Likewise.
44050         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
44051         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
44053         closein-tests: convert to init.sh
44054         * modules/closein-tests (Files): Add init.sh
44055         * tests/test-closein.sh Use it.
44057         yesno-tests: convert to init.sh
44058         * modules/yesno-tests (Files): Add init.sh.
44059         * tests/test-yesno.sh: Use it.
44061         atexit-tests: ensure reliable exit status
44062         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
44063         Reported by Bruno Haible.
44065 2011-05-24  Bruno Haible  <bruno@clisp.org>
44067         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
44068         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
44069         gl_PREREQ_STRERROR_R invocations from here...
44070         * modules/strerror_r-posix (configure.ac): ... to here.
44072 2011-05-24  Eric Blake  <eblake@redhat.com>
44074         strerror_r: fix missing header
44075         * lib/strerror_r.c: Avoid compiler warning about snprintf.
44077         strerror_r: fix AIX test failures
44078         * lib/strerror_r.c (strerror_r): Convert silent truncation to
44079         ERANGE failure.
44081         strerror_r: fix Solaris test failures
44082         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
44083         failures.
44084         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
44086         strerror_r: enforce POSIX recommendations
44087         * lib/strerror_r.c (safe_copy): New helper method.
44088         (strerror_r): Guarantee a non-empty string.
44089         * tests/test-strerror_r.c (main): Enhance tests to incorporate
44090         recent POSIX rulings and to match our strerror guarantees.
44091         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
44093 2011-05-24  Jim Meyering  <meyering@redhat.com>
44095         test-perror2.c: avoid warning about unused variable
44096         * tests/test-perror2.c (main): Remove declaration of unused "fp".
44098 2011-05-24  Eric Blake  <eblake@redhat.com>
44100         perror: avoid spurious test failure on HP-UX
44101         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
44103         tests: fix logic bug in init.sh
44104         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
44105         shell.
44107 2011-05-24  Jim Meyering  <meyering@redhat.com>
44109         utimensat: do not reference an out-of-scope buffer
44110         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
44111         declared in an inner scope, yet "times" would be dereferenced outside
44112         the scope in which "ts" was valid.
44113         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
44114         of ts[2] "out/up", so that the use of aliased "times" (via
44115         "times = ts;") does not end up referencing an out-of-scope "ts"
44117         opendir-safer.c: don't clobber errno; don't close negative FD
44118         * lib/opendir-safer.c (opendir_safer):
44119         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
44120         file descriptor, and more importantly, don't clobber the
44121         offending errno value with EINVAL.  Before, upon failure
44122         of dup_safer, we would pass the negative file descriptor to
44123         fdopendir, which would clobber errno.
44125 2011-05-23  Bruno Haible  <bruno@clisp.org>
44127         idcache: Fix module description.
44128         * modules/idcache (Include): Set to "idcache.h".
44130 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
44132         gnulib-tool: fix portability problem with MacOS sed
44133         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
44134         before the "}".  Problem reported by Leo in
44135         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
44136         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
44137         sed_extract_condition1, sed_extract_condition2.
44139 2011-05-23  Bruno Haible  <bruno@clisp.org>
44141         hash: Simplify autoconf macro.
44142         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
44144 2011-05-23  Bruno Haible  <bruno@clisp.org>
44146         getugroups: Fix module description.
44147         * modules/getugroups (Include): Set to "getugroups.h".
44149 2011-05-23  Bruno Haible  <bruno@clisp.org>
44151         linkat: Simplify autoconf macro.
44152         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
44154 2011-05-23  Bruno Haible  <bruno@clisp.org>
44155             Eric Blake  <eblake@redhat.com>
44157         linkat, renameat: Update dependencies.
44158         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
44159         * modules/linkat (Depends-on): Likewise. Remove also readlink,
44160         symlinkat.
44162 2011-05-23  Jim Meyering  <meyering@redhat.com>
44164         maint.mk: more tight_scope improvements
44165         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
44166         (_gl_TS_headers): Define only in if-0'd block.
44167         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
44168         sometimes we must *not* use it.  Adjust uses accordingly.
44169         (sc_tight_scope): Use much simpler grep-based test to determine
44170         whether we skip this rule.
44172         maint.mk: generalize/improve the tight-scope rule
44173         * top/maint.mk: Emit a warning when the test is skipped.
44174         (_gl_TS_dir): Add $(srcdir)/ prefix.
44175         (_gl_TS_function_match): Simplify, rather than trying
44176         to enumerate common types.  Otherwise, it would fail to match an
44177         "extern unsigned char const *" declaration in idutils.
44178         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
44179         a way to support use of that type of macro.
44180         (_gl_TS_var_match): Simplify regexp.
44181         (_gl_TS_obj_files): New configurable variable.
44182         (_gl_TS_headers): Likewise.
44184 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
44186         verify: fix bug when gnulib <assert.h> is also included
44187         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
44188         is defined, not if _GL_STATIC_ASSERT_H is not defined.
44189         Perhaps there's a better way, but this fixes the immediate problem.
44190         Problem reported by Bruno Haible in
44191         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
44193 2011-05-22  Bruno Haible  <bruno@clisp.org>
44195         xgetcwd: Simplify autoconf macro.
44196         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
44198 2011-05-22  Bruno Haible  <bruno@clisp.org>
44200         New module 'mktime-internal'.
44201         * modules/mktime-internal: New file.
44202         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
44203         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
44204         mktime_internal as a C macro if libc has __mktime_internal.
44205         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
44206         conditions.
44207         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
44209 2011-05-22  Bruno Haible  <bruno@clisp.org>
44211         timegm: Correct mktime replacement statements.
44212         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
44213         defining mktime as a C macro. This completes a 2009-07-28 commit.
44215 2011-05-22  Bruno Haible  <bruno@clisp.org>
44217         timegm: Simplify autoconf macro.
44218         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
44220 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
44222         clock-time: change to LGPLv2+.
44223         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
44224         BSD-like but we have no mark for that; this is good enough for now.
44226 2011-05-21  Bruno Haible  <bruno@clisp.org>
44228         strerror_r: Fix comments.
44229         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
44231 2011-05-21  Bruno Haible  <bruno@clisp.org>
44233         relocatable-prog-wrapper: Fix possible link error.
44234         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
44235         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
44236         (gl_FUNC_SETENV): ... to here.
44237         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
44238         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
44240 2011-05-21  Bruno Haible  <bruno@clisp.org>
44242         relocatable-prog-wrapper: Assume strerror() exists.
44243         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
44244         m4/strerror.m4.
44245         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
44246         * lib/relocwrapper.c: Remove mention of strerror module.
44247         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
44248         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
44249         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
44250         C macro.
44252 2011-05-21  Bruno Haible  <bruno@clisp.org>
44254         select: Simplify replacement idiom.
44255         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
44256         Win32 platforms.
44257         * lib/sys_select.in.h (select): Simplify accordingly.
44258         * modules/select (Depends-on): Likewise.
44260 2011-05-21  Bruno Haible  <bruno@clisp.org>
44262         mkdir-p: Simplify autoconf macro.
44263         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
44264         gl_FUNC_LCHOWN.
44266 2011-05-21  Eric Blake  <eblake@redhat.com>
44268         strerror_r: avoid clobbering strerror on cygwin
44269         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
44270         fall back instead to sys_errlist.
44271         * modules/strerror (configure.ac): Add witness.
44272         * tests/test-strerror_r.c (main): Enhance test.
44273         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
44274         * tests/test-perror2.c (main): Free memory before exit.
44276 2011-05-21  Bruno Haible  <bruno@clisp.org>
44278         mkdtemp: Use gnulib naming conventions.
44279         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
44280         * modules/mkdtemp (configure.ac): Update.
44282 2011-05-20  Eric Blake  <eblake@redhat.com>
44284         strerror_r: avoid corrupting errno on Solaris
44285         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
44286         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
44288         strerror_r: avoid compiler warning
44289         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
44291         strerror_r: simplify AIX code
44292         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
44294         test-perror: avoid spurious failure on FreeBSD
44295         * modules/perror-tests (Depends-on): Add strerror, now that
44296         strerror_r no longer pulls it in.
44298 2011-05-20  Bruno Haible  <bruno@clisp.org>
44300         strerror_r-posix: Remove unused dependencies.
44301         * modules/strerror_r-posix (Depends-on): Remove strerror.
44302         Reported by Eric Blake.
44304 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
44306         intprops: remove assumption about A|B representation
44307         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
44308         is a valid integer if both A and B are.  Although this is true for
44309         all known practical hosts, the C standard doesn't guarantee it,
44310         and the code need not assume it.  Also, this change may work around
44311         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
44312         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
44314 2011-05-20  Eric Blake  <eblake@redhat.com>
44316         perror: work around FreeBSD bug
44317         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
44318         is broken.  Move AC_LIBOBJ...
44319         * modules/perror (configure.ac): Here.
44320         * doc/posix-functions/perror.texi (perror): Document this.
44321         * tests/test-perror2.c (main): Enhance test.
44323         test-perror: check for strerror interactions
44324         * tests/macros.h (STREQ): Add macro.
44325         * modules/perror-tests (Files): Add second test.
44326         * tests/test-perror2.c (main): New file.
44327         * doc/posix-functions/perror.texi (perror): Document glibc bug.
44329         test-perror: rewrite to use init script
44330         * modules/perror-tests (Files): Add init.sh.
44331         * tests/test-perror.sh: Use temporary directory.
44333 2011-05-20  Jim Meyering  <meyering@redhat.com>
44335         maint: replace misused "a" with "an"
44336         * doc/intprops.texi: "a integer"
44337         * doc/regex.texi: "a explanation"
44338         * lib/alignof.h: "a object"
44339         * lib/argmatch.h: "a explanation"
44340         * lib/argp-help.c: "a option" and "a OPTION_DOC"
44341         * lib/stdint.in.h: "a integer"
44342         * lib/userspec.c: "a owner"
44343         * doc/gnulib.texi: Fix "a idea", and reword.
44345 2011-05-19  Jim Meyering  <meyering@redhat.com>
44347         maint: correct misuse of "a" and "an"
44348         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
44349         * lib/argp-help.c: "an docum...": s/an/a/
44350         * lib/argp-parse.c: "An vector": s/An/A/
44351         * lib/execute.c: "an native": s/an/a/
44352         * lib/spawn-pipe.c: Likewise.
44353         * lib/gc.h: "an Gc_rc": s/an/a/
44354         * lib/unigbrk.in.h: "an grapheme": s/an/a/
44355         * lib/fts.c: "an stat.st_dev": s/an/a/
44357 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
44359         intprops-tests: work around HP-UX 11.23 cc bug with constants
44360         * tests/test-intprops.c (VERIFY): New macro.
44361         (main): Use it, instead of verify, to work around the compiler bug; see
44362         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
44364         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
44365         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
44366         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
44367         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
44368         (_GL_REMAINDER_OVERFLOW): Use it.
44370         intprops-tests: revert unsigned part of previous change
44371         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
44372         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
44373         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
44374         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
44376 2011-05-19  Bruno Haible  <bruno@clisp.org>
44378         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
44379         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
44380         strerror_r() returned without filling the buffer.
44381         Reported by Eric Blake.
44383 2011-05-19  Eric Blake  <eblake@redhat.com>
44385         strerror_r: guarantee unchanged errno
44386         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
44387         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
44388         failure.
44389         * tests/test-strerror_r.c (main): Enhance test.
44391 2011-05-19  Bruno Haible  <bruno@clisp.org>
44393         strerror_r: Reorder #if blocks.
44394         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
44395         for consistency with the previous commit.
44397 2011-05-19  Bruno Haible  <bruno@clisp.org>
44399         perror: Avoid clobbering the strerror buffer when possible.
44400         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
44401         * lib/strerror.c: Include it.
44402         * modules/strerror (Files): Add lib/strerror-impl.h.
44403         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
44404         (my_strerror): New function, defined through lib/strerror-impl.h.
44405         (perror): Use it instead of strerror.
44406         * modules/perror (Files): Add lib/strerror-impl.h.
44407         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
44409 2011-05-19  Eric Blake  <eblake@redhat.com>
44411         strerror_r: fix on newer cygwin
44412         * lib/strerror_r.c (strerror_r): Cygwin now has
44413         __xpg_strerror_r, use it.
44415 2011-05-19  Bruno Haible  <bruno@clisp.org>
44417         strerror_r: Avoid clobbering the strerror buffer when possible.
44418         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
44419         (sys_nerr, sys_errlist): New declarations.
44420         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
44421         HP-UX, native Win32, IRIX, and 32-bit Solaris.
44422         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
44424 2011-05-19  Bruno Haible  <bruno@clisp.org>
44426         strerror_r: Fix test failure on mingw.
44427         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
44428         EXTEND_STRERROR_R.
44429         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
44430         macros from errno.in.h instead.
44432 2011-05-19  Eric Blake  <eblake@redhat.com>
44434         strerror: relax test for Solaris
44435         * tests/test-strerror.c (main): Permit Solaris behavior.
44436         * tests/test-strerror_r.c (main): Likewise.
44438         strerror: enforce POSIX ruling on strerror(0)
44439         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
44440         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
44441         * lib/strerror_r.c (rpl_strerror_r): Work around it.
44442         * doc/posix-functions/strerror.texi (strerror): Document it.
44443         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
44444         * tests/test-strerror.c (main): Strengthen test.
44445         * tests/test-strerror_r.c (main): Likewise.
44447 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
44449         intprop-tests: port to older and more-pedantic compilers
44450         * modules/intprops-tests (Files): Add tests/macros.h.
44451         * tests/test-intprops.c: Include macros.h.
44452         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
44453         it's no longer documented to expand to an integer constant expression.
44454         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
44455         argument is floating point, as it's no longer documented to expand
44456         to an integer constant expression in that case.
44457         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
44458         compiler bugs reported by Bruno Haible.  See
44459         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
44460         (U0, U1): New constants, to work around the same bugs.  Also,
44461         in tests, use e.g., "(unsigned int) 39" rather than "39u".
44463         intprops: work around C compiler bugs
44464         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
44465         bug in Sun C 5.11 2010/08/13 and other compilers; see
44466         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
44468         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
44469         * doc/intprops.texi (Integer Type Determination): Fix
44470         documentation for TYPE_IS_INTEGER: it returns an constant
44471         expression, not an integer constant expression.  Fix doc for
44472         TYPE_SIGNED: it returns an integer constant expression only if its
44473         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
44474         hardly worth documented that way....)
44476 2011-05-18  Bruno Haible  <bruno@clisp.org>
44478         strerror_r: Avoid clobbering the strerror buffer when possible.
44479         * lib/strerror_r.c (strerror_r): Merge the three implementations.
44480         Handle gnulib defined errno values here. When strerror() returns NULL
44481         or an empty string, return EINVAL.
44482         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
44483         gnulib defined errno values here.
44484         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
44486 2011-05-18  Eric Blake  <eblake@redhat.com>
44488         fnmatch: avoid compiler warning
44489         * lib/fnmatch_loop.c (FCT): Use correct type.
44490         Reported by Matthias Bolte.
44492 2011-05-13  Jim Meyering  <meyering@redhat.com>
44494         maint.mk: three new prohibit_<HDR>_without_use rules
44495         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
44496         (sc_prohibit_stdio-safer_without_use): Likewise.
44497         (sc_prohibit_xfreopen_without_use): Likewise.
44499 2011-05-17  Jim Meyering  <meyering@redhat.com>
44501         announce-gen: fail if the NEWS delta is empty
44502         If there's nothing noteworthy in NEWS, then either you forgot
44503         or you shouldn't be releasing.
44504         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
44506 2011-05-17  Pádraig Brady  <P@draigBrady.com>
44508         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
44509         reserved symbols starting with double underscore from the check.
44511 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
44513         intprops: add doc
44514         * doc/intprops.texi: New file, documenting intprops.
44515         * doc/gnulib.texi (Particular Modules): Include it.
44517         verify: add doc to gnulib manual and fix example
44518         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
44519         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
44520         (Compile-time Assertions): Fix example so it can't overflow.
44522 2011-05-17  Jim Meyering  <meyering@redhat.com>
44524         warnings.m4: don't usurp save_CPPFLAGS variable name
44525         * m4/warnings.m4: Prefix local temporary variable name with gl_.
44527         doc: fix typo
44528         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
44530 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
44531             Bruno Haible  <bruno@clisp.org>
44533         doc: Tweak recent change.
44534         * README (Portability guidelines): Tweak new text.
44535         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
44536         Interix 6.1.
44538 2011-05-16  Eric Blake  <eblake@redhat.com>
44540         inttypes: avoid autoconf warning
44541         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
44542         * m4/stdint.m4 (gl_STDINT_H): Likewise.
44544 2011-05-16  Sam Steingold  <sds@gnu.org>
44545         and Eric Blake  <eblake@redhat.com>
44547         vc-list-files: accept multiple directory operands
44548         * build-aux/vc-list-files: Iterate over all remaining operands.
44550 2011-05-16  Bruno Haible  <bruno@clisp.org>
44552         Fix confusion regarding deprecated modules.
44553         * modules/calloc (Status, Notice): Mark module as deprecated, not
44554         obsolete.
44555         * modules/fnmatch-posix (Status, Notice): Likewise.
44556         * modules/getdate (Status, Notice): Likewise.
44557         * modules/getopt (Status, Notice): Likewise.
44558         * modules/malloc (Status, Notice): Likewise.
44559         * modules/pipe (Status, Notice): Likewise.
44560         * modules/realloc (Status, Notice): Likewise.
44561         * modules/rename-dest-slash (Status, Notice): Likewise.
44562         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
44563         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
44564         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
44565         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
44566         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
44568 2011-05-16  Bruno Haible  <bruno@clisp.org>
44570         doc: List the target platforms.
44571         * doc/gnulib-intro.texi (Target Platforms): New section.
44572         * doc/gnulib.texi (Introduction): Update menu.
44573         * README (Portability guidelines): Refer to the new section. Update
44574         statement about oldest supported environment. Remove rationale why
44575         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
44576         unportable C89 function.
44577         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
44578         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
44580 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
44582         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
44584 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
44586         intprops-tests: new module
44587         * modules/intprops-tests, tests/test-intprops.c: New files.
44589         intprops: add safe, portable integer overflow checking
44590         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
44591         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
44592         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
44593         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
44594         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
44595         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
44596         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
44597         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
44598         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
44599         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
44600         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
44602 2011-05-12  James Youngman  <jay@gnu.org>
44604         Add a test for glibc's Bugzilla bug #12378.
44605         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
44606         doesn't allow the literal matching of a lone "[" (which is
44607         required by POSIX).
44608         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
44610 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
44612         Sync glibc change fixing Bugzilla bug #12378.
44613         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
44614         beginning and fall back to matching as normal character if the
44615         string ends before the matching ']' is found.  This is what POSIX
44616         requires.
44618 2011-05-13  Eric Blake  <eblake@redhat.com>
44620         getcwd-lgpl: relax test for FreeBSD
44621         * doc/posix-functions/getcwd.texi (getcwd): Document portability
44622         issue.
44623         * tests/test-getcwd-lgpl.c (main): Relax test.
44624         Reported by Matthias Bolte.
44626 2011-05-11  Eric Blake  <eblake@redhat.com>
44628         test-fflush: silence compiler warning
44629         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
44631 2011-05-11  Bruno Haible  <bruno@clisp.org>
44633         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
44634         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
44635         * modules/canonicalize (Depends-on): Add 'nocrash'.
44636         * modules/canonicalize-lgpl (Depends-on): Likewise.
44637         * doc/posix-functions/realpath.texi: Update platforms list.
44638         Reported by Ryan Schmidt <ryandesign@macports.org>.
44640 2011-05-11  Bruno Haible  <bruno@clisp.org>
44642         group-member: Declare function in <unistd.h>.
44643         * lib/unistd.in.h (group_member): New declaration.
44644         * lib/group-member.h: Remove file.
44645         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
44646         * tests/test-unistd-c++.cc: Check signature of group_member.
44647         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
44648         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
44649         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
44650         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
44651         HAVE_GROUP_MEMBER.
44652         * modules/group-member (Files): Remove lib/group-member.h.
44653         (Depends-on): Add unistd. Specify conditions.
44654         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44655         (Include): Change to <unistd.h>.
44656         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
44657         HAVE_GROUP_MEMBER.
44658         * NEWS: Mention the change.
44659         * lib/euidaccess.c: Don't include group-member.h.
44661 2011-05-11  Bruno Haible  <bruno@clisp.org>
44663         group-member: Document module.
44664         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
44665         module.
44667 2011-05-11  Bruno Haible  <bruno@clisp.org>
44669         fclose: Fix mistake earlier today.
44670         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
44672 2011-05-11  Eric Blake  <eblake@redhat.com>
44674         fclose: preserve fflush errors
44675         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
44676         Reported by Jim Meyering.
44678         bootstrap: support a prereq of 'rpcgen -' on RHEL5
44679         * build-aux/bootstrap (check_versions): When no specific version
44680         is required, merely check that the app produces an exit status
44681         that indicates its existence.
44683         maint.mk: drop redundant check
44684         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
44685         the same but better.
44687 2011-05-11  Bruno Haible  <bruno@clisp.org>
44689         fclose: Fix possible link error.
44690         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
44691         unregister_shadow_fd. Improve comments.
44692         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
44693         Eric Blake.
44695 2011-05-11  Jim Meyering  <meyering@redhat.com>
44697         maint.mk: improve "can not" detection and generalize rule name
44698         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
44699         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
44700         Use the same technique as in sc_prohibit_doubled_word, so that
44701         we recognize "can not" also when the words are separated by a newline.
44702         Suggested by Eric Blake.
44703         (perl_filename_lineno_text_): Define.  Factored out of...
44704         (prohibit_doubled_word_): ...here.  Use the new definition.
44705         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
44706         (prohibit_undesirable_word_seq_RE_): New overridable variable.
44707         (ignore_undesirable_word_sequence_RE_): New overridable variable.
44709 2011-05-10  Eric Blake  <eblake@redhat.com>
44711         fclose: avoid double close race when possible
44712         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
44713         all but WINDOWS_SOCKETS.
44715 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
44717         openat: correct new comment
44718         * lib/openat-proc.c (openat_proc_name): Correct the comment.
44720 2011-05-10  Jim Meyering  <meyering@redhat.com>
44722         openat: add comments
44723         * lib/openat-proc.c (openat_proc_name): Add comments,
44724         mostly from Eric Blake.
44726 2011-05-09  Eric Blake  <eblake@redhat.com>
44728         openat: reduce syscalls in first probe of /proc
44729         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
44730         be a directory.  Simplify the probe for .. bugs.
44731         * modules/openat (Depends-on): Drop same-inode.
44732         Reported by Bastien ROUCARIES.
44734 2011-05-09  Jim Meyering  <meyering@redhat.com>
44736         maint.mk: change semantics/name of tight_scope variables
44737         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
44738         Rename variables to align with semantics that make them more useful.
44740         maint.mk: tweak new rule's name not to impinge
44741         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
44742         (sc_tight_scope): Use new rule name rather than $@-0.
44744         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
44745         * top/maint.mk (sc_tight_scope): New rule.
44746         (sc_tight_scope-0): New rule, ifdef'd out.
44747         (_gl_TS_dir): Default.
44748         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
44749         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
44751 2011-05-09  Simon Josefsson  <simon@josefsson.org>
44753         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
44754         Haible <bruno@clisp.org>.
44756 2011-05-08  Bruno Haible  <bruno@clisp.org>
44758         Comments.
44759         * m4/isnanf.m4: Add comment.
44760         * m4/isnanl.m4: Likewise.
44762 2011-05-08  Bruno Haible  <bruno@clisp.org>
44764         glob: Remove obsolete macro.
44765         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
44767 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
44769         intprops: Sun C 5.11 supports __typeof__
44770         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
44771         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
44772         which is new.
44773         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
44775         intprops: switch to usual gnulib indenting and naming
44776         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
44777         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
44779         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
44781 2011-05-08  Jim Meyering  <meyering@redhat.com>
44783         maint.mk: suppress "Entering/Leaving directory" diag in announcement
44784         * top/maint.mk (release-prep): Use make's --no-print-directory
44785         option when generating the announcement.  This eliminates the
44786         pesky "make[2]: Entering/Leaving directory" diagnostics in the
44787         generated announcement template.
44789 2011-05-08  Bruno Haible  <bruno@clisp.org>
44791         tzset: Fix gettimeofday wrapper on Solaris 2.6.
44792         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
44793         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
44795 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
44797         ignore-value, verify: Omit include files from lib_SOURCES.
44798         * modules/ignore-value, modules/verify (Makefile.am):
44799         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
44800         that leads Automake to duplicate use of am__objects_... variables
44801         in Makefile.in.  See
44802         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
44804 2011-05-07  Bruno Haible  <bruno@clisp.org>
44806         fclose: Simplify autoconf macro.
44807         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
44808         defined.
44810 2011-05-07  Bruno Haible  <bruno@clisp.org>
44812         canonicalize-lgpl: Fix autoconf macro ordering bug.
44813         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
44814         gl_STDLIB_H_DEFAULTS.
44816 2011-05-06  Eric Blake  <eblake@redhat.com>
44818         maintainer-makefile: make sc_po_check easier to tune
44819         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
44820         to probe for strings, such as an alternate location for gnulib.
44822         fclose: guarantee behavior on seekable stdin
44823         * modules/fclose (Depends-on): Add fflush.
44824         * doc/posix-functions/fclose.texi (fclose): Document this.
44825         * tests/test-fclose.c (main): Make test for this unconditional.
44827 2011-05-06  Bruno Haible  <bruno@clisp.org>
44829         fflush, fpurge: Relicense under LGPLv2+.
44830         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
44831         * modules/fpurge (License): Likewise.
44832         With permission from Eric Blake and Jim Meyering.
44833         Suggested by Eric Blake.
44835 2011-05-06  Karl Berry  <karl@gnu.org>
44837         * MODULES.html.sh (func_all_modules): remove exit.
44839 2011-05-06  Jim Meyering  <meyering@redhat.com>
44841         maint.mk: use info-gnu@ as the default only for a stable release
44842         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
44843         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
44844         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
44845         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
44847 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
44849         assert-h: new module, which supports C1X-style static_assert
44850         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
44851         * lib/verify.h: Revamp so that this can be copied into assert.h,
44852         while retaining the ability to use it standalone as before.
44853         Rename private identifiers so as not to encroach on the
44854         standard C namespace, since this is now used by assert.h.
44855         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
44856         the old verify_true.
44857         (_GL_VERIFY_TRUE): New macro, with much of the contents of
44858         the old verify_true.  Use _GL_VERIFY_TYPE.
44859         (_GL_VERIFY): New macro, with much of the contents of the old verify.
44860         (static_assert): New macro, if _GL_STATIC_ASSERT_H
44861         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
44862         defined when this file is copied into the replacement assert.h.
44863         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
44864         and _Static_assert is not built in.
44865         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
44866         defined, and use the new macros mentioned above.
44867         * doc/posix-headers/assert.texi: Document this.
44869 2011-05-05  Bruno Haible  <bruno@clisp.org>
44871         fclose, fflush: Respect rules for use of AC_LIBOBJ.
44872         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
44873         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
44874         gl_REPLACE_FCLOSE here.
44875         * modules/fflush (Depends-on): Remove fclose.
44876         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
44877         combination with module 'fclose'.
44879 2011-05-05  Bruno Haible  <bruno@clisp.org>
44881         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
44882         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
44883         gl_FUNC_FFLUSH.
44884         (gl_FUNC_FFLUSH): Use it.
44885         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
44886         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
44887         gl_REPLACE_FSEEKO here.
44889 2011-05-05  Bruno Haible  <bruno@clisp.org>
44891         tzset: Relicense under LGPL.
44892         * modules/tzset (License): Change to LGPL.
44893         No agreement needed; it's a no-op.
44895         strtoimax, strtoumax: Relicense under LGPL.
44896         * modules/strtoimax (License): Change to LGPL.
44897         * modules/strtoumax (License): Likewise.
44898         With permission from Jim Meyering, Paul Eggert:
44899         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
44900         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
44902         getgroups: Relicense under LGPL.
44903         * modules/getgroups (License): Change to LGPL.
44904         With permission from Jim Meyering, Paul Eggert, Eric Blake:
44905         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
44906         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
44907         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
44909         nanosleep: Relicense under LGPL.
44910         * modules/nanosleep (License): Change to LGPL.
44911         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
44912         Haible:
44913         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
44914         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
44915         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
44916         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
44918         futimens: Relicense under LGPL.
44919         * modules/futimens (License): Change to LGPL.
44920         With permission from Eric Blake:
44921         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
44923         fflush: Relicense under LGPL.
44924         * modules/fflush (License): Change to LGPL.
44925         With permission from Eric Blake, Bruno Haible, Jim Meyering:
44926         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
44927         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
44928         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
44930         tmpfile: Relicense under LGPL.
44931         * modules/tmpfile (License): Change to LGPL.
44932         With permission from Ben Pfaff:
44933         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
44935         isfinite: Relicense under LGPL.
44936         * modules/isfinite (License): Change to LGPL.
44937         With permission from Ben Pfaff, Bruno Haible:
44938         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
44939         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
44941         acosl..tanl: Relicense under LGPL.
44942         * modules/acosl (License): Change to LGPL.
44943         * modules/asinl (License): Likewise.
44944         * modules/atanl (License): Likewise.
44945         * modules/cosl (License): Likewise.
44946         * modules/expl (License): Likewise.
44947         * modules/logl (License): Likewise.
44948         * modules/sinl (License): Likewise.
44949         * modules/sqrtl (License): Likewise.
44950         * modules/tanl (License): Likewise.
44951         Source code originally from glibc and Paolo Bonzini. Agreements:
44952         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
44953         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
44955 2011-05-05  Bruno Haible  <bruno@clisp.org>
44957         signal: Define sighandler_t.
44958         * lib/signal.in.h (sighandler_t): New type.
44959         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
44960         whether sighandler_t is defined.
44961         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
44962         * modules/signal (Depends-on): Add extensions.
44963         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
44964         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
44965         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
44967 2011-05-05  Eric Blake  <eblake@redhat.com>
44969         maint: remove useless REPLACE_*_H macros
44970         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
44971         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
44972         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
44973         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
44974         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
44975         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
44976         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
44977         * m4/btowc.m4: Update callers.
44978         * m4/dirfd.m4: Likewise.
44979         * m4/duplocale.m4: Likewise.
44980         * m4/fchdir.m4: Likewise.
44981         * m4/fdopendir.m4: Likewise.
44982         * m4/inet_ntop.m4: Likewise.
44983         * m4/inet_pton.m4: Likewise.
44984         * m4/ioctl.m4: Likewise.
44985         * m4/mbrlen.m4: Likewise.
44986         * m4/mbrtowc.m4: Likewise.
44987         * m4/mbsinit.m4: Likewise.
44988         * m4/mbsnrtowcs.m4: Likewise.
44989         * m4/mbsrtowcs.m4: Likewise.
44990         * m4/poll.m4: Likewise.
44991         * m4/setlocale.m4: Likewise.
44992         * m4/wcrtomb.m4: Likewise.
44993         * m4/wcsnrtombs.m4: Likewise.
44994         * m4/wcsrtombs.m4: Likewise.
44995         * m4/wctob.m4: Likewise.
44996         * m4/wcwidth.m4: Likewise.
44997         * modules/posix_spawn: Likewise.
44998         * modules/posix_spawn_file_actions_addclose: Likewise.
44999         * modules/posix_spawn_file_actions_adddup2: Likewise.
45000         * modules/posix_spawn_file_actions_addopen: Likewise.
45001         * modules/posix_spawn_file_actions_destroy: Likewise.
45002         * modules/posix_spawn_file_actions_init: Likewise.
45003         * modules/posix_spawnattr_destroy: Likewise.
45004         * modules/posix_spawnattr_getflags: Likewise.
45005         * modules/posix_spawnattr_getpgroup: Likewise.
45006         * modules/posix_spawnattr_getschedparam: Likewise.
45007         * modules/posix_spawnattr_getschedpolicy: Likewise.
45008         * modules/posix_spawnattr_getsigdefault: Likewise.
45009         * modules/posix_spawnattr_getsigmask: Likewise.
45010         * modules/posix_spawnattr_init: Likewise.
45011         * modules/posix_spawnattr_setflags: Likewise.
45012         * modules/posix_spawnattr_setpgroup: Likewise.
45013         * modules/posix_spawnattr_setschedparam: Likewise.
45014         * modules/posix_spawnattr_setschedpolicy: Likewise.
45015         * modules/posix_spawnattr_setsigdefault: Likewise.
45016         * modules/posix_spawnattr_setsigmask: Likewise.
45017         * modules/posix_spawnp: Likewise.
45019 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
45021         Add option to do-release-commit-and-tag to specify branch.
45022         * build-aux/do-release-commit-and-tag: Add --branch.
45024 2011-05-03  Bruno Haible  <bruno@clisp.org>
45026         Avoid unnecessary compilation units, through conditional dependencies.
45027         * modules/accept (Depends-on): Add conditions to the dependencies.
45028         * modules/acosl (Depends-on): Likewise.
45029         * modules/argz (Depends-on): Likewise.
45030         * modules/asinl (Depends-on): Likewise.
45031         * modules/atanl (Depends-on): Likewise.
45032         * modules/atoll (Depends-on): Likewise.
45033         * modules/bind (Depends-on): Likewise.
45034         * modules/btowc (Depends-on): Likewise.
45035         * modules/canonicalize-lgpl (Depends-on): Likewise.
45036         * modules/ceil (Depends-on): Likewise.
45037         * modules/ceilf (Depends-on): Likewise.
45038         * modules/ceill (Depends-on): Likewise.
45039         * modules/chdir-long (Depends-on): Likewise.
45040         * modules/chown (Depends-on): Likewise.
45041         * modules/close (Depends-on): Likewise.
45042         * modules/connect (Depends-on): Likewise.
45043         * modules/cosl (Depends-on): Likewise.
45044         * modules/dirfd (Depends-on): Likewise.
45045         * modules/dprintf (Depends-on): Likewise.
45046         * modules/dprintf-posix (Depends-on): Likewise.
45047         * modules/error (Depends-on): Likewise.
45048         * modules/euidaccess (Depends-on): Likewise.
45049         * modules/expl (Depends-on): Likewise.
45050         * modules/faccessat (Depends-on): Likewise.
45051         * modules/fchdir (Depends-on): Likewise.
45052         * modules/fclose (Depends-on): Likewise.
45053         * modules/fcntl (Depends-on): Likewise.
45054         * modules/fdopendir (Depends-on): Likewise.
45055         * modules/fflush (Depends-on): Likewise.
45056         * modules/floor (Depends-on): Likewise.
45057         * modules/floorf (Depends-on): Likewise.
45058         * modules/floorl (Depends-on): Likewise.
45059         * modules/fnmatch (Depends-on): Likewise.
45060         * modules/fopen (Depends-on): Likewise.
45061         * modules/fprintf-posix (Depends-on): Likewise.
45062         * modules/frexp (Depends-on): Likewise.
45063         * modules/frexp-nolibm (Depends-on): Likewise.
45064         * modules/frexpl (Depends-on): Likewise.
45065         * modules/frexpl-nolibm (Depends-on): Likewise.
45066         * modules/fseek (Depends-on): Likewise.
45067         * modules/fsusage (Depends-on): Likewise.
45068         * modules/ftell (Depends-on): Likewise.
45069         * modules/ftello (Depends-on): Likewise.
45070         * modules/futimens (Depends-on): Likewise.
45071         * modules/getcwd (Depends-on): Likewise.
45072         * modules/getcwd-lgpl (Depends-on): Likewise.
45073         * modules/getdelim (Depends-on): Likewise.
45074         * modules/getdomainname (Depends-on): Likewise.
45075         * modules/getgroups (Depends-on): Likewise.
45076         * modules/gethostname (Depends-on): Likewise.
45077         * modules/getline (Depends-on): Likewise.
45078         * modules/getlogin_r (Depends-on): Likewise.
45079         * modules/getopt-posix (Depends-on): Likewise.
45080         * modules/getpeername (Depends-on): Likewise.
45081         * modules/getsockname (Depends-on): Likewise.
45082         * modules/getsockopt (Depends-on): Likewise.
45083         * modules/getsubopt (Depends-on): Likewise.
45084         * modules/getusershell (Depends-on): Likewise.
45085         * modules/glob (Depends-on): Likewise.
45086         * modules/grantpt (Depends-on): Likewise.
45087         * modules/iconv_open (Depends-on): Likewise.
45088         * modules/iconv_open-utf (Depends-on): Likewise.
45089         * modules/inet_ntop (Depends-on): Likewise.
45090         * modules/inet_pton (Depends-on): Likewise.
45091         * modules/ioctl (Depends-on): Likewise.
45092         * modules/isapipe (Depends-on): Likewise.
45093         * modules/isfinite (Depends-on): Likewise.
45094         * modules/isinf (Depends-on): Likewise.
45095         * modules/lchown (Depends-on): Likewise.
45096         * modules/ldexpl (Depends-on): Likewise.
45097         * modules/link (Depends-on): Likewise.
45098         * modules/linkat (Depends-on): Likewise.
45099         * modules/listen (Depends-on): Likewise.
45100         * modules/logl (Depends-on): Likewise.
45101         * modules/lstat (Depends-on): Likewise.
45102         * modules/mbrlen (Depends-on): Likewise.
45103         * modules/mbrtowc (Depends-on): Likewise.
45104         * modules/mbsinit (Depends-on): Likewise.
45105         * modules/mbsnrtowcs (Depends-on): Likewise.
45106         * modules/mbsrtowcs (Depends-on): Likewise.
45107         * modules/mbtowc (Depends-on): Likewise.
45108         * modules/memcmp (Depends-on): Likewise.
45109         * modules/mkdir (Depends-on): Likewise.
45110         * modules/mkdtemp (Depends-on): Likewise.
45111         * modules/mkfifo (Depends-on): Likewise.
45112         * modules/mkfifoat (Depends-on): Likewise.
45113         * modules/mknod (Depends-on): Likewise.
45114         * modules/mkostemp (Depends-on): Likewise.
45115         * modules/mkostemps (Depends-on): Likewise.
45116         * modules/mkstemp (Depends-on): Likewise.
45117         * modules/mkstemps (Depends-on): Likewise.
45118         * modules/mktime (Depends-on): Likewise.
45119         * modules/nanosleep (Depends-on): Likewise.
45120         * modules/open (Depends-on): Likewise.
45121         * modules/openat (Depends-on): Likewise.
45122         * modules/perror (Depends-on): Likewise.
45123         * modules/poll (Depends-on): Likewise.
45124         * modules/popen (Depends-on): Likewise.
45125         * modules/posix_spawn (Depends-on): Likewise.
45126         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
45127         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
45128         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
45129         * modules/posix_spawnp (Depends-on): Likewise.
45130         * modules/pread (Depends-on): Likewise.
45131         * modules/printf-posix (Depends-on): Likewise.
45132         * modules/ptsname (Depends-on): Likewise.
45133         * modules/putenv (Depends-on): Likewise.
45134         * modules/pwrite (Depends-on): Likewise.
45135         * modules/readline (Depends-on): Likewise.
45136         * modules/readlink (Depends-on): Likewise.
45137         * modules/readlinkat (Depends-on): Likewise.
45138         * modules/recv (Depends-on): Likewise.
45139         * modules/recvfrom (Depends-on): Likewise.
45140         * modules/regex (Depends-on): Likewise.
45141         * modules/remove (Depends-on): Likewise.
45142         * modules/rename (Depends-on): Likewise.
45143         * modules/renameat (Depends-on): Likewise.
45144         * modules/rmdir (Depends-on): Likewise.
45145         * modules/round (Depends-on): Likewise.
45146         * modules/roundf (Depends-on): Likewise.
45147         * modules/roundl (Depends-on): Likewise.
45148         * modules/rpmatch (Depends-on): Likewise.
45149         * modules/select (Depends-on): Likewise.
45150         * modules/send (Depends-on): Likewise.
45151         * modules/sendto (Depends-on): Likewise.
45152         * modules/setenv (Depends-on): Likewise.
45153         * modules/setlocale (Depends-on): Likewise.
45154         * modules/setsockopt (Depends-on): Likewise.
45155         * modules/shutdown (Depends-on): Likewise.
45156         * modules/sigaction (Depends-on): Likewise.
45157         * modules/signbit (Depends-on): Likewise.
45158         * modules/sigprocmask (Depends-on): Likewise.
45159         * modules/sinl (Depends-on): Likewise.
45160         * modules/sleep (Depends-on): Likewise.
45161         * modules/snprintf (Depends-on): Likewise.
45162         * modules/snprintf-posix (Depends-on): Likewise.
45163         * modules/socket (Depends-on): Likewise.
45164         * modules/sprintf-posix (Depends-on): Likewise.
45165         * modules/sqrtl (Depends-on): Likewise.
45166         * modules/stat (Depends-on): Likewise.
45167         * modules/strchrnul (Depends-on): Likewise.
45168         * modules/strdup-posix (Depends-on): Likewise.
45169         * modules/strerror (Depends-on): Likewise.
45170         * modules/strerror_r-posix (Depends-on): Likewise.
45171         * modules/strndup (Depends-on): Likewise.
45172         * modules/strnlen (Depends-on): Likewise.
45173         * modules/strptime (Depends-on): Likewise.
45174         * modules/strsep (Depends-on): Likewise.
45175         * modules/strsignal (Depends-on): Likewise.
45176         * modules/strstr-simple (Depends-on): Likewise.
45177         * modules/strtod (Depends-on): Likewise.
45178         * modules/strtoimax (Depends-on): Likewise.
45179         * modules/strtok_r (Depends-on): Likewise.
45180         * modules/strtoumax (Depends-on): Likewise.
45181         * modules/symlink (Depends-on): Likewise.
45182         * modules/symlinkat (Depends-on): Likewise.
45183         * modules/tanl (Depends-on): Likewise.
45184         * modules/tcgetsid (Depends-on): Likewise.
45185         * modules/tmpfile (Depends-on): Likewise.
45186         * modules/trunc (Depends-on): Likewise.
45187         * modules/truncf (Depends-on): Likewise.
45188         * modules/truncl (Depends-on): Likewise.
45189         * modules/uname (Depends-on): Likewise.
45190         * modules/unlink (Depends-on): Likewise.
45191         * modules/unlockpt (Depends-on): Likewise.
45192         * modules/unsetenv (Depends-on): Likewise.
45193         * modules/usleep (Depends-on): Likewise.
45194         * modules/utimensat (Depends-on): Likewise.
45195         * modules/vasprintf (Depends-on): Likewise.
45196         * modules/vdprintf (Depends-on): Likewise.
45197         * modules/vdprintf-posix (Depends-on): Likewise.
45198         * modules/vfprintf-posix (Depends-on): Likewise.
45199         * modules/vprintf-posix (Depends-on): Likewise.
45200         * modules/vsnprintf (Depends-on): Likewise.
45201         * modules/vsnprintf-posix (Depends-on): Likewise.
45202         * modules/vsprintf-posix (Depends-on): Likewise.
45203         * modules/wcrtomb (Depends-on): Likewise.
45204         * modules/wcscasecmp (Depends-on): Likewise.
45205         * modules/wcscspn (Depends-on): Likewise.
45206         * modules/wcsdup (Depends-on): Likewise.
45207         * modules/wcsncasecmp (Depends-on): Likewise.
45208         * modules/wcsnrtombs (Depends-on): Likewise.
45209         * modules/wcspbrk (Depends-on): Likewise.
45210         * modules/wcsrtombs (Depends-on): Likewise.
45211         * modules/wcsspn (Depends-on): Likewise.
45212         * modules/wcsstr (Depends-on): Likewise.
45213         * modules/wcstok (Depends-on): Likewise.
45214         * modules/wcswidth (Depends-on): Likewise.
45215         * modules/wctob (Depends-on): Likewise.
45216         * modules/wctomb (Depends-on): Likewise.
45217         * modules/wctype (Depends-on): Likewise.
45218         * modules/wcwidth (Depends-on): Likewise.
45219         * modules/write (Depends-on): Likewise.
45221 2011-05-03  Bruno Haible  <bruno@clisp.org>
45223         Support for conditional dependencies.
45224         * doc/gnulib.texi (Module description): Document the syntax of
45225         conditional dependencies.
45226         * gnulib-tool: New option --conditional-dependencies.
45227         (func_usage): Document it.
45228         (cond_dependencies): New variable.
45229         (func_get_automake_snippet_conditional,
45230         func_get_automake_snippet_unconditional): New functions, extracted from
45231         func_get_automake_snippet.
45232         (func_get_automake_snippet): Use them.
45233         (sed_first_32_chars): New variable.
45234         (func_module_shellfunc_name): New function.
45235         (func_module_shellvar_name): New function.
45236         (func_module_conditional_name): New function.
45237         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
45238         func_cond_module_condition): New functions.
45239         (func_modules_transitive_closure): Add support for conditional
45240         dependencies.
45241         (func_emit_lib_Makefile_am): For a conditional module, enclose the
45242         conditional automake snippet in an automake conditional.
45243         (func_emit_autoconf_snippets): Emit shell functions that contain the
45244         code for conditional modules.
45245         (func_import, func_create_testdir): Update specification.
45247 2011-05-03  Eric Blake  <eblake@redhat.com>
45249         test-getaddrinfo: report error information
45250         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
45252 2011-05-03  Jim Meyering  <meyering@redhat.com>
45254         bootstrap: avoid build failure when $GZIP is set
45255         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
45256         program name.  If defined at all, it is supposed to list gzip options.
45257         Reported by Alan Curry in http://debbugs.gnu.org/8609
45259 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
45261         readme-release: new module with release instructions
45262         * modules/readme-release: New module.
45263         * top/README-release: New file, from coreutils, grep, diffutils.
45264         * MODULES.html.sh (Support for maintaining and releasing): Add it.
45266 2011-05-02  Eric Blake  <eblake@redhat.com>
45268         fflush: also replace fclose when fixing fflush
45269         * modules/fflush (Depends-on): Add fclose.
45270         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
45271         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
45272         memstreams with no backing fd.
45273         * doc/posix-functions/fclose.texi (fclose): Document the use of
45274         fflush module to fix the bug.
45275         * tests/test-fclose.c (main): Relax test when fclose is used in
45276         isolation.
45278         fclose: add some tests
45279         * modules/fclose-tests: New test module.
45280         * tests/test-fclose.c: New file.
45281         * doc/posix-functions/fclose.texi (fclose): Document the bug.
45283         fclose: reduced dependencies
45284         * modules/fclose (Depends-on): Switch from fflush/fseeko to
45285         simpler lseek.
45286         * lib/fclose.c (rpl_fclose): Likewise.
45287         Reported by Simon Josefsson.
45289         exit: drop remaining clients
45290         * modules/argmatch (Depends-on): Replace exit with stdlib.
45291         * modules/copy-file (Depends-on): Likewise.
45292         * modules/execute (Depends-on): Likewise.
45293         * modules/exitfail (Depends-on): Likewise.
45294         * modules/obstack (Depends-on): Likewise.
45295         * modules/pagealign_alloc (Depends-on): Likewise.
45296         * modules/pipe-filter-gi (Depends-on): Likewise.
45297         * modules/pipe-filter-ii (Depends-on): Likewise.
45298         * modules/savewd (Depends-on): Likewise.
45299         * modules/spawn-pipe (Depends-on): Likewise.
45300         * modules/wait-process (Depends-on): Likewise.
45301         * modules/xsetenv (Depends-on): Likewise.
45302         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
45303         * modules/git-merge-changelog (Depends-on): Likewise.
45304         * modules/long-options (Depends-on): Likewise.
45305         * modules/pt_chown (Depends-on): Likewise.
45306         * modules/sysexits (Depends-on): Likewise.
45308         freading: relax license from LGPLv3+ to LGPLv2+
45309         * modules/freading (License): Relax LGPL version.
45311 2011-05-02  Bruno Haible  <bruno@clisp.org>
45313         fchdir: Remove unused dependencies.
45314         * modules/fchdir (Depends-on): Remove include_next.
45316 2011-05-02  Bruno Haible  <bruno@clisp.org>
45318         gnulib-tool: Refactor.
45319         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
45320         from func_emit_autoconf_snippets.
45321         (func_emit_autoconf_snippets): Use it.
45323 2011-05-02  Simon Josefsson  <simon@josefsson.org>
45325         * NEWS: Document removal of 'exit'.
45326         * modules/exit: Remove file.
45328 2011-05-01  Bruno Haible  <bruno@clisp.org>
45330         Update DEPENDENCIES.
45331         * DEPENDENCIES (gettext): Recommend the newest release.
45332         Reported by Simon Josefsson.
45334 2011-05-01  Bruno Haible  <bruno@clisp.org>
45336         gnulib-tool: Reduce code duplication.
45337         * gnulib-tool (func_emit_autoconf_snippets): New function.
45338         (func_import, func_create_testdir): Use it.
45340 2011-04-30  Eric Blake  <eblake@redhat.com>
45342         fclose: don't fail on non-seekable input stream
45343         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
45344         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
45345         since fflush is allowed to fail in that case.
45347 2011-04-30  Bruno Haible  <bruno@clisp.org>
45349         dup3: cleanup
45350         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
45352 2011-04-30  Bruno Haible  <bruno@clisp.org>
45354         netdb: Make it work in C++ mode.
45355         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
45356         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
45357         module.
45358         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
45359         gl_MODULE_INDICATOR_FOR_TESTS.
45360         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
45361         * modules/netdb-c++-tests: New file.
45362         * tests/test-netdb-c++.cc: New file.
45364 2011-04-30  Bruno Haible  <bruno@clisp.org>
45366         New modules 'vfscanf', 'vscanf'.
45367         * modules/vfscanf: New file.
45368         * modules/vscanf: New file.
45369         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
45370         here.
45371         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
45372         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
45374 2011-04-30  Bruno Haible  <bruno@clisp.org>
45376         passfd: Add comments.
45377         * lib/passfd.c: Add comments about platforms.
45379 2011-04-30  Bruno Haible  <bruno@clisp.org>
45381         sys_uio: Make <sys/uio.h> self-contained.
45382         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
45383         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
45385 2011-04-30  Bruno Haible  <bruno@clisp.org>
45387         sys_socket: Ensure 'struct iovec' definition.
45388         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
45389         <sys/socket.h>.
45390         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
45392 2011-04-30  Bruno Haible  <bruno@clisp.org>
45394         sys_uio: Protect definition of 'struct iovec'.
45395         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
45396         it as a C struct.
45398 2011-04-30  Bruno Haible  <bruno@clisp.org>
45400         manywarnings: fix indentation
45401         * m4/manywarnings.m4: Indent by 2 spaces consistently.
45403 2011-04-30  Pádraig Brady  <P@draigBrady.com>
45405         manywarnings: add -Wno-missing-field-initializers if needed.
45406         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
45407         option if it's needed to allow initialization with { 0, }
45409 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
45411         announce-gen: cosmetic improvement
45412         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
45414 2011-04-29  Jim Meyering  <meyering@redhat.com>
45416         vc-list-files: indent with spaces, not TABs
45417         * build-aux/vc-list-files: Convert leading TABs to spaces,
45418         to match the style of most other files in gnulib.
45420         announce-gen: indent with spaces, not TABs
45421         * build-aux/announce-gen: Convert all TABs to spaces, to match
45422         the style of most other files in gnulib.
45424 2011-04-29  Eric Blake  <eblake@redhat.com>
45426         quotearg: avoid uninitialized variable use
45427         * lib/quotearg.c (quoting_options_from_style): Initialize
45428         remaining fields, and ensure that custom styles are only used via
45429         quoting_options rather than quoting_style.
45431 2011-04-29  Jim Meyering  <meyering@redhat.com>
45433         maint.mk: remove unused VC-tag variable
45434         * top/maint.mk (VC-tag): Remove unused variable.
45436 2011-04-29  Bruno Haible  <bruno@clisp.org>
45438         netdb: fix gai_strerror replacements
45439         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
45440         * modules/netdb: Substitute it.
45442 2011-04-29  Jim Meyering  <meyering@redhat.com>
45444         test-getcwd.c: avoid new set-but-not-used warning
45445         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
45446         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
45447         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
45448         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
45450         test-hash.c: avoid a new shadowing warning
45451         * tests/test-hash.c (main): Don't shadow "dup".
45453 2011-04-28  Eric Blake  <eblake@redhat.com>
45455         getaddrinfo: fix gai_strerror signature
45456         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
45457         and work around mingw with UNICODE defined.
45458         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
45459         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
45460         * modules/netdb (Makefile.am): Substitute it.
45461         * lib/netdb.in.h (gai_strerror): Declare replacement.
45462         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
45463         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
45464         the fix.
45466         getsockopt: avoid compiler warning
45467         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
45468         Reported by Matthias Bolte.
45470         tests: drop unused link dependency
45471         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
45472         * modules/dirent-safer-tests (Makefile.am): Likewise.
45473         * modules/fdopendir-tests (Makefile.am): Likewise.
45474         * modules/mkfifoat-tests (Makefile.am): Likewise.
45475         * modules/openat-safer-tests (Makefile.am): Likewise.
45476         * modules/openat-tests (Makefile.am): Likewise.
45477         * modules/readlinkat-tests (Makefile.am): Likewise.
45478         * modules/symlinkat-tests (Makefile.am): Likewise.
45479         * modules/linkat-tests (Makefile.am): Likewise.
45480         (Depends-on): Switch to filenamecat-lgpl.
45481         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
45482         LIBINTL.
45483         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
45484         * tests/test-linkat.c (main): Don't require xalloc.
45486         hash, mgetgroups: drop xalloc dependency
45487         * lib/hash.c (includes): Adjust includes.
45488         * lib/mgetgroups.c (includes): Likewise.
45489         (xgetgroups): Move...
45490         * lib/xgetgroups.c: ...to new file.
45491         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
45492         * modules/xgetgroups: New file, split from...
45493         * modules/mgetgroups: ...here.
45494         (Depends-on): Add xalloc-oversized.
45495         * modules/hash (Depends-on): Likewise.
45496         * modules/hash-tests (Depends-on): Drop xalloc.
45497         (test_hash_LDADD): Drop unused library.
45498         * tests/test-hash.c (main): Break xalloc dependency.
45499         (includes): Drop unused include.
45501         xalloc-oversized: new module
45502         * modules/xalloc-oversized: New module.
45503         * modules/xalloc (Depends-on): Add it.
45504         * lib/xalloc.h (xalloc_oversized): Move...
45505         * lib/xalloc-oversized.h: ...into new file.
45507         utimecmp: drop dependency on xmalloc
45508         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
45509         due to memory pressure.
45510         * modules/utimecmp (Depends-on): Drop xalloc.
45512 2011-04-27  Eric Blake  <eblake@redhat.com>
45514         getcwd: fix mingw bugs
45515         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
45516         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
45517         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
45519 2011-04-27  Bruno Haible  <bruno@clisp.org>
45521         mkstemps: Ensure declaration on MacOS X 10.5.
45522         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
45523         * doc/glibc-functions/mkstemps.texi: Document header file problem on
45524         MacOS X.
45526 2011-04-27  Bruno Haible  <bruno@clisp.org>
45528         mkstemp: More documentation.
45529         * doc/posix-functions/mkstemp.texi: Document header file problem on
45530         MacOS X.
45532 2011-04-27  Bruno Haible  <bruno@clisp.org>
45534         mkstemp: Tweak configure message when cross-compiling.
45535         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
45536         result as a guess.
45538 2011-04-27  Bruno Haible  <bruno@clisp.org>
45540         clean-temp: Clarify what it does.
45541         * lib/clean-temp.h: Add more comments.
45542         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
45543         module.
45544         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
45545         * doc/glibc-functions/mkstemps.texi: Likewise.
45546         * doc/glibc-functions/mkostemps.texi: Likewise.
45548 2011-04-27  Eric Blake  <eblake@redhat.com>
45550         fchdir: avoid extra chdir and fix test
45551         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
45552         getcwd-lgpl.
45553         * lib/fchdir.c (get_name): Any absolute name will do; it does not
45554         have to be canonical.
45555         (canonicalize_file_name): Drop unused macro.
45556         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
45558         filenamecat-lgpl: fix licence
45559         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
45560         when it was first created.
45562         linkat, renameat: add missing dependency
45563         * modules/linkat (Depends-on): Require getcwd-lgpl.
45564         * modules/renameat (Depends-on): Likewise.
45566         tests: reduce dependencies
45567         * tests/test-linkat.c (main): Use lighter-weight getcwd.
45568         * tests/test-renameat.c (main): Likewise.
45569         * modules/linkat-tests (Depends-on): Relax dependency.
45570         * modules/renameat-tests (Depends-on): Likewise.
45571         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
45572         dependency explicit.
45574         save-cwd: reduce default dependency
45575         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
45576         * lib/save-cwd.c: Update comments.
45577         * NEWS: Document the semantic change.
45579         getcwd: enhance tests
45580         * tests/test-getcwd-lgpl.c: New file, taken from...
45581         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
45582         repeat long path stress tests from m4 probe.
45583         * modules/getcwd-lgpl-tests: New module.
45584         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
45585         * m4/getcwd-abort-bug.m4: Update comment.
45586         * m4/getcwd-path-max.m4: Likewise.
45588         getcwd-lgpl: new module
45589         * modules/getcwd-lgpl: New module.
45590         * lib/getcwd-lgpl.c: New file.
45591         * doc/posix-functions/getcwd.texi (getcwd): Document it.
45592         * MODULES.html.sh (lacking POSIX:2008): Likewise.
45593         * modules/getcwd (configure.ac): Set C witness.
45594         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
45596         getcwd: tweak comments
45597         * m4/getcwd-abort-bug.m4: Fix comments.
45598         * m4/getcwd-path-max.m4: Likewise.
45599         * m4/getcwd.m4: Likewise.
45601 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
45602         and Eric Blake  <eblake@redhat.com>
45604         mkstemp: replace if system version uses wrong permissions
45605         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
45606         read/write mode bits set in file created by mkstemp.
45607         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
45609 2011-04-27  Eric Blake  <eblake@redhat.com>
45611         passfd: avoid compiler warning
45612         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
45613         Reported by Laine Stump.
45615 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
45617         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
45618         required by the NetBSD (and perhaps other 4.4BSD derived) join.
45620 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
45621         and Eric Blake  <eblake@redhat.com>
45623         mkstemp: mention clean-temp module
45624         * lib/mkstemp.c: Add comment.
45625         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
45627 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
45629         inttypes: also provide default values for 32-bit tests
45630         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
45631         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
45633 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
45635         strtoumax: remove dependency on strtoimax
45636         This is like the strtoull change of yesterday.
45637         * modules/strtoumax (Files): Add lib/strtoimax.c.
45638         (Depends-on): Remove strtoimax and add verify.
45640         inttypes-incomplete: new module
45641         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
45642         all but the PRI* and SCN* parts of gl_INTTYPES_H.
45643         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
45644         of gl_INTTYPES_H.
45645         (gl_INTTYPES_H): Rewrite in terms of these new macros.
45646         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
45647         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
45648         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
45649         * modules/strtoumax, modules/xstrtol (Depends-on):
45650         Depend on inttypes-incomplete, not inttypes.
45651         * modules/inttypes-incomplete: New module, containing the contents
45652         of the old modules/inttypes module, except that the Files: section
45653         omits m4/inttypes-pri.m4, and the configure.ac section invokes
45654         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
45655         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
45656         (Depends-on): Depend only on inttypes-incomplete.
45657         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
45659         inttypes: omit now-redundant strtoimax and strtoumax work
45660         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
45661         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
45663         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
45664         This supports apps that need pointers to strtoimax and strtoumax,
45665         and ports to HP-UX 11.00 64.bit, which has macros that expand to
45666         nonexistent functions.  See
45667         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
45668         et seq.
45669         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
45670         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
45671         a macro.
45672         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
45674 2011-04-25  Simon Josefsson  <simon@josefsson.org>
45676         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
45678 2011-04-25  Bruno Haible  <bruno@clisp.org>
45680         strtol, strtoul: Mark modules as obsolete.
45681         * modules/strtol (Status, Notice): New sections.
45682         * modules/strtoul (Status, Notice): New sections.
45684 2011-04-25  Bruno Haible  <bruno@clisp.org>
45686         strtod: Remove check for strtod, unless supporting old platforms.
45687         * modules/strtod-obsolete: New file.
45688         * m4/strtod-obsolete.m4: New file.
45689         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
45690         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
45691         * modules/strtod (Depends-on): Add strtod-obsolete.
45692         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
45694 2011-04-25  Bruno Haible  <bruno@clisp.org>
45696         strcase: Make module obsolete.
45697         * modules/strcase (Status, Notice): New sections.
45699 2011-04-25  Bruno Haible  <bruno@clisp.org>
45701         dup2: Remove check for dup2, unless supporting old obsolete platforms.
45702         * modules/dup2-obsolete: New file.
45703         * m4/dup2-obsolete.m4: New file.
45704         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
45705         gl_FUNC_DUP2_OBSOLETE is not also defined.
45706         * modules/dup2 (Depends-on): Add dup2-obsolete.
45707         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
45709 2011-04-25  Bruno Haible  <bruno@clisp.org>
45711         strnlen: Avoid memchr related link error on old obsolete platforms.
45712         * modules/memchr-obsolete: New file.
45713         * m4/memchr-obsolete.m4: New file.
45714         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
45715         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
45716         * modules/memchr (Depends-on): Add memchr-obsolete.
45717         * modules/strnlen (Depends-on): Likewise.
45718         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
45720 2011-04-25  Jim Meyering  <meyering@redhat.com>
45722         maint.mk: makefile_at_at_check extend and clean up
45723         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
45724         in addition to */Makefile.am.
45725         Exempt legitimate uses of @VAR@ notation, e.g.,
45726         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
45727         Remove obsolete coreutils-specific comment.
45728         Prompted by discussion here:
45729         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
45731 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
45733         strtoul: remove dependency on strtol
45734         This is so that 'configure' need not check for strtol merely because
45735         the application needs strtoul.
45736         * modules/strtoul (Files): Add lib/strtol.c.
45737         (Depends-on): Remove strtol.
45739         strtoull: remove dependency on strtoul
45740         This is like the strtoll change.
45741         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
45742         (Depends-on): Remove strtoul.
45744         strtoll: remove dependency on strtol
45745         This is so that 'configure' need not check for strtol merely because
45746         the application needs strtoll.
45747         * modules/strtoll (Files): Add lib/strtol.c.
45748         (Depends-on): Remove strtol.
45750 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
45752         inttypes: Move some configure check to module 'imaxdiv'.
45753         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
45754         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
45755         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
45757 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
45759         inttypes: Move some configure check to module 'imaxabs'.
45760         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
45761         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
45762         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
45764 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
45766         inttypes: Remove configure tests that are not needed since 2009-12-31.
45767         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
45768         gl_cv_header_working_inttypes_h.
45770 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
45772         * modules/strnlen (Depends-on): Remove memchr.
45773         The strnlen implementation doesn't need the memchr module's fixes; see
45774         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
45776         strtol: remove dependency on wchar
45777         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
45778         * modules/strtol (Depends-on): Remove wchar.
45780 2011-04-21  Eric Blake  <eblake@redhat.com>
45782         passfd: fix test regression on Linux
45783         * modules/passfd-tests (configure.ac): Correct socketpair check.
45785         passfd: speed up configure and drop unused code
45786         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
45787         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
45788         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
45789         Instead of probing at configure for unix_scm_rights_bsd44_way,
45790         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
45791         check to a struct member probe.
45792         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
45793         (sendfd, recvfd): Update preprocessor checks.
45794         * modules/passfd (Files): Reflect rename, and drop unused file.
45795         (Depends-on): Drop unused dependency.
45797         passfd: allow compilation on mingw
45798         * modules/sys_socket (Depends-on): Add sys_uio.
45799         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
45800         iovec and a minimal struct msghdr.
45801         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
45802         * tests/test-sys_socket.c (main): Enhance test.
45803         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
45804         guaranteed to provide what we need.
45805         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
45806         * modules/passfd-tests (Depends-on): Add sys_wait.
45807         * tests/test-passfd.c (main): Skip test on mingw, for now.
45808         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
45809         partial 'struct msghdr' implementation.
45811         sys_uio: new module
45812         * modules/sys_uio: New module.
45813         * modules/sys_uio-tests: Likewise.
45814         * lib/sys_uio.in.h: New file.
45815         * m4/sys_uio_h.m4: Likewise.
45816         * tests/test-sys_uio.c: Likewise.
45817         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
45818         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
45820 2011-04-20  Jim Meyering  <meyering@redhat.com>
45822         useless-if-before-free: avoid false-positive
45823         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
45824         disjunct so that it too requires a terminating ";".  Without that,
45825         this script would identify as useless one statement from gcc that
45826         was not:
45827           if (aligned_ptr)
45828             free (((void **) aligned_ptr) [-1]);
45830 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
45832         doc: update users.txt.
45833         * users.txt: Add barcode.
45835 2011-04-19  Bruno Haible  <bruno@clisp.org>
45837         ioctl: Remove link dependency on native Windows.
45838         * lib/fd-hook.h: Renamed from lib/close-hook.h.
45839         (gl_close_fn, gl_ioctl_fn): New types.
45840         (struct fd_hook): Renamed from struct close_hook. Change type of
45841         private_close_fn field. Add private_ioctl_fn field.
45842         (close_hook_fn): Add parameter for primary close method.
45843         (execute_close_hooks, execute_all_close_hooks): Likewise.
45844         (ioctl_hook_fn): New type.
45845         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
45846         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
45847         argument.
45848         (unregister_fd_hook): Renamed from unregister_close_hook.
45849         * lib/fd-hook.c: Renamed from lib/close-hook.c.
45850         Don't include <unistd.h>.
45851         (close): Remove undef.
45852         (anchor): Update.
45853         (execute_close_hooks): Add argument for primary close method.
45854         (execute_all_close_hooks): Likewise.
45855         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
45856         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
45857         argument. Allow each argument to be NULL.
45858         (unregister_fd_hook): Renamed from unregister_close_hook.
45859         * lib/close.c (rpl_close): Pass 'close' function pointer to
45860         execute_all_close_hooks.
45861         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
45862         (primary_ioctl): New function.
45863         (ioctl): Don't call ioctlsocket here. Instead, call
45864         execute_all_ioctl_hooks.
45865         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
45866         close method.
45867         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
45868         (fd_sockets_hook): Renamed from close_sockets_hook.
45869         (gl_sockets_startup, gl_sockets_cleanup): Update.
45870         * modules/fd-hook: Renamed from modules/close-hook. Update.
45871         * modules/close (Depends-on): Add fd-hook, remove close-hook.
45872         * modules/sockets (Depends-on): Likewise.
45873         * modules/ioctl (Depends-on): Add fd-hook.
45874         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
45875         GNULIB_SOCKET.
45877 2011-04-19  Bruno Haible  <bruno@clisp.org>
45879         Move the support of O_NONBLOCK in open() to the 'open' module.
45880         * modules/nonblocking (Depends-on): Remove 'open'.
45881         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
45882         gl_cv_have_open_O_NONBLOCK.
45883         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
45884         O_NONBLOCK support.
45885         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
45887 2011-04-17  Bruno Haible  <bruno@clisp.org>
45889         pipe2: Simplify code.
45890         * lib/pipe2.c (pipe2): Reduce code duplication.
45892 2011-04-17  Bruno Haible  <bruno@clisp.org>
45894         nonblocking: Add comment.
45895         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
45897 2011-04-17  Bruno Haible  <bruno@clisp.org>
45899         nonblocking: Add tests for sockets.
45900         * tests/test-nonblocking-socket.sh: New file.
45901         * tests/test-nonblocking-socket-main.c: New file.
45902         * tests/test-nonblocking-socket-child.c: New file.
45903         * tests/test-nonblocking-socket.h: New file.
45904         * tests/socket-server.h: New file.
45905         * tests/socket-client.h: New file.
45906         * modules/nonblocking-socket-tests: New file.
45907         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
45909 2011-04-17  Bruno Haible  <bruno@clisp.org>
45911         nonblocking: Add tests for pipes.
45912         * tests/test-nonblocking-pipe.sh: New file.
45913         * tests/test-nonblocking-pipe-main.c: New file.
45914         * tests/test-nonblocking-pipe-child.c: New file.
45915         * tests/test-nonblocking-pipe.h: New file.
45916         * tests/test-nonblocking-writer.h: New file.
45917         * tests/test-nonblocking-reader.h: New file.
45918         * tests/test-nonblocking-misc.h: New file.
45919         * modules/nonblocking-pipe-tests: New file.
45920         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
45922 2011-04-16  Bruno Haible  <bruno@clisp.org>
45924         gettext: Clarify the needed programmer actions.
45925         * modules/gettext (Notice): New field.
45926         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
45928 2011-04-16  Bruno Haible  <bruno@clisp.org>
45930         strchrnul: Tweak last commit.
45931         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
45932         bug.
45933         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
45934         as in _GL_FUNCDECL_SYS.
45935         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
45936         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
45938 2011-04-15  Eric Blake  <eblake@redhat.com>
45940         strchrnul: work around cygwin bug
45941         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
45942         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
45943         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
45944         * modules/string (Makefile.am): Substitute it.
45945         * lib/string.in.h (strchrnul): Use it.
45947 2011-04-15  Bruno Haible  <bruno@clisp.org>
45949         Don't require lib/stdio-write.c when only module 'stdio' is used.
45950         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
45951         invocation.
45952         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
45954 2011-04-14  Bruno Haible  <bruno@clisp.org>
45956         Support non-blocking pipe I/O in read() on native Windows.
45957         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
45958         (read): New declaration.
45959         * lib/read.c: New file.
45960         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
45961         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
45962         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
45963         vscanf): New declarations.
45964         * lib/stdio-read.c: New file.
45965         * m4/read.m4: New file.
45966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
45967         REPLACE_READ.
45968         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
45969         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
45970         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
45971         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
45972         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
45973         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
45974         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
45975         * modules/read: New file.
45976         * modules/nonblocking (Files): Add lib/stdio-read.c.
45977         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
45978         * modules/stdio (Makefile.am): Substitute 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/pread (Depends-on): Add read.
45982         * modules/safe-read (Depends-on): Likewise.
45983         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
45984         gets, scanf, vfscanf, vscanf): Verify signatures.
45985         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
45986         problem with non-blocking pipes.
45987         * doc/posix-functions/fgetc.texi: Likewise.
45988         * doc/posix-functions/fgets.texi: Likewise.
45989         * doc/posix-functions/fread.texi: Likewise.
45990         * doc/posix-functions/fscanf.texi: Likewise.
45991         * doc/posix-functions/getc.texi: Likewise.
45992         * doc/posix-functions/getchar.texi: Likewise.
45993         * doc/posix-functions/gets.texi: Likewise.
45994         * doc/posix-functions/scanf.texi: Likewise.
45995         * doc/posix-functions/vfscanf.texi: Likewise.
45996         * doc/posix-functions/vscanf.texi: Likewise.
45998 2011-04-14  Bruno Haible  <bruno@clisp.org>
46000         Support non-blocking pipe I/O in write() on native Windows.
46001         * lib/write.c (rpl_write): Split a write request that failed merely
46002         because the byte count was larger than the pipe buffer's size.
46003         * doc/posix-functions/write.texi: Mention the problem with large byte
46004         counts.
46006 2011-04-14  Bruno Haible  <bruno@clisp.org>
46008         wchar: Ensure that wchar_t gets defined on uClibc.
46009         * lib/wchar.in.h: On uClibc, include <stddef.h>.
46010         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
46012 2011-04-13  Bruno Haible  <bruno@clisp.org>
46014         safe-write, full-read: Avoid unnecessary compilation units.
46015         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
46016         (Depends-on): Remove safe-read. Add ssize_t.
46017         * modules/full-read (Files): Add lib/full-write.c.
46018         (Depends-on): Add full-write.
46020 2011-04-13  Bruno Haible  <bruno@clisp.org>
46022         Support non-blocking pipe I/O and SIGPIPE in pwrite().
46023         * modules/pwrite (Depends-on): Add 'write'.
46025 2011-04-13  Bruno Haible  <bruno@clisp.org>
46027         Support non-blocking pipe I/O in write() on native Windows.
46028         * lib/unistd.in.h (write): Enable replacement also if
46029         GNULIB_UNISTD_H_NONBLOCKING is 1.
46030         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
46031         (rpl_write): When failing to write on a non-blocking pipe, change
46032         errno from ENOSPC to EAGAIN.
46033         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
46034         putchar, puts, vfprintf, vprintf): Enable replacement also if
46035         GNULIB_STDIO_H_NONBLOCKING is 1.
46036         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
46037         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
46038         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
46039         CALL_WITH_SIGPIPE_EMULATION.
46040         (CALL_WITH_SIGPIPE_EMULATION): Use them.
46041         * m4/nonblocking.m4: New file.
46042         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
46043         for non-blocking I/O support.
46044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46045         GNULIB_UNISTD_H_NONBLOCKING.
46046         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
46047         required for non-blocking I/O support.
46048         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
46049         * modules/nonblocking (Files): Add m4/nonblocking.m4,
46050         lib/stdio-write.c, m4/asm-underscore.m4.
46051         (Depends-on): Add stdio, unistd.
46052         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
46053         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
46054         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
46055         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
46056         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
46057         problem with non-blocking pipes.
46058         * doc/posix-functions/fputc.texi: Likewise.
46059         * doc/posix-functions/fputs.texi: Likewise.
46060         * doc/posix-functions/fwrite.texi: Likewise.
46061         * doc/posix-functions/printf.texi: Likewise.
46062         * doc/posix-functions/putc.texi: Likewise.
46063         * doc/posix-functions/putchar.texi: Likewise.
46064         * doc/posix-functions/puts.texi: Likewise.
46065         * doc/posix-functions/vfprintf.texi: Likewise.
46066         * doc/posix-functions/vprintf.texi: Likewise.
46067         * doc/posix-functions/write.texi: Likewise.
46069 2011-04-10  Jim Meyering  <meyering@redhat.com>
46071         maint.mk: prohibit doubled words
46072         Detect them also when they're separated by a newline.
46073         There are 3 ways to customize it:
46074           - disable the test on a per file basis, as usual with rules using
46075             $(VC_LIST_EXCEPT)
46076           - replace the default doubled-word-selecting regexp (affects all files)
46077           - ignore a particular file-vs-doubled-word match
46078         I nearly used that last one to ignore the "is is" match in
46079         coreutils' NEWS file, since the text was "ls -is is ..."
46080         To do that, I would have added this line to cfg.mk:
46081           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
46082         but it would have ignored any "is is" match in NEWS.
46083         Low probability, but still...
46084         Instead, I changed the text, slightly:
46085           -  ls -is is now consistent with ls -lis in ignoring values returned
46086           +  "ls -is" is now consistent with ls -lis in ignoring values returned
46087         * top/maint.mk (prohibit_double_word_RE_): Provide default.
46088         (prohibit_doubled_word_): Define.
46089         (sc_prohibit_doubled_word): New rule.
46090         (sc_prohibit_the_the): Remove.  Subsumed by the above.
46092 2011-04-10  Jim Meyering  <meyering@redhat.com>
46094         maint: fix doubled-word typo in comment
46095         * m4/gethostname.m4: s/is is/it is/
46096         * m4/getdomainname.m4: Likewise.
46098 2011-04-10  Jim Meyering  <meyering@redhat.com>
46100         maint: remove doubled word: s/it it/it/
46101         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
46103 2011-04-10  Jim Meyering  <meyering@redhat.com>
46105         maint.mk: remove useless semicolon and backslash
46106         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
46107         semicolon and backslash.
46109 2011-04-10  Bruno Haible  <bruno@clisp.org>
46111         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
46112         * modules/stdint-tests (Depends-on): Add wchar.
46114 2011-04-10  Jim Meyering  <meyering@redhat.com>
46116         maint: remove doubled words in comments, e.g., s/a a/a/
46117         * lib/strptime.c (day_of_the_week): s/the the/the/
46118         * tests/test-chown.h (test_chown): s/a a/a/
46120         test-chown.h: correct a cast
46121         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
46122         when the destination is a stat.st_gid.
46124 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
46126         getaddrinfo: Fix test for sa_len member.
46127         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
46128         include <sys/types.h> before <sys/socket.h>.
46130 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46132         maint: change "can not" to "cannot"
46133         * doc/posix-functions/iconv.texi (iconv): This one crossed line
46134         boundaries.
46136 2011-04-09  Jim Meyering  <meyering@redhat.com>
46138         maint: change "a a" to "a"
46139         * tests/test-lchown.h (test_lchown): s/a a/a/
46141         maint.mk: prohibit \<the the\>
46142         * top/maint.mk (sc_prohibit_the_the): New rule.
46144         maint: fix "the the" in comment
46145         * lib/count-one-bits.h: s/the the/the/
46147         maint: change "can not" to "cannot"
46148         But do not change the occurrences in maintain.texi or in
46149         build-aux/po/Makefile.in.in, which I presume comes from gettext.
46150         * doc/gnulib-tool.texi: s/can not/cannot/
46151         * doc/posix-functions/accept.texi (accept): Likewise.
46152         * doc/posix-functions/socket.texi (socket): Likewise.
46153         * lib/mbrtowc.c: Likewise.
46155         maint.mk: prohibit use of "can not"
46156         * top/maint.mk (sc_prohibit_can_not): New rule.
46157         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
46159 2011-04-09  Bruno Haible  <bruno@clisp.org>
46161         careadlinkat: Guard against misuse of careadlinkatcwd.
46162         * lib/careadlinkat.c: Include <stdlib.h>.
46163         (careadlinkatcwd): Check that the fd argument is as expected.
46165 2011-04-09  Bruno Haible  <bruno@clisp.org>
46167         careadlinkat: Use common coding style.
46168         * lib/careadlinkat.c: Move gnulib includes after system includes.
46170 2011-04-09  Bruno Haible  <bruno@clisp.org>
46172         careadlinkat: Clarify specification.
46173         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
46174         (careadlinkatcwd): Add comment.
46175         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
46177 2011-04-09  Bruno Haible  <bruno@clisp.org>
46179         areadlinkat: Avoid link error on many platforms.
46180         * modules/areadlinkat (Depends-on): Add areadlink.
46182 2011-04-09  Bruno Haible  <bruno@clisp.org>
46184         allocator, careadlinkat: Fix double-inclusion guard.
46185         * lib/allocator.h: Fix double-inclusion guard.
46186         * lib/careadlinkat.h: Likewise.
46188 2011-04-09  Bruno Haible  <bruno@clisp.org>
46190         relocatable-prog-wrapper: Update after module 'areadlink' changed.
46191         * lib/relocwrapper.c: Update dependencies hierarchy.
46192         * build-aux/install-reloc: Update list of files to be compiled.
46193         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
46194         lib/allocator.[hc].
46196 2011-04-08  Eric Blake  <eblake@redhat.com>
46198         strftime: silence gnulib-tool warning
46199         * modules/strftime-tests (Depends-on): Drop automatic dependency.
46201 2011-04-08  Bruno Haible  <bruno@clisp.org>
46203         verify: Fix syntax error with GCC 4.6 in C++ mode.
46204         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
46205         (HAVE_STATIC_ASSERT): New macro.
46206         (verify_true, verify): Use 'static_assert' if it is supported and
46207         '_Static_assert' is not supported.
46209 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
46211         allocator: New module.
46212         * modules/allocator, lib/allocator.c: New files.
46213         * lib/allocator.h (stdlib_allocator): New decl.
46214         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
46215         Remove.  Do not include <stdlib.h>.
46216         (careadlinkat): Use stdlib_allocator instead of rolling our own.
46217         * modules/careadlinkat (Files): Remove lib/allocator.h.
46218         (Depends-on): Add allocator.
46220         stdlib: let modules use system malloc, realloc
46221         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
46222         if !_GL_USE_STDLIB_ALLOC.
46223         (malloc, realloc): Limit this change to a smaller scope.
46225         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
46226         (malloc, realloc): Don't #undef; no longer needed.
46227         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
46228         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
46229         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
46230         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
46231         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
46232         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
46233         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
46234         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
46236         careadlinkat: rename members to avoid problem
46237         * lib/allocator.h (struct allocator): Rename members from
46238         malloc/realloc to allocate/reallocate, to avoid problems if malloc
46239         and realloc are #define'd.  Reported by Eric Blake in
46240         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
46241         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
46243 2011-04-08  Eric Blake  <eblake@redhat.com>
46245         nonblocking: reduce dependency
46246         * tests/test-nonblocking.c: Only test sockets when in use.
46247         * modules/nonblocking-tests (Depends-on): Drop socket.
46248         (Makefile.am): Link even if sockets are not present.
46249         * modules/pipe2-tests (Makefile.am): Likewise.
46250         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
46252         pipe2: fix O_NONBLOCK support on mingw
46253         * modules/pipe2 (Depends-on): Add nonblocking.
46254         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
46255         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
46256         * tests/test-nonblocking.c (main): Likewise.
46257         * modules/pipe2-tests (Makefile.am): Avoid link failure.
46259         fcntl-h: fix O_ACCMODE on cygwin
46260         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
46261         * lib/fcntl.in.h (O_ACCMODE): Fix it.
46263         pipe-filter: drop O_NONBLOCK workarounds
46264         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
46265         * modules/pipe-filter-ii (Depends-on): Likewise.
46266         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
46268         nonblocking: provide O_NONBLOCK for mingw
46269         * modules/nonblocking (Depends-on): Add open.
46270         (configure.ac): Set new witness macro.
46271         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
46272         * modules/fcntl-h (Makefile.am): Substitute it.
46273         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
46274         nonblocking module is in use.
46275         * lib/nonblocking.c: Adjust portability test.
46276         * lib/open.c (open): Don't let native open see gnulib flag.
46277         * tests/test-fcntl-h.c (main): Enhance test.
46278         * tests/test-open.h (test_open): Likewise.
46279         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
46281         careadlinkat: fix compilation error on mingw
46282         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
46283         within struct allocator.
46285 2011-04-06  Eric Blake  <eblake@redhat.com>
46287         binary-io: relicense under LGPLv2+
46288         * modules/binary-io (License): Relax to LGPLv2+.
46289         Requested for libvirt, and required by pipe2.
46291 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
46293         verify: use _Static_assert if available
46294         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
46295         (verify_true, verify): Use it if available.  This generates better
46296         diagnostics with GCC 4.6.0 and later.
46298 2011-04-05  Bruno Haible  <bruno@clisp.org>
46300         Remove leftover generated .h files after config.status changed.
46302         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
46303         GL_GENERATE_ALLOCA_H.
46304         * modules/alloca-opt (Makefile.am): Remove alloca.h if
46305         GL_GENERATE_ALLOCA_H evaluates to false.
46307         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
46308         GL_GENERATE_ARGZ_H.
46309         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
46310         evaluates to false.
46312         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
46313         GL_GENERATE_BYTESWAP_H.
46314         * modules/byteswap (Makefile.am): Remove byteswap.h if
46315         GL_GENERATE_BYTESWAP_H evaluates to false.
46317         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
46318         GL_GENERATE_ERRNO_H.
46319         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
46320         evaluates to false.
46322         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
46323         GL_GENERATE_FLOAT_H.
46324         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
46325         evaluates to false.
46327         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
46328         GL_GENERATE_FNMATCH_H.
46329         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
46330         GL_GENERATE_FNMATCH_H evaluates to false.
46332         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
46333         GL_GENERATE_GLOB_H.
46334         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
46335         evaluates to false.
46337         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
46338         automake conditional GL_GENERATE_ICONV_H.
46339         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
46340         evaluates to false.
46342         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
46343         GL_GENERATE_NETINET_IN_H.
46344         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
46345         GL_GENERATE_NETINET_IN_H evaluates to false.
46347         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
46348         conditional GL_GENERATE_PTHREAD_H.
46349         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
46350         * modules/pthread (Makefile.am): Remove pthread.h if
46351         GL_GENERATE_PTHREAD_H evaluates to false.
46353         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
46354         GL_GENERATE_SCHED_H.
46355         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
46356         evaluates to false.
46358         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
46359         conditional GL_GENERATE_SELINUX_CONTEXT_H.
46360         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
46361         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
46363         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
46364         GL_GENERATE_STDARG_H.
46365         * modules/stdarg (Makefile.am): Remove stdarg.h if
46366         GL_GENERATE_STDARG_H evaluates to false.
46368         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
46369         GL_GENERATE_STDBOOL_H.
46370         * modules/stdbool (Makefile.am): Remove stdbool.h if
46371         GL_GENERATE_STDBOOL_H evaluates to false.
46373         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
46374         conditional GL_GENERATE_STDDEF_H.
46375         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
46376         * modules/stddef (Makefile.am): Remove stddef.h if
46377         GL_GENERATE_STDDEF_H evaluates to false.
46379         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
46380         GL_GENERATE_STDINT_H.
46381         * modules/stdint (Makefile.am): Remove stdint.h if
46382         GL_GENERATE_STDINT_H evaluates to false.
46384         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
46385         GL_GENERATE_SYSEXITS_H.
46386         * modules/sysexits (Makefile.am): Remove sysexits.h if
46387         GL_GENERATE_SYSEXITS_H evaluates to false.
46389         Reported by Karl Berry and Ralf Wildenhues.
46391 2011-04-05  Bruno Haible  <bruno@clisp.org>
46393         Ensure to rebuild generated .h files when config.status has changed.
46394         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
46395         config.status.
46396         * modules/ctype (Makefile.am): Likewise.
46397         * modules/dirent (Makefile.am): Likewise.
46398         * modules/errno (Makefile.am): Likewise.
46399         * modules/fcntl-h (Makefile.am): Likewise.
46400         * modules/float (Makefile.am): Likewise.
46401         * modules/getopt-posix (Makefile.am): Likewise.
46402         * modules/glob (Makefile.am): Likewise.
46403         * modules/iconv-h (Makefile.am): Likewise.
46404         * modules/inttypes (Makefile.am): Likewise.
46405         * modules/langinfo (Makefile.am): Likewise.
46406         * modules/locale (Makefile.am): Likewise.
46407         * modules/math (Makefile.am): Likewise.
46408         * modules/netdb (Makefile.am): Likewise.
46409         * modules/netinet_in (Makefile.am): Likewise.
46410         * modules/poll-h (Makefile.am): Likewise.
46411         * modules/pthread (Makefile.am): Likewise.
46412         * modules/pty (Makefile.am): Likewise.
46413         * modules/sched (Makefile.am): Likewise.
46414         * modules/search (Makefile.am): Likewise.
46415         * modules/selinux-h (Makefile.am): Likewise.
46416         * modules/signal (Makefile.am): Likewise.
46417         * modules/spawn (Makefile.am): Likewise.
46418         * modules/stdarg (Makefile.am): Likewise.
46419         * modules/stdbool (Makefile.am): Likewise.
46420         * modules/stddef (Makefile.am): Likewise.
46421         * modules/stdint (Makefile.am): Likewise.
46422         * modules/stdio (Makefile.am): Likewise.
46423         * modules/stdlib (Makefile.am): Likewise.
46424         * modules/string (Makefile.am): Likewise.
46425         * modules/strings (Makefile.am): Likewise.
46426         * modules/sys_file (Makefile.am): Likewise.
46427         * modules/sys_ioctl (Makefile.am): Likewise.
46428         * modules/sys_select (Makefile.am): Likewise.
46429         * modules/sys_socket (Makefile.am): Likewise.
46430         * modules/sys_stat (Makefile.am): Likewise.
46431         * modules/sys_time (Makefile.am): Likewise.
46432         * modules/sys_times (Makefile.am): Likewise.
46433         * modules/sys_utsname (Makefile.am): Likewise.
46434         * modules/sys_wait (Makefile.am): Likewise.
46435         * modules/sysexits (Makefile.am): Likewise.
46436         * modules/termios (Makefile.am): Likewise.
46437         * modules/time (Makefile.am): Likewise.
46438         * modules/unistd (Makefile.am): Likewise.
46439         * modules/wchar (Makefile.am): Likewise.
46440         * modules/wctype-h (Makefile.am): Likewise.
46441         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
46443 2011-04-05  Bruno Haible  <bruno@clisp.org>
46445         pipe2: Relicense under LGPLv2+.
46446         * modules/pipe2 (License): Change to LGPLv2+.
46447         Requested by Eric Blake, for libvirt.
46449 2011-04-05  Bruce Korb  <bkorb@gnu.org>
46451         bootstrap: compute gnulib_extra_files after updating build_aux
46452         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
46453         change build_aux or also supply gnulib_extra_files.  Handle correctly.
46455 2011-04-05  Eric Blake  <eblake@redhat.com>
46457         bootstrap: preserve git whitelist item sorting
46458         * build-aux/bootstrap (sort_patterns): New function.
46459         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
46461 2011-04-05  Simon Josefsson  <simon@josefsson.org>
46463         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
46464         sc_space_tab check.
46466 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
46468         areadlink, areadlinkat: rewrite in terms of careadlinkat
46469         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
46470         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
46471         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
46472         (malloc, realloc): Remove #undefs.
46473         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
46474         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
46475         readlink, ssize_t, stdint, unistd.
46476         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
46477         areadlink, stdint.
46479         careadlinkat: new module
46480         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
46481         * modules/careadlinkat: New files, written by me with
46482         a review and feedback from Ben Pfaff in
46483         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
46485 2011-04-01  Bruno Haible  <bruno@clisp.org>
46487         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
46488         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
46489         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
46490         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
46491         Reported by Bruce Korb <bruce.korb@gmail.com>.
46493 2011-04-01  Bruno Haible  <bruno@clisp.org>
46495         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
46496         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
46497         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
46498         * modules/wcpcpy (Depends-on): Add extensions.
46499         * modules/wcpncpy (Depends-on): Likewise.
46500         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
46501         systems.
46502         * doc/posix-functions/wcpncpy.texi: Likewise.
46503         * doc/posix-functions/wcwidth.texi: Likewise.
46505 2011-03-31  Eric Blake  <eblake@redhat.com>
46507         nonblocking: fix mingw test failures
46508         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
46509         non-blocking flag on regular file.
46510         (get_nonblocking_flag): Set errno on invalid fd.
46511         * tests/test-nonblocking.c (main): Avoid test failure on
46512         directories if fchdir is not active.
46513         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
46515 2011-03-31  Bruno Haible  <bruno@clisp.org>
46517         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
46518         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
46519         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
46520         Reported by Simon Josefsson <simon@josefsson.org>.
46522 2011-03-31  Bruno Haible  <bruno@clisp.org>
46523         and Eric Blake  <eblake@redhat.com>
46525         nonblocking: new module
46526         * modules/nonblocking: New module.
46527         * modules/nonblocking-tests: Likewise.
46528         * lib/nonblocking.h: New file.
46529         * lib/nonblocking.c: Likewise.
46530         * tests/test-nonblocking.c: New test.
46531         * lib/ioctl.c (ioctl) [mingw]: Update comment.
46533 2011-03-30  Bruno Haible  <bruno@clisp.org>
46535         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
46536         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
46537         instead of 'printf' format for GCC >= 4.4.
46538         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
46539         (fprintf, printf, vfprintf, vprintf): Declare with
46540         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
46541         the system's vfprintf() function.
46542         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
46544 2011-03-30  Eric Blake  <eblake@redhat.com>
46546         passfd: fix scoping bug
46547         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
46548         before sendmsg/recvmsg.
46550         passfd: standardize coding conventions
46551         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
46552         can be learned at compile time.
46553         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
46554         ifdefs.
46555         (sendfd, recvfd): Follow gnulib code conventions.
46557         passfd: fix incorrect sendmsg arguments
46558         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
46559         incorrect msg_controllen value.
46560         * modules/passfd-tests (Depends-on): Check for alarm.
46561         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
46562         Reported by Bastien ROUCARIES.
46564 2011-03-30  Bruno Haible  <bruno@clisp.org>
46566         c-strcasestr: Relicense under LGPLv2+.
46567         * modules/c-strcasestr (License): Change to LGPLv2+.
46568         Requested by Eric Blake, for libvirt.
46570 2011-03-30  Simon Josefsson  <simon@josefsson.org>
46572         * users.txt: Add libidn2.  Fix libtasn1 link.
46574 2011-03-30  Jim Meyering  <meyering@redhat.com>
46576         tests: readlink* ("",... fails with EINVAL on newer kernels
46577         readlink and readlinkat have typically failed with ENOENT for
46578         the invalid, empty file name,  "".  However, with the advent
46579         of linux-2.6.39, they fail with EINVAL.
46580         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
46581         when operating on the empty file name.
46582         * tests/test-readlink.h (test_readlink): Likewise.
46584 2011-03-29  Bruno Haible  <bruno@clisp.org>
46586         Relicense some modules under LGPLv2+, for libidn2.
46587         * modules/array-mergesort (License): Change to LGPLv2+.
46588         * modules/c-strcaseeq (License): Likewise.
46589         * modules/striconveh (License): Likewise.
46590         * modules/striconveha (License): Likewise.
46591         * modules/uniconv/base (License): Likewise.
46592         * modules/uniconv/u8-conv-from-enc (License): Likewise.
46593         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
46594         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
46595         * modules/unictype/base (License): Likewise.
46596         * modules/unictype/bidiclass-of (License): Likewise.
46597         * modules/unictype/category-M (License): Likewise.
46598         * modules/unictype/category-none (License): Likewise.
46599         * modules/unictype/category-of (License): Likewise.
46600         * modules/unictype/category-test (License): Likewise.
46601         * modules/unictype/category-test-withtable (License): Likewise.
46602         * modules/unictype/combining-class (License): Likewise.
46603         * modules/unictype/joiningtype-of (License): Likewise.
46604         * modules/unictype/scripts (License): Likewise.
46605         * modules/uninorm/base (License): Likewise.
46606         * modules/uninorm/canonical-decomposition (License): Likewise.
46607         * modules/uninorm/composition (License): Likewise.
46608         * modules/uninorm/decompose-internal (License): Likewise.
46609         * modules/uninorm/decomposition-table (License): Likewise.
46610         * modules/uninorm/nfc (License): Likewise.
46611         * modules/uninorm/nfd (License): Likewise.
46612         * modules/uninorm/u32-normalize (License): Likewise.
46613         * modules/unistr/base (License): Likewise.
46614         * modules/unistr/u32-cpy (License): Likewise.
46615         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
46616         * modules/unistr/u32-to-u8 (License): Likewise.
46617         * modules/unistr/u32-uctomb (License): Likewise.
46618         * modules/unistr/u8-check (License): Likewise.
46619         * modules/unistr/u8-mblen (License): Likewise.
46620         * modules/unistr/u8-mbtouc (License): Likewise.
46621         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
46622         * modules/unistr/u8-mbtoucr (License): Likewise.
46623         * modules/unistr/u8-prev (License): Likewise.
46624         * modules/unistr/u8-strlen (License): Likewise.
46625         * modules/unistr/u8-to-u32 (License): Likewise.
46626         * modules/unistr/u8-uctomb (License): Likewise.
46627         * modules/unitypes (License): Likewise.
46628         Requested by Simon Josefsson.
46630 2011-03-29  Simon Josefsson  <simon@josefsson.org>
46632         lib-symbol-visibility: Add a notice.
46633         * modules/lib-symbol-visibility (Notice): New field.
46635 2011-03-29  Bruno Haible  <bruno@clisp.org>
46637         getaddrinfo: Doc fix.
46638         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
46639         section "fixed in Gnulib".
46641 2011-03-28  Simon Josefsson  <simon@josefsson.org>
46643         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
46644         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
46646 2011-03-26  Bruno Haible  <bruno@clisp.org>
46648         unictype/property-byname: Reduce the number of load-time relocations.
46649         * lib/unictype/pr_byname.c: Include <stdlib.h>.
46650         (UC_PROPERTY_INDEX_*): New enumeration values.
46651         (uc_property_byname): Convert an index from the lookup table to an
46652         uc_property_t.
46653         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
46654         values.
46656 2011-03-26  Bruno Haible  <bruno@clisp.org>
46658         unictype/property-byname: Allow omitted word separators and aliases.
46659         * lib/unictype/pr_byname.gperf: Add property names without word
46660         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
46661         for 'space'.
46663 2011-03-26  Bruno Haible  <bruno@clisp.org>
46665         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
46666         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
46667         also hyphens to space.
46668         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
46669         without spaces.
46670         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
46672 2011-03-26  Bruno Haible  <bruno@clisp.org>
46674         unictype/joiningtype-byname: Recognize long names as well.
46675         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
46676         a long name.
46677         * lib/unictype/joiningtype_byname.c: Include <string.h>,
46678         unictype/joiningtype_byname.h.
46679         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
46680         * lib/unictype/joiningtype_byname.gperf: New file.
46681         * modules/unictype/joiningtype-byname (Files): Add
46682         lib/unictype/joiningtype_byname.gperf.
46683         (Depends-on): Add gperf.
46684         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
46685         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
46686         long names.
46688         Tests for module 'unictype/joiningtype-longname'.
46689         * modules/unictype/joiningtype-longname-tests: New file.
46690         * tests/unictype/test-joiningtype_longname.c: New file.
46692         New module 'unictype/joiningtype-longname'.
46693         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
46694         * lib/unictype/joiningtype_longname.c: New file.
46695         * modules/unictype/joiningtype-longname: New file.
46696         * modules/unictype/joiningtype-all (Depends-on): Add
46697         unictype/joiningtype-longname.
46699 2011-03-26  Bruno Haible  <bruno@clisp.org>
46701         unictype/bidiclass-byname: Recognize long names as well.
46702         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
46703         name.
46704         * lib/unictype/bidi_byname.c: Include <string.h>,
46705         unictype/bidi_byname.h.
46706         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
46707         * lib/unictype/bidi_byname.gperf: New file.
46708         * modules/unictype/bidiclass-byname (Files): Add
46709         lib/unictype/bidi_byname.gperf.
46710         (Depends-on): Add gperf.
46711         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
46712         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
46713         long names.
46715         Tests for module 'unictype/bidiclass-longname'.
46716         * modules/unictype/bidiclass-longname-tests: New file.
46717         * tests/unictype/test-bidi_longname.c: New file.
46719         New module 'unictype/bidiclass-longname'.
46720         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
46721         * lib/unictype/bidi_longname.c: New file.
46722         * modules/unictype/bidiclass-longname: New file.
46723         * modules/unictype/bidiclass-all (Depends-on): Add
46724         unictype/bidiclass-longname.
46726 2011-03-26  Bruno Haible  <bruno@clisp.org>
46728         unictype/bidi*: Rename modules.
46729         * modules/unictype/bidiclass-all: Renamed from
46730         modules/unictype/bidicategory-all.
46731         * modules/unictype/bidiclass-name: Renamed from
46732         modules/unictype/bidiclass-name.
46733         (Description): Update.
46734         * modules/unictype/bidiclass-name-tests: Renamed from
46735         modules/unictype/bidicategory-name-tests.
46736         * modules/unictype/bidiclass-byname: Renamed from
46737         modules/unictype/bidicategory-byname.
46738         (Description): Update.
46739         * modules/unictype/bidiclass-byname-tests: Renamed from
46740         modules/unictype/bidicategory-byname-tests.
46741         * modules/unictype/bidiclass-of: Renamed from
46742         modules/unictype/bidicategory-of.
46743         (Description): Update.
46744         * modules/unictype/bidiclass-of-tests: Renamed from
46745         modules/unictype/bidicategory-of-tests.
46746         * modules/unictype/bidiclass-test: Renamed from
46747         modules/unictype/bidicategory-test.
46748         (Description): Update.
46749         * modules/unictype/bidiclass-test-tests: Renamed from
46750         modules/unictype/bidicategory-test-tests.
46751         * modules/unictype/bidicategory-all: New file, a simple redirection.
46752         * modules/unictype/bidicategory-name: Likewise.
46753         * modules/unictype/bidicategory-byname: Likewise.
46754         * modules/unictype/bidicategory-of: Likewise.
46755         * modules/unictype/bidicategory-test: Likewise.
46756         * modules/unictype/property-bidi-* (Dependencies): Update.
46757         * lib/unictype/bidi_*.c: Update comment.
46759 2011-03-26  Bruno Haible  <bruno@clisp.org>
46761         unictype/bidi*: Rename functions, part 2.
46762         * modules/unictype/bidicategory-name (configure.ac): Update required
46763         libunistring version.
46764         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
46766 2011-03-25  Bruno Haible  <bruno@clisp.org>
46768         New module 'unictype/combining-class-all'.
46769         * modules/unictype/combining-class-all: New file.
46771         Tests for module 'unictype/combining-class-byname'.
46772         * modules/unictype/combining-class-byname-tests: New file.
46773         * tests/unictype/test-combiningclass_byname.c: New file.
46775         New module 'unictype/combining-class-byname'.
46776         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
46777         * lib/unictype/combiningclass_byname.c: New file.
46778         * lib/unictype/combiningclass_byname.gperf: New file.
46779         * modules/unictype/combining-class-byname: New file.
46781         Tests for module 'unictype/combining-class-longname'.
46782         * modules/unictype/combining-class-longname-tests: New file.
46783         * tests/unictype/test-combiningclass_longname.c: New file.
46785         New module 'unictype/combining-class-longname'.
46786         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
46787         * lib/unictype/combiningclass_longname.c: New file.
46788         * modules/unictype/combining-class-longname: New file.
46790         Tests for module 'unictype/combining-class-name'.
46791         * modules/unictype/combining-class-name-tests: New file.
46792         * tests/unictype/test-combiningclass_name.c: New file.
46794         New module 'unictype/combining-class-name'.
46795         * lib/unictype.in.h (uc_combining_class_name): New declaration.
46796         * lib/unictype/combiningclass_name.c: New file.
46797         * modules/unictype/combining-class-name: New file.
46799 2011-03-25  Bruno Haible  <bruno@clisp.org>
46801         unictype/combining-class: Rename source files.
46802         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
46803         of unictype/combining.h.
46804         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
46805         Update.
46806         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
46807         * modules/unictype/combining-class (Description): Fix.
46808         (Files, Makefile.am): Update.
46809         * tests/unictype/test-combiningclass.c: Renamed from
46810         tests/unictype/test-combining.c.
46811         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
46813 2011-03-25  Bruno Haible  <bruno@clisp.org>
46815         unictype: Update list of canonical combining classes.
46816         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
46818 2011-03-25  Bruno Haible  <bruno@clisp.org>
46820         unictype/category-byname: Recognize long names as well.
46821         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
46822         a long name.
46823         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
46824         unictype/categ_byname.h.
46825         (UC_CATEGORY_INDEX_*): New enumeration values.
46826         (uc_general_category_byname): Use uc_general_category_lookup and
46827         convert from index to value.
46828         * lib/unictype/categ_byname.gperf: New file.
46829         * modules/unictype/category-byname (Files): Add
46830         lib/unictype/categ_byname.gperf.
46831         (Depends-on): Add gperf.
46832         (Makefile.am): Add rule for generating unictype/categ_byname.h.
46833         * tests/unictype/test-categ_byname.c (main): Test the recognition of
46834         long names.
46836         Tests for module 'unictype/category-longname'.
46837         * modules/unictype/category-longname-tests: New file.
46838         * tests/unictype/test-categ_longname.c: New file.
46840         New module 'unictype/category-longname'.
46841         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
46842         * lib/unictype/categ_longname.c: New file.
46843         * modules/unictype/category-longname: New file.
46844         * modules/unictype/category-all (Depends-on): Add it.
46846 2011-03-25  Bruno Haible  <bruno@clisp.org>
46848         Tests for module 'unictype/category-LC'.
46849         * modules/unictype/category-LC-tests: New file.
46850         * tests/unictype/test-categ_LC.c: New file, automatically generated.
46852         New module 'unictype/category-LC'.
46853         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
46854         (UC_CATEGORY_LC): New declaration.
46855         (UC_CASED_LETTER): New macro.
46856         * lib/gen-uni-tables.c (is_category_LC): New function.
46857         (output_categories): Also handle category LC.
46858         (UC_CATEGORY_MASK_LC): New enumeration value.
46859         (general_category_byname): Also handle category LC.
46860         * lib/unictype/categ_LC.c: New file.
46861         * lib/unictype/categ_LC.h: New file, automatically generated.
46862         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
46863         category LC.
46864         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
46865         * modules/unictype/category-LC: New file.
46866         * modules/unictype/category-byname (Depends-on): Add
46867         unictype/category-LC.
46868         * modules/unictype/category-all (Depends-on): Likewise.
46870 2011-03-25  Eric Blake  <eblake@redhat.com>
46872         xmalloc: revert yesterday's regression
46873         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
46874         realloc's underlying behavior (allowing allocation of zero-size
46875         objects, especially if malloc-gnu is also in use).
46877 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
46879         maint.mk: add missing version to VC-tag
46880         * top/maint.mk: git tag was missing actual tag name; add it.
46882         valgrind: do leak checking, and exit with code 1 on error (not 0)
46883         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
46884         to VALGRIND.
46886 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
46888         posix-modules: say what it does.
46889         * posix-modules: Add a line to the --help output saying what it does.
46891 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
46893         xmalloc: Do not leak if underlying realloc is C99 compatible.
46894         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
46895         This avoids a leak on C99-based systems.  See
46896         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
46898 2011-03-24  Eric Blake  <eblake@redhat.com>
46900         realloc: document portability problem
46901         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
46902         passing 0 size to realloc.
46904 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
46906         doc: update users.txt
46907         * users.txt: Add cvsps, tmpwatch
46909 2011-03-23  Matt Rice  <ratmice@gmail.com>
46911         doc: update users.txt
46912         * users.txt: Add gdb.
46914 2011-03-23  Jim Meyering  <meyering@redhat.com>
46916         doc: update users.txt
46917         Looking through matches up to the following URL (there are still
46918         several more pages), I found several projects that use gnulib:
46919         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
46920         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
46921         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
46923 2011-03-22  Bruno Haible  <bruno@clisp.org>
46925         unictype/bidi*: Rename functions.
46926         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
46927         uc_bidi_class, uc_is_bidi_class): New declarations.
46928         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
46929         uc_bidi_category_byname.
46930         (uc_bidi_category_byname): New function.
46931         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
46932         u_bidi_category_name.
46933         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
46934         (uc_bidi_category_name): New function.
46935         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
46936         uc_bidi_category.
46937         (uc_bidi_category): New function.
46938         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
46939         uc_is_bidi_category. Invoke uc_bidi_class.
46940         (uc_is_bidi_category): New function.
46941         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
46942         instead of uc_bidi_category_byname.
46943         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
46944         instead of uc_bidi_category_name.
46945         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
46946         uc_bidi_category.
46947         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
46948         instead of uc_is_bidi_category.
46950 2011-03-21  Bruno Haible  <bruno@clisp.org>
46952         New module 'unictype/joininggroup-all'.
46953         * modules/unictype/joininggroup-all: New file.
46955         Tests for module 'unictype/joininggroup-of'.
46956         * modules/unictype/joininggroup-of-tests: New file.
46957         * tests/unictype/test-joininggroup_of.c: New file.
46958         * tests/unictype/test-joininggroup_of.h: New file, automatically
46959         generated by gen-uni-tables.
46961         New module 'unictype/joininggroup-of'.
46962         * modules/unictype/joininggroup-of: New file.
46963         * lib/unictype/joininggroup_of.c: New file.
46964         * lib/unictype/joininggroup_of.h: New file, automatically generated by
46965         gen-uni-tables.
46967         Tests for module 'unictype/joininggroup-byname'.
46968         * modules/unictype/joininggroup-byname-tests: New file.
46969         * tests/unictype/test-joininggroup_byname.c: New file.
46971         New module 'unictype/joininggroup-byname'.
46972         * modules/unictype/joininggroup-byname: New file.
46973         * lib/unictype/joininggroup_byname.c: New file.
46974         * lib/unictype/joininggroup_byname.gperf: New file.
46976         Tests for module 'unictype/joininggroup-name'.
46977         * modules/unictype/joininggroup-name-tests: New file.
46978         * tests/unictype/test-joininggroup_name.c: New file.
46980         New module 'unictype/joininggroup-name'.
46981         * modules/unictype/joininggroup-name: New file.
46982         * lib/unictype/joininggroup_name.c: New file.
46983         * lib/unictype/joininggroup_name.h: New file.
46985         New module 'unictype/joiningtype-all'.
46986         * modules/unictype/joiningtype-all: New file.
46988         Tests for module 'unictype/joiningtype-of'.
46989         * modules/unictype/joiningtype-of-tests: New file.
46990         * tests/unictype/test-joiningtype_of.c: New file.
46991         * tests/unictype/test-joiningtype_of.h: New file, automatically
46992         generated by gen-uni-tables.
46994         New module 'unictype/joiningtype-of'.
46995         * modules/unictype/joiningtype-of: New file.
46996         * lib/unictype/joiningtype_of.c: New file.
46997         * lib/unictype/joiningtype_of.h: New file, automatically generated by
46998         gen-uni-tables.
47000         Tests for module 'unictype/joiningtype-byname'.
47001         * modules/unictype/joiningtype-byname-tests: New file.
47002         * tests/unictype/test-joiningtype_byname.c: New file.
47004         New module 'unictype/joiningtype-byname'.
47005         * modules/unictype/joiningtype-byname: New file.
47006         * lib/unictype/joiningtype_byname.c: New file.
47008         Tests for module 'unictype/joiningtype-name'.
47009         * modules/unictype/joiningtype-name-tests: New file.
47010         * tests/unictype/test-joiningtype_name.c: New file.
47012         New module 'unictype/joiningtype-name'.
47013         * modules/unictype/joiningtype-name: New file.
47014         * lib/unictype/joiningtype_name.c: New file.
47016         unictype: Add support for Arabic shaping properties.
47017         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
47018         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
47019         declarations.
47020         (UC_JOINING_GROUP_*): New enumeration values.
47021         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
47022         declarations.
47023         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
47024         (unicode_joining_type): New variable.
47025         (UC_JOINING_GROUP_*): New enumeration values.
47026         (unicode_joining_group): New variable.
47027         (fill_arabicshaping, joining_type_as_c_identifier,
47028         output_joining_type_test, output_joining_type,
47029         joining_group_as_c_identifier, output_joining_group_test,
47030         output_joining_group): New functions.
47031         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
47032         fill_arabicshaping and output_joining_type_test, output_joining_type,
47033         output_joining_group_test, output_joining_group.
47034         Reported by Simon Josefsson.
47036 2011-03-21  Jim Meyering  <meyering@redhat.com>
47038         strftime: fix a bug in yesterday's change
47039         * lib/strftime.c (add): Accommodate width's initial value of -1.
47040         Otherwise, nstrftime would copy uninitialized data into
47041         the result buffer.
47043 2011-03-21  Jim Meyering  <meyering@redhat.com>
47045         tests: add strftime-tests module
47046         * tests/test-strftime.c: New file.
47047         * modules/strftime-tests: New module.
47049 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
47051         strftime: don't assume a byte count fits in 'int'
47052         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
47053         found this problem by static analysis, using gcc -Wstrict-overflow
47054         (GCC 4.5.2, x86-64).  This reported an optimization that depended
47055         on an integer overflow having undefined behavior, but it turns out
47056         that the argument is a size, which might not fit in 'int' anyway,
47058 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
47060         stdio: don't require ignore_value around fwrite
47062         This patch works around libc bug 11959
47063         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
47064         Without this patch, applications must often write
47065         ignore_value (fwrite (...)) even though the ignore_value is
47066         not helpful here.  It's common to write many objects, using
47067         fwrite/printf/etc., and then use ferror to detect output error.
47069         I considered making this patch optional, but decided against it,
47070         because libc is obviously being inconsistent here: there is no
47071         reason libc should insist that user code must inspect fwrite
47072         return's value without also insisting that it inspect printf's,
47073         putchar's, etc.  If user code wants to have a strict style where
47074         all these functions' values are checked (so that ferror need not
47075         be checked), we could add support for that style in a new gnulib
47076         module, but in the meantime it's better to be consistent and to
47077         support common usage.
47079         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
47080         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
47081         that we are compiling in checking mode, and if not C++, and
47082         if not already wrapping fwrite for some other reason.
47083         (fwrite): #define to rpl_fwrite if the latter is defined.
47085 2011-03-20  Bruno Haible  <bruno@clisp.org>
47087         verror: Fix compilation error introduced on 2011-02-13.
47088         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
47089         instead of __attribute__.
47090         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47092 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
47093             Bruno Haible  <bruno@clisp.org>
47095         socklen: do not depend on sys_socket
47096         While trying to modify Emacs to use gnulib's socklen module,
47097         I discovered a circular dependency: socklen depends on sys_socket
47098         and vice versa.  Emacs can use socklen, but it does not need
47099         sys_socket because it has its own substitute for sys/socket.h.
47100         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
47101         gl_TYPE_SOCKLEN_T.
47102         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
47103         gl_PREREQ_SYS_H_SOCKET.
47104         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
47105         gl_PREREQ_SYS_H_SOCKET.
47106         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
47107         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
47108         * modules/socklen (Depends-on): Do not depend on sys_socket.
47109         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
47111 2011-03-20  Jim Meyering  <meyering@redhat.com>
47113         maint.mk: sort file names *after* new transformation
47114         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
47115         prefix would have led to an unwarranted failure in GNU parted.
47116         Sort after that transformation.
47118 2011-03-19  Jim Meyering  <meyering@redhat.com>
47120         maint.mk: fix po-file syntax-check rule
47121         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
47122         Patch by Bruno Haible.
47124 2011-03-19  Bruno Haible  <bruno@clisp.org>
47126         socklen: Update comment.
47127         * m4/socklen.m4: Update comment about platforms.
47129 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47130             Bruno Haible  <bruno@clisp.org>
47132         inet_ntop, inet_pton: Simplify.
47133         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
47134         documented to provide socklen_t and we already depend on sys_socket.
47135         * modules/inet_pton (Depends-on): Likewise.
47136         * lib/arpa_inet.in.h: Adjust comment.
47138 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47139             Bruno Haible  <bruno@clisp.org>
47141         netdb: Simplify.
47142         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
47143         documented to provide socklen_t and we already depend on sys_socket.
47144         * lib/netdb.in.h: Adjust comment.
47146 2011-03-19  Bruno Haible  <bruno@clisp.org>
47148         sys_socket, netdb: Document problem with socklen_t.
47149         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
47150         platforms.
47151         * doc/posix-headers/netdb.texi: Likewise.
47153 2011-03-18  Eric Blake  <eblake@redhat.com>
47155         maint.mk: let po check work in VPATH build
47156         * top/maint.mk (po_file): Allow cfg.mk override.
47157         (sc_po_check): Allow VPATH use.
47158         Reported by Jiri Denemark.
47160 2011-03-16  Jim Meyering  <meyering@redhat.com>
47162         maint.mk: allow fine-grained syntax-check exclusion via Make variables
47163         Before, you would have had to create one .x-sc_ file per rule in order
47164         to exempt offending files.  Now, you may instead use a Make variable --
47165         usually defined in cfg.mk -- whose name identifies the affected rule.
47166         * top/maint.mk (_sc_excl): Define.
47167         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
47168         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
47170 2011-03-13  Bruno Haible  <bruno@clisp.org>
47172         ignore-value tests: Avoid warnings.
47173         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
47174         empty for gcc < 3.4.
47176 2011-03-13  Bruno Haible  <bruno@clisp.org>
47178         passfd: Fix link error on Solaris.
47179         * modules/passfd (Description): Correct.
47180         (Depends-on): Add socketlib.
47181         (Link): New section.
47182         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
47184 2011-03-13  Bruno Haible  <bruno@clisp.org>
47186         passfd: Fix link error on AIX 5.2.
47187         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
47189 2011-03-13  Bruno Haible  <bruno@clisp.org>
47191         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
47192         * lib/sys_socket.in.h: Include <stddef.h>.
47193         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
47194         CMSG_FIRSTHDR. Remove unused variable.
47196 2011-03-13  Bruno Haible  <bruno@clisp.org>
47198         passfd: Fix compilation error on OpenBSD.
47199         * lib/passfd.c: Include <sys/uio.h>.
47201 2011-03-13  Bruno Haible  <bruno@clisp.org>
47203         passfd test: Fix warnings.
47204         * tests/test-passfd.c: Include <sys/wait.h>.
47205         (main): Fix typo.
47207 2011-03-13  Bruno Haible  <bruno@clisp.org>
47209         passfd module, part 4, tweaks.
47210         * tests/test-passfd.c: Reorder includes.
47211         (main): Fix perror and printf calls.
47213 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
47215         passfd module, part 4.
47216         * modules/passfd-tests: New file.
47217         * tests/test-passfd.c: New file.
47219 2011-03-13  Jim Meyering  <meyering@redhat.com>
47221         Makefile: rely on GNU make; derive syntax-check rule names
47222         Rather than requiring that each sc_ rule be listed as a dependent
47223         of "check", use features of GNU make to derive the list.
47224         * Makefile (syntax-check-rules): Define.
47225         (check): Depend on the new variable, not the hard-coded list.
47227 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
47228             Bruno Haible  <bruno@clisp.org>
47230         passfd module, part 3.
47231         * lib/passfd.h (recvfd): Add a flags argument.
47232         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
47233         (recvfd): Add a flags argument.
47234         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
47235         exists.
47236         * modules/passfd (Depends-on): Add cloexec.
47237         Suggested by Eric Blake.
47239 2011-03-13  Bruno Haible  <bruno@clisp.org>
47241         passfd module, part 2, tweaks.
47242         * modules/passfd (Files): Reorder.
47243         (Depends-on): Remove errno.
47244         (Include): Remove <sys/socket.h>, <sys/un.h>.
47245         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
47246         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
47247         specification header. Include <sys/socket.h> always. Don't include
47248         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
47249         (sendfd): Clarify that it sets errno when it fails.
47250         (recvfd): Fix specification.
47252 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
47254         passfd module, part 2.
47255         * modules/passfd: New file.
47256         * lib/passfd.h: New file.
47257         * lib/passfd.c: New file.
47259 2011-03-12  Bruno Haible  <bruno@clisp.org>
47261         wcswidth, mbswidth: Avoid integer overflow.
47262         * lib/wcswidth.c: Include <limits.h>.
47263         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
47264         * lib/mbswidth.c: Include <limits.h>.
47265         (mbsnwidth): Avoid 'int' overflow.
47266         Reported by Jim Meyering.
47268 2011-03-12  Bruno Haible  <bruno@clisp.org>
47270         futimens, utimensat: Avoid endless recursion on Solaris 10.
47271         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
47272         Solaris.
47273         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
47274         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
47276 2011-03-11  Jim Meyering  <meyering@redhat.com>
47278         maint.mk: relax a regexp to accommodate other formatting styles
47279         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
47280         between "ngettext" and the following "(".
47282 2011-03-11  Pádraig Brady  <P@draigBrady.com>
47284         maint.mk: suppress a false positive warning
47285         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
47286         diagnostics are marked with ngettext.
47288 2011-03-10  Eric Blake  <eblake@redhat.com>
47290         wchar: add explicit dependencies, for Tru64
47291         * modules/mbmemcasecoll (Depends-on): Add wchar.
47292         * modules/mbtowc (Depends-on): Likewise.
47293         * modules/vasnprintf (Depends-on): Likewise.
47294         * modules/unistdio/u-printf-args (Depends-on): Likewise.
47295         * modules/wctomb (Depends-on): Likewise.
47296         Reported by Peter O'Gorman.
47298 2011-03-08  Bruno Haible  <bruno@clisp.org>
47300         passfd module, part 1, tweaks.
47301         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
47302         Improve indentation. Improve AC_MSG_CHECKING messages.
47303         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
47304         gl_SOCKET_FAMILIES.
47306 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
47308         passfd module, part 1.
47309         * m4/afunix.m4: New file.
47310         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
47311         sockets.
47313 2011-03-08  Bruno Haible  <bruno@clisp.org>
47315         regex-quote: New API.
47316         * lib/regex-quote.h: Include <stdbool.h>.
47317         (struct regex_quote_spec): New type.
47318         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
47319         New declarations.
47320         (regex_quote_length, regex_quote_copy, regex_quote): Take a
47321         'const struct regex_quote_spec *' argument.
47322         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
47323         (pcre_special): New constant.
47324         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
47325         New functions.
47326         (regex_quote_length, regex_quote_copy, regex_quote): Take a
47327         'const struct regex_quote_spec *' argument.
47328         * modules/regex-quote (Depends-on): Add stdbool.
47329         * tests/test-regex-quote.c (check): Update for new API. Add test for
47330         anchored results.
47331         * NEWS: Mention the API change.
47332         Reported by Reuben Thomas and Eric Blake.
47334 2011-03-06  Bruno Haible  <bruno@clisp.org>
47336         regex-quote: Fix creation of POSIX extended regular expressions.
47337         * lib/regex-quote.c (ere_special): Add grouping and alternation
47338         operators.
47340 2011-03-05  Bruno Haible  <bruno@clisp.org>
47342         doc: Improve doc regarding autopoint vs. gnulib.
47343         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
47344         disable autopoint while running autoreconf.
47345         Suggested by Ralf Wildenhues.
47347 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47349         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
47350         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
47352 2011-03-03  Bruce Korb  <bkorb@gnu.org>
47354         parse-duration: remove xalloc.h dependency
47355         * lib/parse-duration.c (parse_period): handle NULL return from
47356         strdup instead of calling xstrdup().
47357         * modules/parse-duration: remove "xalloc" dependency
47359 2011-03-03  Matthew Booth  <mbooth@redhat.com>
47361         bootstrap: honor m4_base when running aclocal
47362         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
47364 2011-03-02  Jim Meyering  <meyering@redhat.com>
47366         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
47367         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
47368         on request from Matt Booth.
47370 2011-03-01  Eric Blake  <eblake@redhat.com>
47372         test-link: work on Hurd
47373         * tests/test-link.h (test_link): Hurd rejects linking directories
47374         with EISDIR instead of the POSIX-mandated EPERM.
47376 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
47378         stdio: simplify by moving files to printf-posix, sigpipe
47379         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
47380         since this symbol is needed only if printf is replaced.
47381         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
47382         Require gl_ASM_SYMBOL_PREFIX.
47383         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
47384         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
47385         (Depends-on): Add 'raise'.
47386         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
47387         * modules/stdio (Files): Remove lib/stdio-write.c,
47388         m4/asm-underscore.m4.
47389         (Depends-on): Remove 'raise'.
47391         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
47392         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
47393         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
47394         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
47396 2011-02-28  Bruno Haible  <bruno@clisp.org>
47398         localcharset: Assume ANSI C behaviour of free().
47399         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
47400         calling free().
47401         Suggested by Simon Josefsson <simon@josefsson.org>.
47403 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
47404             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
47405             Bruno Haible  <bruno@clisp.org>  (tiny change)
47407         On Cygwin, use /proc file system instead of win32 API.
47408         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
47409         Win32 file names.
47410         (DllMain): Simplify by removing Cygwin specific code.
47411         (find_shared_library_fullname): Use Linux specific implementation also
47412         for Cygwin.
47413         (get_shared_library_fullname): Update accordingly.
47414         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
47415         Win32 file names.
47416         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
47417         Cygwin specific code.
47419 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
47420             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
47422         Fix OpenMP flag detection for various Fortran compilers.
47423         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
47424         OpenMP-conditional compilation construct, to force compile
47425         failure with missing OpenMP flag.
47426         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
47428 2011-02-25  Eric Blake  <eblake@redhat.com>
47430         strstr: expand test coverage
47431         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
47432         compilation.
47433         * tests/test-memmem.c (main): Duplicate tests.
47434         * tests/test-strcasestr.c (main): Likewise.
47435         * tests/test-c-strcasestr.c (main): Likewise.
47437 2011-02-25  Jim Meyering  <meyering@redhat.com>
47439         maint.mk: detect missing-NL-at-EOF, too
47440         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
47441         it also detects when a file lacks a newline at EOF.
47442         (require_exactly_one_NL_at_EOF_): Renamed from
47443         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
47444         since people may well have .x-sc_... file names tied to the
47445         existing name.  Suggested by Eric Blake.
47447 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
47449         dirname: move m4/dos.m4 functionality into lib/dosname.h
47451         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
47452         extracts symbols from it, puts them into config.h; but it's much
47453         easier to use the symbols directly.  filename.h already does this,
47454         but it disagrees with dos.m4 in some respects.  This patch
47455         introduces a different include file dosname.h that packages up
47456         dos.m4, and then later we can work on merging filename.h and
47457         dosname.h.  Applications that need only the easy-to-configure
47458         symbols should consider including dosname.h rather than dirname.h.
47459         * NEWS: Mention incompatible changes.
47460         * m4/dos.m4: Remove.
47461         * lib/dosname.h, modules/dosname: New files.
47462         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
47463         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
47464         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
47465         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
47466         Include dosname.h, not dirname.h.
47467         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
47468         Include dosname.h, for definitions of symbols like ISSLASH
47469         that used to be in config.h.
47470         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
47471         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
47472         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
47473         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
47474         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
47475         * modules/rmdir (Files): Likewise.
47476         * modules/stat (Files): Likewise.
47477         * modules/unlink (Files): Likewise.
47478         * modules/dirname-lgpl (Depends-on): Add dosname.
47479         * modules/lstat (Depends-on): Likewise.
47480         * modules/openat (Depends-on): Likewise.
47481         * modules/rmdir (Depends-on): Likewise.
47482         * modules/savewd (Depends-on): Likewise.
47483         * modules/stat (Depends-on): Likewise.
47484         * modules/unlink (Depends-on): Likewise.
47485         * modules/openat (Depends-on): Remove dirname-lgpl.
47486         * modules/savewd (Depends-on): Likewise.
47487         * tests/test-dirname.c: Do not use removed symbols like
47488         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
47489         the remaining symbols, e.g., ISSLASH ('\\').
47491 2011-02-25  Eric Blake  <eblake@redhat.com>
47493         strstr: revert patches that introduced bug and pessimization
47494         * lib/str-two-way.h: Add another reference.
47495         (two_way_short_needle, two_way_long_needle): Revert changes from
47496         2011-02-24; they pessimize search speed.
47497         (critical_factorization): Partially revert changes from
47498         2010-06-22; they violate the requirement that the left half of the
47499         needle be smaller than the period of the needle.
47501 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47503         filenamecat: remove unnecessary dependency on dirname-lgpl
47504         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
47505         is no direct dependency, just an indirect one via filenamecat-lgpl.
47507         remove: remove unnecessary use of m4/dos.m4
47508         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
47509         * modules/remove (FILES): Remove m4/dos.m4.
47511         * lib/openat-proc.c: Don't include dirname.h; not needed.
47513         backupfile: remove unnecessary use of m4/dos.m4
47514         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
47515         of its symbols are used by the backupfile code.  backupfile.c does
47516         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
47517         for the rare case of programs that want all their backup file
47518         names to live within 8+3 limits, and dos.m4 doesn't address that.
47519         * modules/backupfile (Files): Remove m4/dos.m4.
47521 2011-02-24  Jim Meyering  <meyering@redhat.com>
47523         strstr: fix a bug whereby strstr would mistakenly return NULL
47524         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
47525         in period calculation.
47526         (two_way_long_needle): Likewise.
47527         The original problem was reported by Mike Stump in
47528         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
47529         Ralf Wildenhues provided the short needle and haystack.
47530         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
47531         Add a more involved test to trigger the bug in two_way_long_needle.
47533 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
47535         gnulib-tool: remove use of bold display in help screen
47536         * gnulib-tool (func_usage): Do not use bold display anymore in the
47537         help screen.  That was just meant to be a temporary emphasis for a
47538         backward-incompatible change.
47540 2011-02-23  Bruno Haible  <bruno@clisp.org>
47542         Fix misindentation of preprocessor directives.
47543         * lib/argp-namefrob.h: Reindent preprocessor directives.
47544         * lib/getopt_int.h (struct _getopt_data): Likewise.
47545         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
47546         * lib/vasnprintf.c (decode_long_double): Likewise.
47547         * tests/test-argmatch.c: Insert blank lines, for clarity.
47548         * tests/test-exclude.c: Likewise.
47550 2011-02-22  Bruno Haible  <bruno@clisp.org>
47552         ioctl: Fix for MacOS X in 64-bit mode.
47553         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
47554         value.
47555         Suggested by Eric Blake.
47556         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
47558 2011-02-22  Jim Meyering  <meyering@redhat.com>
47560         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
47561         * Makefile (sc_cpp_indent_check): Don't limit the check to files
47562         in lib/.
47564 2011-02-22  Eric Blake  <eblake@redhat.com>
47566         maint: avoid any CDPATH issue
47567         * Makefile (sc_cpp_indent_check): Anchor cd argument.
47569         maint: adjust cpp indentation for my modules, as well
47570         * Makefile (sc_cpp_indent_check): Add my name.
47571         * lib/fbufmode.c: Filter through cppi.
47572         * lib/fpurge.c: Likewise.
47573         * lib/freadable.c: Likewise.
47574         * lib/freading.c: Likewise.
47575         * lib/fwritable.c: Likewise.
47576         * lib/fwriting.c: Likewise.
47577         * lib/sigaction.c: Likewise.
47579 2011-02-22  Jim Meyering  <meyering@redhat.com>
47581         maint: adjust cpp indentation to reflect nesting depth
47582         I.e., in a block of code that begins with an unnested "#if",
47583         put one space between the "#" in column 1 and following token.
47584         For example,
47585         -#include <sys/vfs.h>
47586         +# include <sys/vfs.h>
47587         Do this only in .c files that are part of a module I maintain.
47588         * lib/linkat.c: Filter through cppi.
47589         * lib/nanosleep.c: Likewise.
47590         * lib/openat.c: Likewise.
47591         * lib/openat-die.c: Likewise.
47592         * lib/dup3.c: Likewise.
47593         * lib/fchownat.c: Likewise.
47594         * lib/flock.c: Likewise.
47595         * lib/fsync.c: Likewise.
47596         * lib/fts.c: Likewise.
47597         * lib/getpass.c: Likewise.
47598         * lib/gettimeofday.c: Likewise.
47599         * lib/userspec.c: Likewise.
47600         * Makefile (sc_cpp_indent_check): New rule, to check this.
47602 2011-02-22  Bruno Haible  <bruno@clisp.org>
47604         New module 'wctomb'.
47605         * lib/stdlib.in.h (wctomb): New declaration.
47606         * lib/wctomb.c: New file.
47607         * lib/wctomb-impl.h: New file.
47608         * m4/wctomb.m4: New file.
47609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
47610         REPLACE_WCTOMB.
47611         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
47612         REPLACE_WCTOMB.
47613         * modules/wctomb: New file.
47614         * tests/test-stdlib-c++.cc: Test signature of wctomb.
47615         * doc/posix-functions/wctomb.texi: Mention the new module.
47616         * modules/wctob (Depends-on): Add wctomb.
47618 2011-02-22  Bruno Haible  <bruno@clisp.org>
47620         New module 'mbtowc'.
47621         * lib/stdlib.in.h (mbtowc): New declaration.
47622         * lib/mbtowc.c: New file.
47623         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
47624         * m4/mbtowc.m4: New file.
47625         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
47626         REPLACE_MBTOWC.
47627         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
47628         REPLACE_MBTOWC.
47629         * modules/mbtowc: New file.
47630         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
47631         * doc/posix-functions/mbtowc.texi: Mention the new module.
47632         * modules/btowc (Depends-on): Add mbtowc.
47634 2011-02-22  Bruno Haible  <bruno@clisp.org>
47636         wcrtomb: Add more tests for native Windows platforms.
47637         * tests/test-wcrtomb-w32-1.sh: New file.
47638         * tests/test-wcrtomb-w32-2.sh: New file.
47639         * tests/test-wcrtomb-w32-3.sh: New file.
47640         * tests/test-wcrtomb-w32-4.sh: New file.
47641         * tests/test-wcrtomb-w32-5.sh: New file.
47642         * tests/test-wcrtomb-w32.c: New file.
47643         * modules/wcrtomb-tests (Files): Add them.
47644         (Makefile.am): Arrange to run these tests.
47645         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
47646         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
47648 2011-02-20  Bruno Haible  <bruno@clisp.org>
47650         wcrtomb: Enhance test.
47651         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
47653 2011-02-20  Bruno Haible  <bruno@clisp.org>
47655         mbrtowc: Tiny optimization.
47656         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
47658 2011-02-20  Jim Meyering  <meyering@redhat.com>
47660         test-exclude.c: remove unmatched #endif
47661         * tests/test-exclude.c: Remove stray #endif, left over from
47662         the change of a week ago.
47664 2011-02-19  Jim Meyering  <meyering@redhat.com>
47666         git-version-gen: skip "-dirty" check when appropriate
47667         * build-aux/git-version-gen: Don't run any git commands when the
47668         version string comes from .tarball-version.  Prior to this, we
47669         would run git update-index --refresh even from a just-unpacked
47670         tarball directory, and that could affect a .git/ directory in a
47671         parent of the build directory.  Reported by Mike Frysinger.
47673 2011-02-19  Bruno Haible  <bruno@clisp.org>
47675         unictype/property-byname: Reduce the size of the 'data' segment.
47676         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
47678 2011-02-19  Bruno Haible  <bruno@clisp.org>
47680         unictype/scripts: Reduce the size of the 'data' segment.
47681         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
47682         '%pic'.
47683         * lib/unictype/scripts_byname.gperf: Regenerated.
47685 2011-02-19  Bruno Haible  <bruno@clisp.org>
47687         stdint: Update documentation.
47688         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
47690 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
47692         stdint: omit redundant check for wchar.h
47693         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
47694         always tests whether wchar.h exists, so remove the now-redundant test.
47696 2011-02-18  Bruno Haible  <bruno@clisp.org>
47698         stdint: Cut dependency to module 'wchar'.
47699         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
47700         include the necessary prerequisites.
47701         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
47702         * modules/stdint (Depends-on): Remove wchar.
47703         (Makefile.am): Substitute HAVE_WCHAR_H.
47704         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
47706 2011-02-18  Eric Blake  <eblake@redhat.com>
47708         longlong: skip, rather than fail, on cross-compilation
47709         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
47710         when cross-compiling; regression from 2011-02-16.
47712 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
47714         * NEWS: Mention 2011-02-08 change to stdlib.
47716 2011-02-17  Bruno Haible  <bruno@clisp.org>
47718         getloadavg: Add comments about platforms.
47719         * m4/getloadavg.m4: Add comment.
47720         * lib/getloadavg.c: Likewise.
47722 2011-02-17  Bruno Haible  <bruno@clisp.org>
47724         getloadavg: Fix link error on Solaris 2.6.
47725         * modules/getloadavg (Link): New section.
47726         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
47727         linking test-getloadavg.
47728         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
47729         getloadavg.
47731 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
47733         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
47734         It was 'int', but this doesn't match the IRIX 6.5 manual.
47735         Suggested by Bruno Haible in
47736         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
47738 2011-02-17  Bruno Haible  <bruno@clisp.org>
47740         havelib: Fix comments.
47741         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
47742         change.
47744 2011-02-17  Bruno Haible  <bruno@clisp.org>
47746         havelib: Update config.rpath.
47747         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
47749 2011-02-17  Bruno Haible  <bruno@clisp.org>
47751         getloadavg test: Add some plausibility checks.
47752         * tests/test-getloadavg.c (check_avg): Print a warning when the value
47753         is improbable.
47755 2011-02-16  Eric Blake  <eblake@redhat.com>
47757         maintainer-makefile: make syntax-check a no-op from tarballs
47758         * top/maint.mk (no-vc-detected): New rule.
47759         (local-checks-available): Use it to avoid hanging if someone tries
47760         'make syntax-check' from a tarball.  Also append to any non-syntax
47761         checks already defined in cfg.mk.
47763 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
47765         longlong: tune, particularly for common case of c99
47767         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
47768         or running anything if c99, or if unsigned long long int does not
47769         work.  In either case, we know the answer without further tests.
47770         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
47771         it at most once, and use its results for both long long int and
47772         unsigned long long int.  This is more likely to be efficient in
47773         the common case where the program wants to check for both long
47774         long int and unsigned long long int.
47775         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
47776         since the answer is already known.
47778 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
47780         getloadavg: set errno
47781         * lib/getloadavg.c: Set errno when returning -1.  If no other
47782         error number looks appropriate, set it to ENOSYS if the getloadavg
47783         looks like it can't possibly ever work, ENOTSUP otherwise.
47784         Suggested by Bruno Haible in
47785         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
47787         getloadavg: trim unused parts and speed up 'configure'
47788         * NEWS: Document this.
47789         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
47790         always compiled if getloadavg is absent.
47791         Move test code to ...
47792         * tests/test-getloadavg.c: New file, containing previous
47793         contents of test from lib/getloadavg.c.  It also contains
47794         suggestions by Bruno Haible in
47795         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
47796         * modules/getloadavg-tests: New file.
47797         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
47798         Do tests in the same order as they're needed for getloadavg.c.
47799         Omit setgid-related tests that generate symbols KMEM_GROUP,
47800         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
47801         Do only the tests that are needed to see whether the system has
47802         getloadavg, moving the other tests into ...
47803         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
47804         NLIST_NAME_UNION; nobody should be using it.  Do not define
47805         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
47806         relevant, as the user of this module shouldn't care how getloadavg
47807         is implemented.
47809         getloadavg: omit unused var
47810         * lib/getloadavg.c (getloadavg): Omit unused local variable.
47812 2011-02-15  Jim Meyering  <meyering@redhat.com>
47814         doc: update users.txt
47815         * users.txt: Update iwhd's URL.
47817 2011-02-13  Bruno Haible  <bruno@clisp.org>
47819         Consistent macro naming for macros that use GCC __attribute__.
47820         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
47821         _ATTRIBUTE_NONNULL_.
47822         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
47823         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
47824         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
47825         ATTRIBUTE_DEPRECATED.
47826         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
47827         ATTRIBUTE_NORETURN.
47828         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
47829         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
47830         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
47831         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
47832         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
47833         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
47834         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
47835         ATTRIBUTE_SENTINEL.
47836         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
47837         ATTRIBUTE_RETURN_CHECK.
47838         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
47839         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
47840         ATTRIBUTE_NORETURN.
47841         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
47842         Reported by Paul Eggert.
47844 2011-02-13  Bruno Haible  <bruno@clisp.org>
47846         Don't interfere with a program's definition of __attribute__.
47847         * lib/argp.h (__attribute__): Remove definition.
47848         (_GL_ATTRIBUTE_FORMAT): New macro.
47849         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
47850         * lib/argp-fmtstream.h (__attribute__): Remove definition.
47851         (_GL_ATTRIBUTE_FORMAT): New macro.
47852         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
47853         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
47854         GCC 3 or newer.
47855         * lib/error.h (__attribute__): Remove definition.
47856         (_GL_ATTRIBUTE_FORMAT): New macro.
47857         (error, error_at_line): Use it.
47858         * lib/hash.h (__attribute__): Remove definition.
47859         (ATTRIBUTE_WUR): Update definition. Define always.
47860         * lib/openat.h (__attribute__): Remove definition.
47861         (ATTRIBUTE_NORETURN): Update definition. Define always.
47862         * lib/sigpipe-die.h (__attribute__): Remove definition.
47863         (ATTRIBUTE_NORETURN): Update definition. Define always.
47864         * lib/vasnprintf.h (__attribute__): Remove definition.
47865         (_GL_ATTRIBUTE_FORMAT): New macro.
47866         (asnprintf, vasnprintf): Use it.
47867         * lib/xalloc.h (__attribute__): Remove definition.
47868         (ATTRIBUTE_NORETURN): Update definition. Define always.
47869         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
47870         * lib/xmemdup0.h (__attribute__): Remove definition.
47871         (ATTRIBUTE_NORETURN): Update definition. Define always.
47872         * lib/xprintf.h (__attribute__): Remove definition.
47873         (_GL_ATTRIBUTE_FORMAT): New macro.
47874         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
47875         * lib/xstrtol.h (__attribute__): Remove definition.
47876         (ATTRIBUTE_NORETURN): Update definition. Define always.
47877         * lib/xvasprintf.h (__attribute__): Remove definition.
47878         (_GL_ATTRIBUTE_FORMAT): New macro.
47879         (xasprintf, xvasprintf): Use it.
47880         * tests/test-argmatch.c (__attribute__): Remove definition.
47881         (ATTRIBUTE_NORETURN): Update definition. Define always.
47882         * tests/test-exclude.c (__attribute__): Remove definition.
47883         (ATTRIBUTE_NORETURN): Update definition. Define always.
47884         Reported by Paul Eggert.
47886 2011-02-13  Bruno Haible  <bruno@clisp.org>
47888         mbrtowc: Add more tests for native Windows platforms.
47889         * tests/test-mbrtowc-w32-1.sh: New file.
47890         * tests/test-mbrtowc-w32-2.sh: New file.
47891         * tests/test-mbrtowc-w32-3.sh: New file.
47892         * tests/test-mbrtowc-w32-4.sh: New file.
47893         * tests/test-mbrtowc-w32-5.sh: New file.
47894         * tests/test-mbrtowc-w32.c: New file.
47895         * modules/mbrtowc-tests (Files): Add them.
47896         (Makefile.am): Arrange to run these tests.
47897         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
47898         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
47900 2011-02-13  Bruno Haible  <bruno@clisp.org>
47902         mbrtowc: Work around native Windows bug.
47903         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
47904         guess when no suitable locale for testing was found.
47905         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
47907 2011-02-13  Bruno Haible  <bruno@clisp.org>
47909         mbsinit: Work around mingw bug.
47910         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
47911         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
47912         Windows.
47913         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
47915 2011-02-13  Bruno Haible  <bruno@clisp.org>
47917         mbsinit: Don't crash for a NULL argument.
47918         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
47919         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
47921 2011-02-13  Bruno Haible  <bruno@clisp.org>
47923         Don't interfere with a program's definition of __attribute__.
47924         * lib/stdio.in.h (__attribute__): Remove definition.
47925         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
47926         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
47927         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
47928         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
47929         * lib/string.in.h (__attribute__): Remove definition.
47930         Reported by Paul Eggert.
47932 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
47934         stdlib: don't get in the way of non-GCC __attribute__
47935         See thread starting at
47936         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
47937         Revert previous stdlib change, installing the following instead:
47938         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
47939         to get in the way of a non-GCC compiler that supports __attribute__.
47940         (_GL_ATTRIBUTE_RETURN): New macro.
47941         (_Exit): Use it instead of __attribute__.
47943 2011-02-12  Bruno Haible  <bruno@clisp.org>
47945         quotearg test: Avoid test failure on mingw.
47946         * tests/test-quotearg.sh: Convert the locale identifier from native
47947         Windows syntax to Unix syntax.
47949 2011-02-12  Bruno Haible  <bruno@clisp.org>
47951         setlocale: Prefer gnulib's override over libintl's override.
47952         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
47953         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
47954         GNULIB_defined_setlocale is set.
47956 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
47958         stdlib: support non-GCC __attribute__
47960         Fix a serious and tricky problem encountered when attempting to
47961         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
47962         5.5, but it crashed due to memory corruption on Solaris 10 with
47963         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
47964         bits that are otherwise zero.  This tagging is optional inside
47965         Emacs but is preferred and is used when __attribute__ ((__aligned
47966         (8))) works, as it does with both recent-enough GCC and with Sun C
47967         5.11.  However, Sun C 5.11 is not GCC and does not #define
47968         __GNUC__ and __GNUC_MINOR__.
47970         When I added the getloadavg module to Emacs, it brought in
47971         stdlib.in.h, which contained this fragment:
47973            #ifndef __attribute__
47974            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
47975            #  define __attribute__(Spec)   /* empty */
47976            # endif
47977            #endif
47979         When files that include <stdlib.h> were compiled with Sun C 5.11,
47980         the above code disabled __attribute__ ((__aligned (8))), which
47981         caused variables to not be properly aligned, which eventually led
47982         to the pointer corruption mentioned above.  (This was a bit hard
47983         to diagnose, unfortunately.)
47985         Several "#define __attribute__(X) /* empty */" code snippets need
47986         to be eradicated from Gnulib to work with non-GCC compilers that
47987         support __attribute__.  The Autoconf way to do this is to test for
47988         each kind of attribute that we want support for, and selectively
47989         enable that in source code.
47991         Fix this problem just for stdlib.h, by adding a test for the
47992         __noreturn__ attribute, and change stdlib.in.h to use that test
47993         when needed.  This technique can be easily generalized to the
47994         other *.in.h files and attributes, and a similar technique can be
47995         used for *.h and *.c files.  This patch is enough to solve the
47996         problem for Emacs + getloadavg, and I thought I'd publish it for
47997         feedback before undertaking further, similar fixes in other
47998         modules.
48000         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
48001         because it's not needed for stdlib.h.  It merely substitutes the
48002         value directly into stdlib.h.  We may well need to #define it, or
48003         similar symbols, for other modules, but it's nice to also have an
48004         option to not #define it for applications like Emacs that do not
48005         need it.
48007         * lib/stdlib.in.h (__attribute__): Do not #define.
48008         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
48009         be defined only if the _Exit module is also used.
48010         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
48011         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
48012         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
48013         platforms.
48014         * modules/_Exit (Files): Add m4/attribute.m4.
48015         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
48016         * m4/attribute.m4: New file.
48018 2011-02-12  Bruno Haible  <bruno@clisp.org>
48020         wcsrtombs: Work around bug on native Windows.
48021         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
48022         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
48023         instead of len.
48024         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
48026 2011-02-12  Bruno Haible  <bruno@clisp.org>
48028         mbsrtowcs: Work around bug on native Windows.
48029         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
48030         against mingw bug.
48031         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
48033 2011-02-12  Bruno Haible  <bruno@clisp.org>
48035         Avoid setlocale bugs in tests.
48036         * modules/btowc (Dependencies): Add setlocale.
48037         * modules/c-strcase (Dependencies): Likewise.
48038         * modules/mbmemcasecmp (Dependencies): Likewise.
48039         * modules/mbmemcasecoll (Dependencies): Likewise.
48040         * modules/mbrtowc (Dependencies): Likewise.
48041         * modules/mbscasecmp (Dependencies): Likewise.
48042         * modules/mbscasestr (Dependencies): Likewise.
48043         * modules/mbschr (Dependencies): Likewise.
48044         * modules/mbscspn (Dependencies): Likewise.
48045         * modules/mbsinit (Dependencies): Likewise.
48046         * modules/mbsncasecmp (Dependencies): Likewise.
48047         * modules/mbsnrtowcs (Dependencies): Likewise.
48048         * modules/mbspbrk (Dependencies): Likewise.
48049         * modules/mbspcasecmp (Dependencies): Likewise.
48050         * modules/mbsrchr (Dependencies): Likewise.
48051         * modules/mbsrtowcs (Dependencies): Likewise.
48052         * modules/mbsspn (Dependencies): Likewise.
48053         * modules/mbsstr (Dependencies): Likewise.
48054         * modules/nl_langinfo (Dependencies): Likewise.
48055         * modules/quotearg (Dependencies): Likewise.
48056         * modules/unicase/locale-language (Dependencies): Likewise.
48057         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
48058         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
48059         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
48060         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
48061         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
48062         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
48063         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
48064         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
48065         * modules/vasnprintf-posix (Dependencies): Likewise.
48066         * modules/wcrtomb (Dependencies): Likewise.
48067         * modules/wcsnrtombs (Dependencies): Likewise.
48068         * modules/wcsrtombs (Dependencies): Likewise.
48070 2011-02-12  Bruno Haible  <bruno@clisp.org>
48072         setlocale: Workaround native Windows bug.
48073         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
48074         succeeds but sets LC_CTYPE to "C", report a failure.
48075         * tests/test-setlocale2.sh: New file.
48076         * tests/test-setlocale2.c: New file.
48077         * modules/setlocale-tests (Files): Add the new files.
48078         (Makefile.am): Enable test-setlocale2.sh test.
48079         * doc/posix-functions/setlocale.texi: Mention workaround.
48081 2011-02-11  Bruno Haible  <bruno@clisp.org>
48083         Tests for module 'setlocale'.
48084         * modules/setlocale-tests: New file.
48085         * tests/test-setlocale1.sh: New file.
48086         * tests/test-setlocale1.c: New file.
48088         New module 'setlocale'.
48089         * lib/locale.in.h (setlocale): New declaration.
48090         * lib/setlocale.c: New file, based on
48091         gettext/gettext-runtime/intl/setlocale.c.
48092         * m4/setlocale.m4: New file.
48093         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
48094         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
48095         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
48096         REPLACE_SETLOCALE.
48097         * modules/setlocale: New file.
48098         * tests/test-locale-c++.cc: Test the declaration of setlocale.
48099         * doc/posix-functions/setlocale.texi: Mention the new module.
48101 2011-02-11  Bruno Haible  <bruno@clisp.org>
48103         Prepare for locale dependent tests on mingw.
48104         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
48105         because it has the wrong locale encoding.
48106         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
48107         French_France.1252 instead of "fr".
48108         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
48109         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
48110         because it has the wrong locale encoding.
48111         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
48112         native Windows, try Turkish_Turkey.65001.
48113         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
48114         Chinese_China.54936.
48116         Prepare for locale dependent tests on mingw.
48117         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
48118         differently.
48119         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
48120         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
48121         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48122         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48124 2011-02-11  Eric Blake  <eblake@redhat.com>
48126         strptime: avoid compiler warnings
48127         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
48128         compiler warnings about dead code.
48129         Reported by Daniel P. Berrange.
48131 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
48133         doc: update users.txt
48134         * users.txt: Add rcs.
48136 2011-02-10  John W. Eaton  <jwe@gnu.org>
48138         doc: update users.txt
48139         * users.txt: Add octave.
48141 2011-02-10  Jim Meyering  <meyering@redhat.com>
48143         doc: update users.txt
48144         * users.txt: Add iwhd.
48146 2011-02-09  Bruno Haible  <bruno@clisp.org>
48148         gnulib-tool: Make copyright notice adjustment more robust.
48149         * gnulib-tool (func_import): In sed_transform_main_lib_file,
48150         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
48151         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
48152         License".
48153         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
48155 2011-02-06  Bruno Haible  <bruno@clisp.org>
48157         New module 'towctrans'.
48158         * modules/towctrans: New file.
48159         * lib/wctype.in.h (towctrans): New declaration.
48160         * lib/towctrans.c: New file.
48161         * lib/towctrans-impl.h: New file.
48162         * m4/towctrans.m4: New file.
48163         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
48164         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
48165         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
48166         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
48167         * doc/posix-functions/towctrans.texi: Mention the new module.
48169 2011-02-06  Bruno Haible  <bruno@clisp.org>
48171         New module 'wctrans'.
48172         * modules/wctrans: New file.
48173         * lib/wctype.in.h (wctrans): New declaration.
48174         * lib/wctrans.c: New file.
48175         * lib/wctrans-impl.h: New file.
48176         * m4/wctrans.m4: New file.
48177         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
48178         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
48179         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
48180         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
48181         * doc/posix-functions/wctrans.texi: Mention the new module.
48183 2011-02-06  Bruno Haible  <bruno@clisp.org>
48185         New module 'iswctype'.
48186         * modules/iswctype: New file.
48187         * lib/wctype.in.h (iswctype): New declaration.
48188         * lib/iswctype.c: New file.
48189         * lib/iswctype-impl.h: New file.
48190         * m4/iswctype.m4: New file.
48191         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
48192         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
48193         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
48194         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
48195         * doc/posix-functions/iswctype.texi: Mention the new module and the
48196         HP-UX 11.00 problem.
48198 2011-02-06  Bruno Haible  <bruno@clisp.org>
48200         New module 'wctype'.
48201         * modules/wctype: Change to represent the wctype() substitute.
48202         * lib/wctype.in.h (wctype): New declaration.
48203         * lib/wctype.c: New file.
48204         * lib/wctype-impl.h: New file.
48205         * m4/wctype.m4: New file.
48206         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
48207         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
48208         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
48209         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
48210         * doc/posix-functions/wctype.texi: Mention the new module and the
48211         HP-UX 11.00 problem.
48213 2011-02-06  Bruno Haible  <bruno@clisp.org>
48215         wctype-h: Ensure wctype_t and wctrans_t are defined.
48216         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
48217         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
48218         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
48219         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
48220         HAVE_WCTRANS_T.
48221         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
48223 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
48225         flock: fix license typo
48227         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
48228         omitted.
48230 2011-02-08  Bruno Haible  <bruno@clisp.org>
48232         Split large sed scripts, for HP-UX sed.
48233         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
48234         to avoid HP-UX limit of 99 commands, in the near future.
48235         * modules/stdlib (Makefile.am): Likewise.
48236         * modules/unistd (Makefile.am): Likewise.
48237         * modules/wchar (Makefile.am): Likewise.
48238         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48239         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
48240         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
48242 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
48243             Bruno Haible  <bruno@clisp.org>
48245         stdlib: improve random_r modularization
48246         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
48247         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
48248         you also need the random_r module to get this material right.
48249         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
48250         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
48251         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
48253 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
48255         stdlib: don't depend on stdint
48256         * lib/stdlib.in.h: Don't include <stdint.h> merely because
48257         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
48258         be independent of whether stdint.h is needed.
48259         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
48260         here, instead of ...
48261         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
48262         struct random_data should be using the random_r module, not just
48263         the stdlib module (which wouldn't make sense: what package needs
48264         just struct random_data without also needing random_r?).
48265         * modules/stdlib (Depends-on): Remove stdint.
48267         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
48268         See the thread rooted at
48269         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
48270         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
48271         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
48272         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
48273         __VMS)); previously it was always included (via fcntl--.h).
48274         (getloadavg): Do not use c_strtod.  Instead, approximate it by
48275         hand; this is good enough for load averages.  Also, do not use
48276         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
48277         flags directly if available and don't bother otherwise.  (Packages
48278         that need the extra reliability should use the modules that define
48279         these flags on older platforms that lack them.)
48280         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
48281         fcntl-safer.
48283 2011-02-08  Jim Meyering  <meyering@redhat.com>
48285         di-set.h, ino-map.h: add multiple-inclusion guard
48286         Technically, the guard is required only for ino-map.h, due to its
48287         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
48288         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
48289         * lib/ino-map.h: Likewise.
48291 2011-02-06  Bruno Haible  <bruno@clisp.org>
48293         iswblank: Ensure declaration on glibc systems.
48294         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
48295         * modules/iswblank (Dependencies): Add 'extensions'.
48296         * doc/posix-functions/iswblank.texi: Document the glibc problem.
48298 2011-02-06  Bruno Haible  <bruno@clisp.org>
48300         New module 'iswblank'.
48301         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
48302         * modules/iswblank: New file.
48303         * modules/wctype-h (Files): Remove lib/iswblank.c.
48304         (Makefile.am): Substitute GNULIB_ISWBLANK.
48305         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
48306         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
48307         (gl_WCTYPE_H_DEFAULTS): New macro.
48308         (gl_WCTYPE_H): Require it. Remove iswblank related code.
48309         * modules/iswblank-tests: New file.
48310         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
48311         * tests/test-wctype-h.c (main): Remove iswblank tests.
48312         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
48313         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
48314         of 'wctype-h'.
48315         * NEWS: Mention the change.
48316         * modules/mbchar (Depends-on): Add iswblank.
48318 2011-02-08  Bruno Haible  <bruno@clisp.org>
48320         di-set tests: Refactor.
48321         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
48322         unnecessary includes.
48323         (ASSERT): Remove macro.
48324         (main): Make C90 compliant by avoiding variable declaration after
48325         statement.
48326         * modules/di-set-tests (Files): Add tests/macros.h.
48328 2011-02-08  Bruno Haible  <bruno@clisp.org>
48330         ino-map tests: Refactor.
48331         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
48332         unnecessary includes.
48333         (ASSERT): Remove macro.
48334         (main): Make C90 compliant by avoiding variable declaration after
48335         statement.
48336         * modules/ino-map-tests (Files): Add tests/macros.h.
48338 2011-02-08  Jim Meyering  <meyering@redhat.com>
48340         di-set: add "const" to a cast
48341         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
48342         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
48344 2011-02-06  Bruno Haible  <bruno@clisp.org>
48346         Rename module 'wctype' to 'wctype-h'.
48347         * modules/wctype-h: Renamed from modules/wctype.
48348         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
48349         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
48350         (Files, Depends-on, Makefile.am): Update.
48351         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
48352         (Files, Makefile.am): Update.
48353         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
48354         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
48355         * doc/posix-headers/wctype.texi: Update.
48356         * doc/posix-functions/iswalnum.texi: Update.
48357         * doc/posix-functions/iswalpha.texi: Update.
48358         * doc/posix-functions/iswblank.texi: Update.
48359         * doc/posix-functions/iswcntrl.texi: Update.
48360         * doc/posix-functions/iswdigit.texi: Update.
48361         * doc/posix-functions/iswgraph.texi: Update.
48362         * doc/posix-functions/iswlower.texi: Update.
48363         * doc/posix-functions/iswprint.texi: Update.
48364         * doc/posix-functions/iswpunct.texi: Update.
48365         * doc/posix-functions/iswspace.texi: Update.
48366         * doc/posix-functions/iswupper.texi: Update.
48367         * doc/posix-functions/iswxdigit.texi: Update.
48368         * doc/posix-functions/towlower.texi: Update.
48369         * doc/posix-functions/towupper.texi: Update.
48370         * NEWS: Mention the change.
48371         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
48372         * modules/mbchar (Dependencies): Likewise.
48373         * modules/mbswidth (Dependencies): Likewise.
48374         * modules/quotearg (Dependencies): Likewise.
48375         * modules/regex (Dependencies): Likewise.
48376         * modules/wcscasecmp (Dependencies): Likewise.
48377         * modules/wcsncasecmp (Dependencies): Likewise.
48378         * modules/wcwidth (Dependencies): Likewise.
48380 2011-02-06  Bruno Haible  <bruno@clisp.org>
48382         New module 'wcswidth'.
48383         * modules/wcswidth: New file.
48384         * lib/wchar.in.h (wcswidth): New declaration.
48385         * lib/wcswidth.c: New file.
48386         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
48387         * m4/wcswidth.m4: New file.
48388         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
48389         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
48390         REPLACE_WCSWIDTH.
48391         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
48392         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
48393         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
48394         * doc/posix-functions/wcswidth.texi: Mention the new module.
48396 2011-02-06  Bruno Haible  <bruno@clisp.org>
48398         New module 'wcstok'.
48399         * modules/wcstok: New file.
48400         * lib/wchar.in.h (wcstok): New declaration.
48401         * lib/wcstok.c: New file.
48402         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
48403         * m4/wcstok.m4: New file.
48404         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
48405         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
48406         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
48407         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
48408         * doc/posix-functions/wcstok.texi: Mention the new module.
48410 2011-02-06  Bruno Haible  <bruno@clisp.org>
48412         New module 'wcsstr'.
48413         * modules/wcsstr: New file.
48414         * lib/wchar.in.h (wcsstr): New declaration.
48415         * lib/wcsstr.c: New file.
48416         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
48417         * m4/wcsstr.m4: New file.
48418         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
48419         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
48420         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
48421         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
48422         * doc/posix-functions/wcsstr.texi: Mention the new module.
48424 2011-02-06  Bruno Haible  <bruno@clisp.org>
48426         New module 'wcspbrk'.
48427         * modules/wcspbrk: New file.
48428         * lib/wchar.in.h (wcspbrk): New declaration.
48429         * lib/wcspbrk.c: New file.
48430         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
48431         * m4/wcspbrk.m4: New file.
48432         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
48433         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
48434         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
48435         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
48436         * doc/posix-functions/wcspbrk.texi: Mention the new module.
48438 2011-02-06  Bruno Haible  <bruno@clisp.org>
48440         New module 'wcsspn'.
48441         * modules/wcsspn: New file.
48442         * lib/wchar.in.h (wcsspn): New declaration.
48443         * lib/wcsspn.c: New file.
48444         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
48445         * m4/wcsspn.m4: New file.
48446         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
48447         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
48448         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
48449         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
48450         * doc/posix-functions/wcsspn.texi: Mention the new module.
48452 2011-02-06  Bruno Haible  <bruno@clisp.org>
48454         New module 'wcscspn'.
48455         * modules/wcscspn: New file.
48456         * lib/wchar.in.h (wcscspn): New declaration.
48457         * lib/wcscspn.c: New file.
48458         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
48459         * m4/wcscspn.m4: New file.
48460         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
48461         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
48462         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
48463         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
48464         * doc/posix-functions/wcscspn.texi: Mention the new module.
48466 2011-02-06  Bruno Haible  <bruno@clisp.org>
48468         New module 'wcsrchr'.
48469         * modules/wcsrchr: New file.
48470         * lib/wchar.in.h (wcsrchr): New declaration.
48471         * lib/wcsrchr.c: New file.
48472         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
48473         * m4/wcsrchr.m4: New file.
48474         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
48475         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
48476         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
48477         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
48478         * doc/posix-functions/wcsrchr.texi: Mention the new module.
48480 2011-02-06  Bruno Haible  <bruno@clisp.org>
48482         New module 'wcschr'.
48483         * modules/wcschr: New file.
48484         * lib/wchar.in.h (wcschr): New declaration.
48485         * lib/wcschr.c: New file.
48486         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
48487         * m4/wcschr.m4: New file.
48488         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
48489         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
48490         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
48491         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
48492         * doc/posix-functions/wcschr.texi: Mention the new module.
48494 2011-02-06  Bruno Haible  <bruno@clisp.org>
48496         New module 'wcsdup'.
48497         * modules/wcsdup: New file.
48498         * lib/wchar.in.h (wcsdup): New declaration.
48499         * lib/wcsdup.c: New file.
48500         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
48501         * m4/wcsdup.m4: New file.
48502         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
48503         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
48504         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
48505         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
48506         * doc/posix-functions/wcsdup.texi: Mention the new module.
48508 2011-02-06  Bruno Haible  <bruno@clisp.org>
48510         New module 'wcsxfrm'.
48511         * modules/wcsxfrm: New file.
48512         * lib/wchar.in.h (wcsxfrm): New declaration.
48513         * lib/wcsxfrm.c: New file.
48514         * lib/wcsxfrm-impl.h: New file.
48515         * m4/wcsxfrm.m4: New file.
48516         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
48517         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
48518         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
48519         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
48520         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
48522 2011-02-06  Bruno Haible  <bruno@clisp.org>
48524         New module 'wcscoll'.
48525         * modules/wcscoll: New file.
48526         * lib/wchar.in.h (wcscoll): New declaration.
48527         * lib/wcscoll.c: New file.
48528         * lib/wcscoll-impl.h: New file.
48529         * m4/wcscoll.m4: New file.
48530         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
48531         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
48532         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
48533         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
48534         * doc/posix-functions/wcscoll.texi: Mention the new module.
48536 2011-02-06  Bruno Haible  <bruno@clisp.org>
48538         New module 'wcsncasecmp'.
48539         * modules/wcsncasecmp: New file.
48540         * lib/wchar.in.h (wcsncasecmp): New declaration.
48541         * lib/wcsncasecmp.c: New file.
48542         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
48543         * m4/wcsncasecmp.m4: New file.
48544         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
48545         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
48546         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
48547         HAVE_WCSNCASECMP.
48548         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
48549         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
48551 2011-02-06  Bruno Haible  <bruno@clisp.org>
48553         New module 'wcscasecmp'.
48554         * modules/wcscasecmp: New file.
48555         * lib/wchar.in.h (wcscasecmp): New declaration.
48556         * lib/wcscasecmp.c: New file.
48557         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
48558         * m4/wcscasecmp.m4: New file.
48559         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
48560         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
48561         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
48562         HAVE_WCSCASECMP.
48563         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
48564         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
48566 2011-02-05  Bruno Haible  <bruno@clisp.org>
48568         New module 'wcsncmp'.
48569         * modules/wcsncmp: New file.
48570         * lib/wchar.in.h (wcsncmp): New declaration.
48571         * lib/wcsncmp.c: New file.
48572         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
48573         * m4/wcsncmp.m4: New file.
48574         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
48575         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
48576         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
48577         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
48578         * doc/posix-functions/wcsncmp.texi: Mention the new module.
48580 2011-02-05  Bruno Haible  <bruno@clisp.org>
48582         New module 'wcscmp'.
48583         * modules/wcscmp: New file.
48584         * lib/wchar.in.h (wcscmp): New declaration.
48585         * lib/wcscmp.c: New file.
48586         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
48587         * m4/wcscmp.m4: New file.
48588         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
48589         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
48590         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
48591         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
48592         * doc/posix-functions/wcscmp.texi: Mention the new module.
48594 2011-02-05  Bruno Haible  <bruno@clisp.org>
48596         New module 'wcsncat'.
48597         * modules/wcsncat: New file.
48598         * lib/wchar.in.h (wcsncat): New declaration.
48599         * lib/wcsncat.c: New file.
48600         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
48601         * m4/wcsncat.m4: New file.
48602         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
48603         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
48604         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
48605         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
48606         * doc/posix-functions/wcsncat.texi: Mention the new module.
48608 2011-02-05  Bruno Haible  <bruno@clisp.org>
48610         New module 'wcscat'.
48611         * modules/wcscat: New file.
48612         * lib/wchar.in.h (wcscat): New declaration.
48613         * lib/wcscat.c: New file.
48614         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
48615         * m4/wcscat.m4: New file.
48616         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
48617         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
48618         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
48619         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
48620         * doc/posix-functions/wcscat.texi: Mention the new module.
48622 2011-02-05  Bruno Haible  <bruno@clisp.org>
48624         New module 'wcpncpy'.
48625         * modules/wcpncpy: New file.
48626         * lib/wchar.in.h (wcpncpy): New declaration.
48627         * lib/wcpncpy.c: New file.
48628         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
48629         * m4/wcpncpy.m4: New file.
48630         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
48631         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
48632         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
48633         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
48634         * doc/posix-functions/wcpncpy.texi: Mention the new module.
48636 2011-02-05  Bruno Haible  <bruno@clisp.org>
48638         New module 'wcsncpy'.
48639         * modules/wcsncpy: New file.
48640         * lib/wchar.in.h (wcsncpy): New declaration.
48641         * lib/wcsncpy.c: New file.
48642         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
48643         * m4/wcsncpy.m4: New file.
48644         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
48645         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
48646         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
48647         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
48648         * doc/posix-functions/wcsncpy.texi: Mention the new module.
48650 2011-02-05  Bruno Haible  <bruno@clisp.org>
48652         New module 'wcpcpy'.
48653         * modules/wcpcpy: New file.
48654         * lib/wchar.in.h (wcpcpy): New declaration.
48655         * lib/wcpcpy.c: New file.
48656         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
48657         * m4/wcpcpy.m4: New file.
48658         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
48659         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
48660         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
48661         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
48662         * doc/posix-functions/wcpcpy.texi: Mention the new module.
48664 2011-02-05  Bruno Haible  <bruno@clisp.org>
48666         New module 'wcscpy'.
48667         * modules/wcscpy: New file.
48668         * lib/wchar.in.h (wcscpy): New declaration.
48669         * lib/wcscpy.c: New file.
48670         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
48671         * m4/wcscpy.m4: New file.
48672         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
48673         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
48674         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
48675         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
48676         * doc/posix-functions/wcscpy.texi: Mention the new module.
48678 2011-02-05  Bruno Haible  <bruno@clisp.org>
48680         New module 'wcsnlen'.
48681         * modules/wcsnlen: New file.
48682         * lib/wchar.in.h (wcsnlen): New declaration.
48683         * lib/wcsnlen.c: New file.
48684         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
48685         * m4/wcsnlen.m4: New file.
48686         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
48687         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
48688         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
48689         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
48690         * doc/posix-functions/wcsnlen.texi: Mention the new module.
48692 2011-02-05  Bruno Haible  <bruno@clisp.org>
48694         New module 'wcslen'.
48695         * modules/wcslen: New file.
48696         * lib/wchar.in.h (wcslen): New declaration.
48697         * lib/wcslen.c: New file.
48698         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
48699         * m4/wcslen.m4: New file.
48700         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
48701         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
48702         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
48703         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
48704         * doc/posix-functions/wcslen.texi: Mention the new module.
48706 2011-02-05  Bruno Haible  <bruno@clisp.org>
48708         New module 'wmemset'.
48709         * modules/wmemset: New file.
48710         * lib/wchar.in.h (wmemset): New declaration.
48711         * lib/wmemset.c: New file.
48712         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
48713         * m4/wmemset.m4: New file.
48714         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
48715         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
48716         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
48717         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
48718         * doc/posix-functions/wmemset.texi: Mention the new module.
48720 2011-02-05  Bruno Haible  <bruno@clisp.org>
48722         New module 'wmemmove'.
48723         * modules/wmemmove: New file.
48724         * lib/wchar.in.h (wmemmove): New declaration.
48725         * lib/wmemmove.c: New file.
48726         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
48727         * m4/wmemmove.m4: New file.
48728         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
48729         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
48730         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
48731         HAVE_WMEMMOVE.
48732         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
48733         * doc/posix-functions/wmemmove.texi: Mention the new module.
48735 2011-02-05  Bruno Haible  <bruno@clisp.org>
48737         New module 'wmemcpy'.
48738         * modules/wmemcpy: New file.
48739         * lib/wchar.in.h (wmemcpy): New declaration.
48740         * lib/wmemcpy.c: New file.
48741         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
48742         * m4/wmemcpy.m4: New file.
48743         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
48744         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
48745         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
48746         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
48747         * doc/posix-functions/wmemcpy.texi: Mention the new module.
48749 2011-02-05  Bruno Haible  <bruno@clisp.org>
48751         New module 'wmemcmp'.
48752         * modules/wmemcmp: New file.
48753         * lib/wchar.in.h (wmemcmp): New declaration.
48754         * lib/wmemcmp.c: New file.
48755         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
48756         * m4/wmemcmp.m4: New file.
48757         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
48758         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
48759         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
48760         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
48761         * doc/posix-functions/wmemcmp.texi: Mention the new module.
48763 2011-02-07  Jim Meyering  <meyering@redhat.com>
48765         di-set, ino-map: new modules, from coreutils
48766         * lib/di-set.c: New file.
48767         * lib/di-set.h: Likewise.
48768         * lib/ino-map.c: Likewise.
48769         * lib/ino-map.h: Likewise.
48770         * modules/di-set: Likewise.
48771         * modules/di-set-tests: Likewise.
48772         * modules/ino-map: Likewise.
48773         * modules/ino-map-tests: Likewise.
48774         * tests/test-di-set.c: Likewise.
48775         * tests/test-ino-map.c: Likewise.
48777 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
48779         getloadavg: merge minor changes from Emacs
48781         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
48782         (getloadavg): Use memset, not bzero.
48784         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
48785         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
48786         clash (bug#86).
48788 2010-11-14  Bruno Haible  <bruno@clisp.org>
48790         Allow multiple gnulib generated replacements to coexist.
48791         * lib/getopt.in.h (struct option): Avoid identical redefinition.
48792         * lib/inttypes.in.h (imaxdiv_t): Likewise.
48793         * lib/langinfo.in.h (nl_item): Likewise.
48794         * lib/math.in.h (_NaN, NAN): Likewise.
48795         * lib/netdb.in.h (struct addrinfo): Likewise.
48796         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
48797         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
48798         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
48799         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
48800         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
48801         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
48802         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
48803         pthread_mutexattr_init, pthread_mutexattr_settype,
48804         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
48805         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
48806         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
48807         pthread_spin_trylock, pthread_spin_unlock): Likewise.
48808         * lib/sched.in.h (struct sched_param): Likewise.
48809         * lib/se-selinux.in.h (security_class_t, security_context_t,
48810         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
48811         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
48812         lsetfilecon, fsetfilecon, security_check_context,
48813         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
48814         Likewise.
48815         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
48816         Likewise.
48817         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
48818         _gl_function_taking_int_returning_void_t, union sigval,
48819         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
48820         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
48821         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
48822         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
48823         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
48824         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
48825         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
48826         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
48827         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
48828         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
48829         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
48830         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
48831         socklen_t, rpl_fd_isset): Likewise.
48832         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
48833         * lib/sys_time.in.h (struct timeval): Likewise.
48834         * lib/sys_times.in.h (struct tms): Likewise.
48835         * lib/sys_utsname.in.h (struct utsname):
48836         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
48837         * lib/unistd.in.h (getpagesize): Likewise.
48838         * lib/wchar.in.h (mbstate_t): Likewise.
48839         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
48840         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
48841         towlower, towupper): Likewise.
48842         Reported by Sam Steingold <sds@gnu.org>.
48844 2011-02-05  Eric Blake  <eblake@redhat.com>
48846         unsetenv: work around Haiku issues
48847         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
48848         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
48850 2010-12-30  Bruce Korb  <bkorb@gnu.org>
48852         libposix: avoid calling error() within libposix
48853         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
48854         is defined.
48856 2011-02-05  Eric Blake  <eblake@redhat.com>
48858         strerror_r-posix: port to cygwin
48859         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
48860         implementation.
48861         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
48862         * tests/test-strerror_r.c (main): Fix test.
48863         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
48864         issue.
48866 2011-02-05  Bruno Haible  <bruno@clisp.org>
48868         New module 'wmemchr'.
48869         * modules/wmemchr: New file.
48870         * lib/wchar.in.h (wmemchr): New declaration.
48871         * lib/wmemchr.c: New file.
48872         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
48873         * m4/wmemchr.m4: New file.
48874         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
48875         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
48876         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
48877         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
48878         * doc/posix-functions/wmemchr.texi: Mention the new module.
48880 2011-02-04  Eric Blake  <eblake@redhat.com>
48882         fdopendir: detect FreeBSD bug
48883         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
48884         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
48886 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
48888         stdbool: do not define HAVE_STDBOOL_H
48889         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
48890         AC_HEADER_STDBOOL.  All uses changed.  Do not define
48891         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
48892         imported from the latest Autoconf git.  It was motivated by Emacs,
48893         which uses gnulib but does not need HAVE_STDBOOL_H.
48895 2011-02-04  Bruno Haible  <bruno@clisp.org>
48897         wcsnrtombs: Prepare for new module wwcsnrtombs.
48898         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
48899         * lib/wcsnrtombs.c: Include it.
48900         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
48902         wcsrtombs: Prepare for new module wwcsrtombs.
48903         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
48904         * lib/wcsrtombs.c: Include it.
48905         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
48907         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
48908         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
48909         * lib/mbsnrtowcs.c: Include it.
48910         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
48912         mbsrtowcs: Prepare for new module mbsrtowwcs.
48913         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
48914         * lib/mbsrtowcs.c: Include it.
48915         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
48917 2011-02-04  Bruno Haible  <bruno@clisp.org>
48919         vasnprintf: Reduce use of malloc for small format strings.
48920         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
48921         (arguments): Add room for the first 7 arguments.
48922         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
48923         (char_directives, u8_directives, u16_directives, u32_directives): Add
48924         room for the first 7 directives.
48925         * lib/printf-parse.c: Include <string.h>.
48926         (PRINTF_PARSE): Change memory handling code so that it uses the first
48927         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
48928         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
48929         Reported by Pádraig Brady <P@draigbrady.com>.
48931 2011-01-31  Eric Blake  <eblake@redhat.com>
48933         dup2: work around Haiku bug
48934         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
48935         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
48936         * doc/posix-functions/dup2.texi (dup2): Document the bug.
48937         * tests/test-dup2.c (main): Enhance test.
48939 2011-01-31  Simon Josefsson  <simon@josefsson.org>
48941         doc: off_t is not available in eglibc 2.11.2 stdio.h.
48942         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
48943         declared by eglibc 2.11.2.
48944         * lib/stdio.in.h: Likewise.
48946 2011-01-31  Eric Blake  <eblake@redhat.com>
48948         ignore-value: add missing test dependency
48949         * tests/test-ignore-value.c: Revert previous change; stdio.h
48950         provides off_t.
48951         * modules/ignore-value-tests (Depends-on): Add missing dependency.
48953 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
48955         mktime: clarify long_int width checking
48956         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
48957         the top level, to make it clearer that the assumption about
48958         long_int width is being checked.  See
48959         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
48961 2011-01-30  Simon Josefsson  <simon@josefsson.org>
48963         ignore-value: Fix self-test.
48964         * tests/test-ignore-value.c: Include sys/types.h for off_t.
48966 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
48968         TYPE_MAXIMUM: avoid theoretically undefined behavior
48969         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
48970         negative number, which the C Standard says has undefined behavior.
48971         In practice this is not a problem, but might as well do it by the book.
48972         Reported by Rich Felker and Eric Blake; see
48973         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
48974         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
48975         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
48976         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
48977         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
48978         * m4/stdint.m4 (gl_STDINT_H): Likewise.
48979         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
48981         mktime: #undef mktime before #defining it
48982         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
48984         mktime: systematically normalize tm_isdst comparisons
48985         * lib/mktime.c (isdst_differ): New function.
48986         (__mktime_internal): Use it systematically for all isdst comparisons.
48987         This completes the fix for libc BZ #6723, and removes the need for
48988         normalizing tm_isdst.  See
48989         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
48990         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
48992         mktime: fix some integer overflow issues and sidestep the rest
48994         This was prompted by a bug report by Benjamin Lindner for MinGW
48995         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
48996         His bug is due to signed integer overflow (0 - INT_MIN), and I
48997         I scanned through mktime.c looking for other integer overflow
48998         problems, fixing all the bugs I found.
49000         Although the C Standard says the resulting code is still not safe
49001         in the presence of integer overflow, in practice it should be good
49002         enough for all real-world two's-complement implementations, except
49003         for debugging environments that deliberately trap on integer
49004         overflow (e.g., gcc -ftrapv).
49006         * lib/mktime.c (WRAPV): New macro.
49007         (SHR): Also check that long_int and time_t shift right in the
49008         usual way, before using the fast-but-unportable method.
49009         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
49010         used.  The code already assumed two's complement, so there's
49011         no need to test for alternatives.  All uses removed.
49012         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
49013         the C standard.  Problem reported by Rich Felker in
49014         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
49015         (twos_complement_arithmetic): Also check long_int and time_t.
49016         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
49017         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
49018         (__mktime_internal): Avoid integer overflow with unary subtraction
49019         in two instances where -1 - X is an adequate replacement for -X,
49020         since the calculations are approximate.
49022 2011-01-29  Eric Blake  <eblake@redhat.com>
49024         mktime: avoid infinite loop
49025         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
49026         type; behavior is still undefined but portable to all known targets.
49027         Reported by Rich Felker.
49029 2011-01-29  Simon Josefsson  <simon@josefsson.org>
49031         rename, unlink, same-inode: Relicense.
49032         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
49033         * modules/unlink (License): Likewise.
49034         * modules/same-inode (License): Likewise.
49036 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
49038         mktime: avoid problems on NetBSD 5 / i386
49039         * lib/mktime.c (long_int): New type.  This works around a problem
49040         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
49041         but time_t is 64 bits, and where I expect the existing code is
49042         wrong in some cases.
49043         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
49044         (ydhms_diff): Bring back the compile-time check for wide-enough
49045         year and yday.
49047         mktime: fix misspelling in comment
49048         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
49049         This merges all recent glibc changes of importance.
49051 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49053         move-if-change: cope with concurrent mv of identical file.
49054         * build-aux/move-if-change (CMPPROG): Accept environment
49055         variable as an override for `cmp'.
49056         (usage): Document CMPPROG.
49057         Adjust comparison to drop stdout.  Cope with failure of mv if
49058         the target file exists and is identical to the source, for
49059         parallel builds.
49060         Report from H.J. Lu against binutils in PR binutils/12283.
49062 2011-01-28  Bruce Korb  <bkorb@gnu.org>
49064         * users.txt: Mention sharutils.
49066 2011-01-28  Simon Josefsson  <simon@josefsson.org>
49068         * users.txt: Mention OATH Toolkit.
49070 2011-01-27  Bruno Haible  <bruno@clisp.org>
49072         Prepare for supporting FreeBSD 10.
49073         * build-aux/config.libpath: Remove handling of freebsd1*.
49075 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
49077         Prepare for supporting FreeBSD 10.
49078         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
49079         match FreeBSD 10.0.
49081 2011-01-27  Bruno Haible  <bruno@clisp.org>
49083         vma-iter, get-rusage-as: Add OpenBSD support.
49084         * modules/vma-iter (configure.ac): Test for mquery.
49085         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
49086         * lib/vma-iter.c: Include <sys/mman.h>.
49087         (vma_iterate): Add an implementation based on mquery().
49088         * lib/resource-ext.h (get_rusage_as): Update comments.
49089         * lib/get-rusage-as.c: Likewise.
49090         * lib/get-rusage-data.c: Likewise.
49092 2011-01-26  Karl Berry  <karl@gnu.org>
49094         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
49095         variables to make it easier to override the makeinfo program used.
49097 2011-01-26  Eric Blake  <eblake@redhat.com>
49099         fcntl: work around Haiku F_DUPFD bugs
49100         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
49101         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
49102         cloexec bit on duplication.
49103         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
49105 2011-01-26  Bruno Haible  <bruno@clisp.org>
49107         Enable memory leak tests on AIX.
49108         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
49109         * tests/test-fprintf-posix3.c (main): Likewise.
49111 2011-01-26  Bruno Haible  <bruno@clisp.org>
49113         Tests for module 'get-rusage-data'.
49114         * modules/get-rusage-data-tests: New file.
49115         * tests/test-get-rusage-data.c: New file.
49117         New module 'get-rusage-data'.
49118         * lib/resource-ext.h (get_rusage_data): New declaration.
49119         * lib/get-rusage-data.c: New file.
49120         * modules/get-rusage-data: New file.
49122 2011-01-25  Bruno Haible  <bruno@clisp.org>
49124         get-rusage-as: Allow for easier testing.
49125         * lib/resource-ext.h (get_rusage_as): Add comment.
49126         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
49127         (main): New function for interactive testing.
49129 2011-01-25  Bruno Haible  <bruno@clisp.org>
49131         vma-iter: Treat Haiku like BeOS.
49132         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
49133         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
49135 2011-01-25  Eric Blake  <eblake@redhat.com>
49137         c-stack: fix regression on cygwin when libsigsegv is present
49138         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
49140 2011-01-24  Bruno Haible  <bruno@clisp.org>
49142         vma-iter: Avoid empty intervals.
49143         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
49144         on an empty interval.
49146 2011-01-24  Jim Meyering  <meyering@redhat.com>
49148         u64: remove unnecessary #include
49149         * lib/u64.h: Don't include <stddef.h>.  It was not used.
49151 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49153         Allow the user to avoid the HAVE_RAW_DECL_* macros.
49154         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
49156 2011-01-23  Bruno Haible  <bruno@clisp.org>
49158         New module 'vma-iter'.
49159         * lib/vma-iter.h: New file.
49160         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
49161         * modules/vma-iter: New file.
49162         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
49163         for get_rusage_as_via_iterator.
49164         (vma_iterate_callback): New function.
49165         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
49166         * modules/get-rusage-as (Depends-on): Add vma-iter.
49168 2011-01-23  Bruno Haible  <bruno@clisp.org>
49170         uninorm: Tweak includes.
49171         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
49172         Reported by Jim Meyering.
49174 2011-01-23  Bruno Haible  <bruno@clisp.org>
49176         get-rusage-as: Improve on NetBSD.
49177         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
49178         /proc, like on FreeBSD.
49180 2011-01-23  Jim Meyering  <meyering@redhat.com>
49182         xreadlink.h: remove unnecessary #include
49183         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
49185         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
49186         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
49188 2011-01-23  Bruno Haible  <bruno@clisp.org>
49190         get-rusage-as: Fix bug.
49191         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
49192         original limit when aborting the first loop.
49194 2011-01-23  Bruno Haible  <bruno@clisp.org>
49196         wctype: Ensure valid C syntax.
49197         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
49198         unconditionally, instead of gl_NEXT_HEADERS conditionally.
49200 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
49202         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
49203         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
49204         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
49205         as they are needed only for configure's test case.
49206         This removes two unnecessary symbols from config.h.
49208         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
49209         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
49210         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
49211         AC_CHECK_HEADERS_ONCE on a header that we also invoke
49212         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
49213         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
49214         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
49215         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
49216         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
49217         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
49218         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
49219         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49220         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
49221         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
49222         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
49223         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49224         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
49225         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
49227 2011-01-21  Eric Blake  <eblake@redhat.com>
49229         maintainer-makefile: work with older git for submodule check
49230         * top/maint.mk (public-submodule-commit): Rewrite to avoid
49231         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
49232         Reported by Matthias Bolte.
49234         bootstrap: minor portability fixes
49235         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
49236         (usage): Omit leading capital and trailing . on help phrases, per
49237         GNU Coding Standards.
49238         (check_versions, top level): Prefix messages with script name.
49240 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
49242         bootstrap: support --no-git option
49243         * build-aux/bootstrap: Add --no-git option, to be used when
49244         --gnulib-srcdir points to the exact desired checkout.
49246 2011-01-21  Eric Blake  <eblake@redhat.com>
49248         strerror_r-posix: work with glibc 2.13
49249         * lib/strerror_r.c (strerror_r): Fix return type.
49251 2011-01-21  Pádraig Brady  <P@draigBrady.com>
49252             Bruno Haible  <bruno@clisp.org>
49254         uN_strstr: New unit tests.
49255         * modules/unistr/u8-strstr-tests: New file.
49256         * modules/unistr/u16-strstr-tests: New file.
49257         * modules/unistr/u32-strstr-tests: New file.
49258         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
49259         * tests/unistr/test-u8-strstr.c: New file.
49260         * tests/unistr/test-u16-strstr.c: New file.
49261         * tests/unistr/test-u32-strstr.c: New file.
49263 2011-01-21  Pádraig Brady  <P@draigBrady.com>
49264             Bruno Haible  <bruno@clisp.org>
49266         Make uN_strstr functions O(n) worst-case.
49267         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
49268         16-bit and 32-bit unit cases, use the unibyte algorithm from
49269         lib/mbsstr.c.
49270         * lib/unistr/u8-strstr.c: Include <string.h>.
49271         (UNIT_IS_UINT8_T): New macro.
49272         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
49273         (U_STRLEN, U_STRNLEN): New macros.
49274         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
49275         (U_STRLEN, U_STRNLEN): New macros.
49276         * modules/unistr/u8-strstr (Depends-on): Add strstr.
49277         (configure.ac): Update required libunistring version.
49278         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
49279         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
49280         malloca.
49281         (configure.ac): Update required libunistring version.
49282         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
49283         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
49284         malloca.
49285         (configure.ac): Update required libunistring version.
49287 2011-01-21  Pádraig Brady  <P@draigBrady.com>
49288             Bruno Haible  <bruno@clisp.org>
49290         Prepare for faster uN_strstr functions.
49291         * lib/str-kmp.h: Support definable UNITs.
49292         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
49293         needle_len argument.
49294         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
49295         * lib/mbscasestr.c (mbscasestr): Likewise.
49297 2011-01-21  Pádraig Brady  <P@draigBrady.com>
49299         malloca-tests: make faster by unsetting MALLOC_PERTURB_
49300         * tests/test-malloca.c (main): Unset the environment variable
49301         to greatly speed up the test.
49302         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
49303         * modules/malloca-tests: Depend on unsetenv.
49305 2011-01-21  Pádraig Brady  <P@draigBrady.com>
49307         ignore-value: remove stdint dependency
49308         * lib/ignore-value.h: Remove <stdint.h>
49309         * modules/ignore-value: Remove stdint dependency.
49311 2011-01-21  Jim Meyering  <meyering@redhat.com>
49313         maint.mk: adjust variable name to be consistent with other gl_ vars
49314         * top/maint.mk (gl_public_submodule_commit): Rename the variable
49315         to be lower case.
49317 2011-01-20  Jim Meyering  <meyering@redhat.com>
49319         maint.mk: make "check" depend on public-submodule-commit by default
49320         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
49322 2011-01-20  Bruno Haible  <bruno@clisp.org>
49324         mbfile, mbiter: Complete change from 2008-12-21.
49325         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
49326         * m4/mbiter.m4 (gl_MBITER): Likewise.
49328 2011-01-20  Jim Meyering  <meyering@redhat.com>
49330         init.sh: insert space between each function name and "()"
49331         * tests/init.sh: Make it a little easier to see that a function's
49332         name is "warn_", and not "warn" when looking at the first part of
49333         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
49335 2011-01-20  Jim Meyering  <meyering@redhat.com>
49337         mountlist: clean up code formatting
49338         * lib/mountlist.c (read_file_system_list): Split a long line,
49339         correct bracing style, use NULL in place of "(struct statfs *)0",
49340         don't parenthesize return value, add spaces around "=" and after
49341         ";-in-for-stmt".
49343 2011-01-14  Markus Duft  <mduft@gentoo.org>
49345         mountlist: add support for Interix
49346         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
49347         Apply statvfs to all entries of /dev/fs.
49348         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
49349         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
49351 2011-01-20  Jim Meyering  <meyering@redhat.com>
49353         maint.mk: improve the public-submodule-commit rule
49354         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
49355         to suppress printing of its commands... unless V=1.
49356         Add git submodule's --quiet option to suppress printing of e.g.,
49357         "Entering gnulib" output.
49358         "cd" into $(srcdir) before running git submodule.
49360 2011-01-20  Bruno Haible  <bruno@clisp.org>
49362         include_next: Fix bug introduced on 2011-01-18.
49363         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
49364         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
49365         ac_cv_header_... variable if the second argument is not 'check'.
49366         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
49367         gl_NEXT_HEADERS_INTERNAL.
49369 2011-01-20  Bruno Haible  <bruno@clisp.org>
49371         Allow the user to avoid the GNULIB_TEST_* macros.
49372         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
49373         Suggested by Paul Eggert.
49375 2011-01-14  Jim Meyering  <meyering@redhat.com>
49377         bootstrap: avoid failure when there is no .gitmodules file
49378         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
49379         has been assigned to, even when its value is the empty string.
49380         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
49381         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
49382         Reported by John W. Eaton <jwe@gnu.org>.
49384 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
49386         assume <ctype.h>, ..., <time.h> exist
49387         For years gnulib has been assuming the existence of the headers
49388         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
49389         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
49390         them, since they don't appear to be needed.
49391         * README (Portability guidelines): Document this.
49392         * lib/flock.c: Assume <fcntl.h> exists.
49393         * lib/regex_internal.h: Assume <locale.h> exists.
49394         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
49395         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
49396         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
49397         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
49398         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
49399         * m4/regex.m4 (gl_REGEX): Likewise.
49400         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
49401         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
49402         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
49403         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
49404         * tests/test-argp.c: Likewise.
49405         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
49407         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
49408         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
49409         AA_APPLE_UNIVERSAL_BUILD.  See
49410         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
49411         * NEWS: Document this.
49413 2011-01-19  Eric Blake  <eblake@redhat.com>
49415         c-stack: assume stack overflow if SA_SIGINFO unsupported
49416         * lib/c-stack.c (SIGACTION_WORKS): Rename...
49417         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
49418         sigaction will work.
49419         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
49420         behavior match Linux.
49421         * tests/test-c-stack.c (main): Prefer NULL for pointers.
49423         stdbool-tests: accommodate Haiku
49424         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
49426         binary-io: fix O_TEXT on Haiku
49427         * modules/binary-io (Depends-on): Add fcntl-h.
49428         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
49429         than blindly undefining O_TEXT.
49430         Reported by Scott McCreary.
49432 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
49434         include_next: do not check for standard headers like stddef.h
49436         I found this problem when modifying Emacs to use gnulib.
49437         I noticed that it added HAVE_STDDEF_H to config.h, even though
49438         gnulib always assumes <stddef.h> exists as per README and this
49439         symbol is unnecessary.
49440         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
49441         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
49442         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
49443         faster for headers like stddef.h that are known to exist.
49444         (gl_CHECK_NEXT_HEADERS): Use it.
49445         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
49446         rather than gl_CHECK_NEXT_HEADERS.
49447         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
49448         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
49450 2011-01-18  Eric Blake  <eblake@redhat.com>
49452         ansi-c++-opt: skip C++ dependency style if C++ is unused
49453         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
49454         tests when we know C++ compilation is not desired.
49455         Reported by Scott McCreary.
49457 2011-01-18  Bruno Haible  <bruno@clisp.org>
49459         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
49460         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
49461         (main): Perform test also when getrlimit and setrlimit don't exist or
49462         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
49463         limiting the address space size using setrlimit, compare the address
49464         space size before and after the test.
49465         * tests/test-dprintf-posix2.c: Likewise.
49466         * tests/test-fprintf-posix3.sh: Update skip messages.
49467         * tests/test-dprintf-posix2.sh: Likewise.
49468         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
49469         * modules/dprintf-posix-tests (Depends-on): Likewise.
49470         Reported by Bruce Korb <bkorb@gnu.org> and
49471         Gary V. Vaughan <gary@gnu.org>.
49473 2011-01-18  Bruno Haible  <bruno@clisp.org>
49475         get-rusage-as: Improvement for Cygwin.
49476         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
49477         areas that are merely reserved.
49479 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
49481         strftime: remove dependencies on multibyte modules
49483         strftime depended on mbrlen, mbsinit, and wchar, but these modules
49484         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
49485         only if __osf__ is defined, and I suspect OSF doesn't need these
49486         other modules.  If my guess is wrong, we'll need to come up with a
49487         variant of strftime that doesn't need the multibyte modules.
49489         I discovered this problem when attempting modify Emacs to use the
49490         strftime module.  With the previous gnulib, this caused Emacs to
49491         need 31 new files, ranging from lib/config.charset to
49492         m4/wint_t.m4.  This was overkill and I expect would be offputting
49493         to the Emacs maintainers.  After this change, only 6 new files are
49494         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
49495         stdbool.m4, and tm_gmtoff.m4.
49497         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
49498         Suggested by Bruno Haible in
49499         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
49500         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
49501         and do not check for wchar.h.
49502         * modules/strftime (Files): Remove m4/mbstate_t.m4.
49503         (Depends-on): Remove mbrlen, mbsinit, wchar.
49505 2011-01-18  Bruno Haible  <bruno@clisp.org>
49507         Tests for module 'get-rusage-as'.
49508         * modules/get-rusage-as-tests: New file.
49509         * tests/test-get-rusage-as.c: New file.
49511         New module 'get-rusage-as'.
49512         * modules/get-rusage-as: New file.
49513         * lib/resource-ext.h: New file.
49514         * lib/get-rusage-as.c: New file.
49516 2011-01-17  Eric Blake  <eblake@redhat.com>
49518         sigaction: relax license from LGPLv3+ to LGPLv2+
49519         * modules/sigaction (License): Relax to LGPLv2+.
49521 2011-01-14  Bruno Haible  <bruno@clisp.org>
49523         filemode: Make function declarations usable in C++ mode.
49524         * lib/filemode.h: Enclose function declarations in extern "C" block.
49525         Reported by John W. Eaton <jwe@gnu.org>.
49527 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
49529         save-cwd: no longer include "xgetcwd.h"
49530         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
49531         This avoids a compilation failure in projects that use save-cwd
49532         without also using the xgetcwd module.
49534 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
49536         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
49537         This is so that a program like Emacs, which needs only dtoastr,
49538         does not have to bother with distributing and compiling ftoastr
49539         and ldtoastr.
49540         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
49541         * modules/dtoastr, modules/ldtoastr: New files.
49542         * modules/ftoastr: Now works just for 'float'.
49543         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
49544         (Makefile.am): Remove ftoastr.h (not needed and no effect),
49545         dtoastr.c, ldtoastr.c.
49547 2011-01-11  Jim Meyering  <meyering@redhat.com>
49549         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
49550         There is no need to work around the lack of the fchdir function,
49551         since gnulib can now provide a replacement when required.
49552         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
49553         * modules/save-cwd (Depends-on): Add fchdir.
49555 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
49557         openat, save-cwd: avoid xmalloc
49559         This removes a direct (but undocumented) dependency of openat on
49560         xalloc, along with an indirect dependency via save-cwd.  It also
49561         removes a dependency of save-cwd on xgetcwd, and thereby
49562         indirectly on xalloc.  This change causes the openat substitute
49563         to fall back on save_cwd when memory is tight, and for save_cwd to
49564         fail instead of dying when memory is tight, but that's good enough.
49565         Problem and initial idea for fix reported by Bastien Roucaries in
49566         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
49568         * lib/openat-proc.c: Include stdlib.h (for malloc), not
49569         xalloc.h (for xmalloc).
49570         (openat_proc_name): Use malloc, not xmalloc.
49571         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
49572         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
49574         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
49575         This avoids heap allocation for file names whose lengths are in
49576         the range 512..1023, with the upper bound increasing to at most
49577         4031 depending on the platform's PATH_MAX.  (We do not want
49578         pathmax.h here as it might supply a non-constant PATH_MAX.)
49579         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
49580         Perhaps they should be moved to malloca.h?
49581         (OPENAT_BUFFER_SIZE): Use them.
49583 2011-01-10  Bruno Haible  <bruno@clisp.org>
49585         doc: Update users.txt.
49586         * users.txt: Add recutils.
49588 2011-01-09  Karl Berry  <karl@gnu.org>
49590         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
49592         * doc/configmake.texi: New file.
49593         * doc/gnulib.texi: Include it.
49594         * modules/configmake: Move documentation from here.
49596 2011-01-09  Bruno Haible  <bruno@clisp.org>
49598         Update to Unicode 6.0.0.
49599         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
49600         (get_lbp): Update for Unicode 6.0.0.
49601         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
49602         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
49603         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
49604         U+11001, U+11038..U+11046. Remove U+06DE.
49605         (uc_width): Fix bounds of planes.
49606         * tests/uniwidth/test-uc_width2.sh: Same updates as in
49607         lib/uniwidth/width.c.
49608         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
49609         trailing whitespace removed.
49610         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
49611         without comments, but with the original copyright notice.
49612         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
49613         * lib/unicase/ignorable.h: Likewise.
49614         * lib/unicase/tocasefold.h: Likewise.
49615         * lib/unicase/tolower.h: Likewise.
49616         * lib/unicase/totitle.h: Likewise.
49617         * lib/unicase/toupper.h: Likewise.
49618         * lib/unictype/bidi_of.h: Likewise.
49619         * lib/unictype/blocks.h: Likewise.
49620         * lib/unictype/categ_C.h: Likewise.
49621         * lib/unictype/categ_Cn.h: Likewise.
49622         * lib/unictype/categ_L.h: Likewise.
49623         * lib/unictype/categ_Ll.h: Likewise.
49624         * lib/unictype/categ_Lm.h: Likewise.
49625         * lib/unictype/categ_Lo.h: Likewise.
49626         * lib/unictype/categ_Lu.h: Likewise.
49627         * lib/unictype/categ_M.h: Likewise.
49628         * lib/unictype/categ_Mc.h: Likewise.
49629         * lib/unictype/categ_Me.h: Likewise.
49630         * lib/unictype/categ_Mn.h: Likewise.
49631         * lib/unictype/categ_N.h: Likewise.
49632         * lib/unictype/categ_Nd.h: Likewise.
49633         * lib/unictype/categ_No.h: Likewise.
49634         * lib/unictype/categ_P.h: Likewise.
49635         * lib/unictype/categ_Po.h: Likewise.
49636         * lib/unictype/categ_S.h: Likewise.
49637         * lib/unictype/categ_Sc.h: Likewise.
49638         * lib/unictype/categ_Sk.h: Likewise.
49639         * lib/unictype/categ_Sm.h: Likewise.
49640         * lib/unictype/categ_So.h: Likewise.
49641         * lib/unictype/categ_of.h: Likewise.
49642         * lib/unictype/combining.h: Likewise.
49643         * lib/unictype/ctype_alnum.h: Likewise.
49644         * lib/unictype/ctype_alpha.h: Likewise.
49645         * lib/unictype/ctype_graph.h: Likewise.
49646         * lib/unictype/ctype_lower.h: Likewise.
49647         * lib/unictype/ctype_print.h: Likewise.
49648         * lib/unictype/ctype_punct.h: Likewise.
49649         * lib/unictype/ctype_upper.h: Likewise.
49650         * lib/unictype/decdigit.h: Likewise.
49651         * lib/unictype/digit.h: Likewise.
49652         * lib/unictype/numeric.h: Likewise.
49653         * lib/unictype/pr_alphabetic.h: Likewise.
49654         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
49655         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
49656         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
49657         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
49658         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
49659         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
49660         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
49661         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
49662         * lib/unictype/pr_case_ignorable.h: Likewise.
49663         * lib/unictype/pr_cased.h: Likewise.
49664         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
49665         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
49666         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
49667         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
49668         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
49669         * lib/unictype/pr_combining.h: Likewise.
49670         * lib/unictype/pr_composite.h: Likewise.
49671         * lib/unictype/pr_currency_symbol.h: Likewise.
49672         * lib/unictype/pr_decimal_digit.h: Likewise.
49673         * lib/unictype/pr_deprecated.h: Likewise.
49674         * lib/unictype/pr_format_control.h: Likewise.
49675         * lib/unictype/pr_grapheme_base.h: Likewise.
49676         * lib/unictype/pr_grapheme_extend.h: Likewise.
49677         * lib/unictype/pr_grapheme_link.h: Likewise.
49678         * lib/unictype/pr_id_continue.h: Likewise.
49679         * lib/unictype/pr_id_start.h: Likewise.
49680         * lib/unictype/pr_ideographic.h: Likewise.
49681         * lib/unictype/pr_lowercase.h: Likewise.
49682         * lib/unictype/pr_math.h: Likewise.
49683         * lib/unictype/pr_numeric.h: Likewise.
49684         * lib/unictype/pr_other_alphabetic.h: Likewise.
49685         * lib/unictype/pr_other_id_continue.h: Likewise.
49686         * lib/unictype/pr_other_math.h: Likewise.
49687         * lib/unictype/pr_punctuation.h: Likewise.
49688         * lib/unictype/pr_sentence_terminal.h: Likewise.
49689         * lib/unictype/pr_terminal_punctuation.h: Likewise.
49690         * lib/unictype/pr_unassigned_code_value.h: Likewise.
49691         * lib/unictype/pr_unified_ideograph.h: Likewise.
49692         * lib/unictype/pr_uppercase.h: Likewise.
49693         * lib/unictype/pr_xid_continue.h: Likewise.
49694         * lib/unictype/pr_xid_start.h: Likewise.
49695         * lib/unictype/scripts.h: Likewise.
49696         * lib/unictype/scripts_byname.gperf: Likewise.
49697         * lib/unictype/sy_java_ident.h: Likewise.
49698         * lib/unigbrk/gbrkprop.h: Likewise.
49699         * lib/unilbrk/lbrkprop1.h: Likewise.
49700         * lib/unilbrk/lbrkprop2.h: Likewise.
49701         * lib/uninorm/decomposition-table2.h: Likewise.
49702         * lib/uniwbrk/wbrkprop.h: Likewise.
49703         * tests/unicase/test-cased.c: Likewise.
49704         * tests/unicase/test-ignorable.c: Likewise.
49705         * tests/unicase/test-uc_tolower.c: Likewise.
49706         * tests/unicase/test-uc_totitle.c: Likewise.
49707         * tests/unicase/test-uc_toupper.c: Likewise.
49708         * tests/unictype/test-categ_C.c: Likewise.
49709         * tests/unictype/test-categ_Cn.c: Likewise.
49710         * tests/unictype/test-categ_L.c: Likewise.
49711         * tests/unictype/test-categ_Ll.c: Likewise.
49712         * tests/unictype/test-categ_Lm.c: Likewise.
49713         * tests/unictype/test-categ_Lo.c: Likewise.
49714         * tests/unictype/test-categ_Lu.c: Likewise.
49715         * tests/unictype/test-categ_M.c: Likewise.
49716         * tests/unictype/test-categ_Mc.c: Likewise.
49717         * tests/unictype/test-categ_Me.c: Likewise.
49718         * tests/unictype/test-categ_Mn.c: Likewise.
49719         * tests/unictype/test-categ_N.c: Likewise.
49720         * tests/unictype/test-categ_Nd.c: Likewise.
49721         * tests/unictype/test-categ_No.c: Likewise.
49722         * tests/unictype/test-categ_P.c: Likewise.
49723         * tests/unictype/test-categ_Po.c: Likewise.
49724         * tests/unictype/test-categ_S.c: Likewise.
49725         * tests/unictype/test-categ_Sc.c: Likewise.
49726         * tests/unictype/test-categ_Sk.c: Likewise.
49727         * tests/unictype/test-categ_Sm.c: Likewise.
49728         * tests/unictype/test-categ_So.c: Likewise.
49729         * tests/unictype/test-ctype_alnum.c: Likewise.
49730         * tests/unictype/test-ctype_alpha.c: Likewise.
49731         * tests/unictype/test-ctype_graph.c: Likewise.
49732         * tests/unictype/test-ctype_lower.c: Likewise.
49733         * tests/unictype/test-ctype_print.c: Likewise.
49734         * tests/unictype/test-ctype_punct.c: Likewise.
49735         * tests/unictype/test-ctype_upper.c: Likewise.
49736         * tests/unictype/test-decdigit.h: Likewise.
49737         * tests/unictype/test-digit.h: Likewise.
49738         * tests/unictype/test-numeric.h: Likewise.
49739         * tests/unictype/test-pr_alphabetic.c: Likewise.
49740         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
49741         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
49742         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
49743         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
49744         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
49745         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
49746         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
49747         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
49748         * tests/unictype/test-pr_case_ignorable.c: Likewise.
49749         * tests/unictype/test-pr_cased.c: Likewise.
49750         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
49751         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
49752         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
49753         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
49754         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
49755         * tests/unictype/test-pr_combining.c: Likewise.
49756         * tests/unictype/test-pr_composite.c: Likewise.
49757         * tests/unictype/test-pr_currency_symbol.c: Likewise.
49758         * tests/unictype/test-pr_decimal_digit.c: Likewise.
49759         * tests/unictype/test-pr_deprecated.c: Likewise.
49760         * tests/unictype/test-pr_format_control.c: Likewise.
49761         * tests/unictype/test-pr_grapheme_base.c: Likewise.
49762         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
49763         * tests/unictype/test-pr_grapheme_link.c: Likewise.
49764         * tests/unictype/test-pr_id_continue.c: Likewise.
49765         * tests/unictype/test-pr_id_start.c: Likewise.
49766         * tests/unictype/test-pr_ideographic.c: Likewise.
49767         * tests/unictype/test-pr_lowercase.c: Likewise.
49768         * tests/unictype/test-pr_math.c: Likewise.
49769         * tests/unictype/test-pr_numeric.c: Likewise.
49770         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
49771         * tests/unictype/test-pr_other_id_continue.c: Likewise.
49772         * tests/unictype/test-pr_other_math.c: Likewise.
49773         * tests/unictype/test-pr_punctuation.c: Likewise.
49774         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
49775         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
49776         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
49777         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
49778         * tests/unictype/test-pr_uppercase.c: Likewise.
49779         * tests/unictype/test-pr_xid_continue.c: Likewise.
49780         * tests/unictype/test-pr_xid_start.c: Likewise.
49781         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
49782         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
49783         changes.
49784         * lib/unictype/categ_Cc.h: Likewise.
49785         * lib/unictype/categ_Cf.h: Likewise.
49786         * lib/unictype/categ_Co.h: Likewise.
49787         * lib/unictype/categ_Cs.h: Likewise.
49788         * lib/unictype/categ_Lt.h: Likewise.
49789         * lib/unictype/categ_Nl.h: Likewise.
49790         * lib/unictype/categ_Pc.h: Likewise.
49791         * lib/unictype/categ_Pd.h: Likewise.
49792         * lib/unictype/categ_Pe.h: Likewise.
49793         * lib/unictype/categ_Pf.h: Likewise.
49794         * lib/unictype/categ_Pi.h: Likewise.
49795         * lib/unictype/categ_Ps.h: Likewise.
49796         * lib/unictype/categ_Z.h: Likewise.
49797         * lib/unictype/categ_Zl.h: Likewise.
49798         * lib/unictype/categ_Zp.h: Likewise.
49799         * lib/unictype/categ_Zs.h: Likewise.
49800         * lib/unictype/ctype_blank.h: Likewise.
49801         * lib/unictype/ctype_cntrl.h: Likewise.
49802         * lib/unictype/ctype_digit.h: Likewise.
49803         * lib/unictype/ctype_space.h: Likewise.
49804         * lib/unictype/ctype_xdigit.h: Likewise.
49805         * lib/unictype/mirror.h: Likewise.
49806         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
49807         * lib/unictype/pr_bidi_block_separator.h: Likewise.
49808         * lib/unictype/pr_bidi_common_separator.h: Likewise.
49809         * lib/unictype/pr_bidi_control.h: Likewise.
49810         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
49811         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
49812         * lib/unictype/pr_bidi_european_digit.h: Likewise.
49813         * lib/unictype/pr_bidi_pdf.h: Likewise.
49814         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
49815         * lib/unictype/pr_bidi_whitespace.h: Likewise.
49816         * lib/unictype/pr_dash.h: Likewise.
49817         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
49818         * lib/unictype/pr_diacritic.h: Likewise.
49819         * lib/unictype/pr_extender.h: Likewise.
49820         * lib/unictype/pr_hex_digit.h: Likewise.
49821         * lib/unictype/pr_hyphen.h: Likewise.
49822         * lib/unictype/pr_ids_binary_operator.h: Likewise.
49823         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
49824         * lib/unictype/pr_ignorable_control.h: Likewise.
49825         * lib/unictype/pr_iso_control.h: Likewise.
49826         * lib/unictype/pr_join_control.h: Likewise.
49827         * lib/unictype/pr_left_of_pair.h: Likewise.
49828         * lib/unictype/pr_line_separator.h: Likewise.
49829         * lib/unictype/pr_logical_order_exception.h: Likewise.
49830         * lib/unictype/pr_non_break.h: Likewise.
49831         * lib/unictype/pr_not_a_character.h: Likewise.
49832         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
49833         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
49834         * lib/unictype/pr_other_id_start.h: Likewise.
49835         * lib/unictype/pr_other_lowercase.h: Likewise.
49836         * lib/unictype/pr_other_uppercase.h: Likewise.
49837         * lib/unictype/pr_paired_punctuation.h: Likewise.
49838         * lib/unictype/pr_paragraph_separator.h: Likewise.
49839         * lib/unictype/pr_pattern_syntax.h: Likewise.
49840         * lib/unictype/pr_pattern_white_space.h: Likewise.
49841         * lib/unictype/pr_private_use.h: Likewise.
49842         * lib/unictype/pr_quotation_mark.h: Likewise.
49843         * lib/unictype/pr_radical.h: Likewise.
49844         * lib/unictype/pr_soft_dotted.h: Likewise.
49845         * lib/unictype/pr_space.h: Likewise.
49846         * lib/unictype/pr_titlecase.h: Likewise.
49847         * lib/unictype/pr_variation_selector.h: Likewise.
49848         * lib/unictype/pr_white_space.h: Likewise.
49849         * lib/unictype/pr_zero_width.h: Likewise.
49850         * lib/unictype/sy_c_ident.h: Likewise.
49851         * lib/unictype/sy_c_whitespace.h: Likewise.
49852         * lib/unictype/sy_java_whitespace.h: Likewise.
49853         * lib/uninorm/composition-table.gperf: Likewise.
49854         * lib/uninorm/decomposition-table1.h: Likewise.
49855         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
49856         LB8.
49857         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49858         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49859         * modules/unictype/*: Bump version number of expected libunistring
49860         version.
49862 2011-01-09  Bruno Haible  <bruno@clisp.org>
49864         Update to Unicode 5.2.0.
49865         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
49866         trailing whitespace removed.
49868 2011-01-09  Bruno Haible  <bruno@clisp.org>
49870         New Unicode character properties, from Unicode 5.2.0.
49871         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
49872         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
49873         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
49874         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
49875         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
49876         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
49877         uc_is_property_cased, uc_is_property_case_ignorable,
49878         uc_is_property_changes_when_lowercased,
49879         uc_is_property_changes_when_uppercased,
49880         uc_is_property_changes_when_titlecased,
49881         uc_is_property_changes_when_casefolded,
49882         uc_is_property_changes_when_casemapped): New declarations.
49883         * lib/unictype/pr_byname.gperf: Add the new properties.
49884         * modules/unictype/property-byname (Depends-on): Depend on the new
49885         properties modules.
49886         * modules/unictype/property-all (Depends-on): Likewise.
49887         * MODULES.html.sh (Unicode string functions): Add
49888         unictype/property-case-ignorable, unictype/property-cased,
49889         unictype/property-changes-when-casefolded,
49890         unictype/property-changes-when-casemapped,
49891         unictype/property-changes-when-lowercased,
49892         unictype/property-changes-when-titlecased,
49893         unictype/property-changes-when-uppercased.
49895         New module 'unictype/property-changes-when-casemapped'.
49896         * modules/unictype/property-changes-when-casemapped: New file.
49897         * lib/unictype/pr_changes_when_casemapped.c: New file.
49898         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
49899         generated by gen-uni-tables.
49900         * modules/unictype/property-changes-when-casemapped-tests: New file.
49901         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
49902         automatically generated by gen-uni-tables.
49904         New module 'unictype/property-changes-when-casefolded'.
49905         * modules/unictype/property-changes-when-casefolded: New file.
49906         * lib/unictype/pr_changes_when_casefolded.c: New file.
49907         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
49908         generated by gen-uni-tables.
49909         * modules/unictype/property-changes-when-casefolded-tests: New file.
49910         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
49911         automatically generated by gen-uni-tables.
49913         New module 'unictype/property-changes-when-titlecased'.
49914         * modules/unictype/property-changes-when-titlecased: New file.
49915         * lib/unictype/pr_changes_when_titlecased.c: New file.
49916         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
49917         generated by gen-uni-tables.
49918         * modules/unictype/property-changes-when-titlecased-tests: New file.
49919         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
49920         automatically generated by gen-uni-tables.
49922         New module 'unictype/property-changes-when-uppercased'.
49923         * modules/unictype/property-changes-when-uppercased: New file.
49924         * lib/unictype/pr_changes_when_uppercased.c: New file.
49925         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
49926         generated by gen-uni-tables.
49927         * modules/unictype/property-changes-when-uppercased-tests: New file.
49928         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
49929         automatically generated by gen-uni-tables.
49931         New module 'unictype/property-changes-when-lowercased'.
49932         * modules/unictype/property-changes-when-lowercased: New file.
49933         * lib/unictype/pr_changes_when_lowercased.c: New file.
49934         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
49935         generated by gen-uni-tables.
49936         * modules/unictype/property-changes-when-lowercased-tests: New file.
49937         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
49938         automatically generated by gen-uni-tables.
49940         New module 'unictype/property-case-ignorable'.
49941         * modules/unictype/property-case-ignorable: New file.
49942         * lib/unictype/pr_case_ignorable.c: New file.
49943         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
49944         by gen-uni-tables.
49945         * modules/unictype/property-case-ignorable-tests: New file.
49946         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
49947         generated by gen-uni-tables.
49949         New module 'unictype/property-cased'.
49950         * modules/unictype/property-cased: New file.
49951         * lib/unictype/pr_cased.c: New file.
49952         * lib/unictype/pr_cased.h: New file, automatically generated by
49953         gen-uni-tables.
49954         * modules/unictype/property-cased-tests: New file.
49955         * tests/unictype/test-pr_cased.c: New file, automatically generated by
49956         gen-uni-tables.
49958 2011-01-09  Bruno Haible  <bruno@clisp.org>
49960         Update to Unicode 5.2.0.
49961         * lib/gen-uni-tables.c (output_predicate, output_category,
49962         output_combclass, output_bidi_category, output_decimal_digit_test,
49963         output_decimal_digit, output_digit_test, output_digit,
49964         output_numeric_test, output_numeric, output_mirror, output_scripts,
49965         output_scripts_byname, output_blocks, output_ident_category): Fix
49966         comment header.
49967         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
49968         get_wbp.
49969         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
49970         items.
49971         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
49972         Changes_When_Lowercased, Changes_When_Uppercased,
49973         Changes_When_Titlecased, Changes_When_Casefolded,
49974         Changes_When_Casemapped.
49975         (is_property_alphabetic, is_property_default_ignorable_code_point):
49976         Update for Unicode 5.2.0.
49977         (is_property_cased, is_property_case_ignorable,
49978         is_property_changes_when_lowercased,
49979         is_property_changes_when_uppercased,
49980         is_property_changes_when_titlecased,
49981         is_property_changes_when_casefolded,
49982         is_property_changes_when_casemapped): New functions.
49983         (output_properties): Output also the properties cased, case_ignorable,
49984         changes_when_lowercased, changes_when_uppercased,
49985         changes_when_titlecased, changes_when_casefolded,
49986         changes_when_casemapped.
49987         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
49988         Unicode TR#11 revision 17 -> 19.
49989         (LBP_CP): New enumeration value.
49990         (LBP_*): Adjust values accordingly.
49991         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
49992         TR#14 revision 22 -> 24.
49993         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
49994         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
49995         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
49996         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
49997         is_WBP_MIDLETTER.
49998         (output_composition_tables): Allow for 24 bits instead of 16 bits in
49999         the code1 and code2 of each composition rule.
50000         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
50001         * lib/unicase/ignorable.h: Likewise.
50002         * lib/unicase/tocasefold.h: Likewise.
50003         * lib/unicase/tolower.h: Likewise.
50004         * lib/unicase/totitle.h: Likewise.
50005         * lib/unicase/toupper.h: Likewise.
50006         * lib/unictype/bidi_of.h: Likewise.
50007         * lib/unictype/blocks.h: Likewise.
50008         * lib/unictype/categ_C.h: Likewise.
50009         * lib/unictype/categ_Cf.h: Likewise.
50010         * lib/unictype/categ_Cn.h: Likewise.
50011         * lib/unictype/categ_L.h: Likewise.
50012         * lib/unictype/categ_Ll.h: Likewise.
50013         * lib/unictype/categ_Lm.h: Likewise.
50014         * lib/unictype/categ_Lo.h: Likewise.
50015         * lib/unictype/categ_Lu.h: Likewise.
50016         * lib/unictype/categ_M.h: Likewise.
50017         * lib/unictype/categ_Mc.h: Likewise.
50018         * lib/unictype/categ_Mn.h: Likewise.
50019         * lib/unictype/categ_N.h: Likewise.
50020         * lib/unictype/categ_Nd.h: Likewise.
50021         * lib/unictype/categ_Nl.h: Likewise.
50022         * lib/unictype/categ_No.h: Likewise.
50023         * lib/unictype/categ_P.h: Likewise.
50024         * lib/unictype/categ_Pd.h: Likewise.
50025         * lib/unictype/categ_Po.h: Likewise.
50026         * lib/unictype/categ_S.h: Likewise.
50027         * lib/unictype/categ_Sc.h: Likewise.
50028         * lib/unictype/categ_So.h: Likewise.
50029         * lib/unictype/categ_of.h: Likewise.
50030         * lib/unictype/combining.h: Likewise.
50031         * lib/unictype/ctype_alnum.h: Likewise.
50032         * lib/unictype/ctype_alpha.h: Likewise.
50033         * lib/unictype/ctype_graph.h: Likewise.
50034         * lib/unictype/ctype_lower.h: Likewise.
50035         * lib/unictype/ctype_print.h: Likewise.
50036         * lib/unictype/ctype_punct.h: Likewise.
50037         * lib/unictype/ctype_upper.h: Likewise.
50038         * lib/unictype/decdigit.h: Likewise.
50039         * lib/unictype/digit.h: Likewise.
50040         * lib/unictype/numeric.h: Likewise.
50041         * lib/unictype/pr_alphabetic.h: Likewise.
50042         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50043         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50044         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50045         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50046         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50047         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50048         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50049         * lib/unictype/pr_combining.h: Likewise.
50050         * lib/unictype/pr_composite.h: Likewise.
50051         * lib/unictype/pr_currency_symbol.h: Likewise.
50052         * lib/unictype/pr_dash.h: Likewise.
50053         * lib/unictype/pr_decimal_digit.h: Likewise.
50054         * lib/unictype/pr_deprecated.h: Likewise.
50055         * lib/unictype/pr_diacritic.h: Likewise.
50056         * lib/unictype/pr_extender.h: Likewise.
50057         * lib/unictype/pr_grapheme_base.h: Likewise.
50058         * lib/unictype/pr_grapheme_extend.h: Likewise.
50059         * lib/unictype/pr_grapheme_link.h: Likewise.
50060         * lib/unictype/pr_id_continue.h: Likewise.
50061         * lib/unictype/pr_id_start.h: Likewise.
50062         * lib/unictype/pr_ideographic.h: Likewise.
50063         * lib/unictype/pr_ignorable_control.h: Likewise.
50064         * lib/unictype/pr_logical_order_exception.h: Likewise.
50065         * lib/unictype/pr_lowercase.h: Likewise.
50066         * lib/unictype/pr_numeric.h: Likewise.
50067         * lib/unictype/pr_other_alphabetic.h: Likewise.
50068         * lib/unictype/pr_punctuation.h: Likewise.
50069         * lib/unictype/pr_sentence_terminal.h: Likewise.
50070         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50071         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50072         * lib/unictype/pr_unified_ideograph.h: Likewise.
50073         * lib/unictype/pr_uppercase.h: Likewise.
50074         * lib/unictype/pr_xid_continue.h: Likewise.
50075         * lib/unictype/pr_xid_start.h: Likewise.
50076         * lib/unictype/pr_zero_width.h: Likewise.
50077         * lib/unictype/scripts.h: Likewise.
50078         * lib/unictype/scripts_byname.gperf: Likewise.
50079         * lib/unictype/sy_java_ident.h: Likewise.
50080         * lib/unigbrk/gbrkprop.h: Likewise.
50081         * lib/unilbrk/lbrkprop1.h: Likewise.
50082         * lib/unilbrk/lbrkprop2.h: Likewise.
50083         * lib/unilbrk/lbrktables.h: Likewise.
50084         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
50085         LBP_CP. Implement rule LB30.
50086         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
50087         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
50088         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
50089         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
50090         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
50091         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
50092         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
50093         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
50094         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
50095         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
50096         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
50097         bits instead of 16 bits in the code1 and code2 of each composition
50098         rule.
50099         (uc_composition): Update for Unicode 5.2.0.
50100         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
50101         * lib/uninorm/decomposition-table2.h: Likewise.
50102         * lib/uniwbrk/wbrkprop.h: Likewise.
50103         * tests/unicase/test-cased.c: Likewise.
50104         * tests/unicase/test-ignorable.c: Likewise.
50105         * tests/unicase/test-uc_tolower.c: Likewise.
50106         * tests/unicase/test-uc_totitle.c: Likewise.
50107         * tests/unicase/test-uc_toupper.c: Likewise.
50108         * tests/unictype/test-categ_C.c: Likewise.
50109         * tests/unictype/test-categ_Cf.c: Likewise.
50110         * tests/unictype/test-categ_Cn.c: Likewise.
50111         * tests/unictype/test-categ_L.c: Likewise.
50112         * tests/unictype/test-categ_Ll.c: Likewise.
50113         * tests/unictype/test-categ_Lm.c: Likewise.
50114         * tests/unictype/test-categ_Lo.c: Likewise.
50115         * tests/unictype/test-categ_Lu.c: Likewise.
50116         * tests/unictype/test-categ_M.c: Likewise.
50117         * tests/unictype/test-categ_Mc.c: Likewise.
50118         * tests/unictype/test-categ_Mn.c: Likewise.
50119         * tests/unictype/test-categ_N.c: Likewise.
50120         * tests/unictype/test-categ_Nd.c: Likewise.
50121         * tests/unictype/test-categ_Nl.c: Likewise.
50122         * tests/unictype/test-categ_No.c: Likewise.
50123         * tests/unictype/test-categ_P.c: Likewise.
50124         * tests/unictype/test-categ_Pd.c: Likewise.
50125         * tests/unictype/test-categ_Po.c: Likewise.
50126         * tests/unictype/test-categ_S.c: Likewise.
50127         * tests/unictype/test-categ_Sc.c: Likewise.
50128         * tests/unictype/test-categ_So.c: Likewise.
50129         * tests/unictype/test-ctype_alnum.c: Likewise.
50130         * tests/unictype/test-ctype_alpha.c: Likewise.
50131         * tests/unictype/test-ctype_graph.c: Likewise.
50132         * tests/unictype/test-ctype_lower.c: Likewise.
50133         * tests/unictype/test-ctype_print.c: Likewise.
50134         * tests/unictype/test-ctype_punct.c: Likewise.
50135         * tests/unictype/test-ctype_upper.c: Likewise.
50136         * tests/unictype/test-decdigit.h: Likewise.
50137         * tests/unictype/test-digit.h: Likewise.
50138         * tests/unictype/test-numeric.h: Likewise.
50139         * tests/unictype/test-pr_alphabetic.c: Likewise.
50140         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
50141         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
50142         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
50143         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
50144         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
50145         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
50146         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
50147         * tests/unictype/test-pr_combining.c: Likewise.
50148         * tests/unictype/test-pr_composite.c: Likewise.
50149         * tests/unictype/test-pr_currency_symbol.c: Likewise.
50150         * tests/unictype/test-pr_dash.c: Likewise.
50151         * tests/unictype/test-pr_decimal_digit.c: Likewise.
50152         * tests/unictype/test-pr_deprecated.c: Likewise.
50153         * tests/unictype/test-pr_diacritic.c: Likewise.
50154         * tests/unictype/test-pr_extender.c: Likewise.
50155         * tests/unictype/test-pr_grapheme_base.c: Likewise.
50156         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
50157         * tests/unictype/test-pr_grapheme_link.c: Likewise.
50158         * tests/unictype/test-pr_id_continue.c: Likewise.
50159         * tests/unictype/test-pr_id_start.c: Likewise.
50160         * tests/unictype/test-pr_ideographic.c: Likewise.
50161         * tests/unictype/test-pr_ignorable_control.c: Likewise.
50162         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
50163         * tests/unictype/test-pr_lowercase.c: Likewise.
50164         * tests/unictype/test-pr_numeric.c: Likewise.
50165         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
50166         * tests/unictype/test-pr_punctuation.c: Likewise.
50167         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
50168         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
50169         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
50170         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
50171         * tests/unictype/test-pr_uppercase.c: Likewise.
50172         * tests/unictype/test-pr_xid_continue.c: Likewise.
50173         * tests/unictype/test-pr_xid_start.c: Likewise.
50174         * tests/unictype/test-pr_zero_width.c: Likewise.
50175         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
50176         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
50177         changed behaviour: line breaking is now disallowed between a letter
50178         or '=' and '('.
50179         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50180         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50181         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
50182         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
50183         * tests/uniwidth/test-uc_width2.sh: Same updates as in
50184         lib/uniwidth/width.c.
50185         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
50186         without comments, but with the original copyright notice.
50187         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
50188         changes.
50189         * lib/unictype/categ_Cc.h: Likewise.
50190         * lib/unictype/categ_Co.h: Likewise.
50191         * lib/unictype/categ_Cs.h: Likewise.
50192         * lib/unictype/categ_Lt.h: Likewise.
50193         * lib/unictype/categ_Me.h: Likewise.
50194         * lib/unictype/categ_Pc.h: Likewise.
50195         * lib/unictype/categ_Pe.h: Likewise.
50196         * lib/unictype/categ_Pf.h: Likewise.
50197         * lib/unictype/categ_Pi.h: Likewise.
50198         * lib/unictype/categ_Ps.h: Likewise.
50199         * lib/unictype/categ_Sk.h: Likewise.
50200         * lib/unictype/categ_Sm.h: Likewise.
50201         * lib/unictype/categ_Z.h: Likewise.
50202         * lib/unictype/categ_Zl.h: Likewise.
50203         * lib/unictype/categ_Zp.h: Likewise.
50204         * lib/unictype/categ_Zs.h: Likewise.
50205         * lib/unictype/ctype_blank.h: Likewise.
50206         * lib/unictype/ctype_cntrl.h: Likewise.
50207         * lib/unictype/ctype_digit.h: Likewise.
50208         * lib/unictype/ctype_space.h: Likewise.
50209         * lib/unictype/ctype_xdigit.h: Likewise.
50210         * lib/unictype/mirror.h: Likewise.
50211         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50212         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50213         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50214         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50215         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50216         * lib/unictype/pr_bidi_control.h: Likewise.
50217         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50218         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50219         * lib/unictype/pr_bidi_pdf.h: Likewise.
50220         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50221         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50222         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50223         * lib/unictype/pr_format_control.h: Likewise.
50224         * lib/unictype/pr_hex_digit.h: Likewise.
50225         * lib/unictype/pr_hyphen.h: Likewise.
50226         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50227         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50228         * lib/unictype/pr_iso_control.h: Likewise.
50229         * lib/unictype/pr_join_control.h: Likewise.
50230         * lib/unictype/pr_left_of_pair.h: Likewise.
50231         * lib/unictype/pr_line_separator.h: Likewise.
50232         * lib/unictype/pr_math.h: Likewise.
50233         * lib/unictype/pr_non_break.h: Likewise.
50234         * lib/unictype/pr_not_a_character.h: Likewise.
50235         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50236         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50237         * lib/unictype/pr_other_id_continue.h: Likewise.
50238         * lib/unictype/pr_other_id_start.h: Likewise.
50239         * lib/unictype/pr_other_lowercase.h: Likewise.
50240         * lib/unictype/pr_other_math.h: Likewise.
50241         * lib/unictype/pr_other_uppercase.h: Likewise.
50242         * lib/unictype/pr_paired_punctuation.h: Likewise.
50243         * lib/unictype/pr_paragraph_separator.h: Likewise.
50244         * lib/unictype/pr_pattern_syntax.h: Likewise.
50245         * lib/unictype/pr_pattern_white_space.h: Likewise.
50246         * lib/unictype/pr_private_use.h: Likewise.
50247         * lib/unictype/pr_quotation_mark.h: Likewise.
50248         * lib/unictype/pr_radical.h: Likewise.
50249         * lib/unictype/pr_soft_dotted.h: Likewise.
50250         * lib/unictype/pr_space.h: Likewise.
50251         * lib/unictype/pr_titlecase.h: Likewise.
50252         * lib/unictype/pr_variation_selector.h: Likewise.
50253         * lib/unictype/pr_white_space.h: Likewise.
50254         * lib/unictype/sy_c_ident.h: Likewise.
50255         * lib/unictype/sy_c_whitespace.h: Likewise.
50256         * lib/unictype/sy_java_whitespace.h: Likewise.
50257         * modules/uni*/*: Bump version number of expected libunistring version.
50258         Reported by Simon Josefsson.
50260 2011-01-09  Karl Heuer  <kwzh@gnu.org>
50262         useless-if-before-free: fix typo in --help and make the internal,
50263         automatic version date update process work once again.
50264         --help output contained a NUL character instead of the
50265         backslash-zero that was intended.  Also, the "must lie within
50266         the first 8 lines" line is on line 9, and hence not getting
50267         automatically updated.
50268         * build-aux/useless-if-before-free: Fix the former by adding a
50269         backslash, and the latter by condensing the three lines of what-it-does
50270         to a single line, leaving one line of slack for the future.
50272 2011-01-09  Bruno Haible  <bruno@clisp.org>
50274         uniwidth/width: Fix width of U+1D173..U+1D17A.
50275         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
50276         symbolic_width, output_width_property_test): New functions.
50277         (main): Invoke output_nonspacing_property, output_width_property_test.
50278         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
50279         U+1D173..U+1D17A.
50280         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
50281         1.
50282         * modules/uniwidth/*: Bump version number of expected libunistring
50283         version.
50284         * modules/unilbrk/*: Likewise.
50286 2011-01-08  Bruno Haible  <bruno@clisp.org>
50288         uninorm tests: Preserve copyright of Unicode data file.
50289         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
50290         Mention modifications.
50292 2011-01-08  Bruno Haible  <bruno@clisp.org>
50294         gen-uni-tables: Prepare for Unicode 5.2.0.
50295         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
50296         (debug_output_lbp, output_lbp): Update.
50298 2011-01-08  Bruno Haible  <bruno@clisp.org>
50300         unilbrk: Clarify gen-uni-tables.c code.
50301         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
50302         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
50303         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
50305 2011-01-07  Bruno Haible  <bruno@clisp.org>
50307         strtod: Restore errno when successfully parsing Infinity or NaN.
50308         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
50309         restore the original errno.
50311 2011-01-07  Bruno Haible  <bruno@clisp.org>
50313         remove test: Avoid failure on HP-UX 11.
50314         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
50316 2011-01-07  Bruno Haible  <bruno@clisp.org>
50318         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
50319         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
50320         error code.
50322 2011-01-07  Pádraig Brady  <P@draigBrady.com>
50324         ignore-value: fixup comments, and add Eric Blake
50325         as an author since he rewrote the macros.
50326         * lib/ignore-value.h (ignore_value):  State that
50327         we now support aggregates.  Also specify exactly
50328         when the GCC warn_unused_result feature was added.
50330 2011-01-06  Eric Blake  <eblake@redhat.com>
50332         ignore-value: support aggregate types
50333         * lib/ignore-value.h (ignore_value): Provide separate gcc
50334         definition.
50335         * modules/ignore-value-tests: New test module.
50336         * tests/test-ignore-value.c: New test.
50338         maint.mk: improve sc_prohibit_strcmp regex
50339         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
50340         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
50341         definition of STRNEQ.
50343         signal: work around Haiku issue with SIGBUS
50344         * lib/siglist.h: Add comment.
50345         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
50346         strsignal's favoring of SIGSEGV.
50347         * tests/test-signal.c (main): Avoid test failure.
50348         * doc/posix-headers/signal.texi (signal.h): Document the issue.
50349         Reported by Scott McCreary.
50351         maint.mk: add pre-release check to ensure submodule commits are public
50352         * top/maint.mk (public-submodule-commit): New rule.
50353         (submodule-checks): New variable.
50354         (alpha beta stable): Depend on the variable.
50356 2011-01-05  Pádraig Brady  <P@draigBrady.com>
50357         and Jim Meyering  <meyering@redhat.com>
50359         ignore-value: make ignore_value more generic; deprecate ignore_ptr
50360         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
50361         (ATTRIBUTE_DEPRECATED): Define.
50362         (_ignore_case): New function.
50363         (ignore_value): New macro, to replace the old function.
50364         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
50365         * modules/ignore-value (Depends-on): Add stdint.
50367 2011-01-04  Eric Blake  <eblake@redhat.com>
50369         doc: regenerate INSTALL
50370         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
50371         @firstparagraphindent support, now that autoconf dropped it.
50372         (INSTALL_PRELUDE): Reinstate old macro.
50373         * doc/install.texi: Resync from autoconf.
50374         * doc/INSTALL: Reflect recent autoconf update.
50375         * doc/INSTALL.ISO: Likewise.
50376         * doc/INSTALL.UTF-8: Likewise.
50377         Reported by Karl Berry.
50379 2011-01-04  Bruce Korb  <address@hidden>
50381         git-version-gen: avoid a sub-shell
50382         * build-aux/git-version-gen: Redirect stderr in `...` via
50383         "exec 2>...", rather than via an added sub-shell.
50385 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
50387         git-version-gen: use (...) rather than sh -c '...'
50388         * build-aux/git-version-gen: Rather than hard-coding a shell's name
50389         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
50391 2011-01-03  Jim Meyering  <meyering@redhat.com>
50393         git-version-gen: convert leading TABs to spaces
50394         * build-aux/git-version-gen: Expand leading TABs.
50396         git-version-gen: handle failed "git rev-list"
50397         * build-aux/git-version-gen: Rather than leaking a "fatal" error
50398         from git and proceeding as if it had succeeded but printed no SHA1
50399         checksums, suppress the diagnostic and handle the failure.
50400         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
50402         git-version-gen: include command name in one more diagnostic
50403         * build-aux/git-version-gen: When the required .tarball-version file
50404         was missing or unreadable, you might see the diagnostic from "cat",
50405         but no trace of the name of the invoking script.  Now, you still see
50406         the diagnostic from cat, but also get one from "git-version-gen: ".
50407         Inspired by a patch from Bruce Korb.
50409         update-copyright: adjust test to match changed code
50410         * tests/test-update-copyright.sh: Change test's expected output
50411         to match new actual output.
50413 2011-01-02  Bruno Haible  <bruno@clisp.org>
50415         getlogin_r: Avoid test failure on HP-UX 11.
50416         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
50417         ERANGE when the second argument is zero.
50418         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
50419         portability problem.
50421 2011-01-02  Bruce Korb  <bkorb@gnu.org>
50423         * build-aux/update-copyright: doc Simon's changes
50425 2011-01-02  Simon Josefsson  <simon@josefsson.org>
50427         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
50428         environment variable.
50430 2011-01-02  Bruno Haible  <bruno@clisp.org>
50432         unigbrk: Avoid gcc warnings.
50433         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
50434         unused variable.
50435         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
50436         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
50437         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
50438         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
50439         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
50440         Change type of first argument to 'const char *'.
50441         (main): Remove unused variable.
50442         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
50443         type of first argument to 'const char *'.
50444         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
50445         Likewise.
50446         (main): Change type of variable 's'.
50447         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
50448         to 'int'.
50450 2011-01-02  Bruno Haible  <bruno@clisp.org>
50452         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
50453         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
50454         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
50455         bug.
50456         * lib/pwrite.c: Undo 2010-12-31 patch.
50457         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
50459 2011-01-02  Bruno Haible  <bruno@clisp.org>
50461         pread: Fix test whether it works.
50462         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
50464 2011-01-02  Bruno Haible  <bruno@clisp.org>
50466         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
50467         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
50468         ends in "6". Don't require a specific month name. Try also the locale
50469         names found on HP-UX 11 and Solaris 7.
50471 2011-01-02  Bruno Haible  <bruno@clisp.org>
50473         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
50474         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
50475         C linkage.
50476         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
50478 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
50480         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
50481         for consistency, since the "cluster" term is not used elsewhere.
50482         * lib/unigbrk.in.h: Update name.
50483         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
50484         * lib/unigbrk/u16-grapheme-next.c: Update name.
50485         * lib/unigbrk/u16-grapheme-prev.c: Update name.
50486         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
50487         * lib/unigbrk/u32-grapheme-next.c: Update name.
50488         * lib/unigbrk/u32-grapheme-prev.c: Update name.
50489         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
50490         * lib/unigbrk/u8-grapheme-next.c: Update name.
50491         * lib/unigbrk/u8-grapheme-prev.c: Update name.
50492         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
50493         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
50494         Suggested by Bruno Haible.
50496 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
50498         Remove module 'u8-grapheme-len' as too redundant with
50499         'u8-grapheme-next'.
50500         * modules/unigbrk/u8-grapheme-len: Delete file.
50501         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
50502         * lib/unigbrk.in.h: Remove prototype for deleted function.
50503         * lib/unigbrk/u8-grapheme-len.c: Delete file.
50504         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
50506         Remove module 'u16-grapheme-len' as too redundant with
50507         'u16-grapheme-next'.
50508         * modules/unigbrk/u16-grapheme-len: Delete file.
50509         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
50510         * lib/unigbrk.in.h: Remove prototype for deleted function.
50511         * lib/unigbrk/u16-grapheme-len.c: Delete file.
50512         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
50514         Remove module 'u32-grapheme-len' as too redundant with
50515         'u32-grapheme-next'.
50516         * modules/unigbrk/u32-grapheme-len: Delete file.
50517         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
50518         * lib/unigbrk.in.h: Remove prototype for deleted function.
50519         * lib/unigbrk/u32-grapheme-len.c: Delete file.
50520         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
50522         Suggested by Bruno Haible.
50524 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
50526         * unigbrk.in.h: Fix typo: "ben" => "been".
50527         Reported by Bruno Haible.
50529 2011-01-01  Jim Meyering  <meyering@redhat.com>
50531         maint: update almost all copyright ranges to include 2011
50532         Run the new "make update-copyright" rule.
50534 2011-01-01  Jim Meyering  <meyering@redhat.com>
50536         maint: update-copyright: exempt doc/INSTALL*
50537         * Makefile (update-copyright): Also exclude doc/INSTALL*,
50538         since they are generated.  Suggested by Bruno Haible.
50540 2011-01-01  Jim Meyering  <meyering@redhat.com>
50542         maint: refine the update-copyright rule
50543         * Makefile (update-copyright): Also exclude any file that includes
50544         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
50545         code that merely generates the comment.
50547 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
50549         New module 'u8-grapheme-len'.
50550         * modules/unigbrk/u8-grapheme-len: New file.
50551         * modules/unigbrk/u8-grapheme-len-tests: New file.
50552         * lib/unigbrk.in.h: Add prototype for new function.
50553         * lib/unigbrk/u8-grapheme-len.c: New file.
50554         * tests/unigbrk/test-u8-grapheme-len.c: New file.
50556         New module 'u16-grapheme-len'.
50557         * modules/unigbrk/u16-grapheme-len: New file.
50558         * modules/unigbrk/u16-grapheme-len-tests: New file.
50559         * lib/unigbrk.in.h: Add prototype for new function.
50560         * lib/unigbrk/u16-grapheme-len.c: New file.
50561         * tests/unigbrk/test-u16-grapheme-len.c: New file.
50563         New module 'u32-grapheme-len'.
50564         * modules/unigbrk/u32-grapheme-len: New file.
50565         * modules/unigbrk/u32-grapheme-len-tests: New file.
50566         * lib/unigbrk.in.h: Add prototype for new function.
50567         * lib/unigbrk/u32-grapheme-len.c: New file.
50568         * tests/unigbrk/test-u32-grapheme-len.c: New file.
50570         New module 'u8-grapheme-next'.
50571         * modules/unigbrk/u8-grapheme-next: New file.
50572         * modules/unigbrk/u8-grapheme-next-tests: New file.
50573         * lib/unigbrk.in.h: Add prototype for new function.
50574         * lib/unigbrk/u8-grapheme-next.c: New file.
50575         * tests/unigbrk/test-u8-grapheme-next.c: New file.
50577         New module 'u16-grapheme-next'.
50578         * modules/unigbrk/u16-grapheme-next: New file.
50579         * modules/unigbrk/u16-grapheme-next-tests: New file.
50580         * lib/unigbrk.in.h: Add prototype for new function.
50581         * lib/unigbrk/u16-grapheme-next.c: New file.
50582         * tests/unigbrk/test-u16-grapheme-next.c: New file.
50584         New module 'u32-grapheme-next'.
50585         * modules/unigbrk/u32-grapheme-next: New file.
50586         * modules/unigbrk/u32-grapheme-next-tests: New file.
50587         * lib/unigbrk.in.h: Add prototype for new function.
50588         * lib/unigbrk/u32-grapheme-next.c: New file.
50589         * tests/unigbrk/test-u32-grapheme-next.c: New file.
50591         New module 'u8-grapheme-prev'.
50592         * modules/unigbrk/u8-grapheme-prev: New file.
50593         * modules/unigbrk/u8-grapheme-prev-tests: New file.
50594         * lib/unigbrk.in.h: Add prototype for new function.
50595         * lib/unigbrk/u8-grapheme-prev.c: New file.
50596         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
50598         New module 'u16-grapheme-prev'.
50599         * modules/unigbrk/u16-grapheme-prev: New file.
50600         * modules/unigbrk/u16-grapheme-prev-tests: New file.
50601         * lib/unigbrk.in.h: Add prototype for new function.
50602         * lib/unigbrk/u16-grapheme-prev.c: New file.
50603         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
50605         New module 'u32-grapheme-prev'.
50606         * modules/unigbrk/u32-grapheme-prev: New file.
50607         * modules/unigbrk/u32-grapheme-prev-tests: New file.
50608         * lib/unigbrk.in.h: Add prototype for new function.
50609         * lib/unigbrk/u32-grapheme-prev.c: New file.
50610         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
50612         New module 'u8-grapheme-breaks'.
50613         * modules/unigbrk/u8-grapheme-breaks: New file.
50614         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
50615         * lib/unigbrk.in.h: Add prototype for new function.
50616         * lib/unigbrk/u8-grapheme-breaks.c: New file.
50617         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
50619         New module 'u16-grapheme-breaks'.
50620         * modules/unigbrk/u16-grapheme-breaks: New file.
50621         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
50622         * lib/unigbrk.in.h: Add prototype for new function.
50623         * lib/unigbrk/u16-grapheme-breaks.c: New file.
50624         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
50626         New module 'u32-grapheme-breaks'.
50627         * modules/unigbrk/u32-grapheme-breaks: New file.
50628         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
50629         * lib/unigbrk.in.h: Add prototype for new function.
50630         * lib/unigbrk/u32-grapheme-breaks.c: New file.
50631         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
50633         New module 'ulc-grapheme-breaks'.
50634         * modules/unigbrk/ulc-grapheme-breaks: New file.
50635         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
50636         * m4/locale-ar.m4: New file.
50637         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
50638         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
50639         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
50641 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
50643         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
50644         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
50645         modified how this file was generated before I initially submitted
50646         the module, but failed to regenerate it.  This meant that several
50647         of the level2 entries were wrong.
50648         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
50649         Remove the division-by-2 that is folded into the table now that
50650         gbrkprop.h has been regenerated properly.  Now -1 entries are
50651         handled correctly.
50653         New module 'unigbrk/uc-gbrk-prop-tests'.
50654         * modules/unigbrk/uc-gbrk-prop-tests: New file.
50655         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
50656         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
50657         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
50659 2011-01-01  Bruno Haible  <bruno@clisp.org>
50661         Avoid use of hexadecimal escapes.
50662         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
50663         instead of hexadecimal escapes.
50665 2011-01-01  Jim Meyering  <meyering@redhat.com>
50667         maint: new rule to update copyright year ranges
50668         * Makefile (update-copyright): New rule.
50670         maint: indent with TABs in Makefile
50671         * Makefile: Expand leading sequences of spaces to TABs
50673         version-etc: update the copyright year it reports
50674         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
50676 2010-12-31  Bruno Haible  <bruno@clisp.org>
50678         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
50679         * lib/isfinite.c (zerof, zerod, zerol): New variables.
50680         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
50681         zero.
50683 2010-12-31  Bruno Haible  <bruno@clisp.org>
50685         pwrite: Work around HP-UX 11.11 bug.
50686         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
50687         works and set REPLACE_PWRITE if not.
50688         * lib/pwrite.c (pwrite): Add an implementation that uses the system
50689         function.
50690         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
50692 2010-12-31  Bruno Haible  <bruno@clisp.org>
50694         pread: Work around HP-UX 11 bugs.
50695         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
50696         and set REPLACE_PREAD if not.
50697         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
50699 2010-12-31  Eric Blake  <eblake@redhat.com>
50701         nl_langinfo: fix YESEXPR on Irix 6.5
50702         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
50703         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
50704         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
50705         it.
50707 2010-12-31  Bruno Haible  <bruno@clisp.org>
50709         iconv: Document HP-UX 11 bug.
50710         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
50712 2010-12-31  Bruno Haible  <bruno@clisp.org>
50714         ldexpl: Fix link error on HP-UX 11.
50715         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
50716         LDEXPL_LIBM, using $ISNANL_LIBM.
50718 2010-12-31  Eric Blake  <eblake@redhat.com>
50720         ftello: avoid compilation failure with SunStudio c89
50721         * lib/ftello.c (ftello): Use lseek, not llseek.
50723         tests: avoid failing coreutils tests on cygwin
50724         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
50725         (create_exe_shims_): Return 0 when skipping.
50727 2010-12-31  Bruno Haible  <bruno@clisp.org>
50729         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
50730         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
50732 2010-12-31  Bruno Haible  <bruno@clisp.org>
50734         waitpid: Fix link error in C++ mode.
50735         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
50737 2010-12-31  Bruno Haible  <bruno@clisp.org>
50739         isnan: Use GCC built-ins when possible.
50740         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
50741         __builtin_isnan.
50742         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
50743         (isnan): Define using GCC built-ins for GCC >= 4.0.
50745 2010-12-31  Bruno Haible  <bruno@clisp.org>
50747         isnand: Fix mistake.
50748         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
50749         __builtin_isnand.
50751 2010-12-31  Bruno Haible  <bruno@clisp.org>
50753         open: Avoid C++ error on HP-UX 11.
50754         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
50756 2010-12-31  Bruno Haible  <bruno@clisp.org>
50758         time_r: Add missing declarations on HP-UX 11.
50759         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
50760         instead of HAVE_LOCALTIME_R.
50761         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
50762         HAVE_LOCALTIME_R always.
50763         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
50764         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
50765         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
50766         HAVE_LOCALTIME_R.
50767         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
50768         * doc/posix-functions/localtime_r.texi: Likewise.
50770 2010-12-29  Eric Blake  <eblake@redhat.com>
50772         mountlist: tweak previous commit
50773         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
50774         Reported by Paul Eggert.
50776         mountlist: fix local drive detection on cygwin
50777         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
50778         that works for cygwin.
50780 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
50782         ftoastr, snprintf: ftoastr + snprintf module
50783         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
50784         since the snprintf module now should be good enough here.
50785         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
50786         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
50787         and gl_MODULE_INDICATOR([snprintf]), but the former enables
50788         GNULIB_SNPRINTF only for the test directory, and the latter
50789         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
50790         seems to suffice by itself.
50792 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
50794         alloca: one step towards thread-safety
50795         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
50796         need for a static variable.  All callers changed.  This does not
50797         make the alloca replacement thread-safe, but it's one step.
50799         tests: minor indenting change
50800         * tests/init.sh: Sync from coreutils housekeeping patch
50801         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
50802         to keep lines within 80 columns.
50804 2010-12-28  Jim Meyering  <meyering@redhat.com>
50806         regex: don't infloop on persistent failing calloc
50807         * lib/regexec.c (build_trtable): Return failure indication upon
50808         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
50809         In glibc, this was fixed for version 2.13:
50810         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
50812 2010-12-28  Bruno Haible  <bruno@clisp.org>
50813             Paul Eggert <eggert@cs.ucla.edu>
50815         linkat: Make implementation robust against system behaviour variations.
50816         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
50817         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
50818         way, and to -2 if it needs a generic runtime test.
50819         * lib/linkat.c (solaris_optimized_link_immediate,
50820         solaris_optimized_link_follow): New functions.
50821         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
50822         (check_same_link): Use it.
50824 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
50826         New module 'unigbrk/base'.
50827         * modules/unigbrk/base: New file.
50828         * lib/unigbrk.in.h: New file.
50830         New module 'unigbrk/uc-gbrk-prop'.
50831         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
50832         * modules/unigbrk/uc-gbrk-prop: New file.
50833         * lib/unigbrk/gbrkprop.h: New file.
50834         * lib/unigbrk/uc-gbrk-prop.c: New file.
50836         New module 'unigbrk/uc-is-grapheme-break'.
50837         * modules/unigbrk/uc-is-grapheme-break: New file.
50838         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
50839         * lib/unigbrk/uc-is-grapheme-break.c: New file.
50840         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
50841         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
50842         * tests/unigbrk/GraphemeBreakTest.txt: New file.
50844         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
50846 2010-12-27  Bruno Haible  <bruno@clisp.org>
50848         linkat test: Avoid failure on Solaris 11 2010-11.
50849         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
50851 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
50853         utimens: work around glibc rounding bug on more platforms
50854         * lib/utimens.c (fdutimens): Work around rounding bug even if
50855         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
50856         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
50858 2010-12-27  Bruno Haible  <bruno@clisp.org>
50860         select tests: Improve comments.
50861         * tests/test-select.c (do_select): Add comments.
50863 2010-12-27  Bruno Haible  <bruno@clisp.org>
50865         select tests: Safer way of handling timeout.
50866         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
50867         at every invocation.
50869 2010-12-27  Bruno Haible  <bruno@clisp.org>
50871         select tests: Use 'bool' where appropriate.
50872         * tests/test-select.c (connect_to_socket): Change argument type to
50873         'bool'.
50875 2010-12-27  Bruno Haible  <bruno@clisp.org>
50877         select tests: Use existing modules.
50878         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
50879         (configure.ac): Don't test for unistd.h.
50880         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
50881         declared in <unistd.h>.
50883 2010-12-27  Bruno Haible  <bruno@clisp.org>
50885         mbrtowc: Work around a Solaris 7 bug.
50886         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
50887         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
50888         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
50889         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
50890         MBRTOWC_NULL_ARG1_BUG.
50891         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
50892         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
50893         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
50894         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
50896 2010-12-27  Jim Meyering  <meyering@redhat.com>
50898         read-file.c: tweak syntax
50899         * lib/read-file.c (fread_file): Remove space after "*" in function
50900         definitions.
50902 2010-12-27  Bruno Haible  <bruno@clisp.org>
50904         times test: Avoid gcc warnings on OSF/1.
50905         * tests/test-times.c (main): Cast printf arguments from clock_t to
50906         'long int'.
50908 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
50910         utimens: work around glibc rounding bug on older Linux kernels
50911         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
50912         on Linux with a glibc whose utimes might not work, then work
50913         around a longstanding glibc bug involving rounding rather than
50914         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
50915         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
50917 2010-12-26  Bruno Haible  <bruno@clisp.org>
50919         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
50920         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
50921         _GL_CXXALIAS_SYS.
50922         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
50924 2010-12-26  Bruno Haible  <bruno@clisp.org>
50926         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
50927         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
50928         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
50929         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
50930         looking for the declaration.
50931         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
50932         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
50933         problem.
50934         * doc/posix-functions/inet_pton.texi: Likewise.
50936 2010-12-26  Bruno Haible  <bruno@clisp.org>
50938         arpa_inet: Use the common idioms with C++ support.
50939         * lib/arpa_inet.in.h: Include c++defs.h.
50940         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
50941         support.
50942         * modules/arpa_inet (Depends-on): Add c++defs.
50943         (Makefile.am): Substitute the contents of c++defs.h.
50944         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
50945         * modules/arpa_inet-c++-tests: New file.
50946         * tests/test-arpa_inet-c++.cc: New file.
50948 2010-12-25  Bruno Haible  <bruno@clisp.org>
50950         Fix more C++ link errors on Solaris 8.
50951         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
50952         $(LIB_EACCESS).
50953         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
50954         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
50955         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
50956         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
50957         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
50959 2010-12-25  Bruno Haible  <bruno@clisp.org>
50961         printf-posix: Fix link error when a non-GCC compiler is used.
50962         * lib/stdio.in.h (printf): When not using GCC, override printf
50963         correctly.
50964         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
50966 2010-12-25  Bruno Haible  <bruno@clisp.org>
50968         strerror_r-posix: Update doc.
50969         * doc/posix-functions/strerror_r.texi: Update doc about the return
50970         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
50972 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
50974         utimens: simplify the logic of the previous change
50975         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
50976         This should not affect whether the test succeeds or fails.
50978         utimens: configure better on hosts with NFS clock skew
50979         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
50980         uses the clock of the local host.  It might use the clock of the
50981         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
50982         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
50984 2010-12-25  Bruno Haible  <bruno@clisp.org>
50986         ptsname test: Avoid failure on Solaris.
50987         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
50988         open a pseudo-terminal; don't use BSD-style ptys.
50989         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
50991 2010-12-25  Bruno Haible  <bruno@clisp.org>
50993         ptsname: Avoid ERANGE failure on some systems.
50994         * lib/ptsname.c (buffer): Increase size.
50996 2010-12-25  Bruno Haible  <bruno@clisp.org>
50998         rename, renameat: Avoid test failures at NFS mounted locations.
50999         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
51000         so that subsequent mkdir calls succeed.
51002 2010-12-25  Bruno Haible  <bruno@clisp.org>
51004         iswblank: Fix C++ link error on Solaris 8.
51005         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
51006         _GL_FUNCDECL_SYS.
51008 2010-12-25  Bruno Haible  <bruno@clisp.org>
51010         unistd: Fix C++ link error on Solaris 8.
51011         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
51013 2010-12-25  Bruno Haible  <bruno@clisp.org>
51015         readlink doc: Mention an old glibc bug.
51016         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
51018 2010-12-25  Bruno Haible  <bruno@clisp.org>
51020         fcntl-h: Fix for use of C++ on glibc systems.
51021         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
51022         also on glibc systems in C++ mode.
51023         Reported by Gary V. Vaughan <gary@gnu.org>.
51025 2010-12-25  Bruno Haible  <bruno@clisp.org>
51027         roundl-ieee: Make it work on OSF/1 5.1 with cc.
51028         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
51030 2010-12-25  Bruno Haible  <bruno@clisp.org>
51032         truncl-ieee: Make it work on OSF/1 5.1 with cc.
51033         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
51034         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
51035         test whether truncl works according to ISO C 99 with IEC 60559.
51036         * m4/truncl-ieee.m4: New file.
51037         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
51038         m4/signbit.m4.
51039         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
51041 2010-12-25  Bruno Haible  <bruno@clisp.org>
51043         ceill-ieee: Make it work on OSF/1 5.1 with cc.
51044         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
51045         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
51046         test whether ceill works according to ISO C 99 with IEC 60559.
51047         * m4/ceill-ieee.m4: New file.
51048         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
51049         m4/signbit.m4.
51050         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
51052 2010-12-25  Bruno Haible  <bruno@clisp.org>
51054         Ensure all prerequisites of <wchar.h> are included.
51055         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
51056         before <wchar.h>.
51057         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
51058         gl_MBRLEN_NUL_RETVAL): Likewise.
51059         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
51060         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
51061         AC_FUNC_MBRTOWC): Likewise.
51062         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
51063         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
51064         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
51065         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
51066         Likewise.
51067         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
51068         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
51069         (gl_WCHAR_H): Improve comments.
51070         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
51072 2010-12-25  Bruno Haible  <bruno@clisp.org>
51074         strtok_r: Fix C syntax error in autoconf macro.
51075         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
51076         characters in test program.
51078 2010-12-24  Bruno Haible  <bruno@clisp.org>
51080         ceil, trunc, round: Fix gcc warnings.
51081         * lib/ceil.c (MIN): Undefine before redefining.
51082         * lib/trunc.c (MIN): Likewise.
51083         * lib/round.c (MIN): Likewise.
51084         Include <math.h> first.
51086 2010-12-24  Bruno Haible  <bruno@clisp.org>
51088         select tests: Avoid failures on OSF/1 5.1.
51089         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
51090         failure of closing the last socket; it may fail with ECONNRESET.
51092 2010-12-24  Eric Blake  <eblake@redhat.com>
51094         stdint: avoid HP-UX 10.20 preprocessor bug
51095         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
51096         than #if.
51097         * tests/test-floor2.c (main): Likewise.
51098         Reported by Peter O'Gorman.
51100         pipe: make obsoletion transition easier
51101         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
51102         * modules/pipe (Files): Include revived file.
51103         (Include): Drop reference, to mirror getdate's behavior.
51105 2010-12-24  Bruno Haible  <bruno@clisp.org>
51107         sys_socket: Hide mismatch of declarations on NonStop Kernel.
51108         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
51109         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
51110         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
51112 2010-12-24  Bruno Haible  <bruno@clisp.org>
51114         gethostname: Ensure declaration on NonStop Kernel.
51115         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
51116         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
51118 2010-12-24  Bruno Haible  <bruno@clisp.org>
51120         sys_select: Ensure all necessary types on NonStop Kernel.
51121         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
51122         include <sys/time.h>.
51123         * doc/posix-headers/sys_select.texi: Mention that it's missing on
51124         NonStop Kernel.
51125         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
51127 2010-12-24  Bruno Haible  <bruno@clisp.org>
51129         sys_select: Remove unneeded include.
51130         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
51131         have <sys/select.h>.
51133 2010-12-24  Bruno Haible  <bruno@clisp.org>
51135         gethostname: Provide a fallback for HOST_NAME_MAX.
51136         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
51137         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
51138         instead.
51139         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
51141 2010-12-24  Bruno Haible  <bruno@clisp.org>
51143         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
51144         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
51145         (SA_RESTART): Likewise.
51146         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
51148 2010-12-24  Bruno Haible  <bruno@clisp.org>
51150         signal: Define NSIG.
51151         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
51152         * tests/test-signal.c (nsig): New variable.
51153         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
51155 2010-12-24  Bruno Haible  <bruno@clisp.org>
51157         rename, renameat: Avoid test failures on OSF/1 5.1.
51158         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
51159         alternative error codes.
51160         * tests/test-renameat.c (main): Likewise.
51162 2010-12-24  Bruno Haible  <bruno@clisp.org>
51164         *printf: Detect large precisions bug on Solaris 10/SPARC.
51165         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
51166         by Paul Eggert.
51167         * tests/test-snprintf-posix.h (test_function): Add this test code here
51168         too.
51169         * tests/test-sprintf-posix.h (test_function): Likewise.
51170         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51171         * tests/test-vasprintf-posix.c (test_function): Likewise.
51172         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
51173         around by gnulib.
51174         * doc/posix-functions/printf.texi: Likewise.
51175         * doc/posix-functions/snprintf.texi: Likewise.
51176         * doc/posix-functions/sprintf.texi: Likewise.
51177         * doc/posix-functions/vfprintf.texi: Likewise.
51178         * doc/posix-functions/vprintf.texi: Likewise.
51179         * doc/posix-functions/vsnprintf.texi: Likewise.
51180         * doc/posix-functions/vsprintf.texi: Likewise.
51181         * doc/posix-functions/dprintf.texi: Undo last commit.
51182         * doc/posix-functions/vdprintf.texi: Likewise.
51184 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51186         tests: port test-fdutimensat.c to Solaris 8
51187         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
51188         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
51189         On Solaris 8, it fails with errno == ENOSYS, because there is no
51190         futimens (so it can't use the fd), and there is no lutimens (so it
51191         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
51193         vsnprintf: make more consistent with snprintf; doc fixes
51195         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
51196         the byte count return problem was promoted from the snprintf-posix
51197         to the snprintf module.
51198         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51199         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
51200         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
51201         * tests/test-snprintf.c (main): Check the byte count returned.
51202         * tests/test-vsnprintf.c (main): Likewise.
51204 2010-12-23  Eric Blake  <eblake@redhat.com>
51206         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
51207         * modules/sigpipe (License): Relax license.
51209 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
51211         doc: document Solaris printf bug with large float precisions
51212         * doc/posix-functions/dprintf.texi (dprintf):
51213         * doc/posix-functions/fprintf.texi (fprintf):
51214         * doc/posix-functions/printf.texi (printf):
51215         * doc/posix-functions/snprintf.texi (snprintf):
51216         * doc/posix-functions/sprintf.texi (sprintf):
51217         * doc/posix-functions/vdprintf.texi (vdprintf):
51218         * doc/posix-functions/vfprintf.texi (vfprintf):
51219         * doc/posix-functions/vprintf.texi (vprintf):
51220         * doc/posix-functions/vsnprintf.texi (vsnprintf):
51221         * doc/posix-functions/vsprintf.texi (vsprintf):
51222         Mention that these functions mishandle large floating point
51223         precisions on Solaris 10.  The same bug is also present in Solaris
51224         8, and I assume earlier.  This causes "cd gnulib-tests; make
51225         check" to fail on Solaris 8 (and I assume, later) when building
51226         the latest coreutils, in test-vasprintf-posix's call to
51227         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
51228         the wide flavors (e.g., wprintf) so this patch just updates the
51229         documentation for the narrow ones.
51231         test-posixtm.c: add two tests
51232         * tests/test-posixtm.c: Add two tests, to highlight the
51233         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
51234         around this bug; this is merely to document it.
51236 2010-12-22  Bruno Haible  <bruno@clisp.org>
51238         getlogin_r: Work around portability problem on OSF/1.
51239         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
51240         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
51241         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
51242         test for a truncated result.
51243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
51244         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
51245         * modules/getlogin_r (Depends-on): Add memchr.
51246         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
51248 2010-12-22  Bruno Haible  <bruno@clisp.org>
51250         ptsname: Avoid test failure on OSF/1 5.1.
51251         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
51252         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
51253         (same_slave): New function.
51254         (main): Use it to compare ptsname's result with the expected file name.
51256 2010-12-22  Bruno Haible  <bruno@clisp.org>
51258         Port extended stdio modules to HP NonStop Kernel.
51259         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
51260         macros.
51261         * lib/fbufmode.c: Update comments.
51262         * lib/fflush.c: Likewise.
51263         * lib/fpurge.c: Likewise.
51264         * lib/freadable.c: Likewise.
51265         * lib/freadahead.c: Likewise.
51266         * lib/freading.c: Likewise.
51267         * lib/freadptr.c: Likewise.
51268         * lib/freadseek.c: Likewise.
51269         * lib/fseeko.c: Likewise.
51270         * lib/fseterr.c: Likewise.
51271         * lib/fwritable.c: Likewise.
51272         * lib/fwriting.c: Likewise.
51273         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
51275 2010-12-22  Bruno Haible  <bruno@clisp.org>
51277         ttyname_r: Work around bug on OSF/1 5.1.
51278         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
51279         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
51280         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
51281         present.
51282         * lib/ttyname_r.c (ttyname_r): Update comments.
51284 2010-12-22  Bruno Haible  <bruno@clisp.org>
51286         round: Implement result sign according to IEEE 754.
51287         * lib/round.c (MIN, MINUS_ZERO): New macros.
51288         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
51289         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
51290         * tests/test-round-ieee.c (main): Likewise.
51291         * tests/test-roundl-ieee.c (main): Likewise.
51293         trunc: Implement result sign according to IEEE 754.
51294         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
51295         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
51296         * tests/test-trunc2.c: Include minus-zero.h.
51297         (MINUS_ZERO): New macro.
51298         (trunc_reference): Keep in sync with lib/trunc.c.
51299         * tests/test-truncf2.c: Include minus-zero.h.
51300         (MINUS_ZERO): New macro.
51301         (truncf_reference): Keep in sync with lib/trunc.c.
51302         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
51303         * tests/test-trunc-ieee.c (main): Likewise.
51304         * tests/test-truncl-ieee.c (main): Likewise.
51306         ceil: Implement result sign according to IEEE 754.
51307         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
51308         (FUNC): Return -0.0 for -1 < x < 0.
51309         * tests/test-ceil2.c: Include minus-zero.h.
51310         (MINUS_ZERO): New macro.
51311         (ceil_reference): Keep in sync with lib/ceil.c.
51312         * tests/test-ceilf2.c: Include minus-zero.h.
51313         (MINUS_ZERO): New macro.
51314         (ceilf_reference): Keep in sync with lib/ceil.c.
51315         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
51316         * tests/test-ceil-ieee.c (main): Likewise.
51317         * tests/test-ceill-ieee.c (main): Likewise.
51319         floor: Implement result sign according to IEEE 754.
51320         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
51321         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
51322         * tests/test-floorf2.c (floorf_reference): Likewise.
51323         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
51324         * tests/test-floor-ieee.c (main): Likewise.
51325         * tests/test-floorl-ieee.c (main): Likewise.
51327 2010-12-22  Bruno Haible  <bruno@clisp.org>
51329         getaddrinfo: Update doc.
51330         * doc/posix-functions/gai_strerror.texi: Return type is also different
51331         on AIX and HP-UX.
51333 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
51335         getaddrinfo, inet_ntop: Update doc for Solaris.
51336         * doc/posix-functions/gai_strerror.texi: Return type is also an
51337         issue on Solaris 9 and earlier.
51338         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
51339         on Solaris 10 and earlier.
51341 2010-12-21  Bruno Haible  <bruno@clisp.org>
51343         New module 'roundl-ieee'.
51344         * modules/roundl-ieee: New file.
51345         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
51346         test whether roundl works according to ISO C 99 with IEC 60559.
51347         * m4/roundl-ieee.m4: New file.
51348         * modules/roundl-ieee-tests: New file.
51349         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
51350         * tests/test-roundl.c (main): Remove signbit tests.
51351         * modules/roundl-tests (Depends-on): Remove signbit.
51352         * doc/posix-functions/roundl.texi: Mention the new module.
51354 2010-12-21  Bruno Haible  <bruno@clisp.org>
51356         New module 'truncl-ieee'.
51357         * modules/truncl-ieee: New file.
51358         * modules/truncl-ieee-tests: New file.
51359         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
51360         * tests/test-truncl.c (main): Remove signbit tests.
51361         * modules/truncl-tests (Depends-on): Remove signbit.
51362         * doc/posix-functions/truncl.texi: Mention the new module.
51364 2010-12-21  Bruno Haible  <bruno@clisp.org>
51366         New module 'ceill-ieee'.
51367         * modules/ceill-ieee: New file.
51368         * modules/ceill-ieee-tests: New file.
51369         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
51370         * tests/test-ceill.c (main): Remove signbit tests.
51371         * modules/ceill-tests (Depends-on): Remove signbit.
51372         * doc/posix-functions/ceill.texi: Mention the new module.
51374 2010-12-21  Bruno Haible  <bruno@clisp.org>
51376         New module 'floorl-ieee'.
51377         * modules/floorl-ieee: New file.
51378         * modules/floorl-ieee-tests: New file.
51379         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
51380         * tests/test-floorl.c (main): Remove signbit tests.
51381         * modules/floorl-tests (Depends-on): Remove signbit.
51382         * doc/posix-functions/floorl.texi: Mention the new module.
51384 2010-12-21  Bruno Haible  <bruno@clisp.org>
51386         New module 'round-ieee'.
51387         * modules/round-ieee: New file.
51388         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
51389         whether round works according to ISO C 99 with IEC 60559.
51390         * m4/round-ieee.m4: New file.
51391         * modules/round-ieee-tests: New file.
51392         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
51393         * tests/test-round1.c (main): Remove signbit tests.
51394         * modules/round-tests (Depends-on): Remove 'signbit'.
51395         * doc/posix-functions/round.texi: Mention the new module.
51397 2010-12-21  Bruno Haible  <bruno@clisp.org>
51399         New module 'trunc-ieee'.
51400         * modules/trunc-ieee: New file.
51401         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
51402         whether trunc works according to ISO C 99 with IEC 60559.
51403         * m4/trunc-ieee.m4: New file.
51404         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
51405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
51406         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
51407         * modules/trunc-ieee-tests: New file.
51408         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
51409         * tests/test-trunc1.c (main): Remove signbit tests.
51410         * modules/trunc-tests (Depends-on): Remove 'signbit'.
51411         * doc/posix-functions/trunc.texi: Mention the new module.
51413 2010-12-21  Bruno Haible  <bruno@clisp.org>
51415         New module 'ceil-ieee'.
51416         * modules/ceil-ieee: New file.
51417         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
51418         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
51419         ISO C 99 with IEC 60559.
51420         * m4/ceil-ieee.m4: New file.
51421         * modules/ceil (Files): Add lib/ceil.c.
51422         (Depends-on): Add 'float'.
51423         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51424         * lib/math.in.h (ceil): New declaration.
51425         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
51426         REPLACE_CEIL.
51427         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
51428         * modules/ceil-ieee-tests: New file.
51429         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
51430         * tests/test-math-c++.cc: Check the signature of 'ceil'.
51431         * doc/posix-functions/ceil.texi: Mention the new module.
51433 2010-12-21  Bruno Haible  <bruno@clisp.org>
51435         New module 'floor-ieee'.
51436         * modules/floor-ieee: New file.
51437         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
51438         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
51439         ISO C 99 with IEC 60559.
51440         * m4/floor-ieee.m4: New file.
51441         * modules/floor (Files): Add lib/floor.c.
51442         (Depends-on): Add 'float'.
51443         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51444         * lib/math.in.h (floor): New declaration.
51445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
51446         REPLACE_FLOOR.
51447         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
51448         * modules/floor-ieee-tests: New file.
51449         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
51450         * tests/test-math-c++.cc: Check the signature of 'floor'.
51451         * doc/posix-functions/floor.texi: Mention the new module.
51453 2010-12-21  Bruno Haible  <bruno@clisp.org>
51455         New module 'roundf-ieee'.
51456         * modules/roundf-ieee: New file.
51457         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
51458         test whether roundf works according to ISO C 99 with IEC 60559.
51459         * m4/roundf-ieee.m4: New file.
51460         * modules/roundf-ieee-tests: New file.
51461         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
51462         * tests/test-roundf1.c (main): Remove signbit tests.
51463         * modules/roundf-tests (Depends-on): Remove 'signbit'.
51464         * doc/posix-functions/roundf.texi: Mention the new module.
51466 2010-12-21  Bruno Haible  <bruno@clisp.org>
51468         New module 'truncf-ieee'.
51469         * modules/truncf-ieee: New file.
51470         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
51471         test whether truncf works according to ISO C 99 with IEC 60559.
51472         * m4/truncf-ieee.m4: New file.
51473         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
51474         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
51475         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
51476         * modules/truncf-ieee-tests: New file.
51477         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
51478         * tests/test-truncf1.c (main): Remove signbit tests.
51479         * modules/truncf-tests (Depends-on): Remove 'signbit'.
51480         * doc/posix-functions/truncf.texi: Mention the new module.
51482 2010-12-21  Bruno Haible  <bruno@clisp.org>
51484         New module 'ceilf-ieee'.
51485         * modules/ceilf-ieee: New file.
51486         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
51487         test whether ceilf works according to ISO C 99 with IEC 60559.
51488         * m4/ceilf-ieee.m4: New file.
51489         * modules/ceilf-ieee-tests: New file.
51490         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
51491         * tests/test-ceilf1.c (main): Remove signbit tests.
51492         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
51493         * doc/posix-functions/ceilf.texi: Mention the new module.
51495 2010-12-21  Bruno Haible  <bruno@clisp.org>
51497         New module 'floorf-ieee'.
51498         * modules/floorf-ieee: New file.
51499         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
51500         test whether floorf works according to ISO C 99 with IEC 60559.
51501         * m4/floorf-ieee.m4: New file.
51502         * modules/floorf-ieee-tests: New file.
51503         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
51504         * tests/test-floorf1.c (main): Remove signbit tests.
51505         * modules/floorf-tests (Depends-on): Remove 'signbit'.
51506         * doc/posix-functions/floorf.texi: Mention the new module.
51508 2010-12-21  Bruno Haible  <bruno@clisp.org>
51510         Support for minus zero in autoconf macros.
51511         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
51512         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
51513         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
51514         * tests/minus-zero.h: Update comments.
51516 2010-12-21  Bruno Haible  <bruno@clisp.org>
51518         Tests for module 'ceil'.
51519         * modules/ceil-tests: New file.
51520         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
51521         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
51523 2010-12-21  Bruno Haible  <bruno@clisp.org>
51525         Tests for module 'floor'.
51526         * modules/floor-tests: New file.
51527         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
51528         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
51530 2010-12-21  Bruno Haible  <bruno@clisp.org>
51532         math: Fix indentation.
51533         * lib/math.in.h (floorf): Fix indentation.
51535 2010-12-21  Bruno Haible  <bruno@clisp.org>
51537         Fix cross-compilation guesses on Solaris.
51538         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
51539         not match "solaris2.10".
51540         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
51541         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
51542         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
51544 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
51546         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
51547         This fixes a problem observed with the latest coreutils snapshot
51548         that caused a test to fail on Solaris 8.  src/csplit.c's call
51549         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
51550         earlier, instead of returning the number of bytes that would have
51551         been generated; this causes csplit to incorrectly report memory
51552         exhaustion.
51553         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
51554         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
51555         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
51556         comments to match.
51557         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
51558         Fix typo in matching older versions of Solaris: "solaris2.10"
51559         is matched by the shell pattern "solaris2.[0-9]*".  This matters
51560         only for guessing while cross-compiling.
51561         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
51563 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
51565         ftoastr: fix comment again
51566         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
51567         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
51568         Also, simplify example a bit by using flags = 0.
51570 2010-12-20  Bruno Haible  <bruno@clisp.org>
51572         round*, trunc*: Update documentation regarding glibc.
51573         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
51574         * doc/posix-functions/round.texi: Likewise.
51575         * doc/posix-functions/roundl.texi: Likewise.
51576         * doc/posix-functions/truncf.texi: Likewise.
51577         * doc/posix-functions/trunc.texi: Likewise.
51578         * doc/posix-functions/truncl.texi: Likewise.
51580 2010-12-20  Bruno Haible  <bruno@clisp.org>
51582         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
51583         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
51584         * doc/posix-functions/round.texi: Likewise.
51585         * doc/posix-functions/roundl.texi: Likewise.
51587 2010-12-20  Bruno Haible  <bruno@clisp.org>
51589         ttyname_r: Add missing declaration on HP-UX 11.
51590         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
51591         HAVE_TTYNAME_R.
51592         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
51593         declared. Set HAVE_TTYNAME_R always.
51594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51595         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
51596         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
51597         HAVE_TTYNAME_R.
51598         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
51600 2010-12-20  Bruno Haible  <bruno@clisp.org>
51602         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
51603         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
51604         * doc/posix-functions/getlogin_r.texi: Likewise.
51605         * tests/test-getlogin.c: Include <errno.h>.
51606         (main): Avoid test failure on HP-UX 11.11.
51607         * tests/test-getlogin_r.c (main): Likewise.
51609 2010-12-20  Bruno Haible  <bruno@clisp.org>
51611         getlogin_r: Add missing declaration on HP-UX 11.
51612         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
51613         declared also when it exists as a function.
51614         * doc/posix-functions/getlogin_r.texi: Document this workaround.
51616 2010-12-20  Bruno Haible  <bruno@clisp.org>
51618         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
51619         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
51620         through wcrtomb.
51622 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
51624         ftoastr: fix comment
51625         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
51626         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
51628 2010-12-19  Bruno Haible  <bruno@clisp.org>
51630         isnan: Ensure it is a macro.
51631         * lib/math.in.h (isnan): Define as a macro if not already a macro.
51632         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
51633         Solaris.
51635 2010-12-19  Bruno Haible  <bruno@clisp.org>
51637         ldexpl test: Fix link error on OSF/1 5.1.
51638         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
51640 2010-12-19  Bruno Haible  <bruno@clisp.org>
51642         wctype: Make it work in C++ mode on OSF/1 5.1.
51643         * lib/wctype.in.h (iswblank): Declare but not define here.
51644         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
51645         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
51646         * modules/wctype (Files): Add lib/iswblank.c.
51648 2010-12-19  Bruno Haible  <bruno@clisp.org>
51650         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
51651         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
51652         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
51654 2010-12-19  Bruno Haible  <bruno@clisp.org>
51656         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
51657         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
51658         _POSIX_PII_SOCKET.
51659         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
51660         * doc/posix-functions/recvfrom.texi: Likewise.
51661         * doc/posix-functions/send.texi: Likewise.
51662         * doc/posix-functions/sendto.texi: Likewise.
51664 2010-12-19  Bruno Haible  <bruno@clisp.org>
51666         tcgetsid: Add missing declaration on OSF/1 5.1.
51667         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
51668         HAVE_TCGETSID.
51669         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
51670         Don't set HAVE_TCGETSID.
51671         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
51672         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
51673         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
51674         HAVE_TCGETSID.
51675         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
51677 2010-12-19  Bruno Haible  <bruno@clisp.org>
51679         stdio: Fix problem with popen() declaration on OSF/1 5.1.
51680         * lib/stdio.in.h: During the include_next statement, let recursive
51681         includes of this file include only the system header file.
51683 2010-12-19  Bruno Haible  <bruno@clisp.org>
51685         iconv_open: Fix regression from 2010-12-04.
51686         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
51687         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
51689 2010-12-19  Bruno Haible  <bruno@clisp.org>
51691         stdbool test: Avoid a gcc warning.
51692         * tests/test-stdbool.c (main): Fail if e1 is false.
51693         Reported by Jim Meyering.
51695 2010-12-19  Jim Meyering  <meyering@redhat.com>
51697         setenv: restore to working order
51698         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
51699         mistakenly removed.
51700         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
51701         HAVE_SETENV.
51702         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
51703         HAVE_SETENV.
51705 2010-12-19  Bruno Haible  <bruno@clisp.org>
51707         Document some different function declarations on OSF/1 5.1.
51708         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
51709         * doc/posix-functions/inet_ntop.texi: Likewise.
51710         * doc/posix-functions/gethostname.texi: Likewise.
51711         * lib/unistd.in.h (gethostname): Update comment.
51713 2010-12-19  Bruno Haible  <bruno@clisp.org>
51715         doc: Mention vasprintf-posix module.
51716         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
51717         the 'vasprintf-posix' module.
51718         * doc/glibc-functions/vasprintf.texi: Likewise.
51720 2010-12-19  Bruno Haible  <bruno@clisp.org>
51722         unsetenv: Add missing declaration on OSF/1 5.1.
51723         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
51724         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
51725         Don't set HAVE_UNSETENV. In the test program, set _BSD.
51726         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
51727         not HAVE_UNSETENV.
51728         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
51729         HAVE_UNSETENV.
51730         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
51732 2010-12-19  Bruno Haible  <bruno@clisp.org>
51734         setenv: Add missing declaration on OSF/1 5.1.
51735         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
51736         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
51737         declared. Don't set HAVE_SETENV.
51738         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
51739         not HAVE_SETENV.
51740         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
51741         HAVE_SETENV.
51742         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
51744 2010-12-19  Bruno Haible  <bruno@clisp.org>
51746         nl_langinfo tests: Avoid gcc warning.
51747         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
51749 2010-12-19  Bruno Haible  <bruno@clisp.org>
51751         mknod: Avoid error in C++ mode on OSF/1 with GCC.
51752         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
51753         _GL_CXXALIAS_SYS.
51755 2010-12-19  Bruno Haible  <bruno@clisp.org>
51757         stdbool: Relax test.
51758         * tests/test-stdbool.c (e): Don't require that casts from a variable's
51759         address to 'bool' work in static initializer, for compilers other than
51760         GCC.
51762 2010-12-19  Bruno Haible  <bruno@clisp.org>
51764         ftello: Add missing declaration on OSF/1 5.1.
51765         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
51766         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
51767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
51768         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
51769         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
51771 2010-12-19  Bruno Haible  <bruno@clisp.org>
51773         fseeko: Add missing declaration on OSF/1 5.1.
51774         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
51775         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
51776         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
51777         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
51778         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
51780 2010-12-19  Bruno Haible  <bruno@clisp.org>
51782         fchdir: Add missing declaration on OSF/1 5.1.
51783         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
51784         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
51785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
51786         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
51787         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
51789 2010-12-19  Bruno Haible  <bruno@clisp.org>
51791         relocatable-prog-wrapper: Separate from relocatable-prog.
51792         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
51793         uninstall-relocwrapper rule here.
51794         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
51795         Reported by Ian Beckwith <ianb@erislabs.net>.
51797 2010-12-19  Bruno Haible  <bruno@clisp.org>
51799         unistr/u8-mbsnlen: Add missing dependency.
51800         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
51801         Reported by Ian Beckwith <ianb@erislabs.net>.
51803 2010-12-19  Bruno Haible  <bruno@clisp.org>
51805         iconv: Make it possible again to use this module without 'iconv-h'.
51806         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
51807         if it is not defined.
51808         Reported by Ian Beckwith <ianb@erislabs.net>.
51810 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51812         acl: port to Solaris 8 when copying from tmpfs to ufs
51813         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
51814         error number.  Problem observed on Solaris 8 with latest
51815         coreutils, with "mv A B", where A is on a tmpfs file system and B
51816         is on a ufs file system.  This caused coreutils' mv/part-symlink
51817         test to fail.
51819         tests: set fail=0 at start
51820         * tests/init.sh (setup_): Move fail=0 initialization here ...
51821         (mktempd_): ... from here, so that tests can rely on fail being
51822         set to 0 initially.  This fixes a problem in coreutils; see:
51823         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
51825 2010-12-18  Bruno Haible  <bruno@clisp.org>
51827         memmem-simple: Stylistic changes.
51828         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
51829         Fix preprocessor directive indentation.
51831 2010-12-15  Pádraig Brady  <P@draigBrady.com>
51833         memmem, memmem-simple: reorganize and expand empty needle check
51834         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
51835         functional checks to memmem-simple so that one has a fully functional
51836         memmem by using just this module.
51837         Restrict the performance only check to the memmem module.
51838         Also expand the empty needle check to ensure the correct
51839         pointer is returned, not just a non NULL pointer.
51840         * doc/glibc-functions/memmem.texi: Rearrange the portability
51841         documentation to correlate with the rearranged checks.
51842         Clarify exactly how the memmem and memmem-simple modules
51843         relate to each other.
51845 2010-12-15  Pádraig Brady  <P@draigBrady.com>
51846             Bruno Haible  <bruno@clisp.org>
51848         Improve cross-compilation guesses for uClibc.
51849         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
51850         that uClibc does not have the glibc bug.
51851         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
51852         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
51854 2010-12-14  Eric Blake  <eblake@redhat.com>
51856         configmake: provide fallbacks for oldest supported autotools
51857         * m4/configmake.m4: New file.
51858         * modules/configmake (Files): Ship it.
51859         (configure.ac): Use it to guarantee fallbacks.
51861 2010-12-13  Pádraig Brady  <P@draigBrady.com>
51863         read-file: Improve handling of large files
51864         * lib/read-file.c (fread_file): Minimize realloc()s
51865         for regular files, and better manage sizes around SIZE_MAX.
51867 2010-12-13  Eric Blake  <eblake@redhat.com>
51869         cloexec, fcntl: relax license
51870         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
51871         consent from all contributors.
51872         * modules/fcntl (License): Likewise.
51874 2010-12-10  Bruno Haible  <bruno@clisp.org>
51876         Tests for module 'pipe-posix'.
51877         * modules/pipe-posix-tests: New file.
51878         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
51880 2010-12-10  Bruno Haible  <bruno@clisp.org>
51882         pipe-posix: Make it work in C++ mode.
51883         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
51884         (pipe): Use common idiom, not a macro definition.
51885         * lib/pipe.c: New file.
51886         * m4/pipe.m4: New file.
51887         * modules/pipe-posix (Description): Enhance.
51888         (Files): Add lib/pipe.c, m4/pipe.m4.
51889         (configure.ac): Invoke gl_FUNC_PIPE.
51890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
51891         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
51892         * tests/test-unistd-c++.cc: Check the signature of pipe.
51894 2010-12-10  Bruno Haible  <bruno@clisp.org>
51896         Rename module 'pipe' to 'spawn-pipe'.
51897         * modules/spawn-pipe: New file, renamed from modules/pipe.
51898         (Files, configure.ac, Makefile.am): Update.
51899         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
51900         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
51901         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
51902         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
51903         "spawn-pipe.h" instead of "pipe.h".
51904         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
51905         to gl_SPAWN_PIPE.
51906         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
51907         (Files, Makefile.am): Update.
51908         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
51909         Update.
51910         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
51911         Include "spawn-pipe.h" instead of "pipe.h".
51912         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
51913         * lib/javacomp.c: Likewise.
51914         * lib/javaversion.c: Likewise.
51915         * lib/pipe-filter-gi.c: Likewise.
51916         * lib/pipe-filter-ii.c: Likewise.
51917         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
51918         * modules/javacomp (Depends-on): Likewise.
51919         * modules/javaversion (Depends-on): Likewise.
51920         * modules/pipe-filter-gi (Depends-on): Likewise.
51921         * modules/pipe-filter-ii (Depends-on): Likewise.
51922         * MODULES.html.sh (Executing programs): Update.
51923         * NEWS: Mention the change.
51925 2010-12-10  Eric Blake  <eblake@redhat.com>
51927         pipe-posix: new module
51928         * modules/pipe-posix: New file.
51929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
51930         (gl_UNISTD_H): Check for declaration.
51931         * modules/unistd (Makefile.am): Substitute it.
51932         * lib/unistd.in.h (pipe): Provide it for mingw.
51933         * doc/posix-functions/pipe.texi (pipe): Update documentation.
51934         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
51936 2010-12-07  Bruno Haible  <bruno@clisp.org>
51938         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
51939         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
51940         u8_strcmp_gnu.
51941         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
51943 2010-12-06  Bruno Haible  <bruno@clisp.org>
51945         Update internal documentation.
51946         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
51948 2010-12-04  Bruno Haible  <bruno@clisp.org>
51950         Put more information about failed tests into the test return codes.
51951         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
51952         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
51953         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
51954         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
51955         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
51956         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51957         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51958         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
51959         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
51960         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
51961         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
51962         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51963         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
51964         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51965         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
51966         returns a bit mask.
51967         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
51968         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
51969         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
51970         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
51971         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
51972         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
51973         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
51974         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
51975         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
51976         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
51977         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
51978         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
51979         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
51980         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
51981         * m4/link.m4 (gl_FUNC_LINK): Likewise.
51982         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
51983         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
51984         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
51985         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
51986         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
51987         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51988         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
51989         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
51990         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
51991         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
51992         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
51993         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
51994         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
51995         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
51996         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
51997         gl_PRINTF_PRECISION): Likewise.
51998         * m4/regex.m4 (gl_REGEX): Likewise.
51999         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
52000         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
52001         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
52002         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
52003         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52004         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52005         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
52006         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
52007         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52008         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52009         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
52010         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
52011         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
52012         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
52013         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
52014         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
52015         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
52016         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
52017         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52018         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
52019         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
52020         enumerated value.
52021         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
52023 2010-12-04  Bruno Haible  <bruno@clisp.org>
52025         Update for Solaris 11 2010-11.
52026         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
52027         Express, released in November 2010.
52029 2010-12-04  Bruno Haible  <bruno@clisp.org>
52031         nproc: Relax license.
52032         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
52033         and Paul Eggert.
52034         Requested by Ludovic Courtès <ludo@gnu.org>.
52036 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
52038         utimecmp: fine-grained src to nearby coarse-grained dest
52040         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
52041         and the source is on a file system with higher-resolution time
52042         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
52043         not work, and the time stamps are close together, the algorithm to
52044         determine the exact resolution from the read-back mtime was buggy:
52045         it had a "!=" where it should have had an "==".  This bug has been
52046         in the code ever since it was introduced to gnulib.
52047         Problem reported by Dan Jacobson in
52048         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
52050 2010-11-30  Bruno Haible  <bruno@clisp.org>
52052         strerror_r-posix: Fix autoconf test.
52053         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
52055 2010-11-28  Bruno Haible  <bruno@clisp.org>
52056             Paul Eggert  <eggert@cs.ucla.edu>
52058         Tests for module 'getdomainname'.
52059         * modules/getdomainname-tests: New file.
52060         * tests/test-getdomainname.c: New file, based on
52061         tests/test-gethostname.c.
52063 2010-11-28  Bruno Haible  <bruno@clisp.org>
52064             Paul Eggert  <eggert@cs.ucla.edu>
52066         getdomainname: Use the system function when possible.
52067         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
52068         (getdomainname): Replace if needed. Provide the declaration if it is
52069         missing. Don't use _GL_CXXALIAS_SYS_CAST.
52070         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
52071         (getdomainname): When the system has getdomainname, call the system
52072         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
52073         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
52074         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
52075         found in libnsl. Look for the declaration also in <netdb.h>. Replace
52076         the function if its second argument is of type 'int' or if it is found
52077         in libnsl.
52078         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
52079         <sys/systeminfo.h> and sysinfo().
52080         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
52081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52082         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
52083         HAVE_GETDOMAINNAME.
52084         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
52085         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
52086         * doc/glibc-functions/getdomainname.texi: Document the problems with
52087         the getdomainname declaration.
52089 2010-11-28  Bruno Haible  <bruno@clisp.org>
52091         sys_socket: Ensure ss_family field on AIX.
52092         * lib/sys_socket.in.h (ss_family): New macro definition.
52093         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
52094         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
52095         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
52096         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
52097         * modules/sys_socket (Makefile.am): Substitute
52098         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
52099         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
52101 2010-11-27  Bruno Haible  <bruno@clisp.org>
52103         readline: Improve configure output.
52104         * m4/readline.m4 (gl_FUNC_READLINE): Make the
52105         "checking for readline..." result understandable.
52107 2010-11-27  Bruno Haible  <bruno@clisp.org>
52109         *printf-posix: Detect a bug on Solaris 10/x86.
52110         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
52111         for floating-point output.
52112         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
52113         directive.
52114         * tests/test-snprintf-posix.h (test_function): Likewise.
52115         * tests/test-sprintf-posix.h (test_function): Likewise.
52116         * tests/test-vasprintf-posix.c (test_function): Likewise.
52117         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
52118         * doc/posix-functions/printf.texi: Likewise.
52119         * doc/posix-functions/snprintf.texi: Likewise.
52120         * doc/posix-functions/sprintf.texi: Likewise.
52121         * doc/posix-functions/vfprintf.texi: Likewise.
52122         * doc/posix-functions/vprintf.texi: Likewise.
52123         * doc/posix-functions/vsnprintf.texi: Likewise.
52124         * doc/posix-functions/vsprintf.texi: Likewise.
52125         * doc/glibc-functions/obstack_printf.texi: Likewise.
52126         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
52128 2010-11-27  Bruno Haible  <bruno@clisp.org>
52130         Fix link error when module libunistring-optional is in use.
52131         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
52132         * modules/striconveha-tests (Makefile.am): Likewise.
52134 2010-11-27  Bruno Haible  <bruno@clisp.org>
52136         regex: Mention link dependencies.
52137         * modules/regex (Link): New section.
52138         * modules/rpmatch (Link): Likewise.
52139         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
52141 2010-11-27  Bruno Haible  <bruno@clisp.org>
52143         ftoastr: Fix compilation error on Solaris.
52144         * lib/ftoastr.c: Include <config.h>.
52146 2010-11-27  Bruno Haible  <bruno@clisp.org>
52148         getloadavg: Update documentation.
52149         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
52151 2010-11-27  Bruno Haible  <bruno@clisp.org>
52153         sys_socket: Fix test whether the functions are declared.
52154         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
52155         not <sys/select.h>.
52157 2010-11-27  Bruno Haible  <bruno@clisp.org>
52159         getpass: Make sure to get system declaration on some platforms.
52160         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
52161         gl_USE_SYSTEM_EXTENSIONS.
52162         * modules/getpass (Depends-on): Add extensions.
52164 2010-11-26  Bruno Haible  <bruno@clisp.org>
52166         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
52167         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
52168         'iconv' module is present.
52169         (ICONV_CONST): New macro.
52170         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
52171         ICONV_CONST.
52172         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
52173         set ICONV_CONST.
52174         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
52175         here.
52176         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
52177         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
52178         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
52179         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
52180         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
52181         present.
52183 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52185         ftoastr: comment fix
52186         * lib/ftoastr.c: "little" -> "little or no" in comment
52188 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
52190         stdint: port to GCC 4.3 + OSX + Octave
52191         On this platform, stdint.h is buggy and defines int64_t to long
52192         long int.  The replacement defined it to long int, causing
52193         problems with C++ style name mangling.  Instead, trust the system
52194         definition if INT64_MAX is defined, and likewise for the unsigned
52195         variant.   Problem reported by Jarno Rajahalme in
52196         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
52197         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
52198         and don't mess with int64_t and INT64_MAX in this case.
52199         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
52201 2010-11-24  Bruno Haible  <bruno@clisp.org>
52203         doc: Corrections regarding MacOS X 10.4 and 10.5.
52204         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
52205         MacOS X.
52206         Reported by Simon Josefsson.
52208 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
52210         Uninstall ".bin" files installed by relocwrapper.
52211         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
52212         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
52213         unless it is already there.
52215 2010-11-21  Bruno Haible  <bruno@clisp.org>
52217         Update for NetBSD 5.0.
52218         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
52219         NetBSD; the test fails on NetBSD 5.0.
52220         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
52221         about NetBSD.
52223 2010-11-21  Bruno Haible  <bruno@clisp.org>
52225         Update for HP-UX 11.23 and HP-UX 11.31.
52226         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
52227         HP-UX.
52229 2010-11-21  Bruno Haible  <bruno@clisp.org>
52231         Update for MacOS X 10.5.
52232         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
52233         MacOS X; the test fails on MacOS X 10.5.8.
52234         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
52235         about MacOS X.
52237 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
52239         bootstrap: add bootstrap_sync option.
52240         See discussion at
52241         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
52242         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
52243         * build-aux/bootstrap: Accept --bootstrap-sync to update
52244         bootstrap if it is not identical to the local gnulib's
52245         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
52246         enable this by default.  Accept --no-bootstrap-sync to disable
52247         it.
52249 2010-11-20  Bruno Haible  <bruno@clisp.org>
52251         Ensure that <features.h> is included before __GLIBC__ is tested.
52252         * lib/printf-parse.h: Include <features.h>.
52253         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
52254         Reported by Mike Frysinger <vapier@gentoo.org>.
52256         Ensure that <features.h> is included before __GLIBC__ is tested.
52257         * lib/wchar.in.h: Include <features.h>.
52258         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
52259         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
52260         Reported by Mike Frysinger <vapier@gentoo.org>.
52262         Ensure that <features.h> is included before __GLIBC__ is tested.
52263         * lib/arpa_inet.in.h: Include <features.h>.
52264         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
52265         * modules/arpa_inet (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         * build-aux/link-warning.h: Include <features.h>.
52270         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
52271         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
52272         Reported by Mike Frysinger <vapier@gentoo.org>.
52274         Ensure that <features.h> is included before __GLIBC__ is tested.
52275         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
52276         Reported by Mike Frysinger <vapier@gentoo.org>.
52278 2010-11-20  Bruno Haible  <bruno@clisp.org>
52280         memmem: Fix autoconf test.
52281         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
52283 2010-11-20  Bruno Haible  <bruno@clisp.org>
52285         Port to uClibc.
52286         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
52287         * lib/fcntl.in.h: Likewise.
52288         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
52289         * lib/mbrtowc.c (mbrtowc): Likewise.
52290         * lib/relocatable.c (find_shared_library_fullname): Likewise.
52291         * lib/strerror_r.c: Likewise.
52292         * lib/unistr/u8-strnlen.c: Likewise.
52293         * lib/vasnprintf.c (decimal_point_char): Likewise.
52294         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
52295         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
52296         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
52297         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
52298         * tests/test-sigaction.c (handler, main): Likewise.
52299         * lib/freading.h: Treat uClibc like a non-glibc platform.
52300         * lib/freading.c: Likewise.
52301         * lib/gettext.h: Likewise.
52302         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
52303         Likewise.
52304         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
52305         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
52306         * lib/propername.c (proper_name_utf8): Likewise.
52307         * lib/spawn.in.h: Likewise.
52308         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
52309         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
52310         mem_cd_iconveh_internal): Likewise.
52311         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
52312         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
52313         strstr, strcasestr): Likewise.
52314         * lib/unicodeio.c (unicode_to_mb): Likewise.
52315         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
52316         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
52317         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
52318         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
52319         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
52320         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
52321         * lib/unistr/u8-stpncpy.c: Likewise.
52322         * lib/vasnprintf.c (VASNPRINTF): Likewise.
52323         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
52324         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52325         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
52326         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
52327         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
52328         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
52329         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
52330         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
52331         Likewise.
52332         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
52333         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52334         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
52335         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52336         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52337         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
52338         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
52339         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
52340         * tests/test-getopt.h (OPTIND_MIN): Likewise.
52341         * tests/test-striconveha.c (main): Likewise.
52342         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52343         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
52344         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
52345         * doc/posix-functions/getline.texi: Likewise.
52346         Reported by Mike Frysinger <vapier@gentoo.org>.
52348 2010-11-20  Bruno Haible  <bruno@clisp.org>
52350         nproc: Fix condition.
52351         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
52352         HAVE_PTHREAD_AFFINITY_NP.
52354 2010-11-20  Bruno Haible  <bruno@clisp.org>
52356         Fix a comment.
52357         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
52359 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
52361         ftoastr: don't assume snprintf
52362         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
52363         Implement a subset of snprintf here, by using sprintf safely.
52364         * modules/ftoastr (Depends-on): Remove snprintf.
52366 2010-11-19  Jim Meyering  <meyering@redhat.com>
52368         test-rename.h: fix compilation failure
52369         * tests/test-rename.h (test_rename): Add omitted "}".
52371 2010-11-17  Jim Meyering  <meyering@redhat.com>
52373         maint.mk: add a URL discussing the no-@acronym policy
52374         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
52376 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
52378         ftoastr: depend on snprintf, improve comments
52379         * lib/ftoastr.c: Also mention Loitsch's draft.
52380         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
52381         needed in the current implementation, but it might simplify
52382         speeding up the code later.
52383         * modules/ftoastr: Depend on snprintf; this improves portability.
52384         Suggested by Bruno Haible in the same email.
52386         ftoastr: port to hosts lacking strtof and strtold
52387         Problem reported by Bruno Haible in
52388         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
52389         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
52390         environment and strtold (and presumably strtof) are not available.
52391         * modules/ftoastr (Files): Add m4/c-strtod.m4.
52392         (configure.ac): Require gl_C99_STRTOLD.
52394 2010-11-18  Bruno Haible  <bruno@clisp.org>
52396         c-strtold: Avoid link error on AIX 7.
52397         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
52398         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
52399         (gl_C_STRTOLD): Test whether strtold_l exists.
52400         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52402 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
52404         intprops: new macro INT_BITS_STRLEN_BOUND
52405         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
52406         ftoastr.h.  This exposes an internal of intprops.h that was formerly
52407         not exposed.  Also, it uses a slightly tighter bound than before;
52408         though this makes no practical difference, we might as well be as
52409         tight as we easily can.
52411         ftoastr: new module, for lossless conversion of floats to short strings
52412         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
52413         * modules/ftoastr: New files.
52415 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
52417         bootstrap: port to Solaris sed
52418         * build-aux/bootstrap (get_version): Port to Solaris sed.
52419         See Ralf Wildenhues's note in
52420         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
52422 2010-11-14  Jim Meyering  <meyering@redhat.com>
52424         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
52425         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
52426         and move definition closer to sole use.
52428 2010-11-13  Jim Meyering  <meyering@redhat.com>
52430         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
52431         Now we require at least autoconf-2.59, which means the work-around
52432         is no longer needed.
52433         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
52434         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
52435         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
52436         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
52437         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
52439 2010-11-13  Bruno Haible  <bruno@clisp.org>
52441         rename, renameat: Avoid test failures at NFS mounted locations.
52442         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
52443         functions.
52444         (test_rename): Use assert_nonexistent.
52445         * tests/test-rename.c: Include <dirent.h>.
52446         * tests/test-renameat.c: Likewise.
52447         Reported by Gary V. Vaughan <gary@gnu.org>.
52449         rename, renameat: Document Linux bug with NFS
52450         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
52451         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
52452         * doc/posix-functions/renameat.texi: Likewise.
52453         Suggested by Eric Blake.
52455 2010-11-13  Bruno Haible  <bruno@clisp.org>
52457         rename test: Add comments.
52458         * tests/test-rename.h (test_rename): Add structure and comments.
52460 2010-11-13  Eric Blake  <eblake@redhat.com>
52462         maintainer-makefile: cover a few more files
52463         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
52464         scripts generated within C files, for libvirt.
52466 2010-11-13  Bruno Haible  <bruno@clisp.org>
52468         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
52469         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
52470         character, return the number of bytes that belong together, not always
52471         1.
52472         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
52473         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
52474         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
52475         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
52476         number of bytes of an invalid character.
52477         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
52478         (main): Invoke it.
52479         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
52480         results.
52481         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
52482         malformed byte sequences.
52483         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
52484         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
52485         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
52486         Reported by Ben Pfaff and Paolo Bonzini.
52488 2010-11-13  Bruno Haible  <bruno@clisp.org>
52490         openat: Work around glibc bug with fchownat() and empty file names.
52491         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
52492         (gl_FUNC_FCHOWNAT): Invoke it.
52493         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
52494         * doc/posix-functions/fchownat.texi: Document the glibc bug.
52495         Reported by Gary V. Vaughan <gary@gnu.org>.
52497 2010-11-13  Bruno Haible  <bruno@clisp.org>
52499         openat: Ensure autoconf macro ordering.
52500         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
52501         gl_USE_SYSTEM_EXTENSIONS.
52502         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
52504 2010-11-13  Bruno Haible  <bruno@clisp.org>
52506         Update comments.
52507         * lib/unistr/u8-check.c: Update file name in comments.
52508         * lib/unistr/u8-mblen.c: Likewise.
52509         * lib/unistr/u8-prev.c: Likewise.
52510         * lib/unistr/u8-strmblen.c: Likewise.
52511         * lib/unistr/u8-strmbtouc.c: Likewise.
52513 2010-11-13  Jim Meyering  <meyering@redhat.com>
52515         tests: avoid test failure on Solaris 10 due to lack of PATH export
52516         * tests/test-update-copyright.sh: Don't forget to export PATH.
52518         init.sh: ensure that IFS is defined, just in case...
52519         * tests/init.sh (setup_): Ensure that IFS is defined,
52520         so that saving and restoring it works as expected.  This
52521         appears to be useful at least for an old version of dash
52522         from a long time ago (RH 6).  See here for details:
52523         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
52525         maint.mk: tighten "test a == b" check
52526         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
52527         test to files that contain something like #!/bin/sh.
52528         Without this, coreutils would get two false positives in
52529         the comments of C source files.
52531 2010-11-12  Eric Blake  <eblake@redhat.com>
52533         bootstrap: fix typo in previous attempt
52534         * build-aux/bootstrap (buildreq): Correct the grouping.
52535         Reported by Paul Eggert.
52537         maintainer-makefile: prohibit test x == x
52538         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
52539         Based on a report by Matthias Bolte.
52541         bootstrap: allow FreeBSD gzip
52542         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
52543         which has no '.' and goes to stderr.
52544         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
52545         Reported by Matthias Bolte.
52547         maintainer-makefile: check for i18n setup
52548         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
52549         will likely work.
52551 2010-11-12  Bruno Haible  <bruno@clisp.org>
52553         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
52554         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
52555         * lib/nanosleep.c (nanosleep): Likewise.
52557 2010-11-11  Bruno Haible  <bruno@clisp.org>
52559         fcntl-h: Fix for use of C++ on glibc systems.
52560         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
52561         also on glibc systems in C++ mode.
52562         Reported by Gary V. Vaughan <gary@gnu.org>.
52564 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
52566         mknod: avoid false failure with dash
52567         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
52569 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
52571         unlink: Fix "is it should" typo in diagnostic.
52572         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
52573         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
52575 2010-11-11  Bruno Haible  <bruno@clisp.org>
52577         Tests for module 'strerror_r-posix'.
52578         * modules/strerror_r-posix-tests: New file.
52579         * tests/test-strerror_r.c: New file.
52580         * tests/test-string-c++.cc: Check the signature of strerror_r.
52582         New module 'strerror_r-posix'.
52583         * lib/string.in.h (strerror_r): New declaration.
52584         * lib/strerror_r.c: New file.
52585         * m4/strerror_r.m4: New file.
52586         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
52587         of strerror_r.
52588         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
52589         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
52590         * modules/strerror_r-posix: New file.
52591         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
52592         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
52593         * doc/posix-functions/strerror_r.texi: Mention the new module and the
52594         portability problems.
52596 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
52598         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
52599         line is also considered for output. Quoted function name in shell
52600         command, so temporary files for functions like MyClass::operator()
52601         are removed correctly without errors.
52603 2010-11-09  Bruno Haible  <bruno@clisp.org>
52605         * doc/posix-functions/strerror.texi: List more failing platforms.
52607         * doc/posix-functions/strerror.texi: Add a comment.
52609 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
52611         fdopendir: fix bug on MacOS X when low on file descriptors
52613         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
52614         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
52615         All callers changed.
52616         (fdopendir): Invoke save_cwd at the top level, not after using
52617         multiple dup() calls to use up file descriptors.  Then retry
52618         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
52619         less than the maximum number of open file descriptors, because
52620         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
52621         on Mac OS X 10.6.4 for tar 1.24
52622         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
52623         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
52624         and for tar 1.25
52625         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
52627 2010-11-07  Bruno Haible  <bruno@clisp.org>
52629         vasnprintf: Support I flag on glibc systems.
52630         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
52631         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
52632         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
52633         snprintf function.
52634         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
52635         glibc systems.
52636         * tests/test-vasnprintf-posix3.c: New file.
52637         * modules/vasnprintf-posix-tests (Files): Add it.
52638         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
52640 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52642         [html] Fix copy/paste bug: Use unique name for compiler warnings.
52643         * MODULES.html.sh: For compiler warnings, use name
52644         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
52646 2010-11-05  Eric Blake  <eblake@redhat.com>
52648         ceil, floor: avoid spurious failure with icc
52649         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
52650         [denormals-as-zero] when optimizing without -mieee-fp option.
52651         * tests/test-floorf2.c (floorf_reference): Likewise.
52652         * tests/test-ceilf1.c (dummy): New function.
52653         (main): Use it to outsmart icc's optimization.
52654         * tests/test-floorf1.c (dummy, main): Likewise.
52656         tests: require working signbit
52657         * modules/ceilf-tests (Depends-on): Add signbit.
52658         * modules/ceill-tests (Depends-on): Likewise.
52659         * modules/floorf-tests (Depends-on): Likewise.
52660         * modules/floorl-tests (Depends-on): Likewise.
52661         * modules/round-tests (Depends-on): Likewise.
52662         * modules/roundf-tests (Depends-on): Likewise.
52663         * modules/roundl-tests (Depends-on): Likewise.
52664         * modules/trunc-tests (Depends-on): Likewise.
52665         * modules/truncf-tests (Depends-on): Likewise.
52666         * modules/truncl-tests (Depends-on): Likewise.
52668         strtod: work around icc bug
52669         * lib/strtod.c (minus_zero): Define to working value.
52670         (strtod): Use it to avoid icc bug.
52672         copysign: enhance tests
52673         * modules/copysign-tests (Files): Add minus-zero.h.
52674         * tests/test-copysign.c (main): Also test zeros.
52676 2010-11-04  Eric Blake  <eblake@redhat.com>
52678         ceil, floor, round, trunc: enhance tests of -0
52679         * tests/test-ceilf1.c (main): Ensure correct sign of result.
52680         * tests/test-ceill.c (main): Likewise.
52681         * tests/test-floorf1.c (main): Likewise.
52682         * tests/test-floorl.c (main): Likewise.
52683         * tests/test-round1.c (main): Likewise.
52684         * tests/test-roundf1.c (main): Likewise.
52685         * tests/test-roundl.c (main): Likewise.
52686         * tests/test-trunc1.c (main): Likewise.
52687         * tests/test-truncf1.c (main): Likewise.
52688         * tests/test-truncl.c (main): Likewise.
52690 2010-11-04  Eric Blake  <eblake@redhat.com>
52692         frexp, tests: work around ICC bug with -zero
52693         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
52694         works with more compilers.
52695         * tests/minus-zero.h: New file.
52696         * modules/ceilf-tests (Files): Include it.
52697         * modules/ceill-tests (Files): Likewise.
52698         * modules/floorf-tests (Files): Likewise.
52699         * modules/floorl-tests (Files): Likewise.
52700         * modules/frexp-nolibm-tests (Files): Likewise.
52701         * modules/frexp-tests (Files): Likewise.
52702         * modules/frexpl-nolibm-tests (Files): Likewise.
52703         * modules/frexpl-tests (Files): Likewise.
52704         * modules/isnan-tests (Files): Likewise.
52705         * modules/isnand-nolibm-tests (Files): Likewise.
52706         * modules/isnand-tests (Files): Likewise.
52707         * modules/isnanf-nolibm-tests (Files): Likewise.
52708         * modules/isnanf-tests (Files): Likewise.
52709         * modules/isnanl-nolibm-tests (Files): Likewise.
52710         * modules/isnanl-tests (Files): Likewise.
52711         * modules/round-tests (Files): Likewise.
52712         * modules/roundf-tests (Files): Likewise.
52713         * modules/roundl-tests (Files): Likewise.
52714         * modules/ldexpl-tests (Files): Likewise.
52715         * modules/signbit-tests (Files): Likewise.
52716         * modules/snprintf-posix-tests (Files): Likewise.
52717         * modules/sprintf-posix-tests (Files): Likewise.
52718         * modules/strtod-tests (Files): Likewise.
52719         * modules/trunc-tests (Files): Likewise.
52720         * modules/truncf-tests (Files): Likewise.
52721         * modules/truncl-tests (Files): Likewise.
52722         * modules/vsnprintf-posix-tests (Files): Likewise.
52723         * modules/vsprintf-posix-tests (Files): Likewise.
52724         * modules/vasnprintf-posix-tests (Files): Likewise.
52725         * modules/vasprintf-posix-tests (Files): Likewise.
52726         * tests/test-ceilf1.c (main): Use it.
52727         * tests/test-ceill.c (main): Likewise.
52728         * tests/test-floorf1.c (main): Likewise.
52729         * tests/test-floorl.c (main): Likewise.
52730         * tests/test-frexp.c (main): Likewise.
52731         * tests/test-frexpl.c (main): Likewise.
52732         * tests/test-isnan.c (main): Likewise.
52733         * tests/test-isnand.h (main): Likewise.
52734         * tests/test-isnanf.h (main): Likewise.
52735         * tests/test-isnanl.h (main): Likewise.
52736         * tests/test-ldexpl.c (main): Likewise.
52737         * tests/test-round.c (main): Likewise.
52738         * tests/test-roundf.c (main): Likewise.
52739         * tests/test-roundl.c (main): Likewise.
52740         * tests/test-signbit.c (test_signbitf, test_signbitd)
52741         (test_signbitl): Likewise.
52742         * tests/test-snprintf-posix.h (test_function): Likewise.
52743         * tests/test-sprintf-posix.h (test_function): Likewise.
52744         * tests/test-strtod.c (main): Likewise.
52745         * tests/test-trunc1.c (main): Likewise.
52746         * tests/test-truncf1.c (main): Likewise.
52747         * tests/test-truncl.c (main): Likewise.
52749         isnanl: work around icc bug
52750         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
52752 2010-11-03  Eric Blake  <eblake@redhat.com>
52754         tests: fix compiler warnings
52755         * tests/test-getopt.h (test_getopt): Fix condition.
52756         * tests/test-getopt_long.h (test_getopt_long): Likewise.
52757         * tests/test-pipe2.c (main): Likewise.
52758         * tests/test-quotearg-simple.c (main): Avoid icc warning.
52760         utimens: fix broken m4 test
52761         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
52763 2010-10-28  Bruno Haible  <bruno@clisp.org>
52765         posix_spawn*, getdtablesize: Relax license.
52766         * modules/posix_spawn (License): Change to LGPLv2+.
52767         * modules/posix_spawnp (License): Likewise.
52768         * modules/posix_spawn-internal (License): Likewise.
52769         * modules/posix_spawnattr_init (License): Likewise.
52770         * modules/posix_spawnattr_getflags (License): Likewise.
52771         * modules/posix_spawnattr_setflags (License): Likewise.
52772         * modules/posix_spawnattr_getpgroup (License): Likewise.
52773         * modules/posix_spawnattr_setpgroup (License): Likewise.
52774         * modules/posix_spawnattr_getschedparam (License): Likewise.
52775         * modules/posix_spawnattr_setschedparam (License): Likewise.
52776         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
52777         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
52778         * modules/posix_spawnattr_getsigdefault (License): Likewise.
52779         * modules/posix_spawnattr_setsigdefault (License): Likewise.
52780         * modules/posix_spawnattr_getsigmask (License): Likewise.
52781         * modules/posix_spawnattr_setsigmask (License): Likewise.
52782         * modules/posix_spawnattr_destroy (License): Likewise.
52783         * modules/posix_spawn_file_actions_init (License): Likewise.
52784         * modules/posix_spawn_file_actions_addclose (License): Likewise.
52785         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
52786         * modules/posix_spawn_file_actions_addopen (License): Likewise.
52787         * modules/posix_spawn_file_actions_destroy (License): Likewise.
52788         * modules/getdtablesize (License): Likewise.
52789         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
52791 2010-10-26  Bruno Haible  <bruno@clisp.org>
52793         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
52794         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
52795         Cygwin and mingw.
52796         Suggested by Eric Blake.
52798 2010-10-26  Bruno Haible  <bruno@clisp.org>
52800         stdio: Work around compilation error due to renameat() on Solaris 10.
52801         * lib/stdio.in.h: Include <unistd.h> on Solaris.
52802         * lib/renameat.c: Don't include <unistd.h> here.
52803         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
52804         Reported by Paul Eggert and Eric Blake.
52806 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
52808         renameat: port to Solaris 10, which declares renameat in unistd.h
52810         * lib/renameat.c: Include unistd.h before stdio.h, because
52811         Solaris 10 declares renameat in unistd.h.  Problem encountered
52812         when building GNU tar 1.24 on Solaris 10.
52814 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
52816         fdopendir: fix C89 compilation
52817         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
52818         compilers.
52820 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
52822         inttostr: simplify by removing unnecessary redundancy
52823         * lib/anytostr.c: Don't include verify.h.
52824         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
52825         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
52826         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
52827         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
52828         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
52829         Likewise.
52830         * modules/inttostr (Depends-on): Remove 'verify'.
52832 2010-10-23  Bruno Haible  <bruno@clisp.org>
52834         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
52835         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
52836         Reported by Eric Blake.
52838 2010-10-23  Bruno Haible  <bruno@clisp.org>
52840         Tests: Fix LOCALE_JA on MirBSD 10.
52841         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
52842         to an UTF-8 locale.
52843         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
52844         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52845         Reported by Eric Blake.
52847 2010-10-21  Bruno Haible  <bruno@clisp.org>
52849         nl_langinfo test: Avoid test failure on NetBSD 5.
52850         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
52851         Reported by Eric Blake.
52853 2010-10-21  Eric Blake  <eblake@redhat.com>
52855         c-stack: work around libsigsegv 2.8 bug
52856         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
52857         overflow on at least PowerPC64.
52859 2010-10-17  Bruno Haible  <bruno@clisp.org>
52861         userspec: Drop redundant file.
52862         * modules/userspec (Files): Remove lib/inttostr.h.
52864 2010-10-17  Bruno Haible  <bruno@clisp.org>
52866         nl_langinfo tests: Silence some warnings.
52867         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
52868         Reported by Jim Meyering.
52870 2010-10-17  Bruno Haible  <bruno@clisp.org>
52872         Make use of GCC's attribute __alloc_size__.
52873         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
52874         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
52875         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
52876         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
52877         __alloc_size__.
52878         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
52879         Suggested by Jim Meyering.
52881 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
52883         bootstrap: anchor .gitignore entries.
52884         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
52885         with...
52886         (insert_vc_ignore): ... this new function, which prepends `/' to
52887         all .gitignore entries before passing them to
52888         insert_sorted_if_absent.
52890 2010-10-16  Bruno Haible  <bruno@clisp.org>
52892         nextafter: Fix configure check.
52893         * modules/nextafter (configure.ac): Correct expected prototype.
52895 2010-10-16  Bruno Haible  <bruno@clisp.org>
52897         termios: Update documentation.
52898         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
52900 2010-10-16  Bruno Haible  <bruno@clisp.org>
52902         tests: Make them compile with TinyCC.
52903         * tests/test-strstr.c (main): Remove parentheses around array
52904         initializer.
52906 2010-10-15  Eric Blake  <eblake@redhat.com>
52908         ignore-value: make header idempotent
52909         * lib/ignore-value.h: Add double-inclusion guards.
52910         Reported by Stefan Berger.
52912 2010-10-15  Jim Meyering  <meyering@redhat.com>
52914         GNUmakefile: handle "stable" target, not "major"
52915         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
52916         lists in maint.mk and announce-gen.  Without this, "make stable"
52917         would fail to ensure that $(VERSION) is up to date.
52919 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
52921         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
52922         & co.
52924 2010-10-14  Bruno Haible  <bruno@clisp.org>
52926         vasnprintf: Don't set errno to 0.
52927         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
52928         block that sets it to 0.
52929         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
52931 2010-10-14  Bruno Haible  <bruno@clisp.org>
52933         socketlib: Fix.
52934         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
52935         gl_PREREQ_SYS_H_WINSOCK2.
52936         Reported by Ian Beckwith <ianb@erislabs.net>.
52938 2010-10-13  Jim Meyering  <meyering@redhat.com>
52940         test-select-stdin.c: avoid warn_unused_result warnings
52941         * tests/test-select-stdin.c: Include "macros.h".
52942         ASSERT that read and fflush succeed.
52944 2010-10-13  Jim Meyering  <meyering@redhat.com>
52946         git-version-gen: do require git-VC'd files in cwd
52947         * build-aux/git-version-gen: Reject a git version string
52948         if there are no commits associated with the current directory.
52949         This avoids an unlikely false-positive (unrelated dir whose parent
52950         repository also contains a tag matching v*), as pointed out
52951         by Giuseppe Scrivano in
52952         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
52954 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
52956         argv-iter: omit nonconforming declaration
52957         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
52958         enum arg_iter_err declaration, which doesn't conform to C99.
52959         Solaris 10 cc warns about this.
52961 2010-10-13  Eric Blake  <eblake@redhat.com>
52963         termios: fix compilation on mingw
52964         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
52965         (gl_TERMIOS_H): Adjust it on mingw.
52966         * modules/termios (Makefile.am): Substitute new key.
52967         * lib/termios.in.h (includes): Make include_next conditional.
52968         * doc/posix-headers/termios.texi (termios.h): Update
52969         documentation.
52970         Reported by Daniel P. Berrange.
52972 2010-10-13  Jim Meyering  <meyering@redhat.com>
52974         git-version-gen: don't require that .git/ be in the current dir
52975         * build-aux/git-version-gen: Adjust this script so that it works
52976         when run from any working directory beneath the top-level .git/-
52977         containing directory.  Inspired by a patch from Giuseppe Scrivano,
52978         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
52980         test-select: avoid warn_unused_result warnings
52981         * tests/test-select.c: Include "macros.h".
52982         ASSERT that each call to read, write, and pipe succeeds.
52983         While not technically required, also check each "close".
52984         * modules/select-tests (Files): Add tests/macros.h.
52986         test-symlinkat: remove declaration of unused local
52987         * tests/test-symlinkat.c (main): Remove unused local, "buf".
52989         test-inttostr: avoid shadowing warnings
52990         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
52991         and use malloc rather than the stack for the same reason as
52992         mentioned in the comment justifying the other allocation.
52994 2010-10-11  Bruno Haible  <bruno@clisp.org>
52996         stdlib: Allow multiple gnulib generated replacements to coexist.
52997         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
52998         Reported by Sam Steingold <sds@gnu.org>.
53000 2010-10-11  Jim Meyering  <meyering@redhat.com>
53002         fix a documentation typo
53003         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
53005 2010-10-11  Eric Blake  <eblake@redhat.com>
53007         futimens: work around Solaris 11 bug
53008         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
53009         * tests/test-futimens.h (test_futimens): Enhance, rather than
53010         weaken test.
53011         * doc/posix-functions/futimens.texi (futimens): Document the bug.
53013 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
53015         Indentation.
53016         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
53017         higher-level operators more to the left.
53019 2010-10-11  Jim Meyering  <meyering@redhat.com>
53021         test-futimens: avoid unwarranted test failure on Solaris 5.11
53022         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
53023         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
53024         because it tries to dereference the NULL name argument.
53026 2010-10-11  Bruno Haible  <bruno@clisp.org>
53028         Indentation.
53029         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
53030         indentation.
53032 2010-10-11  Jim Meyering  <meyering@redhat.com>
53034         spawn.in.h: make indentation consistent with parentheses
53035         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
53036         Make indentation consistent with parentheses.
53038 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
53040         Fix mismatched parens in previous commit
53041         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
53042         parens.
53044 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
53046         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
53048         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
53049         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
53050         * lib/malloca.c: Include "verify.h".
53051         (verify1): Remove, replacing with a verify call.
53052         * lib/relocwrapper.c (verify1): Likewise.
53053         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
53054         Likewise.
53055         * modules/malloca (Depends-on): Add 'verify'.
53056         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
53057         * modules/vasnprintf (Depends-on): Add 'verify'.
53058         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53059         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53060         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53061         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53062         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53063         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53064         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53066         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
53068         Formerly the style was sometimes 2*X - 1, because the C standard
53069         was wrongly thought to disallow ?: in integral constant expressions.
53070         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
53071         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
53072         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
53073         * lib/stdint.in.h (_verify_intmax_size): Likewise.
53074         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
53075         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
53076         verify that time_t cannot be floating.
53078 2010-10-08  Eric Blake  <eblake@redhat.com>
53080         time: enforce recent POSIX ruling that time_t is integral
53081         * lib/time.in.h (__time_t_must_be_integral): Detect any
53082         problematic systems, allowing the rest of gnulib to assume POSIX.
53084 2010-10-08  Jim Meyering  <meyering@redhat.com>
53086         fdopendir: fix a bug on systems lacking openat and /proc support
53087         OpenBSD 4.7 is one such system.  The most noticeable effect was
53088         failure of any application making nontrivial use of fts: rm, du,
53089         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
53090           ./rm: traversal failed: `a': Bad file descriptor
53091         Debugging that, you see that even though FD 6 was closed just
53092         prior to the opendir call in fd_clone_opendir, its resulting
53093         dir->dd_fd was 8, rather than the expected value of 6:
53095         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
53096         93                close (fd);
53097         (gdb) n
53098         94                dir = fd_clone_opendir (dupfd);
53099         (gdb) n
53100         95                saved_errno = errno;
53101         (gdb) p dir->dd_fd
53102         $11 = 8
53104         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
53105         The problem is that on OpenBSD, fd_clone_opendir has to resort
53106         to using the old-style save/restore CWD mechanism, due to its
53107         lack of openat/proc support, and *that* would steal the FD (6)
53108         that opendir was supposed to use.
53110         The fix is to squirrel away the desired FD so that save_cwd uses a
53111         different one, and then free the dest FD right before calling opendir.
53112         That guarantees opendir will use the required file descriptor.
53114         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
53116 2010-10-08  Bruno Haible  <bruno@clisp.org>
53118         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
53119         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
53121 2010-10-08  Bruno Haible  <bruno@clisp.org>
53123         nanosleep: Make replacement POSIX compliant.
53124         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
53125         is out of range.
53126         Reported by Jim Meyering.
53128 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53130         bootstrap: add hook for altering gnulib.mk, for Bison
53131         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
53132         the Bison bootstrapping process can rewrite file names and variables
53133         in this file before later parts of 'bootstrap' use the file.
53134         Bison wants to include lib/gnulib.mk from the top-level makefile,
53135         so it needs the file names in this file to be relative to the top
53136         level, not relative to lib; plus it needs variable names to be
53137         rewritten.
53138         (slurp): Use the new function.
53140         bootstrap: reformat for readability
53141         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
53143 2010-10-08  Eric Blake  <eblake@redhat.com>
53145         docs: update cygwin progress
53146         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
53147         1.7.7.
53148         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
53149         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
53150         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
53151         * doc/posix-functions/carg.texi (carg): Likewise.
53152         * doc/posix-functions/cargf.texi (cargf): Likewise.
53153         * doc/posix-functions/casin.texi (casin): Likewise.
53154         * doc/posix-functions/casinf.texi (casinf): Likewise.
53155         * doc/posix-functions/casinh.texi (casinh): Likewise.
53156         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
53157         * doc/posix-functions/catan.texi (catan): Likewise.
53158         * doc/posix-functions/catanf.texi (catanf): Likewise.
53159         * doc/posix-functions/catanh.texi (catanh): Likewise.
53160         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
53161         * doc/posix-functions/ccos.texi (ccos): Likewise.
53162         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
53163         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
53164         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
53165         * doc/posix-functions/cexp.texi (cexp): Likewise.
53166         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
53167         * doc/posix-functions/cimag.texi (cimag): Likewise.
53168         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
53169         * doc/posix-functions/clog.texi (clog): Likewise.
53170         * doc/posix-functions/clogf.texi (clogf): Likewise.
53171         * doc/posix-functions/conj.texi (conj): Likewise.
53172         * doc/posix-functions/conjf.texi (conjf): Likewise.
53173         * doc/posix-functions/cpow.texi (cpow): Likewise.
53174         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
53175         * doc/posix-functions/cproj.texi (cproj): Likewise.
53176         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
53177         * doc/posix-functions/creal.texi (creal): Likewise.
53178         * doc/posix-functions/crealf.texi (crealf): Likewise.
53179         * doc/posix-functions/csin.texi (csin): Likewise.
53180         * doc/posix-functions/csinf.texi (csinf): Likewise.
53181         * doc/posix-functions/csinh.texi (csinh): Likewise.
53182         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
53183         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
53184         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
53185         * doc/posix-functions/ctan.texi (ctan): Likewise.
53186         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
53187         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
53188         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
53189         * doc/posix-headers/complex.texi (complex.h): Likewise.
53191 2010-10-07  Jim Meyering  <meyering@redhat.com>
53193         parse-datetime: avoid compilation failure on OpenBSD 4.7
53194         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
53195         This works around a compilation failure on OpenBSD 4.7:
53196         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
53198 2010-10-07  Eric Blake  <eblake@redhat.com>
53200         docs: update cygwin progress
53201         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
53202         1.7.6.
53203         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
53204         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
53205         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
53206         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
53207         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
53208         Likewise.
53209         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
53210         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
53211         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
53212         Likewise.
53213         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
53214         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
53215         Likewise.
53216         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
53217         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
53218         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
53219         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
53220         Likewise.
53221         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
53222         Likewise.
53223         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
53225         docs: update parse-datetime history
53226         * doc/parse-datetime.texi (Authors of parse_datetime): Better
53227         documentation of this function's history and alternatives.
53229         cygwin: use more robust version check
53230         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
53231         exclude an eventual cygwin 1.9.1.
53232         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
53233         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
53234         (gl_FUNC_STRCASESTR): Likewise.
53235         Reported by Bruno Haible.
53237 2010-10-06  Bruno Haible  <bruno@clisp.org>
53239         string, sys_select: Avoid #including large headers unless necessary.
53240         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
53241         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
53242         OSF/1, BeOS, Haiku.
53243         Reported by Jim Meyering.
53245 2010-10-05  Eric Blake  <eblake@redhat.com>
53247         memmem, strstr, strcasestr: fix bug with long periodic needle
53248         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
53249         periodic needle having false positive.
53250         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
53251         and cygwin 1.7.7.
53252         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
53253         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
53254         (gl_FUNC_STRCASESTR): Likewise.
53255         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
53256         * tests/test-memmem.c (main): Expose the bug.
53257         * tests/test-strcasestr.c (main): Likewise.
53258         * tests/test-strstr.c (main): Likewise.
53259         * tests/test-c-strcasestr.c (main): Likewise.
53260         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
53261         * doc/posix-functions/strstr.texi (strstr): Likewise.
53262         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
53263         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
53265 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
53267         parse-datetime: do some more renaming
53268         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
53269         parse_datetime, not get_date.  Mention the renaming.
53270         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
53271         in comments.
53272         * m4/bison.m4: Likewise.
53274 2010-10-05  Eric Blake  <eblake@redhat.com>
53276         parse-datetime: better name than get_date
53277         * NEWS: Reword the deprecation notice.
53278         * modules/get_date: Rename to modules/parse-datetime.
53279         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
53280         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
53281         * lib/get_date.y: Rename to lib/parse-datetime.y.
53282         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
53283         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
53284         * doc/getdate.texi: Provide fallback wrapper.
53285         * lib/getdate.h: Move guts, and wrap...
53286         * lib/parse-datetime.h: ...new file.
53287         * lib/parse-datetime.y (get_date): Rename...
53288         (parse_datetime): ...to this.
53289         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
53290         (gl_PARSE_DATETIME): ...to this.
53291         * doc/posix-functions/getdate.texi (get_date): Provide fallback
53292         documentation.
53293         * modules/getdate (Files): Provide fallback docs and header.
53294         (Notice, Depends-on): Update references.
53295         * tests/test-parse-datetime.c: Likewise.
53296         * DEPENDENCIES: Likewise.
53297         * MODULES.html.sh (Date and time <time.h>): Likewise.
53298         * doc/parse-datetime.texi (Date input formats)
53299         (Authors of parse_datetime): Likewise.
53300         * modules/parse-datetime (Files, configure.ac, Makefile.am)
53301         (Include): Likewise.
53302         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
53303         * gnulib-tool: Likewise.
53304         * m4/bison.m4 (gl_BISON): Likewise.
53305         Suggested by Bruno Haible.
53307 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
53309         more ports to Solaris tr, which needs [] around ranges
53310         * gnulib-tool: Solaris tr needs [] around ranges.
53311         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
53312         * tests/test-pipe-filter-gi1.c (main): Likewise.
53313         * tests/test-pipe-filter-ii1.c (main): Likewise.
53315 2010-10-05  Eric Blake  <eblake@redhat.com>
53317         bootstrap: fix Solaris regression
53318         * build-aux/bootstrap (check_versions): Solaris tr still needs []
53319         around ranges.
53320         Reported by Pádraig Brady.
53322         bootstrap: work with pkg-config
53323         * build-aux/bootstrap (check_versions): Also transliterate - in
53324         prerequisite name.
53325         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
53326         prerequisites that were already found, to avoid confusion.
53327         Reported by Justin Clift.
53329         faccessat: remove unused wrappers
53330         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
53331         presence of these wrappers dragged in -lgen on Solaris.
53332         Reported by Clemens Brogi; fix suggested by Paul Eggert.
53334 2010-10-05  Jim Meyering  <meyering@redhat.com>
53336         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
53337         * Makefile (sc_pragma_columns): New syntax-check rule.
53339 2010-10-04  Bruno Haible  <bruno@clisp.org>
53341         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
53342         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
53343         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
53344         Reported by Bruce Korb and Eric Blake.
53346 2010-10-04  Bruno Haible  <bruno@clisp.org>
53348         threadlib: Make option --with-libpth-prefix work.
53349         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
53350         use $LIBPTH, not just -lpth.
53352 2010-10-04  Bruno Haible  <bruno@clisp.org>
53354         Avoid line length limitation from HP NonStop system header files.
53355         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
53356         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
53357         * lib/ctype.in.h: Likewise.
53358         * lib/dirent.in.h: Likewise.
53359         * lib/errno.in.h: Likewise.
53360         * lib/fcntl.in.h: Likewise.
53361         * lib/float.in.h: Likewise.
53362         * lib/getopt.in.h: Likewise.
53363         * lib/iconv.in.h: Likewise.
53364         * lib/inttypes.in.h: Likewise.
53365         * lib/langinfo.in.h: Likewise.
53366         * lib/locale.in.h: Likewise.
53367         * lib/math.in.h: Likewise.
53368         * lib/netdb.in.h: Likewise.
53369         * lib/netinet_in.in.h: Likewise.
53370         * lib/poll.in.h: Likewise.
53371         * lib/pthread.in.h: Likewise.
53372         * lib/pty.in.h: Likewise.
53373         * lib/sched.in.h: Likewise.
53374         * lib/se-selinux.in.h: Likewise.
53375         * lib/search.in.h: Likewise.
53376         * lib/signal.in.h: Likewise.
53377         * lib/spawn.in.h: Likewise.
53378         * lib/stdarg.in.h: Likewise.
53379         * lib/stddef.in.h: Likewise.
53380         * lib/stdint.in.h: Likewise.
53381         * lib/stdio.in.h: Likewise.
53382         * lib/stdlib.in.h: Likewise.
53383         * lib/string.in.h: Likewise.
53384         * lib/strings.in.h: Likewise.
53385         * lib/sys_file.in.h: Likewise.
53386         * lib/sys_ioctl.in.h: Likewise.
53387         * lib/sys_select.in.h: Likewise.
53388         * lib/sys_socket.in.h: Likewise.
53389         * lib/sys_stat.in.h: Likewise.
53390         * lib/sys_time.in.h: Likewise.
53391         * lib/sys_times.in.h: Likewise.
53392         * lib/sys_utsname.in.h: Likewise.
53393         * lib/sys_wait.in.h: Likewise.
53394         * lib/sysexits.in.h: Likewise.
53395         * lib/termios.in.h: Likewise.
53396         * lib/time.in.h: Likewise.
53397         * lib/unistd.in.h: Likewise.
53398         * lib/wchar.in.h: Likewise.
53399         * lib/wctype.in.h: Likewise.
53400         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
53401         * modules/ctype (Makefile.am): Likewise.
53402         * modules/dirent (Makefile.am): Likewise.
53403         * modules/errno (Makefile.am): Likewise.
53404         * modules/fcntl-h (Makefile.am): Likewise.
53405         * modules/float (Makefile.am): Likewise.
53406         * modules/getopt-posix (Makefile.am): Likewise.
53407         * modules/iconv-h (Makefile.am): Likewise.
53408         * modules/inttypes (Makefile.am): Likewise.
53409         * modules/langinfo (Makefile.am): Likewise.
53410         * modules/locale (Makefile.am): Likewise.
53411         * modules/math (Makefile.am): Likewise.
53412         * modules/netdb (Makefile.am): Likewise.
53413         * modules/netinet_in (Makefile.am): Likewise.
53414         * modules/poll-h (Makefile.am): Likewise.
53415         * modules/pthread (Makefile.am): Likewise.
53416         * modules/pty (Makefile.am): Likewise.
53417         * modules/sched (Makefile.am): Likewise.
53418         * modules/search (Makefile.am): Likewise.
53419         * modules/selinux-h (Makefile.am): Likewise.
53420         * modules/signal (Makefile.am): Likewise.
53421         * modules/spawn (Makefile.am): Likewise.
53422         * modules/stdarg (Makefile.am): Likewise.
53423         * modules/stddef (Makefile.am): Likewise.
53424         * modules/stdint (Makefile.am): Likewise.
53425         * modules/stdio (Makefile.am): Likewise.
53426         * modules/stdlib (Makefile.am): Likewise.
53427         * modules/string (Makefile.am): Likewise.
53428         * modules/strings (Makefile.am): Likewise.
53429         * modules/sys_file (Makefile.am): Likewise.
53430         * modules/sys_ioctl (Makefile.am): Likewise.
53431         * modules/sys_select (Makefile.am): Likewise.
53432         * modules/sys_socket (Makefile.am): Likewise.
53433         * modules/sys_stat (Makefile.am): Likewise.
53434         * modules/sys_time (Makefile.am): Likewise.
53435         * modules/sys_times (Makefile.am): Likewise.
53436         * modules/sys_utsname (Makefile.am): Likewise.
53437         * modules/sys_wait (Makefile.am): Likewise.
53438         * modules/sysexits (Makefile.am): Likewise.
53439         * modules/termios (Makefile.am): Likewise.
53440         * modules/time (Makefile.am): Likewise.
53441         * modules/unistd (Makefile.am): Likewise.
53442         * modules/wchar (Makefile.am): Likewise.
53443         * modules/wctype (Makefile.am): Likewise.
53445 2010-10-04  Bruno Haible  <bruno@clisp.org>
53447         read-file tests: Avoid a test failure on NonStop Kernel.
53448         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
53449         a regular file.
53450         Reported by Joachim Schmitz <schmitz@hp.com>.
53452 2010-10-03  Bruno Haible  <bruno@clisp.org>
53454         gnulib-tool: Fixes for --create-testdir with --libtool.
53455         * gnulib-tool (func_get_automake_snippet): Don't augment
53456         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
53457         an executable.
53458         (func_create_testdir): Handle module 'alloca' like func_import.
53459         Reported by Bruce Korb <bruce.korb@gmail.com>.
53461 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
53463         Avoid some lines longer than 80 characters.
53464         * lib/stdint.in.h: Break long comment lines.
53465         * lib/math.in.h: Likewise.
53466         (_GL_NUM_UINT_WORDS): New macro, for readability.
53467         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
53468         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
53469         * lib/stdlib.in.h: Likewise.
53470         * lib/spawn.in.h: Likewise.
53471         * lib/sys_socket.in.h: Update an URL.
53472         * lib/sys_stat.in.h: Break long line.
53474 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
53476         Improve pmccabe2html.
53477         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
53478         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
53479         when the sources change. Remove the line in the HTML about "Used
53480         ranges" (which implied that there might be other unused ranges),
53481         rename "Resume" to "Summary" (easier to understand for more users).
53482         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
53483         styles, and some unnecessary blank lines.
53485 2010-10-03  Bruno Haible  <bruno@clisp.org>
53486             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
53488         acl: Add support for ACLs on NonStop Kernel.
53489         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
53490         Check whether the function aclsort() exists.
53491         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
53492         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
53493         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
53494         (acl_nontrivial [HAVE_ACLSORT]: New function.
53495         (file_has_acl): Implement for NonStop Kernel.
53496         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
53497         (qset_acl): Implement for NonStop Kernel.
53498         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
53499         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
53500         (main): Implement for NonStop Kernel.
53501         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
53502         Kernel. Handle this flavor.
53503         * tests/test-set-mode-acl.sh: Likewise.
53504         * tests/test-copy-acl.sh: Likewise.
53505         * tests/test-copy-file.sh: Likewise.
53507 2010-10-03  Bruno Haible  <bruno@clisp.org>
53509         Info about ACLs on NonStop Kernel.
53510         * doc/acl-resources.txt: Add info about NonStop Kernel.
53511         References by Joachim Schmitz <schmitz@hp.com>.
53513 2010-10-02  Bruno Haible  <bruno@clisp.org>
53515         Define missing EDQUOT on NonStop Kernel.
53516         * lib/errno.in.h (EDQUOT): Assign a value if missing.
53517         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
53518         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
53519         missing.
53520         * doc/posix-headers/errno.texi: Mention the NSK bug.
53521         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
53522         Reported by Joachim Schmitz <schmitz@hp.com>.
53524 2010-10-02  Bruno Haible  <bruno@clisp.org>
53526         Update doc for POSIX:2008.
53527         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
53528         Update URL of POSIX specification.
53530 2010-10-02  Bruno Haible  <bruno@clisp.org>
53532         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
53533         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
53534         from gnulib, not from Automake.
53536 2010-10-02  Bruno Haible  <bruno@clisp.org>
53538         New module 'system-posix'.
53539         * modules/system-posix: New file.
53540         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
53541         module is present.
53542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53543         GNULIB_SYSTEM_POSIX.
53544         * modules/stdlib (Depends-on): Remove sys_wait.
53545         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
53546         * doc/posix-functions/system.texi: Mention the new module.
53547         * doc/posix-headers/stdlib.texi: Likewise.
53548         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
53549         define test_sys_wait_macros to a no-op.
53550         Reported by Sam Steingold <sds@gnu.org>.
53552 2010-09-30  Bruno Haible  <bruno@clisp.org>
53554         More renaming from 'getdate' to 'get_date'.
53555         * doc/get_date.texi: Renamed from doc/getdate.texi.
53556         * modules/get_date (Files): Update.
53557         * MODULES.html.sh (Date and time <time.h>): Update.
53558         * DEPENDENCIES: Update.
53559         * gnulib-tool: Update comment.
53560         * m4/bison.m4 (gl_BISON): Likewise.
53561         * m4/get_date.m4 (gl_GET_DATE): Likewise.
53563 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
53565         bootstrap: support ACLOCAL_FLAGS during aclocal
53566         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
53567         can add additional -I dir for third-party .m4 files.
53569 2010-09-30  Eric Blake  <eblake@redhat.com>
53571         bootstrap: use glibtoolize on MacOS
53572         * build-aux/bootstrap (check_versions): Convert libtool into
53573         libtoolize.
53574         (tool search): Move libtool check earlier, and look for
53575         glibtoolize for MacOS.
53576         (gnulib_tool_options): Auto-add --libtool when appropriate.
53577         Reported by Justin Clift.
53579         poll: fix typo that broke test on MacOS
53580         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
53581         Reported by Justin Clift.
53583         getdate: rename to get_date
53584         Note: getdate.h is not renamed, to minimize client impact.
53585         * modules/getdate: Mark obsolete.  Move old contents...
53586         * modules/get_date: ...to new module name.
53587         * modules/getdate-tests: Move...
53588         * modules/get_date-tests: ...here.
53589         * m4/getdate.m4: Move...
53590         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
53591         * lib/getdate.y: Move...
53592         * lib/get_date.y: ...here.
53593         * tests/test-getdate.c: Move...
53594         * tests/test-get_date.c: ...here.
53595         * doc/posix-functions/getdate.texi (getdate): Update name.
53596         * NEWS: Mention the change.
53598 2010-09-29  Bruno Haible  <bruno@clisp.org>
53600         Separate the module 'waitpid' from the module 'sys_wait'.
53601         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
53602         present.
53603         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
53604         gl_MODULE_INDICATOR_FOR_TESTS.
53605         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
53606         * modules/sys_wait (Depends-on): Remove waitpid.
53607         (Makefile.am): Substitute GNULIB_WAITPID.
53608         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
53609         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
53610         signature only if the 'waitpid' module is present.
53611         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
53612         * NEWS: Mention the change.
53613         * modules/grantpt (Depends-on): Add waitpid.
53614         * modules/wait-process (Depends-on): Likewise.
53616 2010-09-29  Bruno Haible  <bruno@clisp.org>
53618         More tests for module 'sys_wait'.
53619         * modules/sys_wait-c++-tests: New file.
53620         * tests/test-sys_wait-c++.cc: New file.
53621         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
53622         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
53624 2010-09-29  Bruno Haible  <bruno@clisp.org>
53626         New module 'waitpid'.
53627         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
53628         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
53629         Don't include <process.h>.
53630         (waitpid): Declare only, using modern idiom.
53631         * m4/waitpid.m4: New file.
53632         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
53633         * modules/waitpid: New file.
53634         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
53635         (Makefile.am): Update.
53636         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
53638 2010-09-28  Bruno Haible  <bruno@clisp.org>
53640         poll: Assume ANSI C.
53641         * lib/poll.c (poll): Use an ANSI C declaration.
53643 2010-09-28  Bruno Haible  <bruno@clisp.org>
53645         poll-h: Create poll.h on all platforms.
53646         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
53647         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
53648         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
53649         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
53650         (gl_REPLACE_POLL_H): Don't set POLL_H.
53651         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
53652         * modules/poll-h (Depends-on): Add include_next.
53653         (Makefile.am): Create poll.h unconditionally. Substitute also
53654         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
53656 2010-09-28  Bruno Haible  <bruno@clisp.org>
53658         Tests for module 'poll-h'.
53659         * modules/poll-h-c++-tests: New file.
53660         * tests/test-poll-h-c++.cc: New file.
53662         Tests for module 'poll-h'.
53663         * modules/poll-h-tests: New file.
53664         * tests/test-poll-h.c: New file.
53666 2010-09-28  Bruno Haible  <bruno@clisp.org>
53668         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
53669         * modules/poll-h (Depends-on): Add 'extensions'.
53671 2010-09-28  Bruno Haible  <bruno@clisp.org>
53673         New module 'poll-h'.
53674         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
53675         (poll): Use modern idiom.
53676         * modules/poll-h: New file.
53677         * modules/poll (Files): Remove lib/poll.in.h.
53678         (Depends-on): Add poll-h.
53679         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
53680         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
53681         * m4/poll_h.m4: New file.
53682         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
53683         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
53684         and invoke gl_REPLACE_POLL_H.
53685         * lib/poll.c: Use common idiom.
53686         * tests/test-poll.c: Likewise.
53687         * doc/posix-headers/poll.texi: Mention the poll-h module.
53688         Suggested by Eric Blake.
53690 2010-09-26  Bruno Haible  <bruno@clisp.org>
53692         sys_wait: Implement WSTOPSIG.
53693         * lib/sys_wait.in.h (WSTOPSIG): New macro.
53694         Reported by Simon Josefsson.
53696 2010-09-26  Simon Josefsson  <simon@josefsson.org>
53698         stdlib, sys_wait: Avoid compilation error on mingw.
53699         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
53701 2010-09-26  Bruno Haible  <bruno@clisp.org>
53703         stdlib tests: Avoid code duplication.
53704         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
53705         * modules/sys_wait-tests (Files): Likewise.
53706         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
53707         * tests/test-stdlib.c: Include test-sys_wait.h.
53708         (main): Invoke test_sys_wait_macros.
53709         * tests/test-sys_wait.c: Include test-sys_wait.h.
53710         (main): Invoke test_sys_wait_macros.
53712 2010-09-25  Simon Josefsson  <simon@josefsson.org>
53714         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
53715         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
53716         sure Windows sockets are working before calling getaddrinfo.
53717         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
53718         * doc/gnulib.texi (Windows sockets): Fix typo.
53720 2010-09-25  Bruno Haible  <bruno@clisp.org>
53722         Tests for module 'regex-quote'.
53723         * modules/regex-quote-tests: New file.
53724         * tests/test-regex-quote.c: New file.
53726         New module 'regex-quote'.
53727         * lib/regex-quote.h: New file.
53728         * lib/regex-quote.c: New file.
53729         * modules/regex-quote: New file.
53730         Suggested by Reuben Thomas <rrt@sc3d.org>.
53732 2010-09-24  Bruno Haible  <bruno@clisp.org>
53734         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
53735         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
53737 2010-09-23  Bruno Haible  <bruno@clisp.org>
53739         setenv: Relax license.
53740         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
53741         Blake.
53742         Requested by Eric Blake.
53744 2010-09-22  Bruno Haible  <bruno@clisp.org>
53746         termios: Relax license.
53747         * modules/termios (License): Change to LGPLv2+.
53748         Requested by Eric Blake.
53750 2010-09-22  Bruno Haible  <bruno@clisp.org>
53752         threadlib: Allow the package to change the default to 'no'.
53753         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
53754         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
53755         Reported by Paul Eggert.
53757 2010-09-22  Pádraig Brady  <P@draigbrady.com>
53758             Bruno Haible  <bruno@clisp.org>
53760         Fix endless loop in mbmemcasecoll.
53761         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
53762         byte.
53763         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
53765 2010-09-22  Bruno Haible  <bruno@clisp.org>
53767         Tests for module 'memcoll'.
53768         * modules/memcoll-tests: New file.
53769         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
53771         memcoll, xmemcoll: Clarify size vs. length.
53772         * modules/memcoll.c (memcoll0): Clarify specification.
53773         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
53774         passed to collate_error.
53776 2010-09-22  Bruno Haible  <bruno@clisp.org>
53778         Tests for module 'memcasecmp'.
53779         * modules/memcasecmp-tests: New file.
53780         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
53782 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53784         * lib/pthread.in.h: Add split double-inclusion guard, and include
53785         system <pthread.h> if there is one.  Use @@-style as in other
53786         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
53787         pthread.h doesn't.
53788         (pthread_mutexattr_destroy, pthread_mutexattr_init):
53789         (pthread_mutexattr_settype, pthread_mutex_trylock):
53790         New static inline functions, if there's no system <pthread.h>.
53791         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
53792         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
53793         Approximate with mutexes if the system lacks spinlocks, as in
53794         MacOS.
53795         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
53796         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
53797         @@-style.  Check for spinlocks separately.
53798         (gl_PTHREAD_DEFAULTS): New macro.
53799         * modules/pthread: Redo to use a more typical style for in.h files.
53801 2010-09-21  Eric Blake  <eblake@redhat.com>
53803         net_if: enhance tests
53804         * tests/test-net_if.c (main): Move signature checks earlier.
53805         Print failures to stderr.
53806         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
53807         Document the bug that we do not yet fix.
53809 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
53811         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
53812         about gnulib, not GSS.
53814 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
53816         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
53817         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
53818         for Emacs.
53819         * build-aux/pmccabe2html: Make Makefile.am example code more
53820         cut-and-paste friendly.
53822 2010-09-21  Simon Josefsson  <simon@josefsson.org>
53824         * tests/test-net_if.c: New file.
53825         * modules/net_if-tests: New file.
53827 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53829         pthread: add pthread_spin_destroy
53830         * lib/pthread.in.h (pthread_spin_destroy): New function.
53832 2010-09-19  Bruno Haible  <bruno@clisp.org>
53834         gnulib-tool: Fix --help output.
53835         * gnulib-tool (func_usage): Fix help message.
53836         Reported by Reuben Thomas <rrt@sc3d.org>.
53838 2010-09-18  Jim Meyering  <meyering@redhat.com>
53840         maint.mk: avoid unexpanded \n in two diagnostics
53841         * top/maint.mk (sc_prohibit_always_true_header_tests):
53842         Don't use a literal \n in a halt=... assignment.  It would not be
53843         expanded, and the two \n bytes would appear in the diagnostic output
53844         rather than the desired newline.  Use halt=$$(printf ... instead.
53845         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
53847 2010-09-18  Bruno Haible  <bruno@clisp.org>
53849         netinet_in: Doc tweak.
53850         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
53851         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
53853 2010-09-18  Jim Meyering  <meyering@redhat.com>
53855         init.sh: correct an outdated comment
53856         * tests/init.sh (create_exe_shims_):  s/function/alias/
53858         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
53859         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
53860         a file named "*.exe" is removed between the glob expansion and the
53861         processing of that oddly named file.
53863 2010-09-17  Eric Blake  <eblake@redhat.com>
53865         mirbsd: add some more support
53866         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
53867         in BSD family.
53868         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
53869         devices as OpenBSD.
53870         * m4/host-os.m4 (mirbsd): Add MirBSD.
53872         tests: fix unportable assumption on sys/wait.h
53873         * tests/test-sys_wait.c (main): Relax test.
53874         * tests/test-stdlib.c (main): Likewise.
53876         init.sh: accommodate directory with no .exes
53877         * tests/init.sh: Accomodate directory containing only scripts.
53879         tests: avoid compiler warning
53880         * tests/test-stdlib.c (main): Use the variable.
53882         fdutimens, fdutimensat: update signature, again
53883         * lib/utimens.h (gl_futimens): Delete, and move signature...
53884         (fdutimens): ...here.
53885         (fdutimensat): Rearrange signature.
53886         (lutimensat): Rename variable for clarity.
53887         * lib/fdutimensat.c (fdutimensat): Update signature.
53888         * lib/utimens.c (fdutimens): Likewise.
53889         (gl_futimens): Delete.
53890         (utimens, lutimens): Update callers.
53891         * lib/futimens.c (futimens): Likewise.
53892         * tests/test-fdutimensat.c: Likewise.
53893         * tests/test-utimens.c: Likewise.
53894         * tests/test-futimens.h: Update comment.
53895         * NEWS: Mention this.
53896         Suggested by Paul Eggert.
53898 2010-09-17  Bruno Haible  <bruno@clisp.org>
53900         Take over the maintenance of some older macros from Autoconf.
53901         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
53902         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
53903         GNU Autoconf.
53904         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
53905         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
53907 2010-09-17  Eric Blake  <eblake@redhat.com>
53909         fdutimensat: drop atflag validation
53910         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
53911         with valid fd, to close a race scenario where futimens is
53912         unsupported and FILE was replaced by a symlink.
53913         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
53914         accordingly.
53915         Suggested by Paul Eggert.
53917 2010-09-16  Bruno Haible  <bruno@clisp.org>
53919         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
53920         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
53922 2010-09-16  Bruno Haible  <bruno@clisp.org>
53924         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
53925         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
53926         login_tty exists.
53927         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
53929 2010-09-16  Bruno Haible  <bruno@clisp.org>
53931         login_tty: Make the replacement code work on BSD systems.
53932         * lib/login_tty.c: Include <sys/ioctl.h>.
53933         (login_tty): Use ioctl TIOCSCTTY when available.
53934         * modules/login_tty (Depends-on): Add sys_ioctl.
53935         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
53937 2010-09-16  Bruno Haible  <bruno@clisp.org>
53939         login_tty: Stricter unit test.
53940         * modules/login_tty-tests (Depends-on): Add tcgetsid.
53941         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
53942         and tcgetsid() after login_tty.
53943         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
53945 2010-09-16  Bruno Haible  <bruno@clisp.org>
53947         New module 'tcgetsid'.
53948         * lib/tcgetsid.c: New file.
53949         * m4/tcgetsid.m4: New file.
53950         * modules/tcgetsid: New file.
53951         * modules/termios (Depends-on): Add c++defs, warn-on-use.
53952         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
53953         GNULIB_TCGETSID, HAVE_TCGETSID.
53954         * lib/termios.in.h: Include <sys/types.h>.
53955         (tcgetsid): New declaration.
53956         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
53957         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
53958         * doc/posix-functions/tcgetsid.texi: Mention the new module.
53959         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
53961 2010-09-16  Bruno Haible  <bruno@clisp.org>
53963         Tests for module 'termios'.
53964         * modules/termios-c++-tests: New file.
53965         * modules/termios-tests: New file.
53966         * tests/test-termios-c++.cc: New file.
53967         * tests/test-termios.c: New file.
53969         New module 'termios'.
53970         * modules/termios: New file.
53971         * lib/termios.in.h: New file.
53972         * m4/termios_h.m4: New file.
53973         * doc/posix-headers/termios.texi: Mention the new module.
53975 2010-09-16  Eric Blake  <eblake@redhat.com>
53977         fdutimensat: add an atflag parameter
53978         * lib/fdutimensat.c (fdutimensat): Add new parameter.
53979         * lib/utimens.h (fdutimensat): Update prototype.
53980         * tests/test-fdutimensat.c: Adjust test to match.
53981         * NEWS: Document the change.
53982         Suggested by Paul Eggert.
53984 2010-09-16  Bruno Haible  <bruno@clisp.org>
53986         Fix typos in comments.
53987         * lib/striconveh.h: Fix typo in comment.
53988         * lib/login_tty.c (login_tty): Likewise.
53990 2010-09-15  Bruno Haible  <bruno@clisp.org>
53992         stdlib: clarify MirBSD WEXITSTATUS bug
53993         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
53994         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
53996 2010-09-15  Eric Blake  <eblake@redhat.com>
53998         stdlib: work around MirBSD WEXITSTATUS bug
53999         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
54000         * modules/stdlib (Depends-on): Add sys_wait.
54001         * tests/test-sys_wait.c (main): Enhance test.
54002         * tests/test-stdlib.c (main): Likewise.
54003         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
54005         docs: mention MacOS issue with WEXITSTATUS(constant)
54006         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
54007         issue.
54008         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
54010         strnlen: add tests
54011         * modules/strnlen-tests: New file.
54012         * tests/test-strnlen.c: Likewise.
54014 2010-09-14  Bruno Haible  <bruno@clisp.org>
54016         unistr/base: Avoid link errors when module 'libunistring' is also used.
54017         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
54018         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
54019         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
54020         Declare also when HAVE_LIBUNISTRING is set.
54021         Reported by Pádraig Brady <P@draigbrady.com>.
54023 2010-09-14  Eric Blake  <eblake@redhat.com>
54025         test-rawmemchr: make more robust
54026         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
54027         (Depends-on, configure.ac): Add needed prerequisites to use it.
54028         * modules/memchr-tests (Files, Depends-on, configure.ac):
54029         Likewise, to avoid implicit reliance on memchr module prereqs.
54030         * tests/test-memchr.c (main): Ensure proper masking.
54031         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
54032         reads.
54034         memchr: detect glibc Alpha bug
54035         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
54036         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
54037         Alpha.
54038         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
54039         * tests/test-memchr.c (main): Enhance test.
54040         Reported by Nelson H. F. Beebe.
54042 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54044         fts, getcwd, glob: audit for dirfd returning -1
54045         * lib/fts.c (opendir): Remove #define; no longer used.
54046         (opendirat): New arg PDIR_FD.  All callers changed.
54047         (fts_build, _opendir2): Use new opendirat to avoid the need for
54048         dirfd, or for checking whether dirfd returns a negative value.
54049         Don't use opendir; always use openat followed by fdopendir.
54050         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
54051         it.
54052         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
54053         returns -1 here.
54054         * modules/fts (Depends-on): Remove dirfd.
54055         * modules/getcwd (Depends-on): Likewise.
54057 2010-09-13  Eric Blake  <eblake@redhat.com>
54059         float: fix broken MirBSD header
54060         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
54061         * doc/posix-headers/float.texi (float.h): Document it.
54063 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54065         fts: use O_NOFOLLOW to avoid race condition when opening a directory
54066         * lib/fts.c (opendirat): New arg extra_flags.
54067         (__opendir2): Use it to avoid following symlinks when opening
54068         a directory, if symlinks are not supposed to be followed.  See
54069         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
54071         fdopendir: preserve argument fd before returning
54072         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
54073         (fdopendir_with_dup, fd_clone_opendir): New static functions.
54074         (fdopendir): Use them, arranging for FD to be open to the same
54075         directory that it was when it started.  (It might be temporarily
54076         closed while fdopendir is running, so this not thread- or
54077         signal-safe.)  Be careful to do the right thing even when file
54078         descriptors are scarce and dup fails with errno == EMFILE.  See
54079         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
54081 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
54083         regex: Pass the system regex if its only problem is 32-bit regoff_t.
54084         * NEWS: Document change.
54085         * m4/regex.m4: Disable test for regoff_t size.
54087 2010-09-13  Jim Meyering  <meyering@redhat.com>
54089         fts: don't operate on an invalid file descriptor after failed dup
54090         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
54091         negative file descriptor.
54093 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
54095         savedir: add streamsavedir, deprecate fdsavedir
54096         * NEWS: Mention deprecation of fdsavedir.
54097         * lib/savedir.c (streamsavedir): New extern function, whose name
54098         ends in "savedir" to be consistent with the others.  This differs
54099         from savedirstream in that it doesn't close its argument.  The
54100         next version of GNU tar will use this instead of fdsavedir, to
54101         avoid some race conditions and conserve file descriptors.
54102         (savedirstream): Reimplement as a wrapper around streamsavedir.
54103         (fdsavedir): Add a comment deprecating this function.  As far as
54104         I know, only GNU tar used it, and GNU tar doesn't need it any more.
54105         * lib/savedir.h (streamsavedir): New decl.
54106         (fdsavedir): Add a comment deprecating this.
54108 2010-09-10  Bruno Haible  <bruno@clisp.org>
54110         langinfo: Fix last commit.
54111         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
54112         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
54113         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54115 2010-09-10  Bruno Haible  <bruno@clisp.org>
54117         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
54118         * lib/progreloc.c (O_EXEC): Define fallback.
54120 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
54122         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
54123         * NEWS: Document recent changes to fcntl-h.
54124         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
54125         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
54126         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
54127         Similarly for O_SEARCH; this last was already true, but not documented.
54128         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
54129         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
54130         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
54131         Likewise.
54132         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
54133         is zero, not whether it is defined.
54134         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
54135         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
54136         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
54138 2010-09-10  Bruno Haible  <bruno@clisp.org>
54140         langinfo, nl_langinfo: Fix for IRIX 5.3.
54141         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
54142         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
54143         HAVE_LANGINFO_YESEXPR.
54144         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
54145         HAVE_LANGINFO_YESEXPR.
54146         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
54147         HAVE_LANGINFO_T_FMT_AMPM is 0.
54148         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
54149         HAVE_LANGINFO_YESEXPR is 0.
54150         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
54151         NOEXPR.
54152         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
54153         * doc/posix-functions/nl_langinfo.texi: Likewise.
54154         Reported by Eric Blake.
54156 2010-09-10  Bruno Haible  <bruno@clisp.org>
54158         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
54159         * doc/glibc-functions/login_tty.texi: Mention the include file problem
54160         on FreeBSD 8.0 and OpenBSD 4.6.
54161         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
54162         * m4/pty_h.m4 (gl_PTY_H): Likewise.
54163         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
54164         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
54165         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
54166         ac_includes_default.
54167         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
54169 2010-09-09  Eric Blake  <eblake@redhat.com>
54171         strsignal: work around NetBSD bug
54172         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
54173         * lib/string.in.h (includes): Likewise.
54174         * doc/posix-functions/strsignal.texi (strsignal): Document the
54175         bug.
54176         Reported by Nelson H. F. Beebe.
54178         gnulib-tool: work with NetBSD /bin/sh
54179         * gnulib-tool (func_cache_var, func_cache_lookup_module)
54180         (func_get_description, func_get_comment, func_get_status)
54181         (func_get_notice, func_get_applicability, func_get_filelist)
54182         (func_get_dependencies, func_get_autoconf_early_snippet)
54183         (func_get_autoconf_snippet, func_get_automake_snippet)
54184         (func_get_include_directive, func_get_link_directive)
54185         (func_get_license, func_get_maintainer, func_import): Avoid
54186         shell syntax errors from parsing syntax extensions.
54188 2010-09-09  Bruno Haible  <bruno@clisp.org>
54190         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
54191         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
54192         a reliable way to determine whether the 'alias' command works.
54194 2010-09-08  Jim Meyering  <meyering@redhat.com>
54196         init.sh: penalize a set-x-impaired shell; don't disqualify it
54197         * tests/init.sh: Too many shells corrupt application stderr when
54198         you set -x, so we can't afford to disqualify them, since at least
54199         on Irix-6.5, that would disqualify all bourne shells.
54200         Instead, use a two-pass approach.
54201         On the first pass, try to find a shell that meets the stricter
54202         condition that set -x does not corrupt stderr.
54203         If no shell meets the stricter condition, retest each candidate
54204         shell, but without that extra condition.  Finally, when
54205         VERBOSE=yes is requested and set -x might cause trouble, simply
54206         issue a warning and refrain from enabling debug output.
54208 2010-09-08  Eric Blake  <eblake@redhat.com>
54210         unsetenv: fix OpenBSD bug
54211         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
54212         * doc/posix-functions/unsetenv.texi (unsetenv): Update
54213         documentation.
54214         Reported by Jim Meyering.
54216         strtod: work around IRIX 6.5 bug
54217         * lib/strtod.c (strtod): Reparse number on shorter string if
54218         exponent parse was invalid.
54219         * tests/test-strtod.c (main): Add check for "0x1p 2".
54220         Reported by Tom G. Christensen.
54222         getopt: optimize previous patch
54223         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
54224         empty variable.  Speed up awk script.
54225         Reported by Paolo Bonzini.
54227 2010-09-08  Jim Meyering  <meyering@redhat.com>
54229         test.sh: disqualify shells for which set -x corrupts stderr
54230         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
54231         and OpenBSD 4.7.  They make it so with "set -x", environment settings
54232         appear in stderr output.  For example, this command:
54233             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
54234         prints "P=1" on those two systems:
54236 2010-09-08  Bruno Haible  <bruno@clisp.org>
54238         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
54239         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
54240         commands, because some shells ignore redirections when there is an
54241         error in the command lookup.
54242         Reported by Eric Blake.
54244 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
54246         * lib/regex.h: Fix a mention of `regex_compile' (should be
54247         `re_compile_pattern').
54248         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
54249         (re_set_registers): Correct name of parameter in comment.
54251         * doc/regex.texi: Add documentation for missing syntax flags.
54252         Remove commented-out documentation of defunct syntax option
54253         RE_NO_EMPTY_ALTS.
54254         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
54255         Add documentation of re_set_registers.
54256         Document trick to re-use a pattern buffer by setting fastmap manually.
54257         Update documentation of struct re_pattern_buffer per public members.
54258         Uncomment documentation of equivalence class operators and
54259         collating symbol operators, since they are now implemented,
54260         Explain leftmost-longest matching in relation to alternatives.
54261         Tidy documentation of substring matching.
54262         Remove POSIX documentation, which is done better in
54263         glibc, and refer the reader there. Keep BSD API documentation, as
54264         that is not readily available elsewhere.
54266 2010-09-07  Eric Blake  <eblake@redhat.com>
54268         getopt: handle POSIXLY_CORRECT set but not exported
54269         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
54270         export state of POSIXLY_CORRECT, due to bash set -o posix.
54271         Reported by Dustin J. Mitchell.
54273 2010-09-05  Bruno Haible  <bruno@clisp.org>
54275         gnulib-tool: Highlight the changed options.
54276         * gnulib-tool (func_usage): Display the --import, --add-import,
54277         --remove-import explanations in bold font.
54279 2010-09-06  Karl Berry  <karl@gnu.org>
54281         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
54283 2010-09-05  Bruno Haible  <bruno@clisp.org>
54285         uniwidth/width: Update comment.
54286         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
54287         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
54289 2010-09-05  Bruno Haible  <bruno@clisp.org>
54291         isinf, isnan: Relax license.
54292         * modules/isinf (License): Change from GPL to LGPL, with consent from
54293         Ben Pfaff.
54294         * modules/isnan (License): Likewise.
54295         Requested by Ludovic Courtès.
54297 2010-09-04  Bruno Haible  <bruno@clisp.org>
54299         gnulib-tool: Help migration from --import to --add-import or --update.
54300         * gnulib-tool: Emit a verbose error message when --import is used
54301         without any module name.
54303 2010-09-04  Bruno Haible  <bruno@clisp.org>
54305         Update doc about gnulib-tool.
54306         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
54307         'gnulib-tool --update' in more detail.
54308         Reported by Eric Blake.
54310 2010-09-04  Bruno Haible  <bruno@clisp.org>
54312         gnulib-tool: Change --import. New options --add/remove-import.
54313         * gnulib-tool: New options --add-import, --remove-import.
54314         (func_usage): Document them.
54315         (have_associative): Define always.
54316         (func_import): In import mode, don't merge the specified settings with
54317         the cached settings. Implement remove-import mode.
54318         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
54319         Explain when to use them versus --import.
54320         (Simple update): Use --add-import instead of --import.
54321         * NEWS: Mention the change.
54323 2010-09-04  Bruno Haible  <bruno@clisp.org>
54325         * doc/gnulib-tool.texi (Initial import): Update paragraph about
54326         separate gnulib.mk.
54328 2010-09-04  Bruno Haible  <bruno@clisp.org>
54330         gnulib-tool: Don't talk about CVS any more.
54331         * gnulib-tool (func_usage, func_import): Write "version control"
54332         instead of CVS.
54334 2010-09-04  Jim Meyering  <meyering@redhat.com>
54336         maint.mk: avoid obscure sc_copyright_check failure in coreutils
54337         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
54338         false positives (whose names may be ill-chosen) when searching
54339         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
54340         would cause a false-positive.
54342         avoid coreutils "make distcheck" failure
54343         Coreutils tests with an absolute build directory name that contains
54344         a space.  Not quoting this directory name caused a failure.
54345         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
54346         * tests/test-vc-list-files-cvs.sh: Likewise.
54348 2010-09-04  Bruno Haible  <bruno@clisp.org>
54350         gnulib-tool: Avoid error when run in a package without Makefile.am.
54351         * gnulib-tool: When collecting the m4dirs in a package that does not
54352         have a Makefile.am, eliminate those directories that contain no
54353         gnulib-cache.m4. Fix expression that counts these directories.
54355 2010-09-04  Bruno Haible  <bruno@clisp.org>
54357         update-copyright test: Improve output when perl is missing or too old.
54358         * tests/test-update-copyright.sh: Move test of Perl version down after
54359         the test whether Perl exists. Provide an explanation relating Perl's
54360         error message to Automake's SKIP: message.
54362 2010-09-04  Bruno Haible  <bruno@clisp.org>
54364         Don't augment PATH in TESTS_ENVIRONMENT.
54365         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
54366         set abs_aux_dir instead of augmenting PATH.
54367         * modules/vc-list-files-tests (Makefile.am): Likewise.
54368         * tests/test-update-copyright.sh: Augment PATH here.
54369         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
54370         path_prepend_.
54371         * tests/test-vc-list-files-git.sh: Likewise.
54373 2010-09-04  Jim Meyering  <meyering@redhat.com>
54375         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
54376         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
54378 2010-09-04  Bruno Haible  <bruno@clisp.org>
54380         strdup: Fix compilation error in C++ mode.
54381         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
54382         the macro.
54384 2010-09-04  Bruno Haible  <bruno@clisp.org>
54386         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
54387         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
54388         macro into a function.
54389         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
54391 2010-09-04  Bruno Haible  <bruno@clisp.org>
54393         Set PATH_SEPARATOR the same way autoconf does.
54394         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
54395         the value of PATH_SEPARATOR the same way autoconf-generated configure
54396         scripts do.
54397         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
54398         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
54400 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
54402         Set PATH_SEPARATOR the same way autoconf does.
54403         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
54404         the same way autoconf-generated configure scripts do.
54405         * posix-modules: Likewise.
54407 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
54409         hash: fix safe_hasher const typo
54410         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
54411         const; otherwise, there is a type error later.
54413 2010-09-02  Jim Meyering  <meyering@redhat.com>
54415         test-update-copyright.sh: require perl 5.8.0
54416         * tests/test-update-copyright.sh: Require 5.8.0,
54417         which Tom G. Christensen has confirmed is adequate,
54418         while 5.6.1 is not.
54420 2010-09-02  Eric Blake  <eblake@redhat.com>
54422         tests: init.sh improvements for re-exec'ing with zsh
54423         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
54424         -vx through shell re-exec.
54425         Reported by Tom G. Christensen.
54427         wctype: fix typo in previous commit
54428         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
54429         Reported by Ludovic Courtès.
54431 2010-09-02  Jim Meyering  <meyering@redhat.com>
54433         test-update-copyright.sh: skip test if Perl is too old
54434         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
54435         Reported by Tom G. Christensen.
54437 2010-09-02  Bruno Haible  <bruno@clisp.org>
54439         wctype: Avoid compilation error on IRIX 6.5.30.
54440         * lib/wctype.in.h (iswblank): Declare with a replacement if
54441         REPLACE_ISWBLANK is set.
54442         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
54443         declared. Set REPLACE_ISWBLANK.
54444         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
54445         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
54446         * doc/posix-headers/wctype.texi: Likewise.
54447         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54449 2010-09-01  Bruno Haible  <bruno@clisp.org>
54451         New module 'socketlib'.
54452         * modules/socketlib: New file.
54453         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
54454         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
54455         * modules/sockets (Depends-on): Add socketlib.
54456         Suggested by Sam Steingold <sds@gnu.org>.
54458 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54460         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
54462         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
54463         when one needs search access to a directory but not read access.
54464         On systems where it is available, it works in some cases where
54465         O_RDONLY does not, namely on directories that are searchable but
54466         not readable, and which need only to be searchable.  If O_SEARCH
54467         is not available, fall back to the traditional method of using
54468         O_RDONLY.
54470         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
54471         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
54472         when opening a directory that needs only to be searchable.
54473         * lib/chdir-safer.c (chdir_no_follow): Likewise.
54474         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
54475         * lib/openat-proc.c (openat_proc_name): Likewise.
54476         * lib/openat.c (openat_needs_fchdir): Likewise.
54477         * lib/save-cwd.c (save_cwd): Likewise.
54478         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
54480 2010-08-28  Bruno Haible  <bruno@clisp.org>
54482         New module 'host-cpu-c-abi'.
54483         * modules/host-cpu-c-abi: New file.
54484         * m4/host-cpu-c-abi.m4: New file, based on part of
54485         clisp/src/m4/general.m4.
54486         Requested by Sam Steingold <sds@gnu.org>.
54488 2010-08-31  Eric Blake  <eblake@redhat.com>
54489         and Jim Meyering  <meyering@redhat.com>
54491         hash: factor, and guard against misbehaving hasher function
54492         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
54493         of table->hasher's return value.  Also protect against a hash value
54494         so large that adding it to table->bucket results in a NULL pointer.
54495         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
54496         Use it in place of open-coded check-and-abort.
54498 2010-08-30  Bruno Haible  <bruno@clisp.org>
54500         hash: silence spurious clang warning
54501         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
54502         Reported by Eric Blake.
54504 2010-08-30  Eric Blake  <eblake@redhat.com>
54506         strstr, memmem, strcasestr: avoid leaked shell message
54507         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
54508         FreeBSD.
54509         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54510         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54512         tests: silence clang warning
54513         * tests/test-malloca.c (do_allocation): Avoid dead store.
54515 2010-08-29  Bruno Haible  <bruno@clisp.org>
54517         gettext: Fix recent mistake.
54518         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
54520 2010-08-29  Bruno Haible  <bruno@clisp.org>
54522         selinux-h: Offer a --without-selinux option.
54523         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
54524         --without-selinux was specified, skip all tests and define
54525         HAVE_SELINUX_SELINUX_H to 0.
54526         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
54527         set LIB_SELINUX to empty.
54528         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
54529         gl_LIBSELINUX. If --without-selinux was specified, replace
54530         selinux/context.h.
54531         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
54533 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54534             Bruno Haible  <bruno@clisp.org>
54536         Make the module 'realloc-gnu' work again on AIX and OSF/1.
54537         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
54538         of HAVE_REALLOC.
54539         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
54540         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
54541         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
54542         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
54544 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54545             Bruno Haible  <bruno@clisp.org>
54547         Make the module 'calloc-gnu' work again on AIX and OSF/1.
54548         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
54549         HAVE_CALLOC.
54550         * lib/xmalloc.c: Update accordingly.
54551         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
54552         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
54553         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
54555 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54556             Bruno Haible  <bruno@clisp.org>
54558         Make the module 'malloc-gnu' work again on AIX and OSF/1.
54559         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
54560         HAVE_MALLOC.
54561         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
54562         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
54563         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
54565 2010-08-29  Bruno Haible  <bruno@clisp.org>
54567         Update modules list.
54568         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
54569         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
54570         (String handling <string.h>): Add astrxfrm.
54571         (File system functions): Add readlinkat.
54573 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54575         Tests for module 'realloc-gnu'.
54576         * modules/realloc-gnu-tests: New file.
54577         * tests/test-realloc-gnu.c: New file.
54579         Tests for module 'calloc-gnu'.
54580         * modules/calloc-gnu-tests: New file.
54581         * tests/test-calloc-gnu.c: New file.
54583         Tests for module 'malloc-gnu'.
54584         * modules/malloc-gnu-tests: New file.
54585         * tests/test-malloc-gnu.c: New file.
54587 2010-08-28  Bruno Haible  <bruno@clisp.org>
54589         Rename module 'realloc' -> 'realloc-gnu'.
54590         * modules/realloc-gnu: New file, copied from modules/realloc.
54591         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
54592         obsolete.
54593         * modules/mgetgroups (Depends-on): Update.
54594         * doc/posix-functions/realloc.texi: Update.
54595         * NEWS: Mention the change.
54597         Rename module 'calloc' -> 'calloc-gnu'.
54598         * modules/calloc-gnu: New file, copied from modules/calloc.
54599         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
54600         obsolete.
54601         * doc/posix-functions/calloc.texi: Update.
54602         * NEWS: Mention the change.
54604         Rename module 'malloc' -> 'malloc-gnu'.
54605         * modules/malloc-gnu: New file, copied from modules/malloc.
54606         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
54607         obsolete.
54608         * modules/argp (Depends-on): Update.
54609         * modules/regex (Depends-on): Update.
54610         * doc/posix-functions/malloc.texi: Update.
54611         * NEWS: Mention the change.
54613 2010-08-28  Eric Blake  <eblake@redhat.com>
54615         pread, pwrite: add missing dependency
54616         * modules/pread (Depends-on): Add extensions.
54617         * modules/pwrite (Depends-on): Likewise.
54619 2010-08-28  Bruno Haible  <bruno@clisp.org>
54621         unistr/u*-strchr: Fix tests dependencies.
54622         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
54623         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
54624         Reported by Ian Beckwith <ianb@erislabs.net>.
54626 2010-08-28  Bruno Haible  <bruno@clisp.org>
54628         read-file: Don't occupy too much unused memory.
54629         * lib/read-file.c (fread_file): Shrink the buffer at the end.
54631 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
54632             Eric Blake  <eblake@redhat.com>
54633             Bruno Haible  <bruno@clisp.org>
54635         read-file: Avoid memory reallocations with regular files.
54636         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
54637         (fread_file): With regular files, use the remaining length as the
54638         initial buffer size.  Check against overflow.
54639         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
54640         sys_stat.
54642 2010-08-28  Bruno Haible  <bruno@clisp.org>
54644         ftello: Relax license.
54645         * modules/ftello (License): Relax to LGPLv2+.
54646         Reported by Eric Blake.
54648 2010-08-28  Bruno Haible  <bruno@clisp.org>
54650         Avoid relocwrapper link errors due to gnulib replacement functions.
54651         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
54652         function.
54653         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54655 2010-08-28  Bruno Haible  <bruno@clisp.org>
54657         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
54658         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
54659         defined.
54660         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
54661         Suggested by Eric Blake.
54663 2010-08-28  Bruno Haible  <bruno@clisp.org>
54665         sys_socket, netdb: Ensure socklen_t gets defined.
54666         * modules/sys_socket (Depends-on): Add socklen.
54667         * modules/netdb (Depends-on): Likewise.
54668         * modules/getaddrinfo (Depends-on): Remove socklen.
54669         * modules/getsockopt (Depends-on): Likewise.
54670         * modules/setsockopt (Depends-on): Likewise.
54671         * tests/test-sys_socket.c: Check that socklen_t is defined.
54672         * tests/test-netdb.c: Likewise.
54673         * m4/socklen.m4: Update comments.
54674         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54676 2010-08-27  Eric Blake  <eblake@redhat.com>
54678         login_tty: add missing dependency
54679         * modules/login_tty (Depends-on): Add pty.
54681 2010-08-26  Eric Blake  <eblake@redhat.com>
54683         lib-symbol-versions: fix m4 quoting
54684         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
54685         format for AC_LINK_IFELSE.
54687         glob: fix compile test
54688         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
54690         btowc: fix missing file
54691         * modules/btowc (Files): Also ship locale-fr.m4.
54693         lseek: fix link test
54694         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
54695         AC_LINK_IFELSE.
54697         include_next: silence autoconf 2.68 warning
54698         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
54699         AC_COMPILE_IFELSE as special.
54700         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
54701         autoconf < 2.68.
54703         acl: fix compilation test
54704         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
54705         AC_COMPILE_IFELSE.
54707 2010-08-26  Bruno Haible  <bruno@clisp.org>
54709         Modernize AC_TRY_RUN invocations.
54710         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
54711         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
54712         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
54713         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
54714         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
54715         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
54716         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
54717         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
54718         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
54719         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
54720         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
54721         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
54722         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
54723         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
54724         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
54725         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
54726         gl_MBRLEN_NUL_RETVAL): Likewise.
54727         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
54728         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
54729         Likewise.
54730         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
54731         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
54732         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
54733         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
54734         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
54735         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
54736         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
54737         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
54738         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
54739         Likewise.
54740         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
54741         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
54742         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54743         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
54744         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
54745         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
54746         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
54747         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
54748         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
54749         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54751 2010-08-26  Bruno Haible  <bruno@clisp.org>
54753         Modernize AC_TRY_LINK invocations.
54754         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
54755         AC_TRY_LINK.
54756         * m4/argp.m4 (gl_ARGP): Likewise.
54757         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
54758         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
54759         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54760         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54761         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54762         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
54763         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
54764         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
54765         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54766         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
54767         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54768         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
54769         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
54770         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
54771         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
54772         * m4/hostent.m4 (gl_HOSTENT): Likewise.
54773         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
54774         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
54775         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
54776         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
54777         Likewise.
54778         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
54779         Likewise.
54780         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
54781         Likewise.
54782         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
54783         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
54784         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
54785         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
54786         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
54787         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
54788         * m4/servent.m4 (gl_SERVENT): Likewise.
54789         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
54790         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
54791         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
54792         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
54793         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
54794         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
54795         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
54796         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
54797         * modules/tsearch-tests (configure.ac): Likewise.
54799 2010-08-26  Bruno Haible  <bruno@clisp.org>
54801         Modernize AC_TRY_COMPILE invocations.
54802         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
54803         AC_TRY_COMPILE.
54804         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
54805         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
54806         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
54807         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
54808         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
54809         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
54810         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54811         * m4/lock.m4 (gl_LOCK): Likewise.
54812         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
54813         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54814         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
54815         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
54816         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
54817         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
54818         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
54819         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
54820         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
54821         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
54822         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
54823         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
54824         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
54825         extraneous semicolon.
54827 2010-08-26  Jim Meyering  <meyering@redhat.com>
54829         stat-time: relax license LGPL
54830         * modules/stat-time (License): Change from GPL to LGPL,
54831         with consent from all contributors, for use in libguile.
54832         Requested by Ludovic Courtès.
54834 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
54836         poll: return immediately on POLLHUP.
54837         * lib/poll.c (poll): Always set timeout before wait_timeout is
54838         computed.
54840 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54842         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
54843         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
54844         rmdir ("dir/.//"), unlinkat.
54846 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54848         stdbool: avoid spurious failure with modern xlc
54849         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
54851 2010-08-24  Bruno Haible  <bruno@clisp.org>
54853         getloadavg: simplify code
54854         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
54855         gl_have_func. Update comments.
54857 2010-08-24  Eric Blake  <eblake@redhat.com>
54859         getloadavg: don't define SVR4 on cygwin
54860         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
54861         only define SVR4 when -lkvm is required.
54862         Reported by Yaakov Selkowitz.
54864 2010-08-24  Bruno Haible  <bruno@clisp.org>
54866         priv-set: fix comment
54867         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
54869 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54871         priv-set: fix comments
54872         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
54873         to match code, as suggested by David Bartley in:
54874         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
54876 2010-08-23  Eric Blake  <eblake@redhat.com>
54878         stdbool: avoid rejecting clang
54879         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
54880         * tests/test-stdbool.c: Enable more tests if using the system
54881         <stdbool.h> instead of the gnulib replacement.
54882         (main): Move xlc bug test to a runtime test for all compilers.
54883         Reported by Anders Kaseorg.
54885         argz: fix shell quoting issue
54886         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
54887         Reported by Charles Wilson.
54889 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
54890             Erik Faye-Lund <kusmabite@gmail.com>
54892         poll, select: handle ERROR_BROKEN_PIPE.
54893         * lib/poll.c (win32_compute_revents): Return POLLHUP when
54894         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
54895         * lib/select.c (win32_compute_revents): Do not mark a pipe
54896         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
54898 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
54900         fts: allow compilation with C++
54901         * lib/fts_.h: Specify extern "C" linkage with C++.
54903 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54905         Fix gnulib-tool sed script de-commentation for AIX sed.
54906         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
54907         sed.
54909 2010-08-17  Eric Blake  <eblake@redhat.com>
54911         test-stddef: test for (some) offsetof bugs
54912         * tests/test-stddef.c: Enhance test to ensure correct type of
54913         offsetof.
54914         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
54915         that we are not fixing at this time.
54917 2010-08-15  Bruno Haible  <bruno@clisp.org>
54919         stpncpy: Allow stpncpy to be defined as a macro.
54920         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
54921         if it's already correctly declared.
54922         * lib/string.in.h (stpncpy): Undefine before redefining.
54923         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
54925 2010-08-14  Bruno Haible  <bruno@clisp.org>
54927         Rename module 'memxfrm' to 'amemxfrm'.
54928         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
54929         (amemxfrm): Renamed from memxfrm.
54930         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
54931         (amemxfrm): Renamed from memxfrm.
54932         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
54933         * NEWS: Mention the change.
54934         * MODULES.html.sh (String handling <string.h>): Update.
54935         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
54936         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
54937         * lib/unicase/u16-casexfrm.c: Likewise.
54938         * lib/unicase/u32-casexfrm.c: Likewise.
54939         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
54940         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
54941         * lib/uninorm/u16-normxfrm.c: Likewise.
54942         * lib/uninorm/u32-normxfrm.c: Likewise.
54943         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
54944         memxfrm.
54945         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
54946         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
54947         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
54948         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
54949         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
54950         Suggested by Paul Eggert.
54952 2010-08-14  Bruno Haible  <bruno@clisp.org>
54954         Tests for module 'astrxfrm'.
54955         * modules/astrxfrm-tests: New file.
54956         * tests/test-astrxfrm.c: New file.
54958         New module 'astrxfrm'.
54959         * lib/astrxfrm.h: New file.
54960         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
54961         * modules/astrxfrm: New file.
54963 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
54965         regex: Tweak doc.
54966         * doc/regex.texi (Overview): Don't mention regex.c.
54967         (GNU Regular Expression Compiling): Likewise.
54968         (Match-end-of-line Operator): Mention 'not_eol'.
54970 2010-08-14  Brian Gough  <bjg@gnu.org>
54971             Bruno Haible  <bruno@clisp.org>
54973         git-merge-changelog: add doc relating to use with bzr and hg.
54974         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
54976 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
54978         pthread: fix pthread.h creation for srcdir != builddir
54979         * modules/pthread (Makefile.am): Fix the rule to work also in a
54980         non-srcdir build.
54982 2010-08-13  Karl Berry  <karl@gnu.org>
54984         * doc/regex.texi (Predefined Syntaxes): @smallexample.
54985         * doc/posix-*/*: force line break before @url of POSIX
54986         specifications.
54987         Suggested by Werner Lemberg.
54989 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54991         strtod: fix const diagnostic
54992         * lib/strtod.c (strtod): Don't assign const char * to char *,
54993         as this elicits a warning from GCC when warnings are enabled.
54995 2010-08-10  Pádraig Brady  <P@draigbrady.com>
54996         and Eric Blake  <eblake@redhat.com>
54998         copy-acl: ignore ENOTSUP on HP-UX
54999         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
55000         so that it is available for HP-UX.
55001         * lib/copy-acl.c (qcopy_acl): Use it.
55002         Reported by Patrick M. Callahan.
55004 2010-08-10  Eric Blake  <eblake@redhat.com>
55006         open, chown: relax license
55007         * modules/open (License): Change to LGPLv2+, with consent by all
55008         authors, for use in augeas.
55009         * modules/chown (License): Likewise.
55010         * modules/lchown (Likewise): Likewise.
55011         Requested by Adam Stokes.
55013 2010-08-09  Karl Berry  <karl@gnu.org>
55015         * build-aux/ar-lib: new file, import from Automake.
55016         * config/srclist.txt: autocheck for updates.
55018 2010-08-09  Eric Blake  <eblake@redhat.com>
55020         readlinkat: adjust client modules
55021         * modules/areadlinkat (Depends-on): Use readlinkat, not
55022         symlinkat.
55023         * modules/areadlinkat-with-size (Depends-on): Likewise.
55025         mknod: be more vocal about danger of running tests as root
55026         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
55027         root, since that is just asking for problems.
55028         Suggested by Bruno Haible, based on a report by Rainer Tammer.
55030         readlinkat: split into its own module
55031         * modules/symlinkat: Split readlinkat...
55032         * modules/readlinkat: ...into separate module.
55033         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
55034         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
55035         * lib/symlinkat.c (readlinkat): Move...
55036         * lib/readlinkat.c: ...into new file.
55037         * modules/symlinkat-tests: Split readlinkat test...
55038         * modules/readlinkat-tests: ...into separate module.
55039         * tests/test-symlinkat.c: Split...
55040         * tests/test-readlinkat.c: ...into new file.
55041         * NEWS: Document the split.
55042         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
55043         * lib/unistd.in.h (readlinkat): Likewise.
55044         Suggested by Bruno Haible.
55046 2010-08-08  Bruno Haible  <bruno@clisp.org>
55048         memxfrm: Speed up.
55049         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
55050         that usually only one call to strxfrm is necessary for each string
55051         part.
55052         Reported by Paul Eggert <eggert@cs.ucla.edu>.
55054 2010-08-07  Karl Berry  <karl@gnu.org>
55056         * doc/posix-headers/limits.texi,
55057         * doc/posix-functions/malloc.texi,
55058         * doc/posix-functions/strsignal.texi: missing @item.
55059         * doc/ld-version-script.texi: spurious leading i.
55060         * doc/regex.texi (Interval Operators): no commas inside @var.
55062 2010-08-01  Bruno Haible  <bruno@clisp.org>
55064         Integrate the regex documentation.
55065         * doc/gnulib.texi: Define 'cn' index.
55066         (Regular expressions): New a chapter that includes regex.texi and
55067         regexprops-generic.texi.
55068         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
55069         syntax.
55071         Whitespace cleanup.
55072         * doc/regex.texi: Remove trailing spaces.
55074         Add regex documentation.
55075         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
55076         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
55077         Written by Kathy A. Hargreaves and Karl Berry.
55079 2010-08-01  Bruno Haible  <bruno@clisp.org>
55081         link: Update documentation.
55082         * doc/posix-functions/link.texi: Update regarding Solaris.
55084 2010-07-31  Bruno Haible  <bruno@clisp.org>
55086         Update modules list.
55087         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
55088         (String handling <string.h>): Add memcmp2, memxfrm.
55089         (Container data structures): Add xlist, xsublist, xoset.
55090         (Core language properties): Add alignof, unused-parameter.
55091         (Process control, Numeric conversion functions <stdlib.h>): Renamed
55092         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
55093         (Unibyte characters <ctype.h>): New section.
55094         (String handling <string.h>): New section.
55095         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
55096         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
55097         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
55098         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
55099         tan, tanh, tanl, y0, y1, yn.
55100         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
55101         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
55102         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
55103         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
55104         unlockpt, vdprintf, vdprintf-posix.
55105         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
55106         (File system functions): Add concat-filename, sys_file, sys_ioctl,
55107         xconcat-filename.
55108         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
55109         getdtablesize, pipe2, pipe2-safer.
55110         (Security): New section.
55111         (Networking functions): Add accept4.
55112         (Signal handling): Add sigpipe.
55113         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
55114         mbmemcasecoll.
55115         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
55116         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
55117         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
55118         pipe-filter-ii.
55119         (Misc): Add argp-version-etc, login_tty, parse-duration.
55121 2010-07-31  Bruno Haible  <bruno@clisp.org>
55123         Improve doc in MODULES.html.
55124         * modules/linkat (Description): Add the word "function".
55125         * modules/mkfifo (Description): Likewise.
55126         * modules/mknod (Description): Likewise.
55127         * modules/remove (Description): Likewise.
55128         * modules/renameat (Description): Likewise.
55129         * modules/stat (Description): Likewise.
55130         * modules/symlink (Description): Likewise.
55131         * modules/unlink (Description): Likewise.
55133 2010-07-31  Bruno Haible  <bruno@clisp.org>
55135         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
55136         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
55137         option --enable/disable-c++ instead of --enable/disable-cxx.
55138         * NEWS: Mention the change.
55140 2010-07-31  Bruno Haible  <bruno@clisp.org>
55142         readlink, areadlink: Relax test a bit.
55143         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
55144         alternative to ENOTDIR.
55145         * tests/test-areadlink.h (test_areadlink): Likewise.
55146         Reported by Rainer Tammer.
55148 2010-07-31  Bruno Haible  <bruno@clisp.org>
55150         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
55151         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
55152         character, perform the search using U_STRCHR.
55153         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
55154         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
55155         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
55156         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
55157         Suggested by Paolo Bonzini.
55159 2010-07-31  Bruno Haible  <bruno@clisp.org>
55161         unistr/u*-strstr: Fix dependencies.
55162         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
55163         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
55164         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
55166 2010-07-31  Bruno Haible  <bruno@clisp.org>
55168         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
55169         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
55170         the beginning of the loop.
55171         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
55172         cases in 'switch' statement.
55174         unistr/u8-strchr: Fix several bugs.
55175         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
55176         the string. When not found, return NULL, not a pointer near the end.
55178         More tests for unistr/u8-strchr.
55179         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
55180         that the function does not read past the first occurrence of the byte
55181         being searched.
55182         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
55183         * tests/unistr/test-u16-strchr.c (main): New function.
55184         * tests/unistr/test-u32-strchr.c (main): New function.
55186 2010-07-31  Bruno Haible  <bruno@clisp.org>
55188         posix-modules: Ignore backup files of documentation files.
55189         * posix-modules: grep only through files named *.texi.
55191 2010-07-31  Bruno Haible  <bruno@clisp.org>
55193         symlinkat: Fix documentation.
55194         * doc/posix-functions/readlinkat.texi: Fix module name.
55196 2010-07-31  Bruno Haible  <bruno@clisp.org>
55198         fchownat: Replace also when chown has the trailing slash bug.
55199         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
55200         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
55201         introduced on 2010-04-10.
55202         Reported by Rainer Tammer.
55204 2010-07-31  Bruno Haible  <bruno@clisp.org>
55206         linkat: Work around AIX 7.1 bug.
55207         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
55208         whether linkat handles trailing slash correctly. If not, replace linkat
55209         and define LINKAT_TRAILING_SLASH_BUG.
55210         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
55211         check whether (fd1,file1) points to a directory if file1 or file2 ends
55212         in a slash. Code taken from lib/link.c.
55213         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
55214         Reported by Rainer Tammer.
55216 2010-07-31  Bruno Haible  <bruno@clisp.org>
55218         Correctly determine whether pow is available in libc on AIX 7 with xlc.
55219         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
55220         This disables an xlc optimization that was causing wrong test results.
55221         Reported by Rainer Tammer.
55223 2010-07-31  Bruno Haible  <bruno@clisp.org>
55225         iconv: Work around AIX 6.1..7.1 bug.
55226         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
55227         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
55228         cross-compiling, guess no on all versions of AIX.
55229         Reported by Rainer Tammer.
55231 2010-07-31  Bruno Haible  <bruno@clisp.org>
55233         readlink: Relax test a bit.
55234         * tests/test-readlink.h (test_readlink): Allow different errno value
55235         when readlink is called with a file name that ends in / and refers to
55236         a file.
55237         Suggested by Eric Blake.
55238         Reported by Rainer Tammer.
55240 2010-07-31  Bruno Haible  <bruno@clisp.org>
55242         copysign: Does not require -lm on glibc systems.
55243         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
55244         gl_COMMON_DOUBLE_MATHFUNC.
55245         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
55247 2010-07-31  Bruno Haible  <bruno@clisp.org>
55249         duplocale: Work around AIX 7.1 bug.
55250         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
55251         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
55252         * lib/duplocale.c (rpl_duplocale): Update comment.
55253         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
55254         Reported by Rainer Tammer.
55256 2010-07-30  Bruno Haible  <bruno@clisp.org>
55258         dirfd: Avoid link error on AIX 7.1.
55259         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
55260         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
55261         exist, set REPLACE_DIRFD.
55262         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
55263         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
55264         * doc/posix-functions/dirfd.texi: Update.
55265         Reported by Rainer Tammer.
55267 2010-07-30  Eric Blake  <eblake@redhat.com>
55269         strtod: next round of AIX fixes
55270         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
55271         exponent.
55272         * tests/test-strtod.c (main): Enhance tests.
55273         * doc/posix-functions/strtod.texi (strtod): Document next bug.
55274         Reported by Rainer Tammer.
55276         futimens: fix configure check
55277         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
55278         Reported by Bruno Haible.
55280 2010-07-30  Bruno Haible  <bruno@clisp.org>
55282         getline: Update regarding AIX.
55283         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
55284         Reported by Rainer Tammer.
55286 2010-07-30  Bruno Haible  <bruno@clisp.org>
55288         wcwidth: Drop replacement on AIX 7.
55289         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
55290         AIX 7.
55291         Reported by Rainer Tammer.
55293 2010-07-30  Bruno Haible  <bruno@clisp.org>
55295         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
55296         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
55297         a 'char *'.
55298         Reported by Rainer Tammer.
55300 2010-07-30  Bruno Haible  <bruno@clisp.org>
55302         unlink: Update regarding AIX.
55303         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
55304         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
55305         Reported by Rainer Tammer.
55307 2010-07-30  Bruno Haible  <bruno@clisp.org>
55309         symlink: Update regarding AIX.
55310         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
55311         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
55312         Reported by Rainer Tammer.
55314 2010-07-30  Bruno Haible  <bruno@clisp.org>
55316         strndup: Update regarding AIX.
55317         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
55318         AIX 7.
55319         Reported by Rainer Tammer.
55321 2010-07-30  Bruno Haible  <bruno@clisp.org>
55323         stat: Update regarding AIX.
55324         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
55325         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
55326         Reported by Rainer Tammer.
55328 2010-07-30  Bruno Haible  <bruno@clisp.org>
55330         truncl: Fix autoconf test.
55331         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
55332         whether truncl works.
55333         Reported by Rainer Tammer.
55335 2010-07-30  Bruno Haible  <bruno@clisp.org>
55337         round: Update regarding AIX.
55338         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
55339         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
55340         Reported by Rainer Tammer.
55342 2010-07-30  Bruno Haible  <bruno@clisp.org>
55344         rename: Update regarding AIX.
55345         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
55346         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
55347         Reported by Rainer Tammer.
55349 2010-07-30  Bruno Haible  <bruno@clisp.org>
55351         printf.m4: Update regarding AIX.
55352         * m4/printf.m4: Update comments regarding AIX.
55353         Reported by Rainer Tammer.
55355 2010-07-30  Bruno Haible  <bruno@clisp.org>
55357         iconv: Update regarding AIX.
55358         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
55359         AIX 7.
55360         Reported by Rainer Tammer.
55362 2010-07-30  Bruno Haible  <bruno@clisp.org>
55364         getopt: Update regarding AIX.
55365         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
55366         no on AIX.
55367         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
55368         Reported by Rainer Tammer.
55370 2010-07-30  Bruno Haible  <bruno@clisp.org>
55372         ldexpl; Update regarding AIX.
55373         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
55374         on AIX 7.
55375         Reported by Rainer Tammer.
55377 2010-07-30  Bruno Haible  <bruno@clisp.org>
55379         frexpl: Update regarding AIX.
55380         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
55381         on AIX 7.
55382         Reported by Rainer Tammer.
55384 2010-07-30  Bruno Haible  <bruno@clisp.org>
55386         open, fopen: Update regarding AIX.
55387         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
55388         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
55389         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
55390         * doc/posix-functions/fopen.texi: Likewise.
55391         Reported by Rainer Tammer.
55393 2010-07-30  Bruno Haible  <bruno@clisp.org>
55395         chown: Update doc regarding AIX.
55396         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
55397         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
55398         Reported by Rainer Tammer.
55400 2010-07-30  Eric Blake  <eblake@redhat.com>
55402         strtod: fix bug in replacement function on AIX
55403         * lib/strtod.c (strtod): Special case broken "0x" parse in
55404         underlying strtod.
55405         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
55406         * doc/posix-functions/strtod.texi (strtod): Likewise.
55407         Reported by Rainer Tammer.
55409 2010-07-30  Bruno Haible  <bruno@clisp.org>
55411         mbrlen: Fix cross-compilation guess for AIX.
55412         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
55413         guess. Leftover from 2008-12-22.
55415 2010-07-30  Bruno Haible  <bruno@clisp.org>
55417         mbrtowc: Fix cross-compilation guess for AIX.
55418         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
55419         guess. Leftover from 2008-12-21.
55421 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
55423         init.sh: work around trap limitation of some shells
55424         * tests/init.sh (setup_): Move exit trap outside of shell function.
55426 2010-07-29  Eric Blake  <eblake@redhat.com>
55428         strtod: aid debugging
55429         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
55430         understanding why strtod is rejected.
55432 2010-07-28  Bruno Haible  <bruno@clisp.org>
55434         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
55435         * lib/unistr/u8-chr.c: Include <string.h>.
55436         * tests/unistr/test-u8-chr.c: Likewise.
55437         * tests/unistr/test-u16-chr.c: Likewise.
55438         * tests/unistr/test-u32-chr.c: Likewise.
55439         * tests/unistr/test-u8-strchr.c: Likewise.
55440         * tests/unistr/test-u16-strchr.c: Likewise.
55441         * tests/unistr/test-u32-strchr.c: Likewise.
55442         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
55443         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
55444         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
55445         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
55447 2010-07-28  Bruno Haible  <bruno@clisp.org>
55449         Use spaces for indentation, not tabs.
55450         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
55452 2010-07-27  Bruno Haible  <bruno@clisp.org>
55454         mbspcasecmp: Fix function specification.
55455         * lib/string.in.h (mbspcasecmp): Fix specification comment.
55456         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
55457         Reported by Eric Blake <eblake@redhat.com>.
55459 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
55461         timespec: use cast and not conditional, as truncation isn't possible
55462         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
55463         instead of a conditional.  Comment about the situation in more detail.
55464         This undoes most of the 2009-10-29 patch.
55466 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
55468         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
55469         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
55470         * lib/unistr/u8-strchr.c: Likewise.
55471         * modules/unistr/u8-chr: Depend on memchr.
55473         unistr/u*-strchr: add tests
55474         * modules/unistr/u8-strchr-tests: New file.
55475         * modules/unistr/u16-strchr-tests: New file.
55476         * modules/unistr/u32-strchr-tests: New file.
55477         * tests/unistr/test-strchr.h: New file.
55478         * tests/unistr/test-u8-strchr.c: New file.
55479         * tests/unistr/test-u16-strchr.c: New file.
55480         * tests/unistr/test-u32-strchr.c: New file.
55482         unistr/u*-chr: test multibyte sequences more
55483         * tests/unistr/test-chr.h: Do complete testing of the characters in the
55484         test vector.
55485         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
55486         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
55487         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
55489         unistr/u*-chr: test multibyte sequences
55490         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
55492         unistr/u*-chr: prepare for multibyte tests
55493         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
55494         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
55495         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
55496         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
55497         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
55498         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
55500 2010-07-18  Bruno Haible  <bruno@clisp.org>
55502         unistr/u8-strchr: Optimize non-ASCII argument case.
55503         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
55504         because the first byte often matches anyway.
55505         Reported by Pádraig Brady <P@draigbrady.com>.
55507 2010-07-15  Karl Berry  <karl@gnu.org>
55509         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
55511 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
55513         getcwd: on Solaris, work better if ancestors are inaccessible
55514         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
55515         buffer and size, try again with a large buffer.  This works better
55516         on Solaris, since its getcwd succeeds even if the path to the root
55517         is inaccessible, and this is helpful in common cases such as .zfs
55518         hidden directories.  Problem reported by J Chapman Flack in
55519         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
55520         Use system getcwd if it's declared, not merely if it's partly
55521         working; use the partly-working test only to avoid needless effort
55522         if the system getcwd fails.
55523         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
55524         comment that was already obsolete and is now even more obsolete.
55525         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
55526         now might call strdup.
55528 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
55530         pthread: Add enough so that coreutils/src/sort.c compiles.
55531         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
55532         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
55533         gnulib. Include <sched.h> and <time.h>, as per POSIX.
55534         Include <sys/types.h>, in case it defines pthread_t.
55535         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
55536         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
55537         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
55538         (pthread_rwlockattr_t, pthread_spinlock_t):
55539         New typedefs, if HAVE_PTHREAD_T is not defined.
55540         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
55541         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
55542         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
55543         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
55544         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
55545         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
55546         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
55547         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
55548         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
55549         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
55550         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
55551         New macros.
55552         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
55553         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
55554         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
55555         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
55556         (pthread_spin_unlock): New dummy functions.
55557         (pthread_create): Return EAGAIN; don't set errno.
55558         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
55559         require AC_C_INLINE.
55560         * modules/pthread (Depends-on): Add sched, time.
55561         (pthread.h): Use AM_V_GEN.
55563 2010-07-13  Bruno Haible  <bruno@clisp.org>
55565         striconveh: Don't malloc memory if the result buffer is sufficient.
55566         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
55567         buffer if its size is sufficient.
55568         Reported by Ludovic Courtès <ludo@gnu.org>.
55570 2010-07-13  Bruno Haible  <bruno@clisp.org>
55572         strtod: Add safety check.
55573         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
55575 2010-07-12  Bruno Haible  <bruno@clisp.org>
55577         Unify tests that set gl_cv_func_ldexpl_no_libm.
55578         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
55579         gl_FUNC_LDEXPL.
55580         (gl_FUNC_LDEXPL): Invoke it.
55581         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55583 2010-07-12  Bruno Haible  <bruno@clisp.org>
55585         Unify tests that set gl_cv_func_ldexp_no_libm.
55586         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
55587         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
55588         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
55589         (configure.ac): Simply invoke gl_FUNC_LDEXP.
55590         * modules/strtod (Files): Add m4/ldexp.m4.
55592 2010-07-12  Bruno Haible  <bruno@clisp.org>
55594         Unify tests that set gl_cv_func_frexpl_no_libm.
55595         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
55596         gl_FUNC_FREXPL_NO_LIBM.
55597         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
55598         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55600 2010-07-12  Bruno Haible  <bruno@clisp.org>
55602         Unify tests that set gl_cv_func_frexp_no_libm.
55603         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
55604         gl_FUNC_FREXP_NO_LIBM.
55605         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
55606         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
55608 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
55610         memcoll: clarify sizes versus lengths, document better, and tweak perf
55611         * lib/memcoll.c (strcoll_loop, memcoll0):
55612         Improve quality of descriptive comments.  Name variables
55613         consistently as to whether they are lengths (which do not include
55614         terminating null) versus sizes (which do).
55615         * lib/xmemcoll.c (xmemcoll0): Likewise.
55616         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
55617         returned when s1size == 0; this is easier to compile and saves
55618         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
55620 2010-07-12  Bruno Haible  <bruno@clisp.org>
55622         Tests for module '_Exit'.
55623         * modules/_Exit-tests: New file.
55624         * tests/test-_Exit.sh: New file.
55625         * tests/test-_Exit.c: New file.
55627         New module '_Exit'.
55628         * lib/stdlib.in.h (__attribute__): New macro.
55629         (_Exit): New declaration.
55630         * lib/_Exit.c: New file.
55631         * m4/_Exit.m4: New file.
55632         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
55633         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
55634         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
55635         * modules/_Exit: New file.
55636         * tests/test-stdlib-c++.cc (_Exit): Check signature.
55637         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
55639 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
55641         strtod: make it more-accurate typically, and don't require libm
55642         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
55643         Include limits.h.  Don't include string.h.
55644         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
55645         (locale_isspace): New function, so that no casts are needed to
55646         check whether *s is a space.
55647         (ldexp): Provide an unused dummy if not available.
55648         (scale_radix_exp, parse_number, underlying_strtod): New functions.
55649         (strtod): Use them.  This implementation prefers to use the
55650         underlying strtod if available, falling back on our own code
55651         only to fix known bugs.  This is more likely to produce an
55652         accurate result.  Also, it avoids the use of libm functions.
55653         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
55654         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
55655         was absent, but it caused a test failure with coreutils.
55656         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
55657         with libm.
55658         * modules/strtod (Makefile.am, Link): libm is no longer needed.
55659         * modules/strtod-tests (Makefile.am): Likewise.
55661 2010-07-11  Pádraig Brady  <P@draigBrady.com>
55662             Bruno Haible  <bruno@clisp.org>
55664         unistr/u8-strchr: Optimize ASCII argument case.
55665         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
55667 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
55669         (x)memcoll: minor tweaks
55670         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
55671         is after the type that it qualifies.
55672         (memcoll0): Likewise.
55673         * lib/memcoll.h (memcoll0): Likewise.
55674         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
55675         * lib/xmemcoll.h (xmemcoll0): Likewise.
55676         * lib/memcoll.c (memcoll0): Correct the comment.  This function
55677         differs from memcoll in that the NUL byte is part of the argument.
55678         Omit the abort-checks, as performance is a real issue here.  Plus,
55679         the checks were wrong anyway (an off-by-one error).  Omit local
55680         variable 'diff', as it's a bit clearer that way.
55681         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
55682         no longer needed.
55684 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
55686         (x)memcoll: speedup when input is known to be NUL delimited
55687         * lib/memcoll.c: Include stdlib.
55688         (memcoll0): New function.
55689         (strcoll_loop): New function, refactored for use in both memcoll
55690         and memcoll0.
55691         * lib/memcoll.h (memcoll0): Add prototype.
55692         * lib/xmemcoll.c (xmemcoll0): New function.
55693         (collate_error): New function, refactored for use in both xmemcoll
55694         and xmemcoll0.
55695         * lib/xmemcoll.h (xmemcoll0): Add prototype.
55696         * m4/memcoll.m4: add inline invocation.
55698 2010-07-06  Pádraig Brady  <P@draigBrady.com>
55700         * build-aux/bootstrap: Remove any local translations
55701         from the translation project synchronization directory,
55702         so that local only translations are not distributed.
55704 2010-07-04  Bruno Haible  <bruno@clisp.org>
55706         fsusage: Clarify which code applies to which platforms.
55707         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
55708         platform.
55709         * lib/fsusage.c (get_fs_usage): Likewise.
55711 2010-07-04  Bruno Haible  <bruno@clisp.org>
55713         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
55714         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
55715         Reported by Martin Lambers <marlam@marlam.de>.
55717 2010-07-04  Jim Meyering  <meyering@redhat.com>
55719         hash: once again explicitly disallow insertion of NULL
55720         * lib/hash.c (hash_insert0): Reinstate just-removed test:
55721         inserting a NULL pointer cannot work with these functions.
55722         Add a comment with details.
55723         This reverts part of the 2010-07-01 commit, 5bef1a35
55724         "hash: extend module to deal with non-pointer keys".
55726 2010-07-01  Bruno Haible  <bruno@clisp.org>
55728         stdbool: Update doc.
55729         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
55730         Info from Christian Weisgerber <naddy@mips.inka.de>.
55732 2010-07-01  Jim Meyering  <meyering@redhat.com>
55734         hash: extend module to deal with non-pointer keys
55735         * lib/hash.c (hash_insert0): New interface, much like hash_insert
55736         but that allows insertion of non-pointer entries.
55737         Do not disallow an ENTRY value of NULL.
55738         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
55739         * lib/hash.h (hash_insert0): Declare.
55741 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
55743         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
55744         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
55745         not present (i.e. with autoconf 2.59 and when using gettextize, not
55746         gnulib), require AC_GNU_SOURCE instead.
55748 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
55750         idpriv-drop: Fix tests.
55751         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
55752         not to the test-idpriv-droptemp program.
55754 2010-06-29  Bruno Haible  <bruno@clisp.org>
55756         string: Fix syntax error with g++ 2.96.
55757         * lib/string.in.h (__pure__): Remove definition.
55758         (_GL_ATTRIBUTE_PURE): New macro.
55759         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
55760         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
55761         Reported by Christian Weisgerber <naddy@mips.inka.de>.
55763 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
55765         unitypes: Fix bug introduced on 2010-05-18.
55766         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
55768 2010-06-22  Eric Blake  <eblake@redhat.com>
55770         memmem: slight optimization
55771         * lib/str-two-way.h (critical_factorization): Update comments.
55772         Reduce work during factorization phase.
55773         Reported by Carlos Bueno <carlos@bueno.org>.
55775 2010-06-21  Bruno Haible  <bruno@clisp.org>
55777         Fix HAVE_CALLOC_POSIX misnomer.
55778         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
55779         !HAVE_CALLOC_POSIX.
55780         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
55781         HAVE_CALLOC_POSIX.
55782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
55783         instead of HAVE_CALLOC_POSIX.
55784         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
55785         HAVE_CALLOC_POSIX.
55787         Use modern idiom for calloc() replacement.
55788         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
55789         AC_FUNC_CALLOC.
55790         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
55791         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
55792         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
55793         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
55794         (gl_REPLACE_CALLOC): New macro.
55796 2010-06-21  Bruno Haible  <bruno@clisp.org>
55798         Fix HAVE_REALLOC_POSIX misnomer.
55799         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
55800         !HAVE_REALLOC_POSIX.
55801         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
55802         HAVE_REALLOC_POSIX.
55803         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
55804         instead of HAVE_REALLOC_POSIX.
55805         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
55806         HAVE_REALLOC_POSIX.
55808         Use modern idiom for realloc() replacement.
55809         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
55810         AC_FUNC_REALLOC.
55811         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
55812         Autoconf's AC_FUNC_REALLOC.
55813         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
55814         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
55815         (gl_REPLACE_REALLOC): New macro.
55816         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
55818 2010-06-21  Bruno Haible  <bruno@clisp.org>
55820         Fix HAVE_MALLOC_POSIX misnomer.
55821         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
55822         !HAVE_MALLOC_POSIX.
55823         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
55824         HAVE_MALLOC_POSIX.
55825         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
55826         instead of HAVE_MALLOC_POSIX.
55827         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
55828         HAVE_MALLOC_POSIX.
55830         Use modern idiom for malloc() replacement.
55831         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
55832         AC_FUNC_MALLOC.
55833         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
55834         Autoconf's AC_FUNC_MALLOC.
55835         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
55836         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
55837         (gl_REPLACE_MALLOC): New macro.
55838         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
55840 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
55842         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
55843         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
55844         This macro takes 3 arguments, not 4.
55846 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
55848         ipv6: fix detection under mingw
55849         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
55850         in6_addr.
55852 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
55854         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
55855         that strtod() works when cross-compiling to a glibc version known
55856         to work.
55858 2010-06-15  Bruno Haible  <bruno@clisp.org>
55860         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
55862 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
55864         select: Correct timeout.
55865         * lib/select.c (rpl_select): Compute wait_timeout correctly.
55867 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55869         git-version-gen: init shell var to avoid env var influence
55870         * build-aux/git-version-gen (v): Init shell var to empty.
55872 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
55874         priv-set: Don't assume that priv.h exists merely because getppriv does.
55875         See Jan Andersen's bug report about AIX 5L in
55876         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
55877         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
55878         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
55879         * lib/priv-set.h: Likewise.
55880         * tests/test-priv-set.c: Likewise.
55882 2010-06-13  Bruno Haible  <bruno@clisp.org>
55884         relocatable: Make it easier to test whether to install wrappers.
55885         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
55886         RELOCATABLE_VIA_WRAPPER.
55888 2010-06-13  Bruno Haible  <bruno@clisp.org>
55890         gnulib-tool: Display specified modules and dependencies differently.
55891         * gnulib-tool (func_show_module_list): New function.
55892         (func_import, func_create_testdir): Invoke it.
55893         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55895 2010-06-13  Bruno Haible  <bruno@clisp.org>
55897         gnulib-tool: Align code of func_import and func_create_testdir.
55898         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
55899         specified_modules.
55901 2010-06-12  Jim Meyering  <meyering@redhat.com>
55903         test-inttostr: avoid spurious failure on Solaris 9
55904         * tests/test-inttostr.c (main): Skip the test when snprintf fails
55905         to accept "%ju".  Reported by Bruno Haible.
55907 2010-06-11  Jim Meyering  <meyering@redhat.com>
55909         test-sys_socket: mark variables as used more readably
55910         * tests/test-sys_socket.c (main): Mark otherwise unused variables
55911         as "used" explicitly via (void) statement casts.  This is more
55912         readable than using them in an artificial return expression.
55913         Suggestion from Bruno Haible.
55915 2010-06-11  Bruno Haible  <bruno@clisp.org>
55917         Avoid some more warnings from "gcc -Wwrite-strings".
55918         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
55919         to 'const char *'.
55920         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
55921         * tests/test-c-strcasestr.c (main): Likewise.
55922         * tests/test-mbscasestr1.c (main): Likewise.
55923         * tests/test-mbscasestr2.c (main): Likewise.
55924         * tests/test-memmem.c (main): Likewise.
55925         * tests/test-strstr.c (main): Likewise.
55926         * tests/test-strcasestr.c (main): Likewise.
55928 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55930         init.sh: change framework_failure_ to fail with status 99, not 1
55931         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
55932         automake's parallel-tests rule that this is an unexpected failure,
55933         even if the test is listed in XFAIL_TESTS.
55935 2010-06-11  Jim Meyering  <meyering@redhat.com>
55937         test-inttostr: avoid warnings about 4-6KB literal strings
55938         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
55939         Include "macros.h", for its definition of ASSERT.
55940         (CK): s/assert/ASSERT/
55941         * modules/inttostr-tests (Files): Add macros.h.
55943         init.sh: don't use $ME_ or skip_ before they are defined
55944         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
55945         their first uses.  Also hoist their companions: warn_, fail_,
55946         framework_failure_, $stderr_fileno.  Prompted by a patch from
55947         Stefano Lattarini.
55949         test-sys_socket: avoid set-but-not-used warnings from gcc
55950         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
55951         avoid warning about set-but-not-used variables.
55953         test-xvasprintf: avoid 'const' discard warnings
55954         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
55955         "const" when assigning from literal strings.
55956         (test_xasprintf): Add "void" in function argument list to placate
55957         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
55959         tests: avoid compilation warnings in argmatch and exclude tests...
55960         in packages that define ARGMATCH_DIE_DECL, like coreutils.
55961         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
55962         Since it always exits, declare with the "noreturn" attribute.
55963         * tests/test-argmatch.c: Likewise.
55965         tests: avoid 'const' discard warnings in mbsstr tests
55966         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
55967         * tests/test-mbsstr2.c (main): Likewise.
55969         test-verify: avoid warning from gcc's -Wmissing-declarations
55970         * tests/test-verify.c (function): Declare to be static.
55972         test-inttostr.c: include <string.h> for use of strcmp
55973         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
55975         test-linkat: avoid failed assertion on "other" architectures
55976         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
55977         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
55978         sparc: https://bugs.launchpad.net/bugs/591968
55980 2010-06-11  Jim Meyering  <meyering@redhat.com>
55982         printf.m4: avoid autoconf's "Expanded Before Required" warning
55983         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
55984         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
55985         autoconf warning.
55987 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
55989         Replacement header templates are now named with ".in", not "_".
55990         * doc/gnulib-intro.texi: Correct.
55992 2010-06-10  Jim Meyering  <meyering@redhat.com>
55994         inttostr-tests: depend on snprintf, not snprintf-posix
55995         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
55996         snprintf-posix, to avoid this aclocal failure:
55997           missing file gnulib-tests/vasnprintf.c
55998           configure.ac:45: error: expected source file, required through \
55999           AC_LIBSOURCES, not found
56001 2010-06-10  Jim Meyering  <meyering@redhat.com>
56003         inttostr: add a new function, inttostr, and tests
56004         The namesake function was not available.  The existence of the
56005         template file, inttostr.c makes its addition nontrivial.
56006         * lib/anytostr.c: Rename from inttostr.c.
56007         (anytostr): Rename from inttostr.
56008         * lib/inttostr.c: New file.
56009         * modules/inttostr (Files): Add anytostr.c.
56010         (Makefile.am): Set lib_SOURCES instead of ...
56011         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
56012         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
56013         * lib/offtostr.c: Likewise.
56014         * lib/uinttostr.c: Likewise.
56015         * lib/umaxtostr.c: Likewise.
56016         * modules/inttostr-tests: New file.
56017         * tests/test-inttostr.c: New file.  Test these functions.
56019 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
56020             Bruno Haible  <bruno@clisp.org>
56022         Add "Extending Gnulib" chapter to manual.
56023         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
56024         chapter.
56025         (Extending Gnulib): New chapter.
56026         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
56027         chapter.
56029 2010-06-09  Bruno Haible  <bruno@clisp.org>
56031         Avoid relocwrapper link errors due to gnulib replacement functions.
56032         * lib/areadlink.c: Use the system's malloc, realloc functions.
56033         (areadlink): Set errno to ENOMEM explicitly.
56034         * modules/areadlink (Depends-on): Remove malloc-posix.
56035         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56037 2010-06-09  Bruno Haible  <bruno@clisp.org>
56039         Avoid relocwrapper link errors due to gnulib replacement functions.
56040         * lib/canonicalize-lgpl.c: Use the system's malloc function.
56041         * lib/malloca.c: Likewise.
56042         * lib/relocatable.c: Likewise.
56043         * lib/progreloc.c: Use the system's malloc, sprintf functions.
56044         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
56045         * lib/setenv.c: Use the system's malloc, realloc functions.
56046         * lib/strerror.c: Use the system's sprintf function.
56047         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56049 2010-06-04  Bruno Haible  <bruno@clisp.org>
56051         Prefer documented low-level autoconf macro names.
56052         * m4/lib-link.m4: Use m4_translit instead of translit.
56053         * m4/environ.m4: Likewise.
56054         * m4/mathfunc.m4: Likewise.
56055         * m4/onceonly.m4: Likewise.
56056         * m4/stdint.m4: Likewise.
56057         Suggested by Eric Blake.
56059 2010-06-04  Martin Lambers  <marlam@marlam.de>
56060             Bruno Haible  <bruno@clisp.org>
56062         havelib: Allow library names with '+' characters.
56063         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56064         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
56066 2010-06-09  Bruno Haible  <bruno@clisp.org>
56068         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
56069         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
56070         realloc failed.
56072 2010-06-08  Peter Simons  <simons@cryp.to>
56074         maint.mk: make the news-check rule more configurable
56075         * top/maint.mk (news-check-lines-spec): New variable.
56076         (news-check): Use "sed -n 1,10p" in place of "head".
56078 2010-06-07  Jim Meyering  <meyering@redhat.com>
56080         do-release-commit-and-tag: fix typo in --help
56081         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
56083         regex: avoid new dead-code warning with gcc-4.6.0
56084         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
56085         if-block containing a while-loop.  It's been unused for at least
56086         5 years.
56088 2010-06-05  Bruno Haible  <bruno@clisp.org>
56090         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
56091         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
56093 2010-06-04  Bruno Haible  <bruno@clisp.org>
56095         Update to GNU gettext 0.18.1.
56096         * modules/gettext (configure.ac): Require gettext infrastructure from
56097         version 0.18.1.
56099 2010-06-03  Bruno Haible  <bruno@clisp.org>
56101         Don't use AC_LIBOBJ with file names in subdirectories.
56102         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
56103         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
56104         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
56105         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
56106         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
56107         gl_LIBUNISTRING_LIBSOURCE.
56108         (Makefile.am): Augment lib_SOURCES here, conditionally.
56109         * NEWS: Drop requirement for Automake option 'subdir-objects'.
56111 2010-06-03  Bruno Haible  <bruno@clisp.org>
56113         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
56114         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
56115         expansion does not end with a newline.
56116         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
56117         unnecessary newline.
56119 2010-06-03  Bruno Haible  <bruno@clisp.org>
56121         Reduce dependencies.
56122         * tests/test-quotearg.h: New file, extracted from
56123         tests/test-quotearg.c.
56124         * tests/test-quotearg-simple.c: New file, extracted from
56125         tests/test-quotearg.c.
56126         * tests/test-quotearg.c: Don't include <ctype.h>.
56127         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
56128         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
56129         use_quote_double_quotes, use_quotearg_colon): Moved to
56130         tests/test-quotearg.h.
56131         (results_g, flag_results, custom_quotes, custom_results): Moved
56132         to tests/test-quotearg-simple.c.
56133         (main): Moved the part that does not depend on gettext to
56134         tests/test-quotearg-simple.c. Return 77 if the test cannot be
56135         performed.
56136         * modules/quotearg-simple: New file.
56137         * modules/quotearg-simple-tests: New file.
56138         * modules/quotearg (Depends-on): Add quotearg-simple.
56139         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
56140         (Files): Add tests/test-quotearg.h.
56141         Reported by Paolo Bonzini.
56143 2010-06-03  Bruno Haible  <bruno@clisp.org>
56145         Reduce dependencies.
56146         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
56148 2010-06-03  Bruno Haible  <bruno@clisp.org>
56150         time: Undefine more broken macros.
56151         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
56152         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
56153         Reported by Eric Blake.
56155 2010-06-03  Bruno Haible  <bruno@clisp.org>
56157         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
56158         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
56159         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
56160         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
56161         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
56162         Reported by Ludovic Courtès <ludo@gnu.org>.
56164 2010-06-02  Eric Blake  <eblake@redhat.com>
56166         time: work with mingw + pthreads-win32 library
56167         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
56168         if timespec is defined only in pthread.h.
56169         * modules/time (Makefile.am): Substitute it.
56170         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
56171         <pthread.h>, when needed.
56172         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
56173         from the library.
56175 2010-05-31  Bruno Haible  <bruno@clisp.org>
56177         Avoid expanding two macros in the wrong order.
56178         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
56179         gl_LIBUNISTRING if it is defined.
56180         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
56181         autoconf >= 2.64.
56182         Reported by Ludovic Courtès <ludo@gnu.org>.
56184 2010-05-27  Jim Meyering  <meyering@redhat.com>
56186         maint.mk: also prohibit "#undef" of always-defined symbols
56187         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
56188         Allow more than one space before the symbol name.
56189         (sc_prohibit_always-defined_macros): Use grep's -E, now that
56190         the regexp uses alternation.
56192 2010-05-26  Eric Blake  <eblake@redhat.com>
56194         maint.mk: avoid echo -e
56195         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
56196         Convert all uses of echo -* to printf.
56197         Reported by Matthias Bolte.
56199 2010-05-25  Bruno Haible  <bruno@clisp.org>
56201         Update to GNU gettext 0.18, part 2.
56202         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
56203         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
56205 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56207         Add missing include in test-pwrite.c.
56208         * tests/test-pwrite.c: Include string.h, for strcmp.
56210 2010-05-24  Bruno Haible  <bruno@clisp.org>
56212         * NEWS: Mention requirement for Automake option 'subdir-objects'.
56214 2010-05-24  Bruno Haible  <bruno@clisp.org>
56216         Don't use conversion with transliteration in u{8,16,32}_strcoll.
56217         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
56218         iconveh_error argument.
56219         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
56220         U_STRCONV_TO_LOCALE.
56221         * lib/unistr/u16-strcoll.c: Likewise.
56222         * lib/unistr/u32-strcoll.c: Likewise.
56223         * modules/unistr/u8-strcoll (Depends-on): Add
56224         uniconv/u8-strconv-to-enc, localcharset. Remove
56225         uniconv/u8-strconv-to-locale.
56226         (configure.ac): Bump version number.
56227         * modules/unistr/u16-strcoll (Depends-on): Add
56228         uniconv/u16-strconv-to-enc, localcharset. Remove
56229         uniconv/u16-strconv-to-locale.
56230         (configure.ac): Bump version number.
56231         * modules/unistr/u32-strcoll (Depends-on): Add
56232         uniconv/u32-strconv-to-enc, localcharset. Remove
56233         uniconv/u32-strconv-to-locale.
56234         (configure.ac): Bump version number.
56236 2010-05-24  Bruno Haible  <bruno@clisp.org>
56238         Avoid a test failure on NetBSD 5.0.
56239         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
56240         an iconv() bug.
56242 2010-05-24  Bruno Haible  <bruno@clisp.org>
56244         Adjust #include directive style.
56245         * modules/regex (Includes): Recommend to write <regex.h>.
56247 2010-05-24  Bruno Haible  <bruno@clisp.org>
56249         regex: Don't require alloca.
56250         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
56251         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
56252         only inside if (0).
56254 2010-05-23  Jim Meyering  <meyering@redhat.com>
56256         test-renameat.c: include <sys/stat.h>
56257         * tests/test-renameat.c: Include <sys/stat.h>; required for
56258         definition of S_IS* macros.
56260 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
56262         Update maintainer documentation for 'relocatable-prog' module.
56263         * doc/relocatable-maint.texi: Update.
56264         Comments by Bruno Haible.
56266 2010-05-23  Bruno Haible  <bruno@clisp.org>
56268         git-merge-changelog: Enable --split-merged-entry by default.
56269         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
56270         (usage): Don't mention this option any more.
56271         Reported by Ralf Wildenhues.
56273 2010-05-23  Jim Meyering  <meyering@redhat.com>
56275         test-pwrite: do not leave behind a test file named "out"
56276         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
56277         The trivial-looking use of init.sh is really necessary.
56278         It ensures that the temporary file, "out", is created in
56279         a temporary directory, and removed upon termination.
56280         * tests/test-pwrite.sh: Re-add file.
56281         * modules/pwrite-tests: Reference it.
56283 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56285         Fix output redirection buglet in init.sh.
56286         * tests/init.sh: Fix redirection of stderr.
56288 2010-05-20  Simon Josefsson  <simon@josefsson.org>
56290         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
56292 2010-05-17  Simon Josefsson  <simon@josefsson.org>
56294         * modules/valgrind-tests: New file.
56295         * m4/valgrind-tests.m4: New file.
56296         * doc/valgrind-tests.texi: New file.
56297         * doc/gnulib.texi (Running self-tests under valgrind): New
56298         section.
56300 2010-05-19  Bruno Haible  <bruno@clisp.org>
56302         Clean up dead code in recent commit.
56303         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
56304         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
56305         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
56306         Suggested by Paolo Bonzini.
56308 2010-05-19  Bruno Haible  <bruno@clisp.org>
56310         Avoid valgrind error reports from libunistring.
56311         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
56312         * modules/libunistring (Files): Add it.
56313         * modules/libunistring-optional (Files): Likewise.
56315 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
56316             Bruno Haible  <bruno@clisp.org>
56318         New module 'libunistring-optional'.
56319         * modules/libunistring-optional: New file.
56320         * m4/libunistring-base.m4: New file.
56321         * m4/libunistring-optional.m4: New file.
56322         * lib/unicase.in.h: Renamed from lib/unicase.h.
56323         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
56324         * lib/unictype.in.h: Renamed from lib/unictype.h.
56325         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
56326         * lib/uniname.in.h: Renamed from lib/uniname.h.
56327         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
56328         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
56329         * lib/unistr.in.h: Renamed from lib/unistr.h.
56330         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
56331         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
56332         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
56333         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
56334         gl_LIBUNISTRING. If the library was found, determine the installed
56335         version and set LIBUNISTRING_VERSION.
56336         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
56337         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
56338         handle a configuration option --with-included-libunistring.
56339         * modules/libunistring (Files): Add m4/absolute-header.m4.
56340         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
56341         Add m4/libunistring-base.m4.
56342         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
56343         (Makefile.am): Build unicase.h from unicase.in.h.
56344         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
56345         Add m4/libunistring-base.m4.
56346         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
56347         (Makefile.am): Build uniconv.h from uniconv.in.h.
56348         * modules/unictype/base (Files): Use unictype.in.h instead of
56349         unictype.h. Add m4/libunistring-base.m4.
56350         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
56351         (Makefile.am): Build unictype.h from unictype.in.h.
56352         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
56353         Add m4/libunistring-base.m4.
56354         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
56355         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
56356         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
56357         Add m4/libunistring-base.m4.
56358         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
56359         (Makefile.am): Build uniname.h from uniname.in.h.
56360         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
56361         Add m4/libunistring-base.m4.
56362         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
56363         (Makefile.am): Build uninorm.h from uninorm.in.h.
56364         * modules/unistdio/base (Files): Use unistdio.in.h instead of
56365         unistdio.h. Add m4/libunistring-base.m4.
56366         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
56367         (Makefile.am): Build unistdio.h from unistdio.in.h.
56368         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
56369         Add m4/libunistring-base.m4.
56370         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
56371         (Makefile.am): Build unistr.h from unistr.in.h.
56372         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
56373         Add m4/libunistring-base.m4.
56374         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
56375         (Makefile.am): Build unitypes.h from unitypes.in.h.
56376         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
56377         Add m4/libunistring-base.m4.
56378         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
56379         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
56380         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
56381         uniwidth.h. Add m4/libunistring-base.m4.
56382         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
56383         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
56384         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
56385         instead of augmenting lib_SOURCES.
56386         * modules/unicase/empty-suffix-context: Likewise.
56387         * modules/unicase/locale-language: Likewise.
56388         * modules/unicase/tolower: Likewise.
56389         * modules/unicase/totitle: Likewise.
56390         * modules/unicase/toupper: Likewise.
56391         * modules/unicase/u8-casecmp: Likewise.
56392         * modules/unicase/u8-casecoll: Likewise.
56393         * modules/unicase/u8-casefold: Likewise.
56394         * modules/unicase/u8-casexfrm: Likewise.
56395         * modules/unicase/u8-ct-casefold: Likewise.
56396         * modules/unicase/u8-ct-tolower: Likewise.
56397         * modules/unicase/u8-ct-totitle: Likewise.
56398         * modules/unicase/u8-ct-toupper: Likewise.
56399         * modules/unicase/u8-is-cased: Likewise.
56400         * modules/unicase/u8-is-casefolded: Likewise.
56401         * modules/unicase/u8-is-lowercase: Likewise.
56402         * modules/unicase/u8-is-titlecase: Likewise.
56403         * modules/unicase/u8-is-uppercase: Likewise.
56404         * modules/unicase/u8-prefix-context: Likewise.
56405         * modules/unicase/u8-suffix-context: Likewise.
56406         * modules/unicase/u8-tolower: Likewise.
56407         * modules/unicase/u8-totitle: Likewise.
56408         * modules/unicase/u8-toupper: Likewise.
56409         * modules/unicase/u16-casecmp: Likewise.
56410         * modules/unicase/u16-casecoll: Likewise.
56411         * modules/unicase/u16-casefold: Likewise.
56412         * modules/unicase/u16-casexfrm: Likewise.
56413         * modules/unicase/u16-ct-casefold: Likewise.
56414         * modules/unicase/u16-ct-tolower: Likewise.
56415         * modules/unicase/u16-ct-totitle: Likewise.
56416         * modules/unicase/u16-ct-toupper: Likewise.
56417         * modules/unicase/u16-is-cased: Likewise.
56418         * modules/unicase/u16-is-casefolded: Likewise.
56419         * modules/unicase/u16-is-lowercase: Likewise.
56420         * modules/unicase/u16-is-titlecase: Likewise.
56421         * modules/unicase/u16-is-uppercase: Likewise.
56422         * modules/unicase/u16-prefix-context: Likewise.
56423         * modules/unicase/u16-suffix-context: Likewise.
56424         * modules/unicase/u16-tolower: Likewise.
56425         * modules/unicase/u16-totitle: Likewise.
56426         * modules/unicase/u16-toupper: Likewise.
56427         * modules/unicase/u32-casecmp: Likewise.
56428         * modules/unicase/u32-casecoll: Likewise.
56429         * modules/unicase/u32-casefold: Likewise.
56430         * modules/unicase/u32-casexfrm: Likewise.
56431         * modules/unicase/u32-ct-casefold: Likewise.
56432         * modules/unicase/u32-ct-tolower: Likewise.
56433         * modules/unicase/u32-ct-totitle: Likewise.
56434         * modules/unicase/u32-ct-toupper: Likewise.
56435         * modules/unicase/u32-is-cased: Likewise.
56436         * modules/unicase/u32-is-casefolded: Likewise.
56437         * modules/unicase/u32-is-lowercase: Likewise.
56438         * modules/unicase/u32-is-titlecase: Likewise.
56439         * modules/unicase/u32-is-uppercase: Likewise.
56440         * modules/unicase/u32-prefix-context: Likewise.
56441         * modules/unicase/u32-suffix-context: Likewise.
56442         * modules/unicase/u32-tolower: Likewise.
56443         * modules/unicase/u32-totitle: Likewise.
56444         * modules/unicase/u32-toupper: Likewise.
56445         * modules/unicase/ulc-casecmp: Likewise.
56446         * modules/unicase/ulc-casecoll: Likewise.
56447         * modules/unicase/ulc-casexfrm: Likewise.
56448         * modules/uniconv/u8-conv-from-enc: Likewise.
56449         * modules/uniconv/u8-conv-to-enc: Likewise.
56450         * modules/uniconv/u8-strconv-from-enc: Likewise.
56451         * modules/uniconv/u8-strconv-from-locale: Likewise.
56452         * modules/uniconv/u8-strconv-to-enc: Likewise.
56453         * modules/uniconv/u8-strconv-to-locale: Likewise.
56454         * modules/uniconv/u16-conv-from-enc: Likewise.
56455         * modules/uniconv/u16-conv-to-enc: Likewise.
56456         * modules/uniconv/u16-strconv-from-enc: Likewise.
56457         * modules/uniconv/u16-strconv-from-locale: Likewise.
56458         * modules/uniconv/u16-strconv-to-enc: Likewise.
56459         * modules/uniconv/u16-strconv-to-locale: Likewise.
56460         * modules/uniconv/u32-conv-from-enc: Likewise.
56461         * modules/uniconv/u32-conv-to-enc: Likewise.
56462         * modules/uniconv/u32-strconv-from-enc: Likewise.
56463         * modules/uniconv/u32-strconv-from-locale: Likewise.
56464         * modules/uniconv/u32-strconv-to-enc: Likewise.
56465         * modules/uniconv/u32-strconv-to-locale: Likewise.
56466         * modules/unictype/bidicategory-byname: Likewise.
56467         * modules/unictype/bidicategory-name: Likewise.
56468         * modules/unictype/bidicategory-of: Likewise.
56469         * modules/unictype/bidicategory-test: Likewise.
56470         * modules/unictype/block-list: Likewise.
56471         * modules/unictype/block-test: Likewise.
56472         * modules/unictype/category-C: Likewise.
56473         * modules/unictype/category-Cc: Likewise.
56474         * modules/unictype/category-Cf: Likewise.
56475         * modules/unictype/category-Cn: Likewise.
56476         * modules/unictype/category-Co: Likewise.
56477         * modules/unictype/category-Cs: Likewise.
56478         * modules/unictype/category-L: Likewise.
56479         * modules/unictype/category-Ll: Likewise.
56480         * modules/unictype/category-Lm: Likewise.
56481         * modules/unictype/category-Lo: Likewise.
56482         * modules/unictype/category-Lt: Likewise.
56483         * modules/unictype/category-Lu: Likewise.
56484         * modules/unictype/category-M: Likewise.
56485         * modules/unictype/category-Mc: Likewise.
56486         * modules/unictype/category-Me: Likewise.
56487         * modules/unictype/category-Mn: Likewise.
56488         * modules/unictype/category-N: Likewise.
56489         * modules/unictype/category-Nd: Likewise.
56490         * modules/unictype/category-Nl: Likewise.
56491         * modules/unictype/category-No: Likewise.
56492         * modules/unictype/category-P: Likewise.
56493         * modules/unictype/category-Pc: Likewise.
56494         * modules/unictype/category-Pd: Likewise.
56495         * modules/unictype/category-Pe: Likewise.
56496         * modules/unictype/category-Pf: Likewise.
56497         * modules/unictype/category-Pi: Likewise.
56498         * modules/unictype/category-Po: Likewise.
56499         * modules/unictype/category-Ps: Likewise.
56500         * modules/unictype/category-S: Likewise.
56501         * modules/unictype/category-Sc: Likewise.
56502         * modules/unictype/category-Sk: Likewise.
56503         * modules/unictype/category-Sm: Likewise.
56504         * modules/unictype/category-So: Likewise.
56505         * modules/unictype/category-Z: Likewise.
56506         * modules/unictype/category-Zl: Likewise.
56507         * modules/unictype/category-Zp: Likewise.
56508         * modules/unictype/category-Zs: Likewise.
56509         * modules/unictype/category-and: Likewise.
56510         * modules/unictype/category-and-not: Likewise.
56511         * modules/unictype/category-byname: Likewise.
56512         * modules/unictype/category-name: Likewise.
56513         * modules/unictype/category-none: Likewise.
56514         * modules/unictype/category-of: Likewise.
56515         * modules/unictype/category-or: Likewise.
56516         * modules/unictype/category-test: Likewise.
56517         * modules/unictype/combining-class: Likewise.
56518         * modules/unictype/ctype-alnum: Likewise.
56519         * modules/unictype/ctype-alpha: Likewise.
56520         * modules/unictype/ctype-blank: Likewise.
56521         * modules/unictype/ctype-cntrl: Likewise.
56522         * modules/unictype/ctype-digit: Likewise.
56523         * modules/unictype/ctype-graph: Likewise.
56524         * modules/unictype/ctype-lower: Likewise.
56525         * modules/unictype/ctype-print: Likewise.
56526         * modules/unictype/ctype-punct: Likewise.
56527         * modules/unictype/ctype-space: Likewise.
56528         * modules/unictype/ctype-upper: Likewise.
56529         * modules/unictype/ctype-xdigit: Likewise.
56530         * modules/unictype/decimal-digit: Likewise.
56531         * modules/unictype/digit: Likewise.
56532         * modules/unictype/mirror: Likewise.
56533         * modules/unictype/numeric: Likewise.
56534         * modules/unictype/property-alphabetic: Likewise.
56535         * modules/unictype/property-ascii-hex-digit: Likewise.
56536         * modules/unictype/property-bidi-arabic-digit: Likewise.
56537         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
56538         * modules/unictype/property-bidi-block-separator: Likewise.
56539         * modules/unictype/property-bidi-boundary-neutral: Likewise.
56540         * modules/unictype/property-bidi-common-separator: Likewise.
56541         * modules/unictype/property-bidi-control: Likewise.
56542         * modules/unictype/property-bidi-embedding-or-override: Likewise.
56543         * modules/unictype/property-bidi-eur-num-separator: Likewise.
56544         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
56545         * modules/unictype/property-bidi-european-digit: Likewise.
56546         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
56547         * modules/unictype/property-bidi-left-to-right: Likewise.
56548         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
56549         * modules/unictype/property-bidi-other-neutral: Likewise.
56550         * modules/unictype/property-bidi-pdf: Likewise.
56551         * modules/unictype/property-bidi-segment-separator: Likewise.
56552         * modules/unictype/property-bidi-whitespace: Likewise.
56553         * modules/unictype/property-byname: Likewise.
56554         * modules/unictype/property-combining: Likewise.
56555         * modules/unictype/property-composite: Likewise.
56556         * modules/unictype/property-currency-symbol: Likewise.
56557         * modules/unictype/property-dash: Likewise.
56558         * modules/unictype/property-decimal-digit: Likewise.
56559         * modules/unictype/property-default-ignorable-code-point: Likewise.
56560         * modules/unictype/property-deprecated: Likewise.
56561         * modules/unictype/property-diacritic: Likewise.
56562         * modules/unictype/property-extender: Likewise.
56563         * modules/unictype/property-format-control: Likewise.
56564         * modules/unictype/property-grapheme-base: Likewise.
56565         * modules/unictype/property-grapheme-extend: Likewise.
56566         * modules/unictype/property-grapheme-link: Likewise.
56567         * modules/unictype/property-hex-digit: Likewise.
56568         * modules/unictype/property-hyphen: Likewise.
56569         * modules/unictype/property-id-continue: Likewise.
56570         * modules/unictype/property-id-start: Likewise.
56571         * modules/unictype/property-ideographic: Likewise.
56572         * modules/unictype/property-ids-binary-operator: Likewise.
56573         * modules/unictype/property-ids-trinary-operator: Likewise.
56574         * modules/unictype/property-ignorable-control: Likewise.
56575         * modules/unictype/property-iso-control: Likewise.
56576         * modules/unictype/property-join-control: Likewise.
56577         * modules/unictype/property-left-of-pair: Likewise.
56578         * modules/unictype/property-line-separator: Likewise.
56579         * modules/unictype/property-logical-order-exception: Likewise.
56580         * modules/unictype/property-lowercase: Likewise.
56581         * modules/unictype/property-math: Likewise.
56582         * modules/unictype/property-non-break: Likewise.
56583         * modules/unictype/property-not-a-character: Likewise.
56584         * modules/unictype/property-numeric: Likewise.
56585         * modules/unictype/property-other-alphabetic: Likewise.
56586         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
56587         * modules/unictype/property-other-grapheme-extend: Likewise.
56588         * modules/unictype/property-other-id-continue: Likewise.
56589         * modules/unictype/property-other-id-start: Likewise.
56590         * modules/unictype/property-other-lowercase: Likewise.
56591         * modules/unictype/property-other-math: Likewise.
56592         * modules/unictype/property-other-uppercase: Likewise.
56593         * modules/unictype/property-paired-punctuation: Likewise.
56594         * modules/unictype/property-paragraph-separator: Likewise.
56595         * modules/unictype/property-pattern-syntax: Likewise.
56596         * modules/unictype/property-pattern-white-space: Likewise.
56597         * modules/unictype/property-private-use: Likewise.
56598         * modules/unictype/property-punctuation: Likewise.
56599         * modules/unictype/property-quotation-mark: Likewise.
56600         * modules/unictype/property-radical: Likewise.
56601         * modules/unictype/property-sentence-terminal: Likewise.
56602         * modules/unictype/property-soft-dotted: Likewise.
56603         * modules/unictype/property-space: Likewise.
56604         * modules/unictype/property-terminal-punctuation: Likewise.
56605         * modules/unictype/property-test: Likewise.
56606         * modules/unictype/property-titlecase: Likewise.
56607         * modules/unictype/property-unassigned-code-value: Likewise.
56608         * modules/unictype/property-unified-ideograph: Likewise.
56609         * modules/unictype/property-uppercase: Likewise.
56610         * modules/unictype/property-variation-selector: Likewise.
56611         * modules/unictype/property-white-space: Likewise.
56612         * modules/unictype/property-xid-continue: Likewise.
56613         * modules/unictype/property-xid-start: Likewise.
56614         * modules/unictype/property-zero-width: Likewise.
56615         * modules/unictype/scripts: Likewise.
56616         * modules/unictype/syntax-c-ident: Likewise.
56617         * modules/unictype/syntax-c-whitespace: Likewise.
56618         * modules/unictype/syntax-java-ident: Likewise.
56619         * modules/unictype/syntax-java-whitespace: Likewise.
56620         * modules/unilbrk/u8-possible-linebreaks: Likewise.
56621         * modules/unilbrk/u8-width-linebreaks: Likewise.
56622         * modules/unilbrk/u16-possible-linebreaks: Likewise.
56623         * modules/unilbrk/u16-width-linebreaks: Likewise.
56624         * modules/unilbrk/u32-possible-linebreaks: Likewise.
56625         * modules/unilbrk/u32-width-linebreaks: Likewise.
56626         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
56627         * modules/unilbrk/ulc-width-linebreaks: Likewise.
56628         * modules/uniname/uniname: Likewise.
56629         * modules/uninorm/canonical-decomposition: Likewise.
56630         * modules/uninorm/composition: Likewise.
56631         * modules/uninorm/decomposing-form: Likewise.
56632         * modules/uninorm/decomposition: Likewise.
56633         * modules/uninorm/filter: Likewise.
56634         * modules/uninorm/nfc: Likewise.
56635         * modules/uninorm/nfd: Likewise.
56636         * modules/uninorm/nfkc: Likewise.
56637         * modules/uninorm/nfkd: Likewise.
56638         * modules/uninorm/u8-normalize: Likewise.
56639         * modules/uninorm/u8-normcmp: Likewise.
56640         * modules/uninorm/u8-normcoll: Likewise.
56641         * modules/uninorm/u8-normxfrm: Likewise.
56642         * modules/uninorm/u16-normalize: Likewise.
56643         * modules/uninorm/u16-normcmp: Likewise.
56644         * modules/uninorm/u16-normcoll: Likewise.
56645         * modules/uninorm/u16-normxfrm: Likewise.
56646         * modules/uninorm/u32-normalize: Likewise.
56647         * modules/uninorm/u32-normcmp: Likewise.
56648         * modules/uninorm/u32-normcoll: Likewise.
56649         * modules/uninorm/u32-normxfrm: Likewise.
56650         * modules/unistdio/u8-asnprintf: Likewise.
56651         * modules/unistdio/u8-asprintf: Likewise.
56652         * modules/unistdio/u8-snprintf: Likewise.
56653         * modules/unistdio/u8-sprintf: Likewise.
56654         * modules/unistdio/u8-u8-asnprintf: Likewise.
56655         * modules/unistdio/u8-u8-asprintf: Likewise.
56656         * modules/unistdio/u8-u8-snprintf: Likewise.
56657         * modules/unistdio/u8-u8-sprintf: Likewise.
56658         * modules/unistdio/u8-u8-vasnprintf: Likewise.
56659         * modules/unistdio/u8-u8-vasprintf: Likewise.
56660         * modules/unistdio/u8-u8-vsnprintf: Likewise.
56661         * modules/unistdio/u8-u8-vsprintf: Likewise.
56662         * modules/unistdio/u8-vasnprintf: Likewise.
56663         * modules/unistdio/u8-vasprintf: Likewise.
56664         * modules/unistdio/u8-vsnprintf: Likewise.
56665         * modules/unistdio/u8-vsprintf: Likewise.
56666         * modules/unistdio/u16-asnprintf: Likewise.
56667         * modules/unistdio/u16-asprintf: Likewise.
56668         * modules/unistdio/u16-snprintf: Likewise.
56669         * modules/unistdio/u16-sprintf: Likewise.
56670         * modules/unistdio/u16-u16-asnprintf: Likewise.
56671         * modules/unistdio/u16-u16-asprintf: Likewise.
56672         * modules/unistdio/u16-u16-snprintf: Likewise.
56673         * modules/unistdio/u16-u16-sprintf: Likewise.
56674         * modules/unistdio/u16-u16-vasnprintf: Likewise.
56675         * modules/unistdio/u16-u16-vasprintf: Likewise.
56676         * modules/unistdio/u16-u16-vsnprintf: Likewise.
56677         * modules/unistdio/u16-u16-vsprintf: Likewise.
56678         * modules/unistdio/u16-vasnprintf: Likewise.
56679         * modules/unistdio/u16-vasprintf: Likewise.
56680         * modules/unistdio/u16-vsnprintf: Likewise.
56681         * modules/unistdio/u16-vsprintf: Likewise.
56682         * modules/unistdio/u32-asnprintf: Likewise.
56683         * modules/unistdio/u32-asprintf: Likewise.
56684         * modules/unistdio/u32-snprintf: Likewise.
56685         * modules/unistdio/u32-sprintf: Likewise.
56686         * modules/unistdio/u32-u32-asnprintf: Likewise.
56687         * modules/unistdio/u32-u32-asprintf: Likewise.
56688         * modules/unistdio/u32-u32-snprintf: Likewise.
56689         * modules/unistdio/u32-u32-sprintf: Likewise.
56690         * modules/unistdio/u32-u32-vasnprintf: Likewise.
56691         * modules/unistdio/u32-u32-vasprintf: Likewise.
56692         * modules/unistdio/u32-u32-vsnprintf: Likewise.
56693         * modules/unistdio/u32-u32-vsprintf: Likewise.
56694         * modules/unistdio/u32-vasnprintf: Likewise.
56695         * modules/unistdio/u32-vasprintf: Likewise.
56696         * modules/unistdio/u32-vsnprintf: Likewise.
56697         * modules/unistdio/u32-vsprintf: Likewise.
56698         * modules/unistdio/ulc-asnprintf: Likewise.
56699         * modules/unistdio/ulc-asprintf: Likewise.
56700         * modules/unistdio/ulc-fprintf: Likewise.
56701         * modules/unistdio/ulc-snprintf: Likewise.
56702         * modules/unistdio/ulc-sprintf: Likewise.
56703         * modules/unistdio/ulc-vasnprintf: Likewise.
56704         * modules/unistdio/ulc-vasprintf: Likewise.
56705         * modules/unistdio/ulc-vfprintf: Likewise.
56706         * modules/unistdio/ulc-vsnprintf: Likewise.
56707         * modules/unistdio/ulc-vsprintf: Likewise.
56708         * modules/unistr/u8-check: Likewise.
56709         * modules/unistr/u8-chr: Likewise.
56710         * modules/unistr/u8-cmp: Likewise.
56711         * modules/unistr/u8-cmp2: Likewise.
56712         * modules/unistr/u8-cpy: Likewise.
56713         * modules/unistr/u8-cpy-alloc: Likewise.
56714         * modules/unistr/u8-endswith: Likewise.
56715         * modules/unistr/u8-mblen: Likewise.
56716         * modules/unistr/u8-mbsnlen: Likewise.
56717         * modules/unistr/u8-mbtouc: Likewise.
56718         * modules/unistr/u8-mbtouc-unsafe: Likewise.
56719         * modules/unistr/u8-mbtoucr: Likewise.
56720         * modules/unistr/u8-move: Likewise.
56721         * modules/unistr/u8-next: Likewise.
56722         * modules/unistr/u8-prev: Likewise.
56723         * modules/unistr/u8-set: Likewise.
56724         * modules/unistr/u8-startswith: Likewise.
56725         * modules/unistr/u8-stpcpy: Likewise.
56726         * modules/unistr/u8-stpncpy: Likewise.
56727         * modules/unistr/u8-strcat: Likewise.
56728         * modules/unistr/u8-strchr: Likewise.
56729         * modules/unistr/u8-strcmp: Likewise.
56730         * modules/unistr/u8-strcoll: Likewise.
56731         * modules/unistr/u8-strcpy: Likewise.
56732         * modules/unistr/u8-strcspn: Likewise.
56733         * modules/unistr/u8-strdup: Likewise.
56734         * modules/unistr/u8-strlen: Likewise.
56735         * modules/unistr/u8-strmblen: Likewise.
56736         * modules/unistr/u8-strmbtouc: Likewise.
56737         * modules/unistr/u8-strncat: Likewise.
56738         * modules/unistr/u8-strncmp: Likewise.
56739         * modules/unistr/u8-strncpy: Likewise.
56740         * modules/unistr/u8-strnlen: Likewise.
56741         * modules/unistr/u8-strpbrk: Likewise.
56742         * modules/unistr/u8-strrchr: Likewise.
56743         * modules/unistr/u8-strspn: Likewise.
56744         * modules/unistr/u8-strstr: Likewise.
56745         * modules/unistr/u8-strtok: Likewise.
56746         * modules/unistr/u8-to-u16: Likewise.
56747         * modules/unistr/u8-to-u32: Likewise.
56748         * modules/unistr/u8-uctomb: Likewise.
56749         * modules/unistr/u16-check: Likewise.
56750         * modules/unistr/u16-chr: Likewise.
56751         * modules/unistr/u16-cmp: Likewise.
56752         * modules/unistr/u16-cmp2: Likewise.
56753         * modules/unistr/u16-cpy: Likewise.
56754         * modules/unistr/u16-cpy-alloc: Likewise.
56755         * modules/unistr/u16-endswith: Likewise.
56756         * modules/unistr/u16-mblen: Likewise.
56757         * modules/unistr/u16-mbsnlen: Likewise.
56758         * modules/unistr/u16-mbtouc: Likewise.
56759         * modules/unistr/u16-mbtouc-unsafe: Likewise.
56760         * modules/unistr/u16-mbtoucr: Likewise.
56761         * modules/unistr/u16-move: Likewise.
56762         * modules/unistr/u16-next: Likewise.
56763         * modules/unistr/u16-prev: Likewise.
56764         * modules/unistr/u16-set: Likewise.
56765         * modules/unistr/u16-startswith: Likewise.
56766         * modules/unistr/u16-stpcpy: Likewise.
56767         * modules/unistr/u16-stpncpy: Likewise.
56768         * modules/unistr/u16-strcat: Likewise.
56769         * modules/unistr/u16-strchr: Likewise.
56770         * modules/unistr/u16-strcmp: Likewise.
56771         * modules/unistr/u16-strcoll: Likewise.
56772         * modules/unistr/u16-strcpy: Likewise.
56773         * modules/unistr/u16-strcspn: Likewise.
56774         * modules/unistr/u16-strdup: Likewise.
56775         * modules/unistr/u16-strlen: Likewise.
56776         * modules/unistr/u16-strmblen: Likewise.
56777         * modules/unistr/u16-strmbtouc: Likewise.
56778         * modules/unistr/u16-strncat: Likewise.
56779         * modules/unistr/u16-strncmp: Likewise.
56780         * modules/unistr/u16-strncpy: Likewise.
56781         * modules/unistr/u16-strnlen: Likewise.
56782         * modules/unistr/u16-strpbrk: Likewise.
56783         * modules/unistr/u16-strrchr: Likewise.
56784         * modules/unistr/u16-strspn: Likewise.
56785         * modules/unistr/u16-strstr: Likewise.
56786         * modules/unistr/u16-strtok: Likewise.
56787         * modules/unistr/u16-to-u32: Likewise.
56788         * modules/unistr/u16-to-u8: Likewise.
56789         * modules/unistr/u16-uctomb: Likewise.
56790         * modules/unistr/u32-check: Likewise.
56791         * modules/unistr/u32-chr: Likewise.
56792         * modules/unistr/u32-cmp: Likewise.
56793         * modules/unistr/u32-cmp2: Likewise.
56794         * modules/unistr/u32-cpy: Likewise.
56795         * modules/unistr/u32-cpy-alloc: Likewise.
56796         * modules/unistr/u32-endswith: Likewise.
56797         * modules/unistr/u32-mblen: Likewise.
56798         * modules/unistr/u32-mbsnlen: Likewise.
56799         * modules/unistr/u32-mbtouc: Likewise.
56800         * modules/unistr/u32-mbtouc-unsafe: Likewise.
56801         * modules/unistr/u32-mbtoucr: Likewise.
56802         * modules/unistr/u32-move: Likewise.
56803         * modules/unistr/u32-next: Likewise.
56804         * modules/unistr/u32-prev: Likewise.
56805         * modules/unistr/u32-set: Likewise.
56806         * modules/unistr/u32-startswith: Likewise.
56807         * modules/unistr/u32-stpcpy: Likewise.
56808         * modules/unistr/u32-stpncpy: Likewise.
56809         * modules/unistr/u32-strcat: Likewise.
56810         * modules/unistr/u32-strchr: Likewise.
56811         * modules/unistr/u32-strcmp: Likewise.
56812         * modules/unistr/u32-strcoll: Likewise.
56813         * modules/unistr/u32-strcpy: Likewise.
56814         * modules/unistr/u32-strcspn: Likewise.
56815         * modules/unistr/u32-strdup: Likewise.
56816         * modules/unistr/u32-strlen: Likewise.
56817         * modules/unistr/u32-strmblen: Likewise.
56818         * modules/unistr/u32-strmbtouc: Likewise.
56819         * modules/unistr/u32-strncat: Likewise.
56820         * modules/unistr/u32-strncmp: Likewise.
56821         * modules/unistr/u32-strncpy: Likewise.
56822         * modules/unistr/u32-strnlen: Likewise.
56823         * modules/unistr/u32-strpbrk: Likewise.
56824         * modules/unistr/u32-strrchr: Likewise.
56825         * modules/unistr/u32-strspn: Likewise.
56826         * modules/unistr/u32-strstr: Likewise.
56827         * modules/unistr/u32-strtok: Likewise.
56828         * modules/unistr/u32-to-u16: Likewise.
56829         * modules/unistr/u32-to-u8: Likewise.
56830         * modules/unistr/u32-uctomb: Likewise.
56831         * modules/uniwbrk/u8-wordbreaks: Likewise.
56832         * modules/uniwbrk/u16-wordbreaks: Likewise.
56833         * modules/uniwbrk/u32-wordbreaks: Likewise.
56834         * modules/uniwbrk/ulc-wordbreaks: Likewise.
56835         * modules/uniwbrk/wordbreak-property: Likewise.
56836         * modules/uniwidth/u8-strwidth: Likewise.
56837         * modules/uniwidth/u8-width: Likewise.
56838         * modules/uniwidth/u16-strwidth: Likewise.
56839         * modules/uniwidth/u16-width: Likewise.
56840         * modules/uniwidth/u32-strwidth: Likewise.
56841         * modules/uniwidth/u32-width: Likewise.
56842         * modules/uniwidth/width: Likewise.
56843         * modules/unicase/cased-tests (Makefile.am): Link all test programs
56844         with $(LIBUNISTRING).
56845         * modules/unicase/ignorable-tests: Likewise.
56846         * modules/unicase/locale-language-tests: Likewise.
56847         * modules/unicase/tolower-tests: Likewise.
56848         * modules/unicase/totitle-tests: Likewise.
56849         * modules/unicase/toupper-tests: Likewise.
56850         * modules/unicase/u8-casecmp-tests: Likewise.
56851         * modules/unicase/u8-casecoll-tests: Likewise.
56852         * modules/unicase/u8-casefold-tests: Likewise.
56853         * modules/unicase/u8-is-cased-tests: Likewise.
56854         * modules/unicase/u8-is-casefolded-tests: Likewise.
56855         * modules/unicase/u8-is-lowercase-tests: Likewise.
56856         * modules/unicase/u8-is-titlecase-tests: Likewise.
56857         * modules/unicase/u8-is-uppercase-tests: Likewise.
56858         * modules/unicase/u8-tolower-tests: Likewise.
56859         * modules/unicase/u8-totitle-tests: Likewise.
56860         * modules/unicase/u8-toupper-tests: Likewise.
56861         * modules/unicase/u16-casecmp-tests: Likewise.
56862         * modules/unicase/u16-casecoll-tests: Likewise.
56863         * modules/unicase/u16-casefold-tests: Likewise.
56864         * modules/unicase/u16-is-cased-tests: Likewise.
56865         * modules/unicase/u16-is-casefolded-tests: Likewise.
56866         * modules/unicase/u16-is-lowercase-tests: Likewise.
56867         * modules/unicase/u16-is-titlecase-tests: Likewise.
56868         * modules/unicase/u16-is-uppercase-tests: Likewise.
56869         * modules/unicase/u16-tolower-tests: Likewise.
56870         * modules/unicase/u16-totitle-tests: Likewise.
56871         * modules/unicase/u16-toupper-tests: Likewise.
56872         * modules/unicase/u32-casecmp-tests: Likewise.
56873         * modules/unicase/u32-casecoll-tests: Likewise.
56874         * modules/unicase/u32-casefold-tests: Likewise.
56875         * modules/unicase/u32-is-cased-tests: Likewise.
56876         * modules/unicase/u32-is-casefolded-tests: Likewise.
56877         * modules/unicase/u32-is-lowercase-tests: Likewise.
56878         * modules/unicase/u32-is-titlecase-tests: Likewise.
56879         * modules/unicase/u32-is-uppercase-tests: Likewise.
56880         * modules/unicase/u32-tolower-tests: Likewise.
56881         * modules/unicase/u32-totitle-tests: Likewise.
56882         * modules/unicase/u32-toupper-tests: Likewise.
56883         * modules/unicase/ulc-casecmp-tests: Likewise.
56884         * modules/unicase/ulc-casecoll-tests: Likewise.
56885         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
56886         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
56887         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
56888         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
56889         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
56890         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
56891         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
56892         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
56893         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
56894         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
56895         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
56896         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
56897         * modules/unictype/bidicategory-byname-tests: Likewise.
56898         * modules/unictype/bidicategory-name-tests: Likewise.
56899         * modules/unictype/bidicategory-of-tests: Likewise.
56900         * modules/unictype/bidicategory-test-tests: Likewise.
56901         * modules/unictype/block-list-tests: Likewise.
56902         * modules/unictype/block-of-tests: Likewise.
56903         * modules/unictype/block-test-tests: Likewise.
56904         * modules/unictype/category-C-tests: Likewise.
56905         * modules/unictype/category-Cc-tests: Likewise.
56906         * modules/unictype/category-Cf-tests: Likewise.
56907         * modules/unictype/category-Cn-tests: Likewise.
56908         * modules/unictype/category-Co-tests: Likewise.
56909         * modules/unictype/category-Cs-tests: Likewise.
56910         * modules/unictype/category-L-tests: Likewise.
56911         * modules/unictype/category-Ll-tests: Likewise.
56912         * modules/unictype/category-Lm-tests: Likewise.
56913         * modules/unictype/category-Lo-tests: Likewise.
56914         * modules/unictype/category-Lt-tests: Likewise.
56915         * modules/unictype/category-Lu-tests: Likewise.
56916         * modules/unictype/category-M-tests: Likewise.
56917         * modules/unictype/category-Mc-tests: Likewise.
56918         * modules/unictype/category-Me-tests: Likewise.
56919         * modules/unictype/category-Mn-tests: Likewise.
56920         * modules/unictype/category-N-tests: Likewise.
56921         * modules/unictype/category-Nd-tests: Likewise.
56922         * modules/unictype/category-Nl-tests: Likewise.
56923         * modules/unictype/category-No-tests: Likewise.
56924         * modules/unictype/category-P-tests: Likewise.
56925         * modules/unictype/category-Pc-tests: Likewise.
56926         * modules/unictype/category-Pd-tests: Likewise.
56927         * modules/unictype/category-Pe-tests: Likewise.
56928         * modules/unictype/category-Pf-tests: Likewise.
56929         * modules/unictype/category-Pi-tests: Likewise.
56930         * modules/unictype/category-Po-tests: Likewise.
56931         * modules/unictype/category-Ps-tests: Likewise.
56932         * modules/unictype/category-S-tests: Likewise.
56933         * modules/unictype/category-Sc-tests: Likewise.
56934         * modules/unictype/category-Sk-tests: Likewise.
56935         * modules/unictype/category-Sm-tests: Likewise.
56936         * modules/unictype/category-So-tests: Likewise.
56937         * modules/unictype/category-Z-tests: Likewise.
56938         * modules/unictype/category-Zl-tests: Likewise.
56939         * modules/unictype/category-Zp-tests: Likewise.
56940         * modules/unictype/category-Zs-tests: Likewise.
56941         * modules/unictype/category-and-not-tests: Likewise.
56942         * modules/unictype/category-and-tests: Likewise.
56943         * modules/unictype/category-byname-tests: Likewise.
56944         * modules/unictype/category-name-tests: Likewise.
56945         * modules/unictype/category-none-tests: Likewise.
56946         * modules/unictype/category-of-tests: Likewise.
56947         * modules/unictype/category-or-tests: Likewise.
56948         * modules/unictype/category-test-withtable-tests: Likewise.
56949         * modules/unictype/combining-class-tests: Likewise.
56950         * modules/unictype/ctype-alnum-tests: Likewise.
56951         * modules/unictype/ctype-alpha-tests: Likewise.
56952         * modules/unictype/ctype-blank-tests: Likewise.
56953         * modules/unictype/ctype-cntrl-tests: Likewise.
56954         * modules/unictype/ctype-digit-tests: Likewise.
56955         * modules/unictype/ctype-graph-tests: Likewise.
56956         * modules/unictype/ctype-lower-tests: Likewise.
56957         * modules/unictype/ctype-print-tests: Likewise.
56958         * modules/unictype/ctype-punct-tests: Likewise.
56959         * modules/unictype/ctype-space-tests: Likewise.
56960         * modules/unictype/ctype-upper-tests: Likewise.
56961         * modules/unictype/ctype-xdigit-tests: Likewise.
56962         * modules/unictype/decimal-digit-tests: Likewise.
56963         * modules/unictype/digit-tests: Likewise.
56964         * modules/unictype/mirror-tests: Likewise.
56965         * modules/unictype/numeric-tests: Likewise.
56966         * modules/unictype/property-alphabetic-tests: Likewise.
56967         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
56968         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
56969         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
56970         * modules/unictype/property-bidi-block-separator-tests: Likewise.
56971         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
56972         * modules/unictype/property-bidi-common-separator-tests: Likewise.
56973         * modules/unictype/property-bidi-control-tests: Likewise.
56974         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
56975         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
56976         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
56977         * modules/unictype/property-bidi-european-digit-tests: Likewise.
56978         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
56979         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
56980         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
56981         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
56982         * modules/unictype/property-bidi-pdf-tests: Likewise.
56983         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
56984         * modules/unictype/property-bidi-whitespace-tests: Likewise.
56985         * modules/unictype/property-byname-tests: Likewise.
56986         * modules/unictype/property-combining-tests: Likewise.
56987         * modules/unictype/property-composite-tests: Likewise.
56988         * modules/unictype/property-currency-symbol-tests: Likewise.
56989         * modules/unictype/property-dash-tests: Likewise.
56990         * modules/unictype/property-decimal-digit-tests: Likewise.
56991         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
56992         * modules/unictype/property-deprecated-tests: Likewise.
56993         * modules/unictype/property-diacritic-tests: Likewise.
56994         * modules/unictype/property-extender-tests: Likewise.
56995         * modules/unictype/property-format-control-tests: Likewise.
56996         * modules/unictype/property-grapheme-base-tests: Likewise.
56997         * modules/unictype/property-grapheme-extend-tests: Likewise.
56998         * modules/unictype/property-grapheme-link-tests: Likewise.
56999         * modules/unictype/property-hex-digit-tests: Likewise.
57000         * modules/unictype/property-hyphen-tests: Likewise.
57001         * modules/unictype/property-id-continue-tests: Likewise.
57002         * modules/unictype/property-id-start-tests: Likewise.
57003         * modules/unictype/property-ideographic-tests: Likewise.
57004         * modules/unictype/property-ids-binary-operator-tests: Likewise.
57005         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
57006         * modules/unictype/property-ignorable-control-tests: Likewise.
57007         * modules/unictype/property-iso-control-tests: Likewise.
57008         * modules/unictype/property-join-control-tests: Likewise.
57009         * modules/unictype/property-left-of-pair-tests: Likewise.
57010         * modules/unictype/property-line-separator-tests: Likewise.
57011         * modules/unictype/property-logical-order-exception-tests: Likewise.
57012         * modules/unictype/property-lowercase-tests: Likewise.
57013         * modules/unictype/property-math-tests: Likewise.
57014         * modules/unictype/property-non-break-tests: Likewise.
57015         * modules/unictype/property-not-a-character-tests: Likewise.
57016         * modules/unictype/property-numeric-tests: Likewise.
57017         * modules/unictype/property-other-alphabetic-tests: Likewise.
57018         * modules/unictype/property-other-default-ignorable-code-point-tests:
57019         Likewise.
57020         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
57021         * modules/unictype/property-other-id-continue-tests: Likewise.
57022         * modules/unictype/property-other-id-start-tests: Likewise.
57023         * modules/unictype/property-other-lowercase-tests: Likewise.
57024         * modules/unictype/property-other-math-tests: Likewise.
57025         * modules/unictype/property-other-uppercase-tests: Likewise.
57026         * modules/unictype/property-paired-punctuation-tests: Likewise.
57027         * modules/unictype/property-paragraph-separator-tests: Likewise.
57028         * modules/unictype/property-pattern-syntax-tests: Likewise.
57029         * modules/unictype/property-pattern-white-space-tests: Likewise.
57030         * modules/unictype/property-private-use-tests: Likewise.
57031         * modules/unictype/property-punctuation-tests: Likewise.
57032         * modules/unictype/property-quotation-mark-tests: Likewise.
57033         * modules/unictype/property-radical-tests: Likewise.
57034         * modules/unictype/property-sentence-terminal-tests: Likewise.
57035         * modules/unictype/property-soft-dotted-tests: Likewise.
57036         * modules/unictype/property-space-tests: Likewise.
57037         * modules/unictype/property-terminal-punctuation-tests: Likewise.
57038         * modules/unictype/property-test-tests: Likewise.
57039         * modules/unictype/property-titlecase-tests: Likewise.
57040         * modules/unictype/property-unassigned-code-value-tests: Likewise.
57041         * modules/unictype/property-unified-ideograph-tests: Likewise.
57042         * modules/unictype/property-uppercase-tests: Likewise.
57043         * modules/unictype/property-variation-selector-tests: Likewise.
57044         * modules/unictype/property-white-space-tests: Likewise.
57045         * modules/unictype/property-xid-continue-tests: Likewise.
57046         * modules/unictype/property-xid-start-tests: Likewise.
57047         * modules/unictype/property-zero-width-tests: Likewise.
57048         * modules/unictype/scripts-tests: Likewise.
57049         * modules/unictype/syntax-c-ident-tests: Likewise.
57050         * modules/unictype/syntax-c-whitespace-tests: Likewise.
57051         * modules/unictype/syntax-java-ident-tests: Likewise.
57052         * modules/unictype/syntax-java-whitespace-tests: Likewise.
57053         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
57054         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
57055         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
57056         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
57057         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
57058         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
57059         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
57060         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
57061         * modules/uniname/uniname-tests: Likewise.
57062         * modules/uninorm/canonical-decomposition-tests: Likewise.
57063         * modules/uninorm/compat-decomposition-tests: Likewise.
57064         * modules/uninorm/composition-tests: Likewise.
57065         * modules/uninorm/decomposing-form-tests: Likewise.
57066         * modules/uninorm/decomposition-tests: Likewise.
57067         * modules/uninorm/filter-tests: Likewise.
57068         * modules/uninorm/nfc-tests: Likewise.
57069         * modules/uninorm/nfd-tests: Likewise.
57070         * modules/uninorm/nfkc-tests: Likewise.
57071         * modules/uninorm/nfkd-tests: Likewise.
57072         * modules/uninorm/u8-normcmp-tests: Likewise.
57073         * modules/uninorm/u8-normcoll-tests: Likewise.
57074         * modules/uninorm/u16-normcmp-tests: Likewise.
57075         * modules/uninorm/u16-normcoll-tests: Likewise.
57076         * modules/uninorm/u32-normcmp-tests: Likewise.
57077         * modules/uninorm/u32-normcoll-tests: Likewise.
57078         * modules/unistdio/u8-asnprintf-tests: Likewise.
57079         * modules/unistdio/u8-vasnprintf-tests: Likewise.
57080         * modules/unistdio/u8-vasprintf-tests: Likewise.
57081         * modules/unistdio/u8-vsnprintf-tests: Likewise.
57082         * modules/unistdio/u8-vsprintf-tests: Likewise.
57083         * modules/unistdio/u16-asnprintf-tests: Likewise.
57084         * modules/unistdio/u16-vasnprintf-tests: Likewise.
57085         * modules/unistdio/u16-vasprintf-tests: Likewise.
57086         * modules/unistdio/u16-vsnprintf-tests: Likewise.
57087         * modules/unistdio/u16-vsprintf-tests: Likewise.
57088         * modules/unistdio/u32-asnprintf-tests: Likewise.
57089         * modules/unistdio/u32-vasnprintf-tests: Likewise.
57090         * modules/unistdio/u32-vasprintf-tests: Likewise.
57091         * modules/unistdio/u32-vsnprintf-tests: Likewise.
57092         * modules/unistdio/u32-vsprintf-tests: Likewise.
57093         * modules/unistdio/ulc-asnprintf-tests: Likewise.
57094         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
57095         * modules/unistdio/ulc-vasprintf-tests: Likewise.
57096         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
57097         * modules/unistdio/ulc-vsprintf-tests: Likewise.
57098         * modules/unistr/u8-check-tests: Likewise.
57099         * modules/unistr/u8-chr-tests: Likewise.
57100         * modules/unistr/u8-cmp-tests: Likewise.
57101         * modules/unistr/u8-cmp2-tests: Likewise.
57102         * modules/unistr/u8-cpy-alloc-tests: Likewise.
57103         * modules/unistr/u8-cpy-tests: Likewise.
57104         * modules/unistr/u8-mblen-tests: Likewise.
57105         * modules/unistr/u8-mbsnlen-tests: Likewise.
57106         * modules/unistr/u8-mbtouc-tests: Likewise.
57107         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
57108         * modules/unistr/u8-mbtoucr-tests: Likewise.
57109         * modules/unistr/u8-move-tests: Likewise.
57110         * modules/unistr/u8-next-tests: Likewise.
57111         * modules/unistr/u8-prev-tests: Likewise.
57112         * modules/unistr/u8-set-tests: Likewise.
57113         * modules/unistr/u8-stpcpy-tests: Likewise.
57114         * modules/unistr/u8-stpncpy-tests: Likewise.
57115         * modules/unistr/u8-strcat-tests: Likewise.
57116         * modules/unistr/u8-strcmp-tests: Likewise.
57117         * modules/unistr/u8-strcoll-tests: Likewise.
57118         * modules/unistr/u8-strcpy-tests: Likewise.
57119         * modules/unistr/u8-strdup-tests: Likewise.
57120         * modules/unistr/u8-strlen-tests: Likewise.
57121         * modules/unistr/u8-strmblen-tests: Likewise.
57122         * modules/unistr/u8-strmbtouc-tests: Likewise.
57123         * modules/unistr/u8-strncat-tests: Likewise.
57124         * modules/unistr/u8-strncmp-tests: Likewise.
57125         * modules/unistr/u8-strncpy-tests: Likewise.
57126         * modules/unistr/u8-strnlen-tests: Likewise.
57127         * modules/unistr/u8-to-u16-tests: Likewise.
57128         * modules/unistr/u8-to-u32-tests: Likewise.
57129         * modules/unistr/u8-uctomb-tests: Likewise.
57130         * modules/unistr/u16-check-tests: Likewise.
57131         * modules/unistr/u16-chr-tests: Likewise.
57132         * modules/unistr/u16-cmp-tests: Likewise.
57133         * modules/unistr/u16-cmp2-tests: Likewise.
57134         * modules/unistr/u16-cpy-alloc-tests: Likewise.
57135         * modules/unistr/u16-cpy-tests: Likewise.
57136         * modules/unistr/u16-mblen-tests: Likewise.
57137         * modules/unistr/u16-mbsnlen-tests: Likewise.
57138         * modules/unistr/u16-mbtouc-tests: Likewise.
57139         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
57140         * modules/unistr/u16-mbtoucr-tests: Likewise.
57141         * modules/unistr/u16-move-tests: Likewise.
57142         * modules/unistr/u16-next-tests: Likewise.
57143         * modules/unistr/u16-prev-tests: Likewise.
57144         * modules/unistr/u16-set-tests: Likewise.
57145         * modules/unistr/u16-stpcpy-tests: Likewise.
57146         * modules/unistr/u16-stpncpy-tests: Likewise.
57147         * modules/unistr/u16-strcat-tests: Likewise.
57148         * modules/unistr/u16-strcmp-tests: Likewise.
57149         * modules/unistr/u16-strcoll-tests: Likewise.
57150         * modules/unistr/u16-strcpy-tests: Likewise.
57151         * modules/unistr/u16-strdup-tests: Likewise.
57152         * modules/unistr/u16-strlen-tests: Likewise.
57153         * modules/unistr/u16-strmblen-tests: Likewise.
57154         * modules/unistr/u16-strmbtouc-tests: Likewise.
57155         * modules/unistr/u16-strncat-tests: Likewise.
57156         * modules/unistr/u16-strncmp-tests: Likewise.
57157         * modules/unistr/u16-strncpy-tests: Likewise.
57158         * modules/unistr/u16-strnlen-tests: Likewise.
57159         * modules/unistr/u16-to-u32-tests: Likewise.
57160         * modules/unistr/u16-to-u8-tests: Likewise.
57161         * modules/unistr/u16-uctomb-tests: Likewise.
57162         * modules/unistr/u32-check-tests: Likewise.
57163         * modules/unistr/u32-chr-tests: Likewise.
57164         * modules/unistr/u32-cmp-tests: Likewise.
57165         * modules/unistr/u32-cmp2-tests: Likewise.
57166         * modules/unistr/u32-cpy-alloc-tests: Likewise.
57167         * modules/unistr/u32-cpy-tests: Likewise.
57168         * modules/unistr/u32-mblen-tests: Likewise.
57169         * modules/unistr/u32-mbsnlen-tests: Likewise.
57170         * modules/unistr/u32-mbtouc-tests: Likewise.
57171         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
57172         * modules/unistr/u32-mbtoucr-tests: Likewise.
57173         * modules/unistr/u32-move-tests: Likewise.
57174         * modules/unistr/u32-next-tests: Likewise.
57175         * modules/unistr/u32-prev-tests: Likewise.
57176         * modules/unistr/u32-set-tests: Likewise.
57177         * modules/unistr/u32-stpcpy-tests: Likewise.
57178         * modules/unistr/u32-stpncpy-tests: Likewise.
57179         * modules/unistr/u32-strcat-tests: Likewise.
57180         * modules/unistr/u32-strcmp-tests: Likewise.
57181         * modules/unistr/u32-strcoll-tests: Likewise.
57182         * modules/unistr/u32-strcpy-tests: Likewise.
57183         * modules/unistr/u32-strdup-tests: Likewise.
57184         * modules/unistr/u32-strlen-tests: Likewise.
57185         * modules/unistr/u32-strmblen-tests: Likewise.
57186         * modules/unistr/u32-strmbtouc-tests: Likewise.
57187         * modules/unistr/u32-strncat-tests: Likewise.
57188         * modules/unistr/u32-strncmp-tests: Likewise.
57189         * modules/unistr/u32-strncpy-tests: Likewise.
57190         * modules/unistr/u32-strnlen-tests: Likewise.
57191         * modules/unistr/u32-to-u16-tests: Likewise.
57192         * modules/unistr/u32-to-u8-tests: Likewise.
57193         * modules/unistr/u32-uctomb-tests: Likewise.
57194         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
57195         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
57196         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
57197         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
57198         * modules/uniwidth/u8-strwidth-tests: Likewise.
57199         * modules/uniwidth/u8-width-tests: Likewise.
57200         * modules/uniwidth/u16-strwidth-tests: Likewise.
57201         * modules/uniwidth/u16-width-tests: Likewise.
57202         * modules/uniwidth/u32-strwidth-tests: Likewise.
57203         * modules/uniwidth/u32-width-tests: Likewise.
57204         * modules/uniwidth/width-tests: Likewise.
57206 2010-05-18  Richard Jones  <rjones@redhat.com>
57208         doc: users.txt: list hivex
57209         * users.txt: Add hivex.
57211 2010-05-18  Richard Jones  <rjones@redhat.com>
57213         doc: users.txt: list febootstrap
57214         * users.txt: Add febootstrap.
57216 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
57218         bootstrap: fix an error when gnulib is not used as a git submodule
57219         * build-aux/bootstrap (gnulib_path): If its length is zero then
57220         assign "gnulib" to it.
57221         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
57223 2010-05-16  Bruno Haible  <bruno@clisp.org>
57225         Avoid autoconf warnings about AM_ICONV.
57226         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
57227         2.64.
57229 2010-05-16  Bruno Haible  <bruno@clisp.org>
57231         absolute-header: Make the macro usable in more situations.
57232         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
57233         from gl_ABSOLUTE_HEADER.
57234         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
57236 2010-05-16  James Youngman  <jay@gnu.org>
57238         doc: update users.txt
57239         * users.txt: Add CSSC.
57241 2010-05-16  Jim Meyering  <meyering@redhat.com>
57243         init.sh: fix an error in the previous change; add more comments
57244         * tests/init.sh: Compare exit code in loop against 9, not 2.
57245         Patch by Bruno Haible.
57246         Make the two tests more similar by adding an empty "then" clause.
57247         Add comments.
57249         init.sh: avoid unnecessary shell re-exec
57250         * tests/init.sh: Improve the re-exec-required check to first test the
57251         current shell.  If it passes the test, do not search for a shell that
57252         does pass, and do not re-exec.  This test is particularly contorted to
57253         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
57254         of $(...) evokes a syntax error and causes immediate shell exit with
57255         status 2.  Bruno Haible reported that the re-exec made it impossible
57256         to single-step through any init.sh-using script.
57258 2010-05-16  Bruno Haible  <bruno@clisp.org>
57260         Fix collision between gnulib's and libintl's printf replacements.
57261         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
57262         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
57263         (printf): When using GNU C, map the __printf__ function to rpl_printf
57264         via __asm__. When not using GNU C, define rpl_printf instead of
57265         __printf__.
57266         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
57267         commit.
57268         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
57269         commit.
57270         * m4/asm-underscore.m4: New file.
57271         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
57272         * modules/stdio (Files): Add m4/asm-underscore.m4.
57273         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
57274         Reported by Ben Pfaff.
57276 2010-05-16  Bruno Haible  <bruno@clisp.org>
57278         verify: Avoid skipping the test on openSUSE 11.0.
57279         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
57281 2010-05-13  Bruno Haible  <bruno@clisp.org>
57283         Avoid useless warnings from G++.
57284         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
57285         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
57286         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
57288 2010-05-11  Jim Meyering  <meyering@redhat.com>
57290         maint.mk: tweak preceding change
57291         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
57292         regexps tighter by anchoring at EOL, and make the new group "shy"
57293         for slightly decreased overhead.
57295 2010-05-11  Eric Blake  <eblake@redhat.com>
57297         maint.mk: gnulib doesn't guarantee NSIG
57298         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
57300 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
57302         test-pwrite.c: Remove unused variable declaration.
57303         * tests/test-pwrite.c (main): Remove read_buf declaration.
57305         Remove useless test-pwrite.sh file.
57306         * tests/test-pwrite.sh: Delete file.
57307         * modules/pwrite-tests: Remove references.
57308         Reported by Bruno Haible.
57310 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
57312         init.sh: fix a typo
57313         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
57315 2010-05-10  Jim Meyering  <meyering@redhat.com>
57317         maint.mk: avoid using a temporary file in the always-defined-macros check
57318         * top/maint.mk (.re-defmac): Remove rule.
57319         (gl_trap_): Remove definition.
57320         (sc_prohibit_always-defined_macros): Rewrite not to create and
57321         depend on a temporary file.  Instead, depend on GNU grep's ability
57322         to read a list of regular expressions from stdin when given "-f -".
57324 2010-05-09  Bruno Haible  <bruno@clisp.org>
57326         Update to GNU gettext 0.18, part 1.
57327         * m4/gettext.m4: Update to GNU gettext 0.18.
57328         * m4/intl.m4: Likewise.
57329         * m4/po.m4: Likewise.
57330         * modules/gettext (Files): Add m4/fcntl-o.m4.
57331         (configure.ac): Require gettext infrastructure from version 0.18.
57333 2010-05-09  Jim Meyering  <meyering@redhat.com>
57335         init.sh: enable MALLOC_PERTURB_
57336         * tests/init.sh: Enable glibc's malloc-perturbing option.
57338         maint.mk: improve sc_cross_check_PATH_usage_in_tests
57339         With my recent change in init.sh from the two-line form:
57340             -#   : ${srcdir=.}
57341             -#   . "$srcdir/init.sh"; path_prepend_ .
57342             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
57343         I noticed that using the one-line form would cause this test
57344         to fail with a false-positive, or to stop working altogether,
57345         depending on whether help-version changed or all the tests did.
57346         * top/maint.mk (_hv_regex): Remove this definition.
57347         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
57348         (_hv_regex_strong): Use a stronger regex to check for conformance.
57349         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
57350         Give a separate diagnostic for lack of conforming use.
57352         maint.mk: prohibit definition of symbols defined by gnulib
57353         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
57354         definition of symbols defined by gnulib.
57356 2010-05-09  Bruno Haible  <bruno@clisp.org>
57358         acl: Avoid test failure on Cygwin-hosted mingw.
57359         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
57361 2010-05-09  Bruno Haible  <bruno@clisp.org>
57363         error: Use system's fcntl function.
57364         * lib/error.c (fcntl): Undefine.
57366 2010-05-09  Jim Meyering  <meyering@redhat.com>
57368         verify: adjust formatting to be more consistent
57369         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
57370         argument-list '('s, and after one comma.
57372 2010-05-09  Bruno Haible  <bruno@clisp.org>
57374         error: More reliable output on mingw.
57375         * lib/error.c: Include <windows.h>.
57376         (is_open): New function.
57377         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
57378         defined.
57380 2010-05-09  Bruno Haible  <bruno@clisp.org>
57382         vasnprintf: Fix syntax errors in libintl build on mingw.
57383         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
57384         pad_ourselves and prec_ourselves after use.
57386 2010-05-08  Bruno Haible  <bruno@clisp.org>
57388         * lib/config.charset: Update comments for Cygwin 1.7.
57389         * lib/localcharset.c: Likewise.
57391 2010-05-07  Jim Meyering  <meyering@redhat.com>
57393         init.sh: improve comments
57394         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
57395         . "${srcdir=.}/init.sh"; path_prepend_ .
57396         Add a note about path_prepend_ and the alternative of using
57397         TESTS_ENVIRONMENT.
57399 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
57401         exclude: Unescape hashed patterns in wildcard mode.
57402         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
57403         to the hash list.
57404         * tests/test-exclude8.sh: New test case.
57405         * modules/exclude-tests: Add new test.
57407 2010-05-05  Eric Blake  <eblake@redhat.com>
57409         verify: automate tests
57410         * modules/verify-tests: New module.
57411         * tests/test-verify.sh: New file.
57412         * tests/test-verify.c: Guard each negative test with a unique id.
57413         Also avoid warning about unused left hand of comma expressions.
57415 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
57417         Further improvements to verify.h, suggested by Eric Blake.
57418         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
57419         the GL_* versions, to avoid collision with OpenGL.
57420         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
57421         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
57422         than testing merely whether it's defined.
57424         Modify verify.h to pacify gcc -Wredundant_decls.
57425         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
57426         These use the prefix "GL_" since they're likely to be useful elsewhere.
57427         We may need to break them out into a different .h file.
57428         (__COUNTER__): Define to 0 if the compiler doesn't support it.
57429         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
57430         of verify_function__.
57432 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
57434         Tests for module pwrite.
57435         * modules/pwrite-tests: New file.
57436         * tests/test-pwrite.sh: New file.
57437         * tests/test-pwrite.c: New file.
57439         New module pwrite.
57440         * lib/unistd.in.h (pwrite): New declaration.
57441         * lib/pwrite.c: New file, from glibc with modifications.
57442         * m4/pwrite.m4: New file.
57443         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
57444         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
57445         REPLACE_PWRITE.
57446         * modules/pwrite: New file.
57447         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
57448         REPLACE_PWRITE.
57449         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
57450         * doc/posix-functions/pwrite.texi: Mention the new module.
57452 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
57454         pread: Update documentation.
57455         * doc/posix-functions/pread.texi: Mention the 'pread' module.
57457 2010-05-04  Eric Blake  <eblake@redhat.com>
57459         docs: update cygwin progress
57460         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
57461         this bug.
57462         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
57463         Added in cygwin 1.7.2.
57464         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
57465         Likewise.
57466         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
57467         Likewise.
57468         * doc/glibc-functions/dup3.texi (dup3): Likewise.
57469         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
57470         * doc/glibc-functions/accept4.texi (accept4): Likewise.
57471         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
57472         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
57473         Mention nproc module.
57474         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
57475         bug in cygwin 1.7.5 addition.
57476         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
57477         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
57478         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
57479         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
57480         1.7.5.
57481         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
57482         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
57483         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
57484         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
57485         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
57486         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
57487         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
57488         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
57489         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
57490         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
57491         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
57492         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
57493         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
57494         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
57495         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
57496         Likewise.
57497         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
57498         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
57499         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
57500         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
57501         Likewise.
57502         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
57503         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
57504         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
57505         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
57506         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
57507         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
57508         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
57509         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
57510         Likewise.
57511         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
57512         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
57513         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
57514         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
57515         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
57516         Likewise.
57517         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
57518         Likewise.
57519         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
57520         Likewise.
57521         * doc/glibc-functions/xdrrec_endofrecord.texi
57522         (xdrrec_endofrecord): Likewise.
57523         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
57524         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
57525         Likewise.
57526         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
57527         Likewise.
57529 2010-05-04  Jim Meyering  <meyering@redhat.com>
57531         gendocs.sh: make its "-s FILE" option more useful
57532         * build-aux/gendocs.sh: When honoring the -s FILE option, update
57533         $PACKAGE to reflect the probably-different basename of "FILE".
57535 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
57537         bootstrap: don't ignore download_po_files failure
57538         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
57539         failure.
57541 2010-05-03  Jim Meyering  <meyering@redhat.com>
57543         maint.mk: allow to pass options to gendocs.sh
57544         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
57545         (gendocs_options_): New overridable variable.
57547         gnu-web-doc-update: don't ignore configure or build failure
57548         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
57550         announce-gen: backslash-escape '@'s in --help output
57551         * build-aux/announce-gen: Fix syntax errors.
57553         maint.mk, announce-gen: allow project-specific announcement mail headers
57554         * top/maint.mk (translation_project_): Define default.
57555         (announcement_Cc_, announcement_mail_headers_): Likewise.
57556         (announcement): Invoke announce-gen with new --mail-headers option.
57557         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
57559         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
57560         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
57561         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
57562         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
57563         line in the "err2" output file when running "make check" in verbose
57564         mode (i.e., with set -x enabled).
57566 2010-05-03  Bruno Haible  <bruno@clisp.org>
57568         wctob: Fix for weird platforms.
57569         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
57570         argument value.
57572 2010-05-03  Jim Meyering  <meyering@redhat.com>
57574         maint.mk: prohibit unwarranted use of <strings.h>
57575         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
57576         strings.h in a file that does not also use strcasecmp, strncasecmp,
57577         ffs or ffsll.
57579         maint.mk: remove obsolete comments
57580         * top/maint.mk: Remove stale, commented-out rules.
57582 2010-05-02  Bruno Haible  <bruno@clisp.org>
57584         wcwidth: Declare also when it's aliased.
57585         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
57586         macro.
57588 2010-05-02  Bruno Haible  <bruno@clisp.org>
57590         Fix regression from 2010-04-25.
57591         * gnulib-tool (func_modules_transitive_closure): Check the status of
57592         all modules, not only of the tests that are of the form foo-tests where
57593         foo is a module.
57595 2010-05-02  Bruno Haible  <bruno@clisp.org>
57597         wctob: Work around nasty Cygwin 1.7.2 bug.
57598         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
57599         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
57601 2010-05-01  Bruno Haible  <bruno@clisp.org>
57603         fpurge: Sharper test.
57604         * tests/test-fpurge.c (main): Add one more ftell check.
57605         * modules/fpurge-tests (Depends-on): Add ftell.
57606         Suggested by Eric Blake.
57608 2010-05-01  Bruno Haible  <bruno@clisp.org>
57610         ftello: Another test.
57611         * tests/test-ftello3.c: New file.
57612         * modules/ftello-tests (Files): Add it.
57613         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
57614         MOSTLYCLEANFILES.
57616         ftell: Another test.
57617         * tests/test-ftell3.c: New file.
57618         * modules/ftell-tests (Files): Add it.
57619         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
57620         MOSTLYCLEANFILES.
57622 2010-05-01  Bruno Haible  <bruno@clisp.org>
57624         ftell, ftello: Work around Solaris bug.
57625         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
57626         * lib/ftello.c: Include stdio-impl.h.
57627         (ftello): On Solaris, when _IOWRT is set, compute the result without
57628         looking at _IOREAD.
57629         * modules/ftello (Files): Add lib/stdio-impl.h.
57630         * doc/posix-functions/ftell.texi: Mention Solaris bug.
57631         * doc/posix-functions/ftello.texi: Likewise.
57632         Reported by Eric Blake.
57634 2010-05-01  Bruno Haible  <bruno@clisp.org>
57636         freading: Adapt to special meaning of _IOREAD flag on Solaris.
57637         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
57638         the _IOWRT flag is also set.
57640 2010-05-01  Bruno Haible  <bruno@clisp.org>
57642         Fix doc about a HP-UX stdio bug.
57643         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
57644         * doc/posix-functions/ftello.texi: Likewise.
57646 2010-05-01  Bruno Haible  <bruno@clisp.org>
57648         lseek test: Fix failure on Solaris.
57649         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
57650         output.
57652 2010-04-30  Jim Meyering  <meyering@redhat.com>
57654         bootstrap: don't ignore failure to generate po*/Makevars
57655         * build-aux/bootstrap (with_gettext): Don't ignore failure
57656         to create po/Makevars or runtime-po/Makevars.
57658 2010-04-29  Eric Blake  <eblake@redhat.com>
57660         headers: relax license to LGPLv2+
57661         * modules/fcntl-h (License): Relax license.
57662         * modules/getopt-posix (License): Likewise.
57663         * modules/locale (License): Likewise.
57664         * modules/math (License): Likewise.
57665         * modules/pty (License): Likewise.
57666         * modules/sched (License): Likewise.
57667         * modules/search (License): Likewise.
57668         * modules/spawn (License): Likewise.
57669         * modules/stdarg (License): Likewise.
57670         * modules/sysexits (License): Likewise.
57672 2010-04-29  Jim Meyering  <meyering@redhat.com>
57674         inttypes: relax license to LGPLv2+
57675         * modules/inttypes (License): Relax license.
57677 2010-04-29  Simon Josefsson  <simon@josefsson.org>
57679         * top/maint.mk (indent): Run twice to produce idempotent results.
57681 2010-04-28  Bruno Haible  <bruno@clisp.org>
57683         getdate: Generate getdate.c in the source directory.
57684         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
57685         MOSTLYCLEANFILES.
57686         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
57688 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
57690         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
57691         is not declared as a const *; avoid warnings in that case.
57693 2010-04-28  Eric Blake  <eblake@redhat.com>
57695         canonicalize-lgpl: avoid compiler warning
57696         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
57697         declaration' / 'extraneous semicolon' warning with some compilers.
57698         Reported by Andreas Gruenbacher.
57700 2010-04-28  Jim Meyering  <meyering@redhat.com>
57702         init.sh: ensure a more reliable exit status when exiting via trap
57703         * tests/init.sh (setup_): Don't rely on $? in signal handler.
57704         Inspired by patches from Dmitry V. Levin.
57705         Also trap on signal 3 (SIGQUIT).
57707 2010-04-27  Bruno Haible  <bruno@clisp.org>
57709         Update doc about utimes().
57710         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
57711         'utimens' module.
57712         Reported by Andreas Gruenbacher <agruen@suse.de>.
57714 2010-04-27  Eric Blake  <eblake@redhat.com>
57716         full-read, full-write: relax license
57717         * modules/full-read (License): Drop to LGPLv2+.
57718         * modules/full-write (License): Likewise.
57719         * modules/safe-read (License): Likewise.
57720         * modules/safe-write (License): Likewise.
57722         pthread: mention library for linking
57723         * modules/pthread (Link): Mention $(LIB_PTHREAD).
57725 2010-04-27  Jim Meyering  <meyering@redhat.com>
57727         maint.mk: fix a bug introduced in last change
57728         * top/maint.mk (gl_assured_headers_): Now that all names are on
57729         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
57730         is not anchored to end of word, it should be adequate.
57732         maint.mk: avoid side-effect in latest syntax-check
57733         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
57734         to run commands via $(shell...), and hence to incur cost only when
57735         the new rule is actually run.
57737         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
57738         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
57739         and use that to create a regexp used to detect all #if HAVE_..._H uses.
57740         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
57741         (gl_assured_headers_, az_, AZ_): Define.
57742         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
57744 2010-04-26  Jim Meyering  <jim@meyering.net>
57745             Bruno Haible  <bruno@clisp.org>
57747         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
57748         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
57749         Prompted by an exchange with Gilles Espinasse.
57751 2010-04-26  Jim Meyering  <meyering@redhat.com>
57753         git-version-gen: aesthetic tweak
57754         * build-aux/git-version-gen: Use "$nl" rather than a literal,
57755         so that the command remains on a single line.
57757 2010-04-26  Eric Blake  <eblake@redhat.com>
57759         git-version-gen: allow use on EBCDIC hosts
57760         * build-aux/git-version-gen (dirty): Use literal rather than tying
57761         ourselves to ascii.
57762         Reported by Steve Goetze.
57764 2010-04-25  Bruno Haible  <bruno@clisp.org>
57766         netdb: Add support for GNULIB_POSIXCHECK.
57767         * lib/netdb.in.h: Include warn-on-use.h.
57768         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
57769         functions are used when GNULIB_POSIXCHECK is defined and the
57770         getaddrinfo module is not in use.
57771         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
57772         freeaddrinfo, gai_strerror, getnameinfo are declared.
57773         * modules/netdb (Depends-on): Add warn-on-use.
57774         (Makefile.am): Include warn-on-use.h in netdb.h.
57776 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
57778         build: avoid "make check" failure without .git/ directory
57779         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
57780         there is no .git/ directory.
57782 2010-04-25  Bruno Haible  <bruno@clisp.org>
57784         ptsname: Fix misuse of ttyname_r.
57785         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
57786         of errno.
57788 2010-04-25  Bruno Haible  <bruno@clisp.org>
57790         ttyname_r: Make it work on Solaris 10.
57791         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
57792         if the system function has the POSIX declaration. Test whether the
57793         function fails if the buffer is less than 128 bytes large.
57794         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
57795         system's ttyname_r function. Provide a reasonably large buffer.
57796         * modules/ttyname_r (Depends-on): Add extensions.
57797         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
57799 2010-04-25  Bruno Haible  <bruno@clisp.org>
57801         Use the 'extensions' module for some more functions on Solaris.
57802         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
57803         module.
57804         * doc/posix-functions/ctime_r.texi: Likewise.
57805         * doc/posix-functions/getgrgid_r.texi: Likewise.
57806         * doc/posix-functions/getgrnam_r.texi: Likewise.
57807         * doc/posix-functions/getpwnam_r.texi: Likewise.
57808         * doc/posix-functions/getpwuid_r.texi: Likewise.
57809         * doc/posix-functions/readdir_r.texi: Likewise.
57810         * doc/posix-functions/sigwait.texi: Likewise.
57811         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
57812         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
57814 2010-04-25  Bruno Haible  <bruno@clisp.org>
57816         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
57817         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
57818         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
57819         * lib/ttyname_r.c: Include <limits.h>.
57820         (ttyname_r): Define using the system's ttyname_r function, if it exists
57821         and not on Solaris.
57822         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
57823         set.
57824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
57825         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
57826         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
57827         Reported by Simon Josefsson.
57829 2010-04-25  Bruno Haible  <bruno@clisp.org>
57831         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
57832         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
57833         * doc/posix-functions/ctime_r.texi: Likewise.
57834         * doc/posix-functions/getgrgid_r.texi: Likewise.
57835         * doc/posix-functions/getgrnam_r.texi: Likewise.
57836         * doc/posix-functions/getlogin_r.texi: Likewise.
57837         * doc/posix-functions/getpwnam_r.texi: Likewise.
57838         * doc/posix-functions/getpwuid_r.texi: Likewise.
57839         * doc/posix-functions/readdir_r.texi: Likewise.
57840         * doc/posix-functions/sigwait.texi: Likewise.
57841         * doc/posix-functions/ttyname_r.texi: Likewise.
57842         Reported by Simon Josefsson.
57844 2010-04-25  Bruno Haible  <bruno@clisp.org>
57846         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
57847         * gnulib-tool (func_usage): Document that --with-*-tests options apply
57848         also to --create-testdir.
57849         (func_acceptable): Don't consider the status of *-tests modules here.
57850         (func_modules_transitive_closure): Consider it here, before including a
57851         test module.
57852         (func_import, func_create_testdir): Set inc_all_direct_tests,
57853         inc_all_indirect_tests.
57854         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
57855         --create-testdir and --create-megatestdir.
57857 2010-04-25  Bruno Haible  <bruno@clisp.org>
57859         gnulib-tool: Add --without-*-tests options.
57860         * gnulib-tool (func_usage): Document the --without-*-tests options.
57861         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
57862         excl_unportable_tests): New variables.
57863         Fail if they are specified with --import or --update.
57864         (func_acceptable): Respect the excl_*_tests variables.
57865         (func_import): Set the excl_*_tests variables to empty.
57867 2010-04-25  Simon Josefsson  <simon@josefsson.org>
57868             Bruno Haible  <bruno@clisp.org>
57870         Work around a MacOS X 10.4 bug with openpty.
57871         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
57872         * tests/test-openpty.c (main): Close the master side explicitly.
57874 2010-04-25  Bruno Haible  <bruno@clisp.org>
57876         strnlen: Fix a C++ test error on MacOS X and Solaris.
57877         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
57878         the function is not declared.
57879         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
57880         Simon Josefsson.
57882 2010-04-24  Bruno Haible  <bruno@clisp.org>
57884         Avoid a gcc warning.
57885         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
57886         of correct type for %08lx directive.
57887         Reported by Eric Blake.
57889 2010-04-24  Bruno Haible  <bruno@clisp.org>
57891         vasnprintf: Correct errno value in case of out-of-memory.
57892         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
57893         or sprintf. Use the errno value from SNPRINTF or sprintf.
57894         Reported by Ian Beckwith <ianb@erislabs.net>.
57896 2010-04-24  Bruno Haible  <bruno@clisp.org>
57898         ansi-c++-opt: Find correct compiler when cross-compiling.
57899         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
57900         AC_CHECK_PROGS.
57901         Reported by Simon Josefsson.
57903 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
57905         vc-list-files: Add support for subversion
57906         * build-aux/vc-list-files: Use "svn list" to generate the list of
57907         files controlled by subversion.
57909 2010-04-23  Jim Meyering  <meyering@redhat.com>
57911         vc-list-files tests: convert to use init.sh
57912         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
57913         path_prepend_.
57914         Use Exit, not exit.
57915         Use skip_ rather than open coding it.
57916         Remove trap set-up and compare definitions.
57917         * tests/test-vc-list-files-git.sh: Likewise.
57918         * modules/vc-list-files-tests (Files): Add tests/init.sh.
57920 2010-04-22  Simon Josefsson  <simon@josefsson.org>
57922         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
57923         backup files.
57925 2010-04-21  Simon Josefsson  <simon@josefsson.org>
57927         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
57929 2010-04-20  Eric Blake  <eblake@redhat.com>
57931         tests: be robust to ignored SIGPIPE
57932         * tests/test-select-in.sh: Consume all output.
57933         * tests/test-lseek.sh: Check correct exit status, while avoiding
57934         EPIPE.
57936 2010-04-20  Simon Josefsson  <simon@josefsson.org>
57937             Bruno Haible  <bruno@clisp.org>
57939         visibility: Don't use -fvisibility if it leads to a warning.
57940         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
57941         yes, don't pretend that visibility works if it leads to a warning.
57942         Reported by Mike Gran <spk121@yahoo.com>.
57944 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
57946         * build-aux/bootstrap: Use "git -h" for testing for supported options
57947         instead of "git --help".  The short-form option only shows a summary,
57948         and doesn't layout the full man page.  Grep for the full option name
57949         in the summary, too.
57951 2010-04-19  Bruno Haible  <bruno@clisp.org>
57953         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
57954         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
57955         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
57956         mention of RELOCATABLE_STRIP.
57957         Reported by Sylvain Beucler <beuc@beuc.net>.
57959 2010-04-19  Bruno Haible  <bruno@clisp.org>
57961         * lib/diffseq.h: Fix typo in comment.
57962         Reported by Eric Blake.
57964 2010-04-19  Bruno Haible  <bruno@clisp.org>
57966         ioctl: Move autoconf macro to a .m4 file.
57967         * m4/ioctl.m4: New file, extracted from modules/ioctl.
57968         * modules/ioctl (Files): Add it.
57969         (configure.ac): Simply invoke gl_FUNC_IOCTL.
57970         Reported by Ian Beckwith <ianb@erislabs.net>.
57972 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
57973             Bruno Haible  <bruno@clisp.org>
57975         diffseq: Accommodate use-case with abstract arrays.
57976         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
57977         is not defined.
57978         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
57979         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
57981 2010-04-18  Bruno Haible  <bruno@clisp.org>
57983         * doc/posix-headers/stdbool.texi: More precise wording.
57985 2010-04-17  Jim Meyering  <meyering@redhat.com>
57987         maint.mk: use gnu-style indentation in an embedded perl script
57988         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
57989         Rename variable: s/two/last_two_bytes/
57991 2010-04-16  Eric Blake  <eblake@redhat.com>
57993         test-stdbool: skip test that fails with Solaris CC
57994         * tests/test-stdbool.c (f): Skip test that causes compilation
57995         error under buggy C++ compiler.
57996         * lib/stdbool.in.h: Document the limitation.
57997         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
57999         setenv: allow compilation with C++
58000         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
58001         register keyword.
58003         stdint: allow test to pass with C++
58004         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
58006         getopt: allow compilation with C++
58007         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
58008         struct.
58009         * lib/getopt.c (_getopt_internal_r): Use correct type.
58010         Reported by Dagobert Michelson, via Joel E. Denny.
58012 2010-04-16  Bruno Haible  <bruno@clisp.org>
58014         Override netdb.h always.
58015         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
58016         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
58017         Reported by Ludovic Courtès <ludo@gnu.org>.
58019 2010-04-15  Bruno Haible  <bruno@clisp.org>
58021         openpty: Fix mistake from 2010-03-21.
58022         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
58023         Reported by Simon Josefsson.
58025 2010-04-15  Eric Blake  <eblake@redhat.com>
58027         test-forkpty: fix expected signature
58028         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
58029         Reported by Simon Josefsson.
58031 2010-04-15  Jim Meyering  <meyering@redhat.com>
58033         maint.mk: texinfo_suffix_re_: correct the default regexp
58034         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
58036         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
58037         make it configurable via texinfo_suffix_re_.
58039 2010-04-14  Eric Blake  <eblake@redhat.com>
58041         strtok_r: relax license to LGPLv2+
58042         * modules/strtok_r (License): Relax license.
58043         Reported by Matthias Bolte.
58045 2010-04-14  Simon Josefsson  <simon@josefsson.org>
58047         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
58048         version 1.4.4 by default instead of requiring the libgcrypt
58049         version used during build.  This makes it possible to use the
58050         application with older but still binary compatible libgcrypt
58051         versions.
58053 2010-04-13  Eric Blake  <eblake@redhat.com>
58055         getopt-gnu: match recent glibc fixes and posix ruling
58056         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
58057         '+' handling, when requesting extensions.
58058         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
58059         'W;' handling.
58060         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
58061         * doc/posix-functions/getopt.texi (getopt): Document this.
58062         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
58063         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
58064         Likewise.
58066         getopt: merge bug fixes from glibc
58067         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
58068         diagnostics.  Honor '+:' correctly.  Reject ';'.
58070         getopt-posix: detect MacOS bug
58071         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
58072         optind when missing a required argument.
58073         * doc/posix-functions/getopt.texi (getopt): Document the bug.
58074         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
58075         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
58076         Likewise.
58078         getopt-posix: avoid spurious failure on Solaris
58079         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
58080         an indicator that setting optind=1 is sufficient for reset.
58082         getopt-posix: avoid spurious failure on FreeBSD
58083         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
58084         in POSIX mode, since the m4 test uses it.
58086         gnulib-tool: silence warning on BSD sh
58087         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
58089 2010-04-13  Jim Meyering  <meyering@redhat.com>
58091         doc: users.txt: GNU patch now uses gnulib
58092         * users.txt: Add patch.
58094 2010-04-12  Jim Meyering  <meyering@redhat.com>
58096         maint.mk: generate more concise timing data for syntax-check rules
58097         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
58098         " done" from each line that reports a syntax-check test duration.
58100 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
58102         git-version-gen: use "git update-index..." rather than "git status"
58103         * build-aux/git-version-gen: Use git update-index --refresh, not
58104         "git status".  With some versions of git, "git status" would fail
58105         to update the index and result in an unwarranted "-dirty" suffix.
58107 2010-04-11  Jim Meyering  <meyering@redhat.com>
58109         openat: correct formatting (no semantic change)
58110         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
58111         Suggested by Bruno Haible.
58113 2010-04-11  Bruno Haible  <bruno@clisp.org>
58115         Stricter declaration checking in testdirs.
58116         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58117         If for_tests is true, augment AM_CPPFLAGS to define
58118         GNULIB_STRICT_CHECKING.
58119         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
58120         GNULIB_STRICT_CHECKING is defined, verify that the function is
58121         declared.
58123 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
58124             Bruno Haible  <bruno@clisp.org>
58126         libunistring: Improve configure output.
58127         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
58128         Don't say "consider installing GNU libunistring" when checking again
58129         with libiconv.
58131 2010-04-11  Bruno Haible  <bruno@clisp.org>
58133         libunistring: Correct value of $LTLIBUNISTRING.
58134         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
58135         correct the value of $LTLIBUNISTRING.
58137 2010-04-11  Bruno Haible  <bruno@clisp.org>
58139         havelib: Add static libraries to LIBS in the right order.
58140         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
58141         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
58143 2010-04-11  Bruno Haible  <bruno@clisp.org>
58145         libunistring: Detect libunistring also when it depends on libiconv.
58146         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
58147         the second AC_LIB_HAVE_LINKFLAGS invocation.
58149 2010-04-11  James Youngman  <jay@gnu.org>
58151         close-stream: declare local scalars to be "const"
58152         * lib/close-stream.c (close_stream): Make boolean variables const
58153         to document the fact that we set but do not change them.
58155 2010-04-11  Bruno Haible  <bruno@clisp.org>
58157         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
58159 2010-04-11  Jim Meyering  <meyering@redhat.com>
58161         maint.mk: don't include dist-check.mk
58162         * top/maint.mk: Remove bogus include directive.
58164         maint.mk: improve empty-line-at-EOF check
58165         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
58166         solution, rather than tail+Perl-based one.  The latter would read
58167         a few kilobytes from the end of each file, and did not handle empty
58168         files properly.
58170         maint.mk: print the elapsed time for each syntax-check rule
58171         * top/maint.mk (sc_m_rules_): Save start time in a file.
58172         (sc_z_rules_): New rules: remove temp file and print elapsed time.
58173         (local-check): Interpose the .z rules
58175 2010-04-11  Jim Meyering  <meyering@redhat.com>
58177         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
58178         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
58179         empty file with one that ends in an empty line.
58181 2010-04-10  Bruno Haible  <bruno@clisp.org>
58183         mkdir: Make it work on mingw64.
58184         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
58185         * lib/mkdir.c: Update comment.
58186         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
58188 2010-04-10  Bruno Haible  <bruno@clisp.org>
58190         Don't override improved macro from newer autoconf.
58191         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
58192         autoconf >= 2.62.
58193         Reported by Joel E. Denny <jdenny@clemson.edu>.
58195 2010-04-10  Jim Meyering  <meyering@redhat.com>
58197         maint.mk: new syntax-check rule: prohibit empty lines at end of file
58198         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
58200         maint.mk: correct a diagnostic
58201         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
58202         in diagnostic; now use $prohibit.
58204 2010-04-10  Bruno Haible  <address@hidden>
58206         fchownat: Fix a C++ test error on Solaris 8.
58207         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
58208         the function does not exist.
58210 2010-04-10  Bruno Haible  <bruno@clisp.org>
58212         vasnprintf: Add more tests.
58213         * tests/test-vasnprintf-posix.c: Include <errno.h>.
58214         (test_function): Test converting an invalid wide string.
58216         vasnprintf: Correct handling of unconvertible wide string arguments.
58217         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
58218         VASNPRINTF.
58219         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
58220         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
58221         smaller than the expected maximum need for the directive. Set errno to
58222         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
58223         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
58224         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
58225         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
58226         * modules/vasnprintf (Files): Add m4/printf.m4.
58227         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
58229 2010-04-10  Bruno Haible  <bruno@clisp.org>
58231         vasnprintf: Fix crash in %ls directive.
58232         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
58233         string is passed as argument to %ls, with no precision and no width.
58234         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
58236 2010-04-10  Bruno Haible  <bruno@clisp.org>
58238         vasnprintf: Fix multiple test failures on mingw.
58239         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
58240         _snprintf, or snwprintf, not _snwprintf.
58242 2010-04-10  Bruno Haible  <bruno@clisp.org>
58244         write: Fix a C++ test error on mingw.
58245         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
58247 2010-04-10  Bruno Haible  <bruno@clisp.org>
58249         vasnprintf test: Reduce code duplication.
58250         * tests/test-vasnprintf.c (test_function): New function, extracted from
58251         test_vasnprintf.
58252         (test_vasnprintf, test_asnprintf): Invoke it.
58254 2010-04-10  Bruno Haible  <bruno@clisp.org>
58256         strnlen: Fix warning in C++ mode on MacOS X.
58257         * lib/string.in.h (strnlen): Use the modern idiom.
58258         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
58259         defining strnlen as a macro already in <config.h>.
58260         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58261         REPLACE_STRNLEN.
58262         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
58263         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
58265 2010-04-08  James Youngman  <jay@gnu.org>
58267         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
58268         the example.
58270 2010-04-09  Jim Meyering  <meyering@redhat.com>
58272         maint.mk: print better diagnostic when there is no $(_hv_file)
58273         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
58274         announce that when $(_hv_file) (aka help-version) does not exist.
58276         init.sh: run tr in the "C" locale to avoid multibyte interpretation
58277         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
58278         not try to interpret its random input bytes.  Jarno Rajahalme reported
58279         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
58280         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
58281         (mktempd_): Likewise, just in case.
58283         ftruncate: add two years to projected module removal date: 2012
58284         * m4/ftruncate.m4: Adjust comments.
58286         ftruncate: mark module as obsolete; even MinGW provides it, now
58287         * modules/ftruncate (Status): Obsolete.
58288         (Notice): Say that.
58289         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
58290         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
58292 2010-04-08  Bruno Haible  <bruno@clisp.org>
58294         Fix side effects from tests-related modules.
58295         * modules/dprintf-posix (Comment): New section.
58296         * modules/fprintf-posix (Comment): Likewise.
58297         * modules/obstack-printf-posix (Comment): Likewise.
58298         * modules/printf-posix (Comment): Likewise.
58299         * modules/snprintf-posix (Comment): Likewise.
58300         * modules/sprintf-posix (Comment): Likewise.
58301         * modules/vasnprintf-posix (Comment): Likewise.
58302         * modules/vasprintf-posix (Comment): Likewise.
58303         * modules/vdprintf-posix (Comment): Likewise.
58304         * modules/vfprintf-posix (Comment): Likewise.
58305         * modules/vprintf-posix (Comment): Likewise.
58306         * modules/vsnprintf-posix (Comment): Likewise.
58307         * modules/vsprintf-posix (Comment): Likewise.
58308         * modules/xprintf-posix (Comment): Likewise.
58309         * modules/xvasprintf-posix (Comment): Likewise.
58310         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
58311         * modules/floorf-tests (Depends-on): Likewise.
58312         * modules/round-tests (Depends-on): Likewise.
58313         * modules/roundf-tests (Depends-on): Likewise.
58314         * modules/trunc-tests (Depends-on): Likewise.
58315         * modules/truncf-tests (Depends-on): Likewise.
58316         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
58317         'fprintf-posix' module is not present.
58318         * tests/test-floorf2.c (check): Likewise.
58319         * tests/test-trunc2.c (check): Likewise.
58320         * tests/test-truncf2.c (check): Likewise.
58321         * tests/test-round2.c (equal): Likewise.
58322         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
58324 2010-04-07  Karl Berry  <karl@gnu.org>
58326         * config/srclist.txt,
58327         * config/srclistvars.sh,
58328         * config/srclist-update: doc fixes.
58330 2010-04-07  Jim Meyering  <meyering@redhat.com>
58332         maint.mk: add a PATH crosschecking syntax-check rule
58333         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
58334         Useful if you use a test like the one in help-version (coreutils,
58335         diffutils, grep, gzip) that ensures $(VERSION) matches what is
58336         printed by prog --version.
58338 2010-04-06  Bruno Haible  <bruno@clisp.org>
58340         Fix link error on mingw.
58341         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
58342         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
58344 2010-04-06  Bruno Haible  <bruno@clisp.org>
58346         Assume rmdir exists.
58347         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
58349 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
58351         doc: update users.txt
58352         * users.txt: Add gcal.
58354 2010-04-06  Jim Meyering  <meyering@redhat.com>
58356         init.sh: simply unset TMPDIR rather than risking env -i
58357         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
58358         although it probably works fine on all Unix-based systems, some
58359         systems (Cygwin?) cannot tolerate a totally cleared environment.
58360         Suggestion from Eric Blake.
58362 2010-04-06  Jim Meyering  <meyering@redhat.com>
58364         init.sh: portability fix: use env's POSIX-specified -i option not -u
58365         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
58366         than unportable env -u.  Solaris 5.11's env lacks support for -u.
58368 2010-04-05  Bruno Haible  <bruno@clisp.org>
58370         btowc: Work around Cygwin 1.7.2 bug.
58371         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
58372         does not map NUL to 0.
58373         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
58375 2010-04-05  Bruno Haible  <bruno@clisp.org>
58377         Make the multithread modules work on Cygwin 1.7.2.
58378         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
58379         imported symbols can be declared weak, so that it returns "no" on
58380         Cygwin 1.7.2.
58382 2010-04-05  Bruno Haible  <bruno@clisp.org>
58384         Use the module 'strncat'.
58385         * modules/unistr/u8-strncat (Depends-on): Add strncat.
58387         Tests for module 'strncat'.
58388         * modules/strncat-tests: New file.
58389         * tests/test-strncat.c: New file.
58391         New module 'strncat'.
58392         * lib/string.in.h (strncat): New declaration.
58393         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
58394         * m4/strncat.m4: New file, based on m4/memchr.m4.
58395         * modules/strncat: New file.
58396         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
58397         is declared.
58398         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
58399         REPLACE_STRNCAT.
58400         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
58401         REPLACE_STRNCAT.
58402         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
58403         module.
58404         * tests/test-string-c++.cc: Check signature of strncat.
58406 2010-04-05  Jim Meyering  <meyering@redhat.com>
58408         xstrtoumax-tests: convert to use init.sh
58409         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
58410         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
58411         Use Exit, not exit.
58412         Remove uses of $EXEEXT and "./" to run a program in the current dir.
58414         xstrtoimax-tests: convert to use init.sh
58415         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
58416         * tests/test-xstrtoimax.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 2010-04-05  Bruno Haible  <bruno@clisp.org>
58422         sys_socket: Avoid #define replacements in C++ mode.
58423         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
58424         warning to the function if possible, rather than #defining the symbol
58425         to a dysfunctional alias.
58427 2010-04-05  Bruno Haible  <bruno@clisp.org>
58429         fseeko: Fix C++ test error on mingw.
58430         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
58431         gl_FUNC_FSEEKO.
58432         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
58433         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
58434         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
58435         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
58437 2010-04-05  Bruno Haible  <bruno@clisp.org>
58439         duplocale: Improve test output.
58440         * tests/test-duplocale.c (main): Print reason for skipped test.
58442 2010-04-05  Bruno Haible  <bruno@clisp.org>
58444         Assume rmdir exists.
58445         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
58446         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
58448 2010-04-05  Bruno Haible  <bruno@clisp.org>
58450         Fix link error on Solaris 8 with cc.
58451         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
58453 2010-04-05  Bruno Haible  <bruno@clisp.org>
58455         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
58456         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
58458 2010-04-05  Bruno Haible  <bruno@clisp.org>
58460         vasprintf: Update documentation.
58461         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
58463 2010-04-05  Bruno Haible  <bruno@clisp.org>
58465         ptsname: Improve test.
58466         * tests/test-ptsname.c (main): Also try the various master names of BSD
58467         systems.
58469 2010-04-05  Bruno Haible  <bruno@clisp.org>
58471         memchr: Avoid a possible C++ test error.
58472         * lib/string.in.h (memchr): Provide declaration if function is missing.
58473         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
58474         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
58475         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
58476         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
58478 2010-04-05  Bruno Haible  <bruno@clisp.org>
58480         strtok_r: Improve idiom.
58481         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
58482         AC_LIBOBJ is used.
58484 2010-04-05  Bruno Haible  <bruno@clisp.org>
58486         strdup: Improve idiom.
58487         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
58488         AC_LIBOBJ is used.
58489         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
58490         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
58491         when AC_LIBOBJ is used.
58493 2010-04-05  Bruno Haible  <bruno@clisp.org>
58495         mbsinit, mbrtowc, wcrtomb: Improve idioms.
58496         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
58497         don't set REPLACE_MBSINIT to 1.
58498         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
58499         don't set REPLACE_MBRTOWC to 1.
58500         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
58501         exist, don't set REPLACE_MBSRTOWCS to 1.
58502         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
58503         exist, don't set REPLACE_MBSNRTOWCS to 1.
58504         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
58505         don't set REPLACE_WCRTOMB to 1.
58506         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
58507         exist, don't set REPLACE_WCSRTOMBS to 1.
58508         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
58509         exist, don't set REPLACE_WCSNRTOMBS to 1.
58511 2010-04-05  Bruno Haible  <bruno@clisp.org>
58513         ldexpl: Improve idiom.
58514         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
58515         make sure to set HAVE_DECL_LDEXPL to 0.
58517 2010-04-05  Jim Meyering  <meyering@redhat.com>
58519         xstrtol-tests: convert to use init.sh
58520         * modules/xstrtol-tests (Files): Add tests/init.sh.
58521         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
58522         Use Exit, not exit.
58523         Remove uses of $EXEEXT and "./" to run a program in the current dir.
58525         atexit-tests: convert to use init.sh
58526         * modules/atexit-tests (Files): Add tests/init.sh.
58527         * tests/test-atexit.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         init.sh: fix typo
58532         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
58534         init.sh: make it easier for a test script to write to the tty, ...
58535         when using automake's parallel-tests mode.
58536         * tests/init.sh (stderr_fileno_): Define overridable variable.
58537         (warn_): New function, to use it.
58538         (fail_, skip_, framework_failure_): Use warn_.
58540 2010-04-04  Bruno Haible  <bruno@clisp.org>
58542         btowc: Avoid warning.
58543         * lib/btowc.c: Include <stdlib.h>.
58544         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
58546 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
58547             Bruno Haible  <bruno@clisp.org>
58549         wchar: Port to NetBSD 1.5.
58550         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
58551         * lib/wctype.in.h (WEOF): Likewise.
58553 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
58554             Bruno Haible  <bruno@clisp.org>
58556         Port extended stdio to NetBSD 1.5.
58557         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
58558         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
58559         older.
58561 2010-04-04  Bruno Haible  <bruno@clisp.org>
58563         string: Remove unused substitution.
58564         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
58565         HAVE_DECL_STRERROR.
58566         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
58568 2010-04-04  Bruno Haible  <bruno@clisp.org>
58570         strtod: Avoid a possible C++ test error.
58571         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
58572         set REPLACE_STRTOD.
58574 2010-04-04  Bruno Haible  <bruno@clisp.org>
58576         strerror: Update documentation.
58577         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
58579 2010-04-04  Bruno Haible  <bruno@clisp.org>
58581         stdio: Fix some C++ test errors on Solaris 8 with GCC.
58582         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
58583         _GL_CXXALIAS_SYS_CAST.
58585 2010-04-04  Bruno Haible  <bruno@clisp.org>
58587         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
58588         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
58589         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
58590         REPLACE_FREXPL to 1.
58591         * doc/posix-functions/frexpl.texi: Update documentation.
58593 2010-04-04  Bruno Haible  <bruno@clisp.org>
58595         math: Fix some C++ test errors on Solaris 8 and Cygwin.
58596         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
58598 2010-04-04  Bruno Haible  <bruno@clisp.org>
58600         Implement nanosleep for native Windows.
58601         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
58603 2010-04-04  Bruno Haible  <bruno@clisp.org>
58605         math: Fix some C++ test errors on Solaris 8.
58606         * lib/math.in.h (truncf, trunc): Use simpler idiom.
58608 2010-04-04  Bruno Haible  <bruno@clisp.org>
58610         math: Fix some C++ test errors on Cygwin.
58611         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
58612         truncl): Provide declaration if the system does not have it.
58613         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
58614         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
58615         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
58616         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
58617         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
58618         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
58619         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
58620         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
58621         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
58622         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
58623         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
58624         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
58625         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
58626         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
58627         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
58628         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
58629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
58630         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
58631         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
58632         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
58633         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
58634         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
58636 2010-04-04  Bruno Haible  <bruno@clisp.org>
58638         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
58639         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
58640         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
58641         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
58642         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
58643         * m4/isinf.m4 (gl_ISINF): Likewise.
58644         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
58646 2010-04-04  Bruno Haible  <bruno@clisp.org>
58648         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
58649         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
58651 2010-04-04  Bruno Haible  <bruno@clisp.org>
58653         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
58654         * modules/tmpfile (configure.ac): Update.
58656         tmpfile: Fix C++ test error on mingw.
58657         * lib/stdio.in.h (tmpfile): New declaration.
58658         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
58659         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
58660         * modules/tmpfile (Depends-on): Add stdio.
58661         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58662         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
58663         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
58664         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
58665         REPLACE_TMPFILE.
58666         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
58668 2010-04-04  Bruno Haible  <bruno@clisp.org>
58670         ioctl: Fix C++ test error on mingw.
58671         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
58672         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
58673         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
58675 2010-04-03  Bruno Haible  <bruno@clisp.org>
58677         wcwidth: Fix C++ test error on mingw.
58678         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
58679         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
58680         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
58682 2010-04-03  Bruno Haible  <bruno@clisp.org>
58684         nanosleep: Fix C++ test error on mingw.
58685         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
58686         * lib/time.in.h (nanosleep): Use modern idiom.
58687         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
58688         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
58689         REPLACE_NANOSLEEP to 1.
58690         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
58691         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
58693 2010-04-03  Bruno Haible  <bruno@clisp.org>
58695         strptime: Fix C++ test error on mingw.
58696         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
58697         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
58698         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
58699         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
58700         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
58701         not REPLACE_STRPTIME.
58702         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
58703         REPLACE_STRPTIME.
58705 2010-04-03  Bruno Haible  <bruno@clisp.org>
58707         timegm: Fix C++ test error on mingw.
58708         * lib/time.in.h (timegm): Use modern idiom.
58709         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
58710         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
58711         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
58712         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
58714 2010-04-03  Bruno Haible  <bruno@clisp.org>
58716         timegm: Assume declaration if function exists.
58717         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
58718         if it exists. Don't clobber ac_cv_func_timegm.
58720 2010-04-03  Bruno Haible  <bruno@clisp.org>
58722         time_r: Fix C++ test error on mingw.
58723         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
58724         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
58725         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
58726         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
58727         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
58729 2010-04-03  Bruno Haible  <bruno@clisp.org>
58731         time_r: Minor updates.
58732         * modules/time_r (Description): Mention the provided functions.
58733         * lib/time_r.c: Don't include <string.h>.
58734         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
58735         * doc/posix-functions/localtime_r.texi: Likewise.
58737 2010-04-03  Bruno Haible  <bruno@clisp.org>
58739         time: Fix regression introduced on 2010-03-08.
58740         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
58741         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
58743 2010-04-03  Jim Meyering  <meyering@redhat.com>
58745         maint.mk: don't silently disable project-specific syntax-check rules
58746         * top/maint.mk (_prohibit_regexp): Define, to help people realize
58747         that they need to convert their project-specific syntax-check rules
58748         to use the new _sc_search_regexp.
58750 2010-04-03  Bruno Haible  <bruno@clisp.org>
58752         fchdir: Fix regression introduced on 2010-03-08.
58753         * lib/unistd.in.h (fchdir): Fix declaration.
58754         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
58755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
58756         REPLACE_FCHDIR.
58757         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
58758         REPLACE_FCHDIR.
58760 2010-04-03  Bruno Haible  <bruno@clisp.org>
58762         getpagesize: Fix C++ test error on mingw.
58763         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
58764         system does not declare the function.
58765         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
58766         declared.
58767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58768         HAVE_DECL_GETPAGESIZE.
58769         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
58771 2010-04-03  Bruno Haible  <bruno@clisp.org>
58773         stdio: Make C++ tests work on mingw.
58774         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
58775         does not declare the function.
58777 2010-04-03  Bruno Haible  <bruno@clisp.org>
58779         ftello: Fix C++ test error on mingw.
58780         * lib/stdio.in.h (ftello): Use modern idiom.
58781         * lib/ftello.c (ftello): Renamed from rpl_ftello.
58782         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
58783         is missing and that it needs to be replaced.
58784         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
58785         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
58786         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
58788 2010-04-03  Bruno Haible  <bruno@clisp.org>
58790         fseeko: Fix C++ test error on mingw.
58791         * lib/stdio.in.h (fseeko): Use modern idiom.
58792         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
58793         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
58794         is missing and that it needs to be replaced.
58795         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
58796         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
58797         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
58799 2010-04-03  Bruno Haible  <bruno@clisp.org>
58801         mkstemp: Fix C++ test error on mingw.
58802         * lib/stdlib.in.h (mkstemp): Use modern idiom.
58803         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
58804         function is missing and that it needs to be replaced.
58805         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
58806         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
58808 2010-04-03  Bruno Haible  <bruno@clisp.org>
58810         stpncpy: Fix C++ test error on mingw.
58811         * lib/string.in.h (stpncpy): Use modern idiom.
58812         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
58813         function is missing and that it needs to be replaced.
58814         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58815         REPLACE_STPNCPY.
58816         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
58818 2010-04-03  Bruno Haible  <bruno@clisp.org>
58820         sys_stat: Fix C++ test error on mingw.
58821         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
58822         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
58824 2010-04-03  Bruno Haible  <bruno@clisp.org>
58826         pty: Update doc.
58827         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
58829 2010-04-03  Bruno Haible  <bruno@clisp.org>
58831         unistd: Fix C++ test error on mingw.
58832         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
58834 2010-04-03  Bruno Haible  <bruno@clisp.org>
58836         Update doc regarding mingw.
58837         * doc/glibc-functions/openpty.texi: Update regarding mingw.
58838         * doc/glibc-functions/login_tty.texi: Likewise.
58839         * doc/glibc-functions/forkpty.texi: Likewise.
58841 2010-04-03  Bruno Haible  <bruno@clisp.org>
58843         stdlib: Avoid compilation failure of c-strtold on mingw.
58844         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
58846 2010-04-03  Bruno Haible  <bruno@clisp.org>
58848         locale: Make C++ tests work on Cygwin and mingw.
58849         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
58850         cannot provide the function.
58851         Reported by Simon Josefsson.
58853 2010-04-03  Bruno Haible  <bruno@clisp.org>
58855         localename: Port to MacOS X 10.6.
58856         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
58857         memory layout of the locales in MacOS X 10.6 as well.
58858         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
58860 2010-04-02  Bruno Haible  <bruno@clisp.org>
58862         gnulib-tool: Ensure that long-running tests are executed last.
58863         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
58864         running tests after the one for the other tests.
58866 2010-04-02  Bruno Haible  <bruno@clisp.org>
58868         gnulib-tool: Ensure the tests in the main directory are executed first.
58869         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
58870         start with the current directory.
58872 2010-04-02  Bruno Haible  <bruno@clisp.org>
58874         Tests for module 'havelib', moved here from GNU gettext.
58875         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
58876         modifications.
58877         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
58878         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
58879         with modifications.
58880         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
58881         modifications.
58882         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
58883         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
58884         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
58885         with modifications.
58886         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
58887         with modifications.
58888         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
58889         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
58890         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
58891         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
58892         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
58893         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
58894         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
58895         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
58896         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
58897         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
58898         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
58899         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
58900         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
58901         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
58902         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
58903         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
58904         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
58905         with modifications.
58906         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
58907         with modifications.
58908         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
58909         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
58910         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
58911         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
58912         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
58913         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
58914         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
58915         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
58916         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
58917         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
58918         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
58919         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
58920         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
58921         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
58922         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
58923         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
58924         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
58925         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
58926         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
58927         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
58928         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
58929         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
58930         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
58931         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
58932         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
58933         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
58934         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
58935         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
58936         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
58937         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
58938         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
58939         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
58940         * tests/havelib/rpathx/rpathx.c: New file, from
58941         gettext/autoconf-lib-link.
58942         * tests/havelib/rpathx/Makefile.am: New file, from
58943         gettext/autoconf-lib-link.
58944         * tests/havelib/rpathx/configure.ac: New file, from
58945         gettext/autoconf-lib-link with modifications.
58946         * tests/havelib/rpathy/rpathy.c: New file, from
58947         gettext/autoconf-lib-link.
58948         * tests/havelib/rpathy/Makefile.am: New file, from
58949         gettext/autoconf-lib-link.
58950         * tests/havelib/rpathy/configure.ac: New file, from
58951         gettext/autoconf-lib-link with modifications.
58952         * tests/havelib/rpathz/rpathz.c: New file, from
58953         gettext/autoconf-lib-link.
58954         * tests/havelib/rpathz/Makefile.am: New file, from
58955         gettext/autoconf-lib-link.
58956         * tests/havelib/rpathz/configure.ac: New file, from
58957         gettext/autoconf-lib-link with modifications.
58958         * tests/havelib/rpathlx/usex.c: New file, from
58959         gettext/autoconf-lib-link.
58960         * tests/havelib/rpathlx/Makefile.am: New file, from
58961         gettext/autoconf-lib-link.
58962         * tests/havelib/rpathlx/configure.ac: New file, from
58963         gettext/autoconf-lib-link with modifications.
58964         * tests/havelib/rpathly/usey.c: New file, from
58965         gettext/autoconf-lib-link.
58966         * tests/havelib/rpathly/Makefile.am: New file, from
58967         gettext/autoconf-lib-link.
58968         * tests/havelib/rpathly/configure.ac: New file, from
58969         gettext/autoconf-lib-link with modifications.
58970         * tests/havelib/rpathlz/usez.c: New file, from
58971         gettext/autoconf-lib-link.
58972         * tests/havelib/rpathlz/Makefile.am: New file, from
58973         gettext/autoconf-lib-link.
58974         * tests/havelib/rpathlz/configure.ac: New file, from
58975         gettext/autoconf-lib-link with modifications.
58976         * tests/havelib/rpathlyx/usey.c: New file, from
58977         gettext/autoconf-lib-link.
58978         * tests/havelib/rpathlyx/Makefile.am: New file, from
58979         gettext/autoconf-lib-link.
58980         * tests/havelib/rpathlyx/configure.ac: New file, from
58981         gettext/autoconf-lib-link with modifications.
58982         * tests/havelib/rpathlzyx/usez.c: New file, from
58983         gettext/autoconf-lib-link.
58984         * tests/havelib/rpathlzyx/Makefile.am: New file, from
58985         gettext/autoconf-lib-link.
58986         * tests/havelib/rpathlzyx/configure.ac: New file, from
58987         gettext/autoconf-lib-link with modifications.
58988         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
58989         with modifications.
58991 2010-04-02  Bruno Haible  <bruno@clisp.org>
58993         gnulib-tool: Create distributed built sources also for the tests.
58994         * gnulib-tool (func_create_testdir): Also generate distributed built
58995         sources in the tests directory.
58997 2010-04-02  Bruno Haible  <bruno@clisp.org>
58999         gnulib-tool: Obey user's environment variables.
59000         * gnulib-tool (func_create_testdir): When creating built sources,
59001         respect the environment variables for autoconf, automake, etc. given by
59002         the user.
59004 2010-04-02  Bruno Haible  <bruno@clisp.org>
59006         gnulib-tool: Provide the value of --m4-base to modules.
59007         * gnulib-tool (func_import, func_create_testdir): Emit a definition
59008         of gl_m4_base.
59010 2010-04-02  Eric Blake  <eblake@redhat.com>
59012         maint.mk: fix some fallout
59013         * NEWS: Document the incompatible change, and its effect on cfg.mk.
59014         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
59016 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
59018         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
59019         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
59020         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
59021         (sc_cast_of_x_alloc_return_value): Likewise.
59022         (sc_cast_of_alloca_return_value): Likewise.
59023         (sc_space_tab): Likewise.
59024         (sc_prohibit_atoi_atof): Likewise.
59025         (sc_prohibit_magic_number_exit): Likewise.
59026         (sc_error_exit_success): Likewise.
59027         (sc_file_system): Likewise.
59028         (sc_prohibit_have_config_h): Likewise.
59029         (sc_require_config_h): Likewise.
59030         (sc_prohibit_HAVE_MBRTOWC): Likewise.
59031         (sc_obsolete_symbols): Likewise.
59032         (sc_changelog): Likewise.
59033         (sc_program_name): Likewise.
59034         (sc_the_the): Likewise.
59035         (sc_trailing_blank): Likewise.
59036         (sc_two_space_separator_in_usage): Likewise.
59037         (sc_useless_cpp_parens): Likewise.
59038         (sc_GPL_version): Likewise.
59039         (sc_GFDL_version): Likewise.
59040         (sc_texinfo_acronym): Likewise.
59041         (sc_prohibit_cvs_keyword): Likewise.
59042         (sc_prohibit_stat_st_blocks): Likewise.
59043         (sc_prohibit_S_IS_definition): Likewise.
59044         (sc_redundant_const): Likewise.
59045         (sc_makefile_TAB_only_indentation): Likewise.
59046         (sc_m4_quote_check): Likewise.
59047         (sc_makefile_path_separator_check): Likewise.
59048         (sc_copyright_check): Likewise.
59049         (sc_Wundef_boolean): Likewise.
59050         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
59052         maint.mk: match 0 or more whitespace-before-function-call '('
59053         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
59054         that have zero or two-and-more spaces between the function name
59055         and the open parenthesis.
59056         (sc_error_message_warn_fatal): Likewise.
59057         (sc_error_message_uppercase): Likewise.
59058         (sc_error_message_period): Likewise.
59060 2010-03-31  Eric Blake  <eblake@redhat.com>
59062         maint.mk: check for [ as well as test
59063         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
59064         Based on a libvirt report by Matthias Bolte.
59066         gnumakefile: don't squelch _version output
59067         * top/GNUmakefile (_version): Create one-shot dependency rather
59068         than using $(shell) when version must be regenerated.
59069         (_autoreconf): Run verbosely, by default.
59071         sys_time: avoid compiler warnings
59072         * lib/sys_time.in.h (includes): Ensure gcc pragma is
59073         unconditional, fixing regression from 2010-03-29.
59074         Reported by Simon Josefsson.
59076 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
59078         maint.mk: s/_header_without_use/_sc_header_without_use/
59079         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
59080         (sc_prohibit_assert_without_use): Use the new name.
59081         (sc_prohibit_close_stream_without_use): Likewise.
59082         (sc_prohibit_getopt_without_use): Likewise.
59083         (sc_prohibit_quotearg_without_use): Likewise.
59084         (sc_prohibit_quote_without_use): Likewise.
59085         (sc_prohibit_long_options_without_use): Likewise.
59086         (sc_prohibit_inttostr_without_use): Likewise.
59087         (sc_prohibit_ignore_value_without_use): Likewise.
59088         (sc_prohibit_error_without_use): Likewise.
59089         (sc_prohibit_xalloc_without_use): Likewise.
59090         (sc_prohibit_hash_without_use): Likewise.
59091         (sc_prohibit_hash_pjw_without_use): Likewise.
59092         (sc_prohibit_safe_read_without_use): Likewise.
59093         (sc_prohibit_argmatch_without_use): Likewise.
59094         (sc_prohibit_canonicalize_without_use): Likewise.
59095         (sc_prohibit_root_dev_ino_without_use): Likewise.
59096         (sc_prohibit_openat_without_use): Likewise.
59097         (sc_prohibit_c_ctype_without_use): Likewise.
59098         (sc_prohibit_signal_without_use): Likewise.
59099         (sc_prohibit_intprops_without_use): Likewise.
59101 2010-03-30  Eric Blake  <eblake@redhat.com>
59103         maint: improve module indicators
59104         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
59105         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
59106         columns, and avoid extra macro expansion.
59108         fdopendir: work around FreeBSD bug
59109         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
59110         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
59111         * modules/dirent (Makefile.am): Substitute it.
59112         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
59113         declaration.
59114         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
59115         fix.
59116         Reported by Christian Weisgerber <naddy@mips.inka.de>.
59118 2010-03-29  Bruno Haible  <bruno@clisp.org>
59120         Emit #pragma system_header after the inclusion guard, not before.
59121         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
59122         guard that spans the entire file, not before. This enables an
59123         optimization in GCC's preprocessor.
59124         * lib/ctype.in.h: Likewise.
59125         * lib/dirent.in.h: Likewise.
59126         * lib/errno.in.h: Likewise.
59127         * lib/float.in.h: Likewise.
59128         * lib/getopt.in.h: Likewise.
59129         * lib/iconv.in.h: Likewise.
59130         * lib/langinfo.in.h: Likewise.
59131         * lib/locale.in.h: Likewise.
59132         * lib/math.in.h: Likewise.
59133         * lib/netdb.in.h: Likewise.
59134         * lib/netinet_in.in.h: Likewise.
59135         * lib/pty.in.h: Likewise.
59136         * lib/sched.in.h: Likewise.
59137         * lib/se-selinux.in.h: Likewise.
59138         * lib/search.in.h: Likewise.
59139         * lib/spawn.in.h: Likewise.
59140         * lib/stdarg.in.h: Likewise.
59141         * lib/stdint.in.h: Likewise.
59142         * lib/string.in.h: Likewise.
59143         * lib/strings.in.h: Likewise.
59144         * lib/sys_file.in.h: Likewise.
59145         * lib/sys_ioctl.in.h: Likewise.
59146         * lib/sys_time.in.h: Likewise.
59147         * lib/sys_times.in.h: Likewise.
59148         * lib/sys_utsname.in.h: Likewise.
59149         * lib/sys_wait.in.h: Likewise.
59150         * lib/sysexits.in.h: Likewise.
59151         * lib/wctype.in.h: Likewise.
59153 2010-03-28  James Youngman  <jay@gnu.org>
59155         save-cwd: don't leak a file descriptor when the caller execs.
59156         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
59157         saved file descriptor.
59158         * modules/save-cwd (Depends-on): Depend on cloexec.
59160 2010-03-29  Bruno Haible  <bruno@clisp.org>
59162         Remove vestiges of fts-lgpl module.
59163         * lib/fts_.h: Assume GNULIB_FTS is 1.
59164         * lib/fts.c: Likewise.
59165         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
59167 2010-03-28  Bruno Haible  <bruno@clisp.org>
59169         Fix definition of tests witness macro.
59170         * gnulib-tool (func_import): Fix definition of witness macro.
59172 2010-03-28  Bruno Haible  <bruno@clisp.org>
59174         Fix ioctl's protoype on glibc systems.
59175         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
59176         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
59177         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
59178         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
59179         signature. If not, arrange to replace the ioctl function.
59180         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
59181         REPLACE_IOCTL.
59182         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
59183         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
59184         Reported by Ludovic Courtès <ludo@gnu.org>.
59186 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
59188         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
59189         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
59190         made it so grep -r --include=GLOB* ... did not work.
59192 2010-03-26  Jim Meyering  <meyering@redhat.com>
59193             Eric Blake  <eblake@redhat.com>
59195         maint.mk: prohibit use of test's -o and -a operators
59196         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
59198 2010-03-28  Bruno Haible  <bruno@clisp.org>
59200         Remove unused GNULIB_XYZ macro definitions.
59201         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
59202         invocation.
59204 2010-03-28  Bruno Haible  <bruno@clisp.org>
59206         Mark privileged tests modules.
59207         * modules/idpriv-drop-tests (Status): New section.
59208         * modules/idpriv-droptemp-tests (Status): New section.
59210 2010-03-28  Bruno Haible  <bruno@clisp.org>
59212         Split C++ tests into separate tests modules.
59213         * modules/dirent-c++-tests: New file, extracted from
59214         modules/dirent-tests.
59215         * modules/dirent-tests: Depend on it.
59216         * modules/fcntl-h-c++-tests: New file, extracted from
59217         modules/fcntl-h-tests.
59218         * modules/fcntl-h-tests: Depend on it.
59219         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
59220         * modules/glob-tests: Depend on it.
59221         * modules/iconv-h-c++-tests: New file, extracted from
59222         modules/iconv-h-tests.
59223         * modules/iconv-h-tests: Depend on it.
59224         * modules/langinfo-c++-tests: New file, extracted from
59225         modules/langinfo-tests.
59226         * modules/langinfo-tests: Depend on it.
59227         * modules/locale-c++-tests: New file, extracted from
59228         modules/locale-tests.
59229         * modules/locale-tests: Depend on it.
59230         * modules/math-c++-tests: New file, extracted from modules/math-tests.
59231         * modules/math-tests: Depend on it.
59232         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
59233         * modules/pty-tests: Depend on it.
59234         * modules/search-c++-tests: New file, extracted from
59235         modules/search-tests.
59236         * modules/search-tests: Depend on it.
59237         * modules/signal-c++-tests: New file, extracted from
59238         modules/signal-tests.
59239         * modules/signal-tests: Depend on it.
59240         * modules/spawn-c++-tests: New file, extracted from
59241         modules/spawn-tests.
59242         * modules/spawn-tests: Depend on it.
59243         * modules/stdio-c++-tests: New file, extracted from
59244         modules/stdio-tests.
59245         * modules/stdio-tests: Depend on it.
59246         * modules/stdlib-c++-tests: New file, extracted from
59247         modules/stdlib-tests.
59248         * modules/stdlib-tests: Depend on it.
59249         * modules/string-c++-tests: New file, extracted from
59250         modules/string-tests.
59251         * modules/string-tests: Depend on it.
59252         * modules/sys_ioctl-c++-tests: New file, extracted from
59253         modules/sys_ioctl-tests.
59254         * modules/sys_ioctl-tests: Depend on it.
59255         * modules/sys_select-c++-tests: New file, extracted from
59256         modules/sys_select-tests.
59257         * modules/sys_select-tests: Depend on it.
59258         * modules/sys_socket-c++-tests: New file, extracted from
59259         modules/sys_socket-tests.
59260         * modules/sys_socket-tests: Depend on it.
59261         * modules/sys_stat-c++-tests: New file, extracted from
59262         modules/sys_stat-tests.
59263         * modules/sys_stat-tests: Depend on it.
59264         * modules/sys_time-c++-tests: New file, extracted from
59265         modules/sys_time-tests.
59266         * modules/sys_time-tests: Depend on it.
59267         * modules/time-c++-tests: New file, extracted from modules/time-tests.
59268         * modules/time-tests: Depend on it.
59269         * modules/unistd-c++-tests: New file, extracted from
59270         modules/unistd-tests.
59271         * modules/unistd-tests: Depend on it.
59272         * modules/wchar-c++-tests: New file, extracted from
59273         modules/wchar-tests.
59274         * modules/wchar-tests: Depend on it.
59275         * modules/wctype-c++-tests: New file, extracted from
59276         modules/wctype-tests.
59277         * modules/wctype-tests: Depend on it.
59278         Reported by Simon Josefsson.
59280 2010-03-28  Bruno Haible  <bruno@clisp.org>
59282         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
59283         * gnulib-tool (func_exists_module): New function, extracted from
59284         func_verify_module.
59285         (func_verify_module): Use it.
59286         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
59287         'foo' only if 'foo' exists.
59288         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
59289         module.
59291 2010-03-28  Bruno Haible  <bruno@clisp.org>
59293         gnulib-tool: Add support for special categories of tests.
59294         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
59295         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
59296         (func_usage): Document them.
59297         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
59298         inc_unportable_tests, inc_all_tests): New variables.
59299         (func_acceptable): Consider these variables.
59300         (func_modules_transitive_closure): Make it work when the 'Status' field
59301         consists of multiple words.
59302         (func_import): Store and restore the values of inc_cxx_tests,
59303         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
59304         inc_all_tests in gnulib-comp.m4.
59305         (func_create_testdir): Set inc_all_tests to true.
59306         * doc/gnulib.texi (Extra tests modules): New section.
59307         Suggested by Jim Meyering.
59309 2010-03-28  Bruno Haible  <bruno@clisp.org>
59311         ansi-c++-opt: Allow turning off the C++ build by default.
59312         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
59313         gl_CXX_CHOICE_DEFAULT_NO is defined.
59314         Requested by Eric Blake.
59316 2010-03-28  Bruno Haible  <bruno@clisp.org>
59318         unistd: Avoid #define replacements in C++ mode.
59319         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
59320         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
59321         setsockopt, shutdown, select): In C++, attach a warning to the function
59322         if possible, rather than #defining the symbol to a dysfunctional alias.
59323         Reported by John W. Eaton <jwe@gnu.org>.
59325 2010-03-28  Bruno Haible  <bruno@clisp.org>
59327         Fix link errors on mingw.
59328         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
59329         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
59330         $(LIBSOCKET).
59331         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
59332         $(LIBSOCKET).
59334 2010-03-28  Bruno Haible  <bruno@clisp.org>
59335             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59337         lib-ignore: Determine different options for different compilers.
59338         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
59339         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
59340         Add comments.
59341         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
59342         * NEWS: Mention the change.
59344 2010-03-27  Bruno Haible  <bruno@clisp.org>
59346         Remove unused GNULIB_XYZ macro definitions.
59347         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
59348         * modules/fseek (configure.ac): Likewise.
59349         * modules/ioctl (configure.ac): Likewise.
59350         * modules/open (configure.ac): Likewise.
59351         * modules/stdlib-safer (configure.ac): Likewise.
59353 2010-03-27  Bruno Haible  <bruno@clisp.org>
59355         Add a remark about certain modules.
59356         * modules/malloc (Comment): New section.
59357         * modules/realloc (Comment): Likewise.
59358         * modules/sigpipe (Comment): Likewise.
59360 2010-03-27  Bruno Haible  <bruno@clisp.org>
59362         Resolve conflict between the two kinds of module indicators.
59363         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
59364         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
59365         * modules/canonicalize (configure.ac): Invoke
59366         gl_MODULE_INDICATOR_FOR_TESTS.
59367         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
59368         GNULIB_XYZ.
59369         * tests/test-dirent-c++.cc: Likewise.
59370         * tests/test-dirent-safer.c: Likewise.
59371         * tests/test-dup2.c: Likewise.
59372         * tests/test-fchdir.c: Likewise.
59373         * tests/test-fcntl-h-c++.cc: Likewise.
59374         * tests/test-getopt.c: Likewise.
59375         * tests/test-getopt.h: Likewise.
59376         * tests/test-langinfo-c++.cc: Likewise.
59377         * tests/test-locale-c++.cc: Likewise.
59378         * tests/test-math-c++.cc: Likewise.
59379         * tests/test-pty-c++.cc: Likewise.
59380         * tests/test-search-c++.cc: Likewise.
59381         * tests/test-signal-c++.cc: Likewise.
59382         * tests/test-spawn-c++.cc: Likewise.
59383         * tests/test-stdio-c++.cc: Likewise.
59384         * tests/test-stdlib-c++.cc: Likewise.
59385         * tests/test-string-c++.cc: Likewise.
59386         * tests/test-sys_ioctl-c++.cc: Likewise.
59387         * tests/test-sys_select-c++.cc: Likewise.
59388         * tests/test-sys_socket-c++.cc: Likewise.
59389         * tests/test-sys_stat-c++.cc: Likewise.
59390         * tests/test-sys_time-c++.cc: Likewise.
59391         * tests/test-time-c++.cc: Likewise.
59392         * tests/test-unistd-c++.cc: Likewise.
59393         * tests/test-wchar-c++.cc: Likewise.
59394         * tests/uninorm/test-u8-nfc.c: Likewise.
59395         * tests/uninorm/test-u8-nfd.c: Likewise.
59396         * tests/uninorm/test-u8-nfkc.c: Likewise.
59397         * tests/uninorm/test-u8-nfkd.c: Likewise.
59398         * tests/uninorm/test-u16-nfc.c: Likewise.
59399         * tests/uninorm/test-u16-nfd.c: Likewise.
59400         * tests/uninorm/test-u16-nfkc.c: Likewise.
59401         * tests/uninorm/test-u16-nfkd.c: Likewise.
59402         * tests/uninorm/test-u32-nfc.c: Likewise.
59403         * tests/uninorm/test-u32-nfc-big.c: Likewise.
59404         * tests/uninorm/test-u32-nfd.c: Likewise.
59405         * tests/uninorm/test-u32-nfd-big.c: Likewise.
59406         * tests/uninorm/test-u32-nfkc.c: Likewise.
59407         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
59408         * tests/uninorm/test-u32-nfkd.c: Likewise.
59409         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
59410         * tests/uninorm/test-u32-normalize-big.c: Likewise.
59412 2010-03-27  Bruno Haible  <bruno@clisp.org>
59414         Distinguish two kinds of module indicators.
59415         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
59416         gl_MODULE_INDICATOR.
59417         (gl_MODULE_INDICATOR): New macro.
59418         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
59419         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
59420         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
59421         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
59422         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
59423         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
59424         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
59425         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
59426         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
59427         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
59428         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
59429         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
59430         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
59431         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
59432         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
59433         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
59434         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
59435         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
59436         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
59437         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
59438         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
59439         * modules/cloexec (configure.ac): Likewise.
59440         * modules/getopt-gnu (configure.ac): Likewise.
59441         * modules/uninorm/u8-normalize (configure.ac): Likewise.
59442         * modules/uninorm/u16-normalize (configure.ac): Likewise.
59443         * modules/uninorm/u32-normalize (configure.ac): Likewise.
59444         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
59446 2010-03-27  Bruno Haible  <bruno@clisp.org>
59448         New module description field 'Comment'.
59449         * gnulib-tool: New option --extract-comment.
59450         (func_usage): Document it.
59451         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
59452         (func_get_comment): New function.
59453         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
59455 2010-03-27  Bruno Haible  <bruno@clisp.org>
59457         Addendum to 2010-02-07 commit.
59458         * gnulib-tool (func_usage): Document --extract-applicability option.
59460 2010-03-27  Bruno Haible  <bruno@clisp.org>
59462         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
59463         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
59464         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
59465         rather than link errors.
59467 2010-03-27  Bruno Haible  <bruno@clisp.org>
59469         Avoid side effects from tests-related modules on the compilation of lib.
59470         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
59471         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
59472         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
59473         parameter. Emit into AM_CPPFLAGS a definition of the designated C
59474         macro.
59475         (func_import): Define a witness macro. Assign it a value that depends
59476         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
59477         tests-related modules.
59478         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
59479         Reported by Jim Meyering.
59481 2010-03-27  Bruno Haible  <bruno@clisp.org>
59483         Factorize common .m4 code.
59484         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
59485         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
59486         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
59487         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
59488         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
59489         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
59490         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
59491         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
59492         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
59493         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
59494         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
59495         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
59496         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
59497         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
59498         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
59499         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
59500         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
59501         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
59502         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
59503         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
59504         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
59505         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
59506         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
59507         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
59508         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
59509         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
59510         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
59511         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
59512         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
59513         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
59514         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
59515         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
59517 2010-03-27  Bruno Haible  <bruno@clisp.org>
59519         Fix a compilation error on Cygwin with g++ >= 4.3.
59520         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
59521         if it is undefined or if we alias it to chmod.
59522         (lstat): Don't warn about the use of this function if it is undefined
59523         or if we alias it to stat.
59524         Reported by Simon Josefsson.
59526 2010-03-27  Bruno Haible  <bruno@clisp.org>
59528         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
59529         * modules/getlogin (configure.ac): Update.
59531         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
59532         * modules/getlogin_r (configure.ac): Update.
59534         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
59535         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
59536         * modules/inet_ntop (configure.ac): Update.
59538         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
59539         * modules/inet_pton (configure.ac): Update.
59541         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
59542         * modules/mbslen (configure.ac): Update.
59544         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
59545         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
59546         * modules/forkpty (configure.ac): Update.
59547         * modules/openpty (configure.ac): Update.
59549 2010-03-26  Simon Josefsson  <simon@josefsson.org>
59551         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
59552         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
59554 2010-03-25  Eric Blake  <eblake@redhat.com>
59556         maint: use pragma consistently across replacement headers
59557         * lib/ctype.in.h (system_header): Hoist for consistent placement.
59558         * lib/dirent.in.h (system_header): Likewise.
59559         * lib/errno.in.h (system_header): Likewise.
59560         * lib/float.in.h (system_header): Likewise.
59561         * lib/getopt.in.h (system_header): Likewise.
59562         * lib/iconv.in.h (system_header): Likewise.
59563         * lib/inttypes.in.h (system_header): Likewise.
59564         * lib/langinfo.in.h (system_header): Likewise.
59565         * lib/locale.in.h (system_header): Likewise.
59566         * lib/math.in.h (system_header): Likewise.
59567         * lib/netdb.in.h (system_header): Likewise.
59568         * lib/netinet_in.in.h (system_header): Likewise.
59569         * lib/pty.in.h (system_header): Likewise.
59570         * lib/sched.in.h (system_header): Likewise.
59571         * lib/se-selinux.in.h (system_header): Likewise.
59572         * lib/search.in.h (system_header): Likewise.
59573         * lib/spawn.in.h (system_header): Likewise.
59574         * lib/stdarg.in.h (system_header): Likewise.
59575         * lib/stdint.in.h (system_header): Likewise.
59576         * lib/string.in.h (system_header): Likewise.
59577         * lib/strings.in.h (system_header): Likewise.
59578         * lib/sys_file.in.h (system_header): Likewise.
59579         * lib/sys_ioctl.in.h (system_header): Likewise.
59580         * lib/sys_socket.in.h (system_header): Likewise.
59581         * lib/sys_times.in.h (system_header): Likewise.
59582         * lib/sys_utsname.in.h (system_header): Likewise.
59583         * lib/sys_wait.in.h (system_header): Likewise.
59584         * lib/sysexits.in.h (system_header): Likewise.
59585         * lib/unistd.in.h (system_header): Likewise.
59586         * lib/wctype.in.h (system_header): Likewise.
59588         arpa/inet: fix mingw compilation warning
59589         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
59590         Reported by Matthew Bolte.
59592 2010-03-25  Bruno Haible  <bruno@clisp.org>
59594         Avoid collision between gnulib wrapper and libintl wrapper.
59595         * lib/printf.c (printf): Don't define if a printf wrapper is already
59596         defined in intl/printf.c.
59597         Reported by Michel Boaventura <michel@michelboaventura.com>.
59599 2010-03-25  Bruno Haible  <bruno@clisp.org>
59601         Use ANSI C.
59602         * lib/readutmp.h (getutent): Provide ANSI C prototype.
59604 2010-03-25  Bruno Haible  <bruno@clisp.org>
59606         Minor formatting changes.
59607         * lib/acosl.c: Insert space before function argument list.
59608         * lib/argz.c: Likewise.
59609         * lib/asinl.c: Likewise.
59610         * lib/expl.c: Likewise.
59611         * lib/gen-uni-tables.c: Likewise.
59612         * lib/gettext.h: Likewise.
59613         * lib/glthread/lock.h: Likewise.
59614         * lib/tanl.c: Likewise.
59615         * lib/uniname/uniname.c: Likewise.
59616         * tests/test-idpriv-drop.c: Likewise.
59617         * tests/test-idpriv-droptemp.c: Likewise.
59618         * tests/test-lock.c: Likewise.
59619         * tests/test-tls.c: Likewise.
59620         * lib/argp-help.c: Insert space before function-like macro argument
59621         list.
59622         * lib/memcmp.c: Likewise.
59623         * tests/test-base64.c: Likewise.
59624         * lib/localename.c: Insert space before sizeof's argument list.
59625         * lib/safe-alloc.h: Likewise.
59626         * lib/file-set.h: Insert space before macro argument list.
59627         * tests/test-argp.c: Likewise.
59628         * lib/argp-namefrob.h: Insert space before function parameter list.
59629         * lib/getaddrinfo.c: Likewise.
59630         * lib/netdb.in.h: Likewise.
59631         * lib/parse-duration.h: Likewise.
59632         * lib/parse-duration.c: Likewise.
59633         * lib/poll.c: Likewise.
59634         * lib/select.c: Likewise.
59635         * lib/trim.h: Likewise.
59636         * tests/test-usleep.c: Likewise.
59637         * lib/ldexpl.c: Insert space before function parameter list and before
59638         function argument list.
59639         * lib/logl.c: Likewise.
59640         * lib/sqrtl.c: Likewise.
59641         * lib/trim.c: Likewise.
59642         * lib/cosl.c: Use GNU style indentation. Insert space before function
59643         argument list.
59644         * lib/sinl.c: Likewise.
59645         * lib/tsearch.c: Insert space after 'for'.
59646         Reported by Jim Meyering.
59648 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
59650         * maint.mk (sc_Wundef_boolean): Check for the presence of the
59651         config header before grepping, as it's not present before
59652         autoreconf/configure are run.  Reported by Simon Josefsson.
59654 2010-03-23  Bruno Haible  <bruno@clisp.org>
59656         pt_chown: Make it work with automake < 1.11.
59657         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
59658         Reported by Simon Josefsson.
59660 2010-03-23  Bruno Haible  <bruno@clisp.org>
59662         pt_chown: Don't depend on GPLed modules.
59663         * lib/pt_chown.c: Don't include idpriv.h.
59664         (main): Don't drop privileges.
59665         * modules/pt_chown (Depends-on): Remove idpriv-drop.
59666         Reported by Simon Josefsson.
59668 2010-03-24  Simon Josefsson  <simon@josefsson.org>
59670         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
59671         suggestions from karl@freefriends.org (Karl Berry).
59673 2010-03-22  Eric Blake  <eblake@redhat.com>
59675         gethostname: further tweaks
59676         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
59677         are overriding gethostname.
59678         Suggested by Bruno Haible.
59680 2010-03-21  Bruno Haible  <bruno@clisp.org>
59682         Fix comments.
59683         * lib/forkpty.c (rpl_forkpty): Fix comment.
59684         * lib/openpty.c (rpl_openpty): Likewise.
59685         Reported by Eric Blake.
59687 2010-03-22  Eric Blake  <eblake@redhat.com>
59689         gethostname: fix build on mingw
59690         * lib/unistd.in.h (includes): Work around fact that mingw
59691         <winsock2.h> re-includes <unistd.h>, by avoiding any
59692         redeclarations if we are being included by <winsock2.h>.
59693         Reported by Matthias Bolte.
59695 2010-03-21  Bruno Haible  <bruno@clisp.org>
59697         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
59698         * lib/forkpty.c (forkpty): New replacement function, from glibc with
59699         modifications.
59700         * lib/pty.in.h (forkpty): Update declaration. Add comments.
59701         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
59702         provide the replacement.
59703         * modules/forkpty (Depends-on): Add openpty, login_tty.
59704         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
59705         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
59706         * doc/glibc-functions/forkpty.texi: More supported platforms.
59707         * config/srclist.txt: Add forkpty.c (commented).
59709 2010-03-21  Bruno Haible  <bruno@clisp.org>
59711         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
59712         (Makefile.am): Verify that PTY_LIB is defined.
59714         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
59716 2010-03-21  Bruno Haible  <bruno@clisp.org>
59718         Tests for module 'login_tty'.
59719         * modules/login_tty-tests: New file.
59720         * tests/test-login_tty.c: New file.
59722         New module 'login_tty'.
59723         * lib/login_tty.c: New file.
59724         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
59725         * modules/login_tty: New file.
59726         * doc/glibc-functions/login_tty.texi: Mention the new module.
59728 2010-03-21  Bruno Haible  <bruno@clisp.org>
59730         login_tty: Documentation.
59731         * doc/glibc-functions/login_tty.texi: New file.
59732         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
59734 2010-03-21  Bruno Haible  <bruno@clisp.org>
59736         pty: Consistent macro naming.
59737         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
59738         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
59739         * modules/pty (configure.ac): Update.
59741 2010-03-21  Bruno Haible  <bruno@clisp.org>
59743         Tests for openpty: Make stricter.
59744         * tests/test-openpty.c (main): Add test of canonical processing and
59745         erase.
59746         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
59748         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
59749         * lib/openpty.c (openpty): New replacement function.
59750         * lib/pty.in.h: Include <termios.h>.
59751         (openpty): Update declaration. Add comments.
59752         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
59753         is not declared, arrange to provide the replacement. Check for _getpty
59754         and posix_openpt.
59755         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
59756         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
59757         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
59758         * modules/pty-tests (test_pty_c___LDADD): New variable.
59759         * doc/glibc-functions/openpty.texi: More supported platforms.
59761 2010-03-21  Bruno Haible  <bruno@clisp.org>
59763         setenv: Tweaks.
59764         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
59765         the test program.
59766         * doc/posix-functions/setenv.texi: Update platforms list.
59768 2010-03-21  Bruno Haible  <bruno@clisp.org>
59770         New module 'unlockpt'.
59771         * lib/unlockpt.c: New file, from glibc with modifications.
59772         * m4/unlockpt.m4: New file.
59773         * modules/unlockpt: New file.
59774         * lib/stdlib.in.h (unlockpt): New declaration.
59775         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
59776         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
59777         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
59778         HAVE_UNLOCKPT.
59779         * doc/posix-functions/unlockpt.texi: Mention the new module.
59780         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
59781         * config/srclist.txt: Add unlockpt.c (commented).
59783 2010-03-21  Jim Meyering  <meyering@redhat.com>
59785         maint.mk: prohibit inclusion of "intprops.h" without use
59786         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
59788 2010-03-21  Bruno Haible  <bruno@clisp.org>
59790         New module 'grantpt'.
59791         * lib/grantpt.c: New file, from glibc with modifications.
59792         * m4/grantpt.m4: New file.
59793         * modules/grantpt: New file.
59794         * lib/stdlib.in.h (grantpt): New declaration.
59795         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
59796         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
59797         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
59798         HAVE_GRANTPT.
59799         * doc/posix-functions/grantpt.texi: Mention the new module.
59800         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
59801         * config/srclist.txt: Add grantpt.c (commented).
59803 2010-03-21  Bruno Haible  <bruno@clisp.org>
59805         New module 'pt_chown'.
59806         * lib/pt_chown.c: New file, from glibc with modifications.
59807         * lib/pty-private.h: New file, from glibc with modifications.
59808         * modules/pt_chown: New file.
59809         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
59811 2010-03-21  Bruno Haible  <bruno@clisp.org>
59813         Tests for module 'ptsname'.
59814         * modules/ptsname-tests: New file.
59815         * tests/test-ptsname.c: New file.
59817         New module 'ptsname'.
59818         * lib/ptsname.c: New file, from glibc with modifications.
59819         * m4/ptsname.m4: New file.
59820         * modules/ptsname: New file.
59821         * lib/stdlib.in.h (ptsname): New declaration.
59822         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
59823         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
59824         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
59825         HAVE_PTSNAME.
59826         * doc/posix-functions/ptsname.texi: Mention the new module.
59827         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
59828         * config/srclist.txt: Add ptsname.c (commented).
59830 2010-03-21  Bruno Haible  <bruno@clisp.org>
59832         Tests for module 'ttyname_r'.
59833         * modules/ttyname_r-tests: New file.
59834         * tests/test-ttyname_r.c: New file.
59836         New module 'ttyname_r'.
59837         * lib/ttyname_r.c: New file.
59838         * m4/ttyname_r.m4: New file.
59839         * modules/ttyname_r: New file.
59840         * lib/unistd.in.h (ttyname_r): New declaration.
59841         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
59842         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
59843         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
59844         HAVE_TTYNAME_R.
59845         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
59846         * doc/posix-functions/ttyname_r.texi: Mention the new module.
59848 2010-03-20  Bruno Haible  <bruno@clisp.org>
59850         signal: Undefine macro definitions in C++ mode.
59851         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
59852         sigfillset): Undefine macro definitions from the system header in C++
59853         mode.
59854         Reported by John W. Eaton <jwe@gnu.org>.
59856 2010-03-20  Bruno Haible  <bruno@clisp.org>
59858         Ensure no #include statements inside extern "C" { ... }.
59859         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
59860         contain #include statements.
59861         * lib/time.in.h: Likewise.
59863 2010-03-20  Bruno Haible  <bruno@clisp.org>
59865         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
59866         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
59867         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
59868         Reported by John W. Eaton <jwe@gnu.org>.
59870 2010-03-20  Bruno Haible  <bruno@clisp.org>
59872         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
59873         Reported by Jim Meyering.
59875 2010-03-20  Bruno Haible  <bruno@clisp.org>
59877         pipe: Set errno upon failure.
59878         * lib/pipe.h: Specify that when -1 is returned, errno is set.
59879         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
59880         errno value in error message.
59882 2010-03-20  Bruno Haible  <bruno@clisp.org>
59883             Jim Meyering  <meyering@redhat.com>
59885         lchown: Avoid "unused variable" warning.
59886         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
59888 2010-03-20  Bruno Haible  <bruno@clisp.org>
59890         Work around unlink() bug on MacOS X 10.5.6.
59891         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
59892         attempting to unlink a parent directory.
59893         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
59894         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
59895         activate for the replacement function.
59896         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
59898 2010-03-20  Bruno Haible  <bruno@clisp.org>
59900         Fix link errors on Solaris 8.
59901         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
59902         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
59904 2010-03-19  Jim Meyering  <meyering@redhat.com>
59906         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
59907         The _LIBC implementation of build_range_exp correctly honors the
59908         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
59909         However, the non-_LIBC implementation would ignore that syntax-bit
59910         flag and return REG_ERANGE unconditionally.
59911         This change makes it honor that flag.
59912         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
59913         Make two pointer parameters "const".
59914         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
59915         (parse_bracket_exp): Update caller.
59917         regex.m4: correct the reversed range endpoint ([b-a]) test
59918         * m4/regex.m4: When requiring that [b-a] evoke failure,
59919         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
59920         test pass once again for x86-based systems.
59922 2010-03-19  Bruno Haible  <bruno@clisp.org>
59924         scandir: Fix link error on Solaris 8.
59925         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
59926         macros.
59928 2010-03-19  Bruno Haible  <bruno@clisp.org>
59930         getusershell: Fix documentation.
59931         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
59932         module.
59933         * doc/glibc-functions/setusershell.texi: Likewise.
59935         getusershell: Provide declaration, missing on Solaris 9.
59936         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
59937         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
59938         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
59939         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
59940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59941         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
59942         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
59943         HAVE_GETUSERSHELL.
59944         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
59946 2010-03-19  Bruno Haible  <bruno@clisp.org>
59948         wctype: Provide iswblank function.
59949         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
59950         exists and is fine.
59951         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
59952         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
59953         * tests/test-wctype.c (main): Re-enable the iswblank tests.
59954         * doc/posix-functions/iswblank.texi: Update.
59956 2010-03-19  Bruno Haible  <bruno@clisp.org>
59958         Tests of module 'pty' in C++ mode.
59959         * modules/pty-tests: New file.
59960         * tests/test-pty-c++.cc: New file.
59961         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
59963 2010-03-19  Eric Blake  <eblake@redhat.com>
59965         logb: fix documentation
59966         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
59967         1.5 declaration bug.
59969         forkpty, openpty: prefer glibc's const-safe prototype
59970         * lib/forkpty.c (rpl_forkpty): New file.
59971         * lib/openpty.c (rpl_openpty): Likewise.
59972         * modules/forkpty (Files): Distribute it.
59973         * modules/openpty (Files): Likewise.
59974         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
59975         check...
59976         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
59977         replacement for non-const BSD signature.
59978         * modules/pty (Makefile.am): Substitute witnesses.
59979         * lib/pty.in.h (forkpty, openpty): Declare replacements.
59980         * tests/test-forkpty.c: Update signature check.
59981         * tests/test-openpty.c: Likewise.
59982         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
59983         * doc/glibc-functions/openpty.texi (openpty): Likewise.
59985         forkpty, openpty: split functions into new modules
59986         * modules/pty (Makefile.am): Substitute new witnesses.
59987         (Libraries): Move library detection...
59988         * modules/forkpty: ...into new module.
59989         * modules/openpty: Another new module.
59990         * modules/pty-tests: Rename and split...
59991         * modules/forkpty-tests: ...to this...
59992         * modules/openpty-tests: ...and this.
59993         * tests/test-pty.c: Rename and split...
59994         * tests/test-forkpty.c: ...to this...
59995         * tests/test-openpty.c: ...and this.
59996         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
59997         (gl_PTY): Split library searching...
59998         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
59999         (gl_FORKPTY, gl_OPENPTY): New macros.
60000         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
60001         * NEWS: Mention the split.
60002         * MODULES.html.sh (Misc): Document the modules.
60003         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
60004         * doc/glibc-functions/openpty.texi (openpty): Likewise.
60006         pty: improve replacement header
60007         * lib/pty.in.h: New file.
60008         * modules/pty (Files): Ship it.
60009         (Makefile.am): Always build replacement.
60010         * m4/pty.m4: Rename...
60011         * m4/pty_h.m4: ...to this.
60012         (gl_PTY): Modernize setting of witness macros; update check of
60013         forkpty to take proper advantage of cache.
60014         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
60016         getopt: avoid compiler warning
60017         * lib/getopt.c (attribute_hidden): Remove unused macro.
60019 2010-03-18  Bruno Haible  <bruno@clisp.org>
60021         Fix link errors on Solaris 8.
60022         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
60023         * modules/search-tests (test_search_c___LDADD): Likewise.
60024         * modules/signal-tests (test_signal_c___LDADD): Likewise.
60025         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
60026         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
60027         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
60028         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
60029         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
60030         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
60032 2010-03-18  Bruno Haible  <bruno@clisp.org>
60034         Fix bug introduced on 2010-03-14.
60035         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
60036         (gl_SPAWN_H): Require it.
60037         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
60038         Reported by Simon Josefsson.
60040 2010-03-18  Bruno Haible  <bruno@clisp.org>
60042         Fix typo introduced on 2009-12-31.
60043         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
60044         posix_spawn_file_actions_adddup2.
60046 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
60047         and Eric Blake  <eblake@redhat.com>
60049         test-vc-list-files-git: make more robust
60050         * tests/test-vc-list-files-git.sh: Unset problematic environment
60051         variables.  Chain commands together.
60053 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
60055         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
60056         `AC_CHECK_DECL' invocation.
60058 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
60060         * lib/inttostr.c (inttostr): Make sure the invocation of verify
60061         appears before executable statements. Suggested by Petr Sumbera
60062         <Petr.Sumbera@Sun.COM>.
60064 2010-03-14  Bruno Haible  <bruno@clisp.org>
60066         * tests/test-flock.c (test_exclusive): Comment out a test that causes
60067         portability problems. Instead use a simpler test.
60068         (main): Check that invalid arguments are rejected only on Linux.
60070 2010-03-14  Bruno Haible  <bruno@clisp.org>
60072         Fix bug introduced on 2009-12-31.
60073         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
60074         gl_PREREQ_SYS_H_WINSOCK2 always.
60075         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
60076         SYS_SOCKET_H variable.
60077         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
60078         Update comments.
60079         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
60080         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
60081         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
60082         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
60083         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
60085 2010-03-14  Bruno Haible  <bruno@clisp.org>
60087         Fix values returned by sinl, cosl.
60088         * lib/trigl.h: Add specification comments.
60089         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
60090         that combines the values from the precomputed table with the values of
60091         the Chebyshev polynomials.
60093 2010-03-14  Bruno Haible  <bruno@clisp.org>
60095         Fix compilation error when modules 'posix_spawn[p]' are not used.
60096         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
60097         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
60099 2010-03-14  Bruno Haible  <bruno@clisp.org>
60101         Fix compilation error on mingw when module 'time_r' is not used.
60102         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
60103         is 1.
60104         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
60105         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
60106         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
60107         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
60109 2010-03-14  Bruno Haible  <bruno@clisp.org>
60111         Fix compilation error with Sun C.
60112         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
60113         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
60114         instead of GCC specific ULONG_LONG_MAX.
60115         * lib/xstrtoll.c: Likewise.
60116         * lib/xstrtoull.c: Likewise.
60118 2010-03-13  Bruno Haible  <bruno@clisp.org>
60120         Allow the user to disable C++ code and tests.
60121         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
60122         (gl_PROG_ANSI_CXX): Require it.
60124 2010-03-13  Bruno Haible  <bruno@clisp.org>
60126         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
60127         cases.
60129 2010-03-13  Bruno Haible  <bruno@clisp.org>
60131         Test that gnulib does not break the standard C++ headers.
60132         * tests/test-locale-c++2.cc: New file.
60133         * modules/locale-tests (Files): Add it.
60134         (Makefile.am): Compile it for test-locale-c++.
60135         * tests/test-math-c++2.cc: New file.
60136         * modules/math-tests (Files): Add it.
60137         (Makefile.am): Compile it for test-math-c++.
60138         * tests/test-signal-c++2.cc: New file.
60139         * modules/signal-tests (Files): Add it.
60140         (Makefile.am): Compile it for test-signal-c++.
60141         * tests/test-stdio-c++2.cc: New file.
60142         * modules/stdio-tests (Files): Add it.
60143         (Makefile.am): Compile it for test-stdio-c++.
60144         * tests/test-stdlib-c++2.cc: New file.
60145         * modules/stdlib-tests (Files): Add it.
60146         (Makefile.am): Compile it for test-stdlib-c++.
60147         * tests/test-string-c++2.cc: New file.
60148         * modules/string-tests (Files): Add it.
60149         (Makefile.am): Compile it for test-string-c++.
60150         * tests/test-time-c++2.cc: New file.
60151         * modules/time-tests (Files): Add it.
60152         (Makefile.am): Compile it for test-time-c++.
60153         Reported by John W. Eaton <jwe@gnu.org>.
60155 2010-03-13  Bruno Haible  <bruno@clisp.org>
60157         * gnulib-tool (func_usage): Clarify which options are available for
60158         --create-testdir and --create-megatestdir.
60160 2010-03-13  Bruno Haible  <bruno@clisp.org>
60162         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
60163         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
60164         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
60165         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
60166         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
60167         when appropriate.
60168         Reported by Jim Meyering.
60170 2010-03-12  Simon Josefsson  <simon@josefsson.org>
60172         * gnulib-tool (func_import): Explain origin of code.
60174 2010-03-12  Bruno Haible  <bruno@clisp.org>
60176         Fix problem with automake's definition of CXXLINK.
60177         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
60178         Reported by Simon Josefsson and Ludovic Courtès.
60180 2010-03-12  Bruno Haible  <bruno@clisp.org>
60182         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
60183         stable releases.
60185 2010-03-11  Bruno Haible  <bruno@clisp.org>
60187         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
60188         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
60189         whether the system provides one variant or multiple variants of the
60190         function.
60191         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
60192         C++ compilers.
60193         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
60194         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
60195         Reported by Jim Meyering.
60197 2010-03-09  Simon Josefsson  <simon@josefsson.org>
60199         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
60201 2010-03-08  Bruno Haible  <bruno@clisp.org>
60203         gnulib-tool: Add support for --libtool in --create-testdir.
60204         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
60205         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
60207 2010-03-08  Eric Blake  <eblake@redhat.com>
60209         gnulib-tool.texi: mention possibility of git submodule
60210         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
60211         submodules.
60212         * doc/.gitignore: Ignore another generated file.
60214 2010-03-08  Karl Berry  <karl@gnu.org>
60216         * doc/gnulib-tool.texi (VCS Issues): Mention third option
60217         of committing gnulib files while skipping others.
60219 2010-03-07  Bruno Haible  <bruno@clisp.org>
60221         Tests of module 'wctype' in C++ mode.
60222         * tests/test-wctype-c++.cc: New file.
60223         * modules/wctype-tests (Files): Add it and tests/signature.h.
60224         (Depends-on): Add ansi-c++-opt.
60225         (Makefile.am): Arrange to compile and run test-wctype-c++.
60227         Tests of module 'wchar' in C++ mode.
60228         * tests/test-wchar-c++.cc: New file.
60229         * modules/wchar-tests (Files): Add it and tests/signature.h.
60230         (Depends-on): Add ansi-c++-opt.
60231         (Makefile.am): Arrange to compile and run test-wchar-c++.
60232         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
60233         gl_MODULE_INDICATOR.
60235         Tests of module 'unistd' in C++ mode.
60236         * tests/test-unistd-c++.cc: New file.
60237         * modules/unistd-tests (Files): Add it and tests/signature.h.
60238         (Depends-on): Add ansi-c++-opt.
60239         (Makefile.am): Arrange to compile and run test-unistd-c++.
60240         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
60241         gl_MODULE_INDICATOR.
60243         Tests of module 'time' in C++ mode.
60244         * tests/test-time-c++.cc: New file.
60245         * modules/time-tests (Files): Add it and tests/signature.h.
60246         (Depends-on): Add ansi-c++-opt.
60247         (Makefile.am): Arrange to compile and run test-time-c++.
60248         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
60250         Tests of module 'sys_time' in C++ mode.
60251         * tests/test-sys_time-c++.cc: New file.
60252         * modules/sys_time-tests (Files): Add it and tests/signature.h.
60253         (Depends-on): Add ansi-c++-opt.
60254         (Makefile.am): Arrange to compile and run test-sys_time-c++.
60255         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
60256         gl_MODULE_INDICATOR.
60258         Tests of module 'sys_stat' in C++ mode.
60259         * tests/test-sys_stat-c++.cc: New file.
60260         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
60261         (Depends-on): Add ansi-c++-opt.
60262         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
60263         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
60264         gl_MODULE_INDICATOR.
60266         Tests of module 'sys_socket' in C++ mode.
60267         * tests/test-sys_socket-c++.cc: New file.
60268         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
60269         (Depends-on): Add ansi-c++-opt.
60270         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
60271         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
60272         gl_MODULE_INDICATOR.
60274         Tests of module 'sys_select' in C++ mode.
60275         * tests/test-sys_select-c++.cc: New file.
60276         * modules/sys_select-tests (Files): Add it and tests/signature.h.
60277         (Depends-on): Add ansi-c++-opt.
60278         (Makefile.am): Arrange to compile and run test-sys_select-c++.
60279         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
60280         gl_MODULE_INDICATOR.
60282         Tests of module 'sys_ioctl' in C++ mode.
60283         * tests/test-sys_ioctl-c++.cc: New file.
60284         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
60285         (Depends-on): Add ansi-c++-opt.
60286         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
60287         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
60288         gl_MODULE_INDICATOR.
60290         Tests of module 'string' in C++ mode.
60291         * tests/test-string-c++.cc: New file.
60292         * modules/string-tests (Files): Add it and tests/signature.h.
60293         (Depends-on): Add ansi-c++-opt.
60294         (Makefile.am): Arrange to compile and run test-string-c++.
60295         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
60296         gl_MODULE_INDICATOR.
60298         Tests of module 'stdlib' in C++ mode.
60299         * tests/test-stdlib-c++.cc: New file.
60300         * modules/stdlib-tests (Files): Add it and tests/signature.h.
60301         (Depends-on): Add ansi-c++-opt.
60302         (Makefile.am): Arrange to compile and run test-stdlib-c++.
60303         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
60304         gl_MODULE_INDICATOR.
60306         Tests of module 'stdio' in C++ mode.
60307         * tests/test-stdio-c++.cc: New file.
60308         * modules/stdio-tests (Files): Add it and tests/signature.h.
60309         (Depends-on): Add ansi-c++-opt.
60310         (Makefile.am): Arrange to compile and run test-stdio-c++.
60311         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
60312         gl_MODULE_INDICATOR.
60314         Tests of module 'spawn' in C++ mode.
60315         * tests/test-spawn-c++.cc: New file.
60316         * modules/spawn-tests (Files): Add it and tests/signature.h.
60317         (Depends-on): Add ansi-c++-opt.
60318         (Makefile.am): Arrange to compile and run test-spawn-c++.
60319         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
60320         gl_MODULE_INDICATOR.
60322         Tests of module 'signal' in C++ mode.
60323         * tests/test-signal-c++.cc: New file.
60324         * modules/signal-tests (Files): Add it and tests/signature.h.
60325         (Depends-on): Add ansi-c++-opt.
60326         (Makefile.am): Arrange to compile and run test-signal-c++.
60327         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
60328         gl_MODULE_INDICATOR.
60330         Tests of module 'search' in C++ mode.
60331         * tests/test-search-c++.cc: New file.
60332         * modules/search-tests (Files): Add it and tests/signature.h.
60333         (Depends-on): Add ansi-c++-opt.
60334         (Makefile.am): Arrange to compile and run test-search-c++.
60335         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
60336         gl_MODULE_INDICATOR.
60338         Tests of module 'math' in C++ mode.
60339         * tests/test-math-c++.cc: New file.
60340         * modules/math-tests (Files): Add it and tests/signature.h.
60341         (Depends-on): Add ansi-c++-opt.
60342         (Makefile.am): Arrange to compile and run test-math-c++.
60343         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
60345         Tests of module 'locale' in C++ mode.
60346         * tests/test-locale-c++.cc: New file.
60347         * modules/locale-tests (Files): Add it and tests/signature.h.
60348         (Depends-on): Add ansi-c++-opt.
60349         (Makefile.am): Arrange to compile and run test-locale-c++.
60350         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
60351         gl_MODULE_INDICATOR.
60353         Tests of module 'langinfo' in C++ mode.
60354         * tests/test-langinfo-c++.cc: New file.
60355         * modules/langinfo-tests (Files): Add it and tests/signature.h.
60356         (Depends-on): Add ansi-c++-opt.
60357         (Makefile.am): Arrange to compile and run test-langinfo-c++.
60358         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
60359         gl_MODULE_INDICATOR.
60361         Tests of module 'iconv-h' in C++ mode.
60362         * tests/test-iconv-h-c++.cc: New file.
60363         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
60364         (Depends-on): Add ansi-c++-opt.
60365         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
60367         Tests of module 'glob' in C++ mode.
60368         * tests/test-glob-c++.cc: New file.
60369         * modules/glob-tests (Files): Add it.
60370         (Depends-on): Add ansi-c++-opt.
60371         (Makefile.am): Arrange to compile and run test-glob-c++.
60373         Tests of module 'fcntl-h' in C++ mode.
60374         * tests/test-fcntl-h-c++.cc: New file.
60375         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
60376         (Depends-on): Add ansi-c++-opt.
60377         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
60378         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
60379         gl_MODULE_INDICATOR.
60381         Tests of module 'dirent' in C++ mode.
60382         * tests/test-dirent-c++.cc: New file.
60383         * modules/dirent-tests (Files): Add it and tests/signature.h.
60384         (Depends-on): Add ansi-c++-opt.
60385         (Makefile.am): Arrange to compile and run test-dirent-c++.
60386         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
60387         gl_MODULE_INDICATOR.
60389         New module 'ansi-c++-opt'.
60390         * modules/ansi-c++-opt: New file.
60391         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
60393         Document C++ namespace mode.
60394         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
60396         wctype: Avoid #define replacements in C++ mode.
60397         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
60398         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
60399         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
60400         In C++, define a namespaced alias symbol.
60401         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
60402         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
60403         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
60404         rule.
60406         wchar: Avoid #define replacements in C++ mode.
60407         * lib/wchar.in.h: Include c++defs.h.
60408         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
60409         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
60410         symbol.
60411         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
60412         * modules/wchar (Depends-on): Add c++defs.
60413         (Makefile.am): Update wchar.h rule.
60415         unistd: Avoid #define replacements in C++ mode.
60416         * lib/unistd.in.h: Include c++defs.h.
60417         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
60418         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
60419         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
60420         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
60421         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
60422         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
60423         symbol.
60424         (environ): Update.
60425         * modules/unistd (Depends-on): Add c++defs.
60426         (Makefile.am): Update unistd.h rule.
60428         time: Avoid #define replacements in C++ mode.
60429         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
60430         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
60431         define a namespaced alias symbol.
60432         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
60433         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
60434         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
60435         * modules/time (Depends-on): Add c++defs, warn-on-use.
60436         (Makefile.am): Update time.h rule.
60437         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
60438         * modules/nanosleep (configure.ac): Likewise.
60439         * modules/strptime (configure.ac): Likewise.
60440         * modules/timegm (configure.ac): Likewise.
60442         sys_time: Avoid #define replacements in C++ mode.
60443         * lib/sys_time.in.h: Include c++defs.h.
60444         (gettimeofday): In C++, define a namespaced alias symbol.
60445         * modules/sys_time (Depends-on): Add c++defs.
60446         (Makefile.am): Update sys/time.h rule.
60448         sys_stat: Avoid #define replacements in C++ mode.
60449         * lib/sys_stat.in.h: Include c++defs.h.
60450         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
60451         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
60452         namespaced alias symbol.
60453         In C++, define a namespaced alias symbol.
60454         * modules/sys_stat (Depends-on): Add c++defs.
60455         (Makefile.am): Update sys/stat.h rule.
60457         sys_socket: Avoid #define replacements in C++ mode.
60458         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
60459         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
60460         definitions also when the system has a <sys/socket.h>.
60461         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
60462         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
60463         In C++, define a namespaced alias symbol.
60464         * modules/sys_socket (Depends-on): Add c++defs.
60465         (Makefile.am): Update sys/socket.h rule.
60467         sys_select: Avoid #define replacements in C++ mode.
60468         * lib/sys_select.in.h: Include c++defs.h. Enable the function
60469         definitions also when the system has a <sys/select.h>.
60470         (select): In C++, define a namespaced alias symbol.
60471         * modules/sys_select (Depends-on): Add c++defs.
60472         (Makefile.am): Update sys/select.h rule.
60474         sys_ioctl: Avoid #define replacements in C++ mode.
60475         * lib/sys_ioctl.in.h: Include c++defs.h.
60476         (ioctl): In C++, define a namespaced alias symbol.
60477         * modules/sys_ioctl (Depends-on): Add c++defs.
60478         (Makefile.am): Update sys/ioctl.h rule.
60480         string: Avoid #define replacements in C++ mode.
60481         * lib/string.in.h: Include c++defs.h.
60482         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
60483         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
60484         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
60485         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
60486         strsignal, strverscmp): In C++, define a namespaced alias symbol.
60487         * modules/string (Depends-on): Add c++defs.
60488         (Makefile.am): Update string.h rule.
60490         stdlib: Avoid #define replacements in C++ mode.
60491         * lib/stdlib.in.h: Include c++defs.h.
60492         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
60493         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
60494         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
60495         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
60496         symbol.
60497         * modules/stdlib (Depends-on): Add c++defs.
60498         (Makefile.am): Update stdlib.h rule.
60500         stdio: Avoid #define replacements in C++ mode.
60501         * lib/stdio.in.h: Include c++defs.h.
60502         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
60503         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
60504         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
60505         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
60506         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
60507         namespaced alias symbol.
60508         * modules/stdio (Depends-on): Add c++defs.
60509         (Makefile.am): Update stdio.h rule.
60511         spawn: Avoid #define replacements in C++ mode.
60512         * lib/spawn.in.h: Include c++defs.h.
60513         (posix_spawn, posix_spawnp, posix_spawnattr_init,
60514         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
60515         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
60516         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
60517         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
60518         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
60519         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
60520         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
60521         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
60522         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
60523         In C++, define a namespaced alias symbol.
60524         * modules/spawn (Depends-on): Add c++defs.
60525         (Makefile.am): Update spawn.h rule.
60527         signal: Avoid #define replacements in C++ mode.
60528         * lib/signal.in.h: Include c++defs.h.
60529         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
60530         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
60531         namespaced alias symbol.
60532         * modules/signal (Depends-on): Add c++defs.
60533         (Makefile.am): Update signal.h rule.
60535         search: Avoid #define replacements in C++ mode.
60536         * lib/search.in.h: Include c++defs.h.
60537         (_gl_search_compar_fn, _gl_search_action_fn): New types.
60538         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
60539         symbol.
60540         * modules/search (Depends-on): Add c++defs.
60541         (Makefile.am): Update search.h rule.
60543         math: Avoid #define replacements in C++ mode.
60544         * lib/math.in.h: Include c++defs.h.
60545         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
60546         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
60547         trunc, truncl): In C++, define a namespaced alias symbol.
60548         * modules/math (Depends-on): Add c++defs.
60549         (Makefile.am): Update math.h rule.
60551         locale: Avoid #define replacements in C++ mode.
60552         * lib/locale.in.h: Include c++defs.h.
60553         (duplocale): In C++, define a namespaced alias symbol.
60554         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
60555         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
60556         * modules/locale (Depends-on): Add c++defs.
60557         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
60559         langinfo: Avoid #define replacements in C++ mode.
60560         * lib/langinfo.in.h: Include c++defs.h.
60561         (nl_langinfo): In C++, define a namespaced alias symbol.
60562         * modules/langinfo (Depends-on): Add c++defs.
60563         (Makefile.am): Update langinfo.h rule.
60565         iconv-h: Avoid #define replacements in C++ mode.
60566         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
60567         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
60568         symbol.
60569         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
60570         whenever iconv is present.
60571         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
60572         (Makefile.am): Update iconv.h rule.
60574         glob: Avoid #define replacements in C++ mode.
60575         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
60576         (_gl_glob_errfunc_fn): New type.
60577         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
60578         symbol.
60579         * modules/glob (Depends-on): Add c++defs, warn-on-use.
60580         (Makefile.am): Update glob.h rule.
60582         fcntl-h: Avoid #define replacements in C++ mode.
60583         * lib/fcntl.in.h: Include c++defs.h.
60584         (fcntl, open, openat): In C++, define a namespaced alias symbol.
60585         * modules/fcntl-h (Depends-on): Add c++defs.
60586         (Makefile.am): Update fcntl.h rule.
60588         dirent: Avoid #define replacements in C++ mode.
60589         * lib/dirent.in.h: Include c++defs.h.
60590         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
60591         namespaced alias symbol.
60592         (dirfd): Update declaration.
60593         * modules/dirent (Depends-on): Add c++defs.
60594         (Makefile.am): Update dirent.h rule.
60596         ctype: Make it usable in C++ code.
60597         * lib/ctype.in.h: Include c++defs.h.
60598         (isblank): Declare as extern "C".
60599         * modules/ctype (Depends-on): Add c++defs.
60600         (Makefile.am): Update ctype.h rule.
60602         New module 'c++defs'.
60603         * modules/c++defs: New file.
60604         * build-aux/c++defs.h: New file.
60605         Reported by John W. Eaton <jwe@gnu.org>.
60607 2010-03-07  Bruno Haible  <bruno@clisp.org>
60609         logb: Provide missing declaration for Cygwin.
60610         * lib/math.in.h (logb): New declaration.
60611         * m4/logb.m4: New file.
60612         * modules/logb (Files): Add m4/logb.m4.
60613         (Depends-on): Add math.
60614         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
60615         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
60616         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
60617         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
60618         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
60620 2010-03-07  Bruno Haible  <bruno@clisp.org>
60622         Fix test-cond link error.
60623         * tests/test-cond.c: Include <stdio.h>.
60625 2010-03-07  Bruno Haible  <bruno@clisp.org>
60627         Fix test-dirent-safer link error.
60628         * modules/dirent-safer-tests (Makefile.am): Define
60629         test_dirent_safer_LDADD.
60631 2010-03-07  Bruno Haible  <bruno@clisp.org>
60633         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
60634         among default module list.
60636 2010-03-07  Bruno Haible  <bruno@clisp.org>
60638         Fix link error on platforms with GNU libiconv.
60639         * modules/unistr/u8-strcoll-tests (Makefile): Define
60640         test_u8_strcoll_LDADD.
60641         * modules/unistr/u16-strcoll-tests (Makefile): Define
60642         test_u16_strcoll_LDADD.
60643         * modules/unistr/u32-strcoll-tests (Makefile): Define
60644         test_u32_strcoll_LDADD.
60646 2010-03-07  Bruno Haible  <bruno@clisp.org>
60648         Use POSIX declarations for socket functions.
60649         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
60650         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
60651         rpl_sendto): Change declaration to match POSIX.
60652         * lib/connect.c (rpl_connect): Likewise.
60653         * lib/accept.c (rpl_accept): Likewise.
60654         * lib/bind.c (rpl_bind): Likewise.
60655         * lib/getpeername.c (rpl_getpeername): Likewise.
60656         * lib/getsockname.c (rpl_getsockname): Likewise.
60657         * lib/recv.c (rpl_recv): Likewise.
60658         * lib/send.c (rpl_send): Likewise.
60659         * lib/recvfrom.c (rpl_recvfrom): Likewise.
60660         * lib/sendto.c (rpl_sendto): Likewise.
60662 2010-03-06  Bruno Haible  <bruno@clisp.org>
60664         Clarify access, euidaccess, faccessat.
60665         * doc/posix-functions/faccessat.texi: Mention security problem under
60666         "Other problems", not "Portability problems".
60667         * doc/posix-functions/access.texi: Likewise. Mention a related security
60668         problem.
60669         * doc/glibc-functions/euidaccess.texi: Mention security problems.
60670         * lib/euidaccess.c: Add comments about platforms.
60671         * lib/unistd.in.h (access, euidaccess): Add warnings.
60673 2010-03-07  Bruno Haible  <bruno@clisp.org>
60675         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
60676         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
60677         (POSIX_SPAWN_SETSCHEDULER): Likewise.
60678         (POSIX_SPAWN_USEVFORK): Define in a way that works when
60679         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
60680         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
60681         declare when POSIX_SPAWN_SETSCHEDULER is zero.
60682         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
60683         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
60684         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
60685         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
60686         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
60687         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
60688         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
60689         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
60690         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
60691         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
60692         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
60693         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
60694         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
60695         Likewise.
60696         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
60697         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
60698         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
60699         Likewise.
60700         * tests/test-spawn.c (main): Make it work when
60701         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
60703 2010-03-07  Bruno Haible  <bruno@clisp.org>
60705         Fix incorrect Makefile.am generation in German locale.
60706         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60707         Execute sed command with character range in C locale.
60709 2010-03-06  Bruno Haible  <bruno@clisp.org>
60711         Tests for module 'iconv-h'.
60712         * modules/iconv-h-tests: New file.
60713         * tests/test-iconv-h.c: New file.
60715         New module 'iconv-h'.
60716         * modules/iconv-h: New file.
60717         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
60718         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
60719         (configure.ac): Remove gl_ICONV_H.
60720         (Makefile.am): Remove rule for iconv.h.
60722 2010-03-06  Bruno Haible  <bruno@clisp.org>
60724         More consistent naming of *.m4 files.
60725         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
60726         * modules/wctype (Files): Update.
60728         More consistent naming of *.m4 files.
60729         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
60730         * modules/wchar (Files): Update.
60732 2010-03-06  Jim Meyering  <meyering@redhat.com>
60734         euidaccess: relax license to LGPLv2+
60735         * modules/euidaccess (License): Relax to LGPLv2+.
60737 2010-03-06  Bruno Haible  <bruno@clisp.org>
60739         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
60740         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
60741         (Makefile.am): Augment lib_SOURCES instead.
60743 2010-03-04  Jim Meyering  <meyering@redhat.com>
60745         utime: remove obsolete module
60746         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
60747         unnecessary for years, and has been marked as obsolete for 10 months.
60748         * modules/utime: Remove file.
60749         * lib/utime.c: Remove file.
60750         * m4/utime.m4: Remove file.
60751         * m4/utimes-null.m4: Remove file.
60752         * doc/posix-functions/utime.texi (utime): Remove reference to
60753         the module.  Move the sole "fixed by gnulib" item into the
60754         "problems not fixed by Gnulib" list.
60755         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
60757 2010-03-05  Simon Josefsson  <simon@josefsson.org>
60759         * modules/exit (License): Relax license to LGPLv2+.
60760         (Status): Mark as obsolete.
60761         * NEWS: Mention deprecated 'exit' module.
60762         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
60763         of now obsolete 'exit'.
60765 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60767         fts-lgpl: remove unused module
60768         * modules/fts-lgpl: Remove.
60769         * MODULES.html.sh (func_all_modules): Adjust.
60770         * check-module (find_included_lib_files): Adjust.
60771         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
60773 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
60775         copy-acl: enhance Solaris ACL error handling
60776         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
60777         * lib/set-mode-acl.c (qset_acl): Likewise.
60779 2010-03-02  Bruno Haible  <bruno@clisp.org>
60781         spawn: Don't override the system defined values on FreeBSD 8.
60782         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
60783         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
60784         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
60785         if HAVE_POSIX_SPAWN is 1.
60786         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
60788 2010-03-01  Bruno Haible  <bruno@clisp.org>
60790         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
60791         regarding Automake.
60793 2010-02-25  Bruno Haible  <bruno@clisp.org>
60795         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
60796         * gnulib-tool: Define 'echo' as a function only before the ksh alias
60797         setting, not afterwards.
60798         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
60800 2010-02-24  Eric Blake  <eblake@redhat.com>
60802         bootstrap, git-version-gen: use timestamp
60803         * build-aux/git-version-gen (scriptversion): Force UTC.
60804         * build-aux/bootstrap (scriptversion): New variable.
60806         bootstrap: allow older git
60807         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
60808         older than 1.6.4.  Requested by the libvirt project.
60810 2010-02-23  Eric Blake  <eblake@redhat.com>
60812         warn-on-use: work with old autoconf
60813         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
60814         AS_VAR semantics of autoconf 2.60.
60815         Reported by Bruno Haible.
60817         bootstrap: improve some comments
60818         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
60819         clarification comments.
60821         gettimeofday: provide correct function
60822         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
60823         when replacement is declared, otherwise provide gettimeofday.
60824         Reported by Michael Goffioul.
60826 2010-02-23  Jim Meyering  <meyering@redhat.com>
60828         lib-ignore: relax license to "unlimited", not LGPLv2+
60829         * modules/lib-ignore (License): Relax to "unlimited".
60831 2010-02-23  Jim Meyering  <meyering@redhat.com>
60833         lib-ignore: relax license to LGPLv2+
60834         * modules/lib-ignore (License): Relax to LGPLv2+.
60836 2010-02-22  Eric Blake  <eblake@redhat.com>
60838         lseek: avoid bash 3.2 broken pipe bug
60839         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
60840         warning from bash 3.2.
60841         Reported by Ben Pfaff, with analysis from Bruno Haible.
60843         bootstrap: support non-FSF copyright holder
60844         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
60845         bootstrap.conf override of COPYRIGHT_HOLDER.
60846         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
60848         bootstrap: interoperate with gettext 0.14.1
60849         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
60851         bootstrap: allow for alternate submodule location
60852         * build-aux/bootstrap (gnulib_path): New variable; use instead of
60853         hardcoding submodule location.
60854         (gnulib_mk): Allow direct use of Makefile.am.
60856         bootstrap: use GNULIB_SRCDIR to reduce disk usage
60857         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
60858         rather than reconfiguring where the submodule points.
60860         gettimeofday: restore support for platforms that lack function
60861         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
60862         replacement if function is missing.
60863         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
60864         * modules/sys_time (Makefile.am): Substitute it.
60865         * lib/sys_time.in.h (gettimeofday): Check it.
60866         Reported by Michael Goffioul.
60868 2010-02-21  Bruno Haible  <bruno@clisp.org>
60870         * lib/stdio.in.h (obstack_printf): Fix typo.
60872 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
60874         vc-list-files: use bzr ls's -R option
60875         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
60876         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
60878 2010-02-21  Jim Meyering  <meyering@redhat.com>
60880         init.sh: fix EXEEXT shims to work also for names like test-prog
60881         * tests/init.sh: Re-exec a better shell, when needed.
60882         If the current shell lacks support for posix $(...), an init.sh-using
60883         test will now try to find a shell that supports that.  If EXEEXT is
60884         nonempty, we also require support for hyphen-in-alias-name and shell
60885         substitutions like ${var#glob}.  Failure to find such a shell results
60886         in a skipped test.
60888 2010-02-21  Bruno Haible  <bruno@clisp.org>
60890         Really work around "broken pipe" error message from bash 3.2.
60891         * gnulib-tool (func_reset_sigpipe): Remove function.
60892         (echo): In bash 3.2, define to a function that uses printf.
60893         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
60895 2010-02-20  Bruno Haible  <bruno@clisp.org>
60897         Restore support for automake 1.9.6 with autoconf 2.61.
60898         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
60899         Reported by James Youngman <jay@gnu.org>.
60901 2010-02-20  Bruno Haible  <bruno@clisp.org>
60903         Improve *printf warning condition.
60904         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
60905         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
60906         and the function is overridden due to SIGPIPE emulation.
60908 2010-02-20  Bruno Haible  <bruno@clisp.org>
60910         * lib/stdio.in.h: Tweak comments.
60912 2010-02-19  Bruno Haible  <bruno@clisp.org>
60914         Make it easier to find modules. New gnulib-tool option '--find'.
60915         * gnulib-tool: New option --find.
60916         (func_usage): Document it.
60917         (func_sanitize_modulelist): New function, extracted from
60918         func_all_modules.
60919         (func_all_modules): Invoke it.
60920         * doc/gnulib-tool.texi (Which modules?): New node.
60922 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
60924         * lib/sys_select.in.h: Provide select replacement even if
60925         sys/select.h exists on a system, for Interix.
60927 2010-02-18  Jim Meyering  <meyering@redhat.com>
60929         init.sh: don't use $(...) just yet
60930         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
60931         to accommodate e.g., Solaris' /bin/sh.
60933 2010-02-17  Bruno Haible  <bruno@clisp.org>
60935         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
60936         Reported by Ludovic Courtès <ludo@gnu.org>.
60938 2010-02-16  Simon Josefsson  <simon@josefsson.org>
60940         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
60941         linking with -lintl.
60943 2010-02-17  Simon Josefsson  <simon@josefsson.org>
60945         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
60946         if not provided by the system's netdb.h.  Reported by
60947         ludo@gnu.org (Ludovic Courtès).
60949 2010-02-15  Jim Meyering  <meyering@redhat.com>
60951         init.sh: improve portability and efficiency
60952         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
60953         "dummy" in a for loop.
60954         Use '!', not '^' to select the complement of a character set used
60955         in a "case" statement.
60956         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
60957         Suggestions from Eric Blake.
60959         init.sh: automatically accommodate programs with the .exe suffix
60960         Automatically arrange for an invocation of "prog" to execute the
60961         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
60962         may use the simpler "prog", yet still work when built on a system
60963         that requires specifying the added suffix.
60964         Do this by constructing a function named "prog" that invokes
60965         "prog.exe" for each .exe file in selected directories.
60966         * tests/init.sh (find_exe_basenames_): New function.
60967         (create_exe_shim_functions_): New function.
60968         (path_prepend_): Use it.
60970         maint.mk: mark syntax-check sc_*.m rules as .PHONY
60971         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
60972         "make -t syntax-check" doesn't create a ton of sc_*.m files.
60974 2010-02-14  Jim Meyering  <meyering@redhat.com>
60976         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
60977         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
60978         (sc_prohibit_hash_pjw_without_use): New rule.
60980         maint.mk: allow the default upload destination dir to be overridden
60981         * top/maint.mk (upload_dest_dir_): Define with a default that
60982         preserves the status quo.
60983         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
60984         Reported by Peter Simons.
60986         maint.mk: prohibit inclusion of "hash.h" without_use
60987         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
60989 2010-02-10  Jim Meyering  <meyering@redhat.com>
60991         maint.mk: prohibit inclusion of "ignore-value.h" without_use
60992         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
60994 2010-02-09  Eric Blake  <ebb9@byu.net>
60995         and Bruno Haible  <bruno@clisp.org>
60997         obstack-printf-posix: ensure declaration
60998         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
60999         extracted from gl_FUNC_OBSTACK_PRINTF.
61000         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
61001         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
61002         Likewise.
61003         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
61004         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
61005         0.
61007 2010-02-08  Bruno Haible  <bruno@clisp.org>
61009         gnulib-tool: Fix typo in 2010-02-07 commit.
61010         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
61011         Reported by Eric Blake.
61013 2010-02-07  Bruno Haible  <bruno@clisp.org>
61015         gnulib-tool: Fix up caching patches.
61016         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
61017         option --no-cache. Use associative arrays when supported by the shell.
61018         (sed_comments): New variable.
61019         (modcache): Renamed from do_cache.
61020         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
61021         abbreviate unnecessarily.
61022         (have_associative): New variable.
61023         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
61024         way also for ksh and zsh.
61025         (func_init_sed_convert_to_cache_statements): New function, extracted
61026         from func_cache_lookup_module. Add support for associative arrays.
61027         Don't set the c_MODULE_cached variable here. Ignore all lines before
61028         the first field header. Remove only the final newline, not all trailing
61029         newlines. Support empty fields correctly. Limit the use of 'eval' to
61030         assignments.
61031         (func_get_description, func_get_status, func_get_notice,
61032         func_get_applicability, func_get_filelist, func_get_dependencies,
61033         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
61034         func_get_automake_snippet, func_get_include_directive,
61035         func_get_link_directive, func_get_license, func_get_maintainer):
61036         Update documentation. List the unoptimized code first. Add support for
61037         associative arrays. Limit the use of 'eval' to assignments.
61038         (func_get_applicability): Undo stylistic pessimisations.
61039         (func_get_automake_snippet, func_get_include_directive): Reduce code
61040         duplication.
61041         (func_modules_transitive_closure, func_modules_add_dummy,
61042         func_modules_notice, func_modules_to_filelist, func_add_file,
61043         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
61044         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
61045         func_create_testdir, func_create_megatestdir): Update documentation.
61047 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61049         * gnulib-tool (func_cache_lookup_module): Store the module name
61050         belonging to the cache variable; error out if two different
61051         module names map to the same cache variable name.
61053 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61055         gnulib-tool: Make caching optional.
61056         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
61057         Update matching short versions of --no-changelog.
61058         (func_usage): Update.
61059         (sed_extract_cache_prog): Renamed from ...
61060         (sed_extract_prog): ... this; revert to old extraction script.
61061         (func_get_description, func_get_status)
61062         (func_get_notice, func_get_applicability, func_get_filelist)
61063         (func_get_dependencies, func_get_autoconf_early_snippet)
61064         (func_get_autoconf_snippet, func_get_automake_snippet)
61065         (func_get_include_directive, func_get_link_directive)
61066         (func_get_license, func_get_maintainer): If $do_cache is false,
61067         use old, non-caching extraction scripts.
61068         Suggestion by Bruno Haible.
61070 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61072         gnulib-tool: cache module metainformation.
61073         * gnulib-tool (sed_extract_prog): Match newline before each
61074         header, and rewrite header to a shell variable suffix.
61075         (func_cache_var, func_cache_lookup_module): New functions,
61076         to turn a module name into a cache variable prefix, and to
61077         look up and cache module metainformation.
61078         (func_get_description, func_get_status)
61079         (func_get_notice, func_get_applicability, func_get_filelist)
61080         (func_get_dependencies, func_get_autoconf_early_snippet)
61081         (func_get_autoconf_snippet, func_get_automake_snippet)
61082         (func_get_include_directive, func_get_link_directive)
61083         (func_get_license, func_get_maintainer): Use
61084         func_cache_lookup_module.
61086 2010-02-07  Bruno Haible  <bruno@clisp.org>
61088         fnctl: Fix missing dependency.
61089         * modules/fcntl (Depends-on): Add getdtablesize.
61090         Reported by John W. Eaton <jwe@gnu.org>.
61092 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
61094         Argp: fix recognition of short alias options.
61096         * lib/argp-parse.c (convert_options): Fix improper use of
61097         `|' between character values.
61098         * tests/test-argp.c (group1_option): New alias option
61099         --read (-r).
61100         (group1_parser): Special handling for 'r'.
61101         (test15): New test case.
61102         (test_fun): Add test15.
61103         * tests/test-argp-2.sh: Update expected --help and --usage
61104         outputs.
61106 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
61108         * tests/test-argp.c: Fix indentation.
61110 2010-02-04  Eric Blake  <ebb9@byu.net>
61112         gettimeofday: expose type of second argument
61113         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
61114         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
61115         * tests/test-gettimeofday.c: Use it to silence warning.
61116         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
61117         the issue.
61119 2010-02-03  Jim Meyering  <meyering@redhat.com>
61121         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
61122         * lib/regcomp.c (TYPE_SIGNED): Define.
61123         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
61125         regcomp.c: avoid a new -Wshadow warning
61126         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
61128 2010-02-01  Jim Meyering  <meyering@redhat.com>
61130         removing useless parentheses in cpp #define directives
61131         For motivation, see commit c0221df4, "define STREQ(a,b)
61132         consistently, removing useless parentheses"
61133         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
61134         * lib/mountlist.c (MNT_IGNORE): Likewise.
61135         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
61137 2010-02-01  Eric Blake  <ebb9@byu.net>
61139         sys_time: use link-warning
61140         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
61141         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
61142         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
61143         * modules/sys_time (Depends-on): Add warn-on-use.
61144         (Makefile.am): Always build replacement.
61145         (configure.ac): Update substitutions.
61146         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
61147         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
61148         bother with SYS_TIME_H.
61149         * modules/gettimeofday (configure.ac): Declare indicator.
61150         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
61151         in use.
61153         closein-tests: silence compiler warning
61154         * tests/test-closein.c (main): Ignore fread result.
61155         * modules/closein-tests (Depends-on): Add ignore-value.
61157         tests: silence warning about system return
61158         * tests/test-areadlink-with-size.c (main): Ignore system result.
61159         * tests/test-areadlink.c (main): Likewise.
61160         * tests/test-areadlinkat-with-size.c (main): Likewise.
61161         * tests/test-areadlinkat.c (main): Likewise.
61162         * tests/test-canonicalize-lgpl.c (main): Likewise.
61163         * tests/test-canonicalize.c (main): Likewise.
61164         * tests/test-chown.c (main): Likewise.
61165         * tests/test-fchownat.c (main): Likewise.
61166         * tests/test-fdutimensat.c (main): Likewise.
61167         * tests/test-fstatat.c (main): Likewise.
61168         * tests/test-futimens.c (main): Likewise.
61169         * tests/test-lchown.c (main): Likewise.
61170         * tests/test-link.c (main): Likewise.
61171         * tests/test-linkat.c (main): Likewise.
61172         * tests/test-lstat.c (main): Likewise.
61173         * tests/test-mkdir.c (main): Likewise.
61174         * tests/test-mkdirat.c (main): Likewise.
61175         * tests/test-mkfifo.c (main): Likewise.
61176         * tests/test-mkfifoat.c (main): Likewise.
61177         * tests/test-mknod.c (main): Likewise.
61178         * tests/test-readlink.c (main): Likewise.
61179         * tests/test-remove.c (main): Likewise.
61180         * tests/test-rename.c (main): Likewise.
61181         * tests/test-renameat.c (main): Likewise.
61182         * tests/test-rmdir.c (main): Likewise.
61183         * tests/test-symlink.c (main): Likewise.
61184         * tests/test-symlinkat.c (main): Likewise.
61185         * tests/test-unlink.c (main): Likewise.
61186         * tests/test-unlinkat.c (main): Likewise.
61187         * tests/test-utimens.c (main): Likewise.
61188         * tests/test-utimensat.c (main): Likewise.
61189         * modules/areadlink-tests (Depends-on): Add ignore-value.
61190         * modules/areadlink-with-size-tests (Depends-on): Likewise.
61191         * modules/areadlinkat-tests (Depends-on): Likewise.
61192         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
61193         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
61194         * modules/canonicalize-tests (Depends-on): Likewise.
61195         * modules/chown-tests (Depends-on): Likewise.
61196         * modules/fdutimensat-tests (Depends-on): Likewise.
61197         * modules/futimens-tests (Depends-on): Likewise.
61198         * modules/lchown-tests (Depends-on): Likewise.
61199         * modules/link-tests (Depends-on): Likewise.
61200         * modules/linkat-tests (Depends-on): Likewise.
61201         * modules/lstat-tests (Depends-on): Likewise.
61202         * modules/mkdir-tests (Depends-on): Likewise.
61203         * modules/mkfifo-tests (Depends-on): Likewise.
61204         * modules/mkfifoat-tests (Depends-on): Likewise.
61205         * modules/mknod-tests (Depends-on): Likewise.
61206         * modules/openat-tests (Depends-on): Likewise.
61207         * modules/readlink-tests (Depends-on): Likewise.
61208         * modules/remove-tests (Depends-on): Likewise.
61209         * modules/rename-tests (Depends-on): Likewise.
61210         * modules/renameat-tests (Depends-on): Likewise.
61211         * modules/rmdir-tests (Depends-on): Likewise.
61212         * modules/symlink-tests (Depends-on): Likewise.
61213         * modules/symlinkat-tests (Depends-on): Likewise.
61214         * modules/unlink-tests (Depends-on): Likewise.
61215         * modules/utimens-tests (Depends-on): Likewise.
61216         * modules/utimensat-tests (Depends-on): Likewise.
61218 2010-01-31  Bruno Haible  <bruno@clisp.org>
61220         Perform the same test for many <math.h> functions.
61221         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
61222         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
61223         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
61224         of gl_MATHFUNC.
61225         * modules/acos (configure.ac): Likewise.
61226         * modules/asin (configure.ac): Likewise.
61227         * modules/atan (configure.ac): Likewise.
61228         * modules/atan2 (configure.ac): Likewise.
61229         * modules/cbrt (configure.ac): Likewise.
61230         * modules/copysign (configure.ac): Likewise.
61231         * modules/cos (configure.ac): Likewise.
61232         * modules/cosh (configure.ac): Likewise.
61233         * modules/erf (configure.ac): Likewise.
61234         * modules/erfc (configure.ac): Likewise.
61235         * modules/exp (configure.ac): Likewise.
61236         * modules/fmod (configure.ac): Likewise.
61237         * modules/hypot (configure.ac): Likewise.
61238         * modules/j0 (configure.ac): Likewise.
61239         * modules/j1 (configure.ac): Likewise.
61240         * modules/jn (configure.ac): Likewise.
61241         * modules/lgamma (configure.ac): Likewise.
61242         * modules/log (configure.ac): Likewise.
61243         * modules/log10 (configure.ac): Likewise.
61244         * modules/log1p (configure.ac): Likewise.
61245         * modules/pow (configure.ac): Likewise.
61246         * modules/remainder (configure.ac): Likewise.
61247         * modules/sin (configure.ac): Likewise.
61248         * modules/sinh (configure.ac): Likewise.
61249         * modules/tan (configure.ac): Likewise.
61250         * modules/tanh (configure.ac): Likewise.
61251         * modules/y0 (configure.ac): Likewise.
61252         * modules/y1 (configure.ac): Likewise.
61253         * modules/yn (configure.ac): Likewise.
61254         Suggested by Paolo Bonzini.
61256 2010-01-31  Bruno Haible  <bruno@clisp.org>
61258         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
61260 2010-01-31  Bruno Haible  <bruno@clisp.org>
61262         Work around getdelim() bug on FreeBSD 8.0.
61263         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
61264         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
61265         not work.
61266         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
61267         is 1.
61268         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
61269         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
61270         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
61271         a non-zero size.
61272         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
61274 2010-01-31  Bruno Haible  <bruno@clisp.org>
61276         Work around getline() bug on FreeBSD 8.0.
61277         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
61278         and a non-zero size.
61279         * tests/test-getline.c (main): Likewise.
61280         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
61281         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
61283 2010-01-28  Eric Blake  <ebb9@byu.net>
61285         regex: fix build failure
61286         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
61287         platforms.
61289 2010-01-28  Jim Meyering  <meyering@redhat.com>
61291         regex: do not ignore memory allocation failure
61292         * lib/regex_internal.c (create_cd_newstate): Detect
61293         re_node_set_init_copy failure.   Extracted from glibc commit
61294         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
61296         regex: sync more white-space changes from libc
61297         * lib/regex_internal.c: White-space only changes.
61298         * lib/regexec.c: Likewise.
61300         regex: add many uses of __attribute_warn_unused_result__
61301         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
61302         * lib/regexec.c: Likewise.
61303         Extracted from a messy glibc commit.
61305         regcomp.c: spelling and merge-artifact from glibc
61306         * lib/regcomp.c: Merge remainder of glibc's
61307         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
61309         regcomp.c: sync white-space changes from glibc
61310         * lib/regcomp.c: Merge to accommodate white space
61311         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
61313         regcomp.c: do not ignore internal return values
61314         * lib/regcomp.c: Do not ignore internal return values.
61315         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
61316         but without its white-space changes and spelling fixes.
61318         regex_internal.h: define __attribute_warn_unused_result__
61319         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
61321         maint: add a syntax-check rule to check for vulnerable Makefile.in
61322         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
61324 2010-01-27  Jim Meyering  <meyering@redhat.com>
61326         ncftpput-ftp: clean up spaces
61327         * build-aux/ncftpput-ftp: Make Copyright line consistent.
61328         Remove trailing blanks.
61330 2010-01-27  Simon Josefsson  <simon@josefsson.org>
61332         * build-aux/git-version-gen: Fix copyright statement.
61333         * build-aux/gnupload: Likewise.
61334         * tests/test-arcfour.c: Likewise.
61335         * tests/test-arctwo.c: Likewise.
61336         * tests/test-count-one-bits.c: Likewise.
61337         * tests/test-crc.c: Likewise.
61338         * tests/test-des.c: Likewise.
61339         * tests/test-gc-arcfour.c: Likewise.
61340         * tests/test-gc-arctwo.c: Likewise.
61341         * tests/test-gc-des.c: Likewise.
61342         * tests/test-gc-hmac-md5.c: Likewise.
61343         * tests/test-gc-hmac-sha1.c: Likewise.
61344         * tests/test-gc-md2.c: Likewise.
61345         * tests/test-gc-md4.c: Likewise.
61346         * tests/test-gc-md5.c: Likewise.
61347         * tests/test-gc-pbkdf2-sha1.c: Likewise.
61348         * tests/test-gc-rijndael.c: Likewise.
61349         * tests/test-gc-sha1.c: Likewise.
61350         * tests/test-gc.c: Likewise.
61351         * tests/test-gethostname.c: Likewise.
61352         * tests/test-gettimeofday.c: Likewise.
61353         * tests/test-hash.c: Likewise.
61354         * tests/test-hmac-md5.c: Likewise.
61355         * tests/test-hmac-sha1.c: Likewise.
61356         * tests/test-md2.c: Likewise.
61357         * tests/test-md4.c: Likewise.
61358         * tests/test-md5.c: Likewise.
61359         * tests/test-memchr.c: Likewise.
61360         * tests/test-memchr2.c: Likewise.
61361         * tests/test-memcmp.c: Likewise.
61362         * tests/test-memmem.c: Likewise.
61363         * tests/test-memrchr.c: Likewise.
61364         * tests/test-rawmemchr.c: Likewise.
61365         * tests/test-read-file.c: Likewise.
61366         * tests/test-rijndael.c: Likewise.
61367         * tests/test-sockets.c: Likewise.
61368         * tests/test-strchrnul.c: Likewise.
61369         * tests/test-strstr.c: Likewise.
61370         * tests/test-strtod.c: Likewise.
61371         * build-aux/ncftpput-ftp: Likewise.
61373 2010-01-26  Eric Blake  <ebb9@byu.net>
61375         ignore-value: update recommended header name
61376         * modules/ignore-value (Include): Only use <> for headers that
61377         exist in glibc.
61379 2010-01-26  Jim Meyering  <meyering@redhat.com>
61381         test-userspec.c: avoid compiler warnings
61382         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
61383         and "initialization discards qualifiers..." warnings.
61384         Put the first "uid" in its own scope, and make char* members "const".
61386 2010-01-25  Bruno Haible  <bruno@clisp.org>
61388         gnulib-tool: Make warning diagnostics consistent.
61389         * gnulib-tool (func_warning): New function.
61390         Use it everywhere where gnulib-tool produces output to stderr and it is
61391         not a fatal error.
61393 2010-01-25  Bruno Haible  <bruno@clisp.org>
61395         Fix test dependencies.
61396         * modules/xstrtol-tests (Depends-on): Add inttypes.
61397         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
61399 2010-01-25  Pádraig Brady  <P@draigBrady.com>
61401         syntax-check: detect incorrect boolean macro values in config.h
61402         * modules/maintainer-makefile (configure.ac): Parameterize the location
61403         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
61404         The logic is from Eric Blake and the location indicated by Jim Meyering.
61405         Note the more natural CONFIG_HEADER name is prohibited by automake
61406         for backwards compatibility reasons.
61407         * top/maint.mk (sc_Wundef_boolean): New rule.
61409 2010-01-25  Jim Meyering  <meyering@redhat.com>
61411         bootstrap: detect MacOS 10.6's shasum, too
61412         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
61413         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
61415 2010-01-23  Jim Meyering  <meyering@redhat.com>
61417         xstrtoll: new module
61418         * modules/xstrtoll: New file.
61419         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
61420         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
61421         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
61422         ./configure fails if you use this module and lack "long long".
61423         * modules/xstrtoll-tests: New module.
61424         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
61425         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
61426         new init.sh-based test framework.
61428 2010-01-24  Bruno Haible  <bruno@clisp.org>
61430         Tests for module 'yn'.
61431         * modules/yn-tests: New file.
61432         * tests/test-yn.c: New file.
61434         Tests for module 'y1'.
61435         * modules/y1-tests: New file.
61436         * tests/test-y1.c: New file.
61438         Tests for module 'y0'.
61439         * modules/y0-tests: New file.
61440         * tests/test-y0.c: New file.
61442         Tests for module 'tanh'.
61443         * modules/tanh-tests: New file.
61444         * tests/test-tanh.c: New file.
61446         Tests for module 'tan'.
61447         * modules/tan-tests: New file.
61448         * tests/test-tan.c: New file.
61450         Tests for module 'sqrt'.
61451         * modules/sqrt-tests: New file.
61452         * tests/test-sqrt.c: New file.
61454         Tests for module 'sinh'.
61455         * modules/sinh-tests: New file.
61456         * tests/test-sinh.c: New file.
61458         Tests for module 'sin'.
61459         * modules/sin-tests: New file.
61460         * tests/test-sin.c: New file.
61462         Tests for module 'rint'.
61463         * modules/rint-tests: New file.
61464         * tests/test-rint.c: New file.
61466         Tests for module 'remainder'.
61467         * modules/remainder-tests: New file.
61468         * tests/test-remainder.c: New file.
61470         Tests for module 'pow'.
61471         * modules/pow-tests: New file.
61472         * tests/test-pow.c: New file.
61474         Tests for module 'nextafter'.
61475         * modules/nextafter-tests: New file.
61476         * tests/test-nextafter.c: New file.
61478         Tests for module 'modf'.
61479         * modules/modf-tests: New file.
61480         * tests/test-modf.c: New file.
61482         Tests for module 'logb'.
61483         * modules/logb-tests: New file.
61484         * tests/test-logb.c: New file.
61486         Tests for module 'log1p'.
61487         * modules/log1p-tests: New file.
61488         * tests/test-log1p.c: New file.
61490         Tests for module 'log10'.
61491         * modules/log10-tests: New file.
61492         * tests/test-log10.c: New file.
61494         Tests for module 'log'.
61495         * modules/log-tests: New file.
61496         * tests/test-log.c: New file.
61498         Tests for module 'lgamma'.
61499         * modules/lgamma-tests: New file.
61500         * tests/test-lgamma.c: New file.
61502         Tests for module 'ldexp'.
61503         * modules/ldexp-tests: New file.
61504         * tests/test-ldexp.c: New file.
61506         Tests for module 'jn'.
61507         * modules/jn-tests: New file.
61508         * tests/test-jn.c: New file.
61510         Tests for module 'j1'.
61511         * modules/j1-tests: New file.
61512         * tests/test-j1.c: New file.
61514         Tests for module 'j0'.
61515         * modules/j0-tests: New file.
61516         * tests/test-j0.c: New file.
61518         Tests for module 'hypot'.
61519         * modules/hypot-tests: New file.
61520         * tests/test-hypot.c: New file.
61522         Tests for module 'fmod'.
61523         * modules/fmod-tests: New file.
61524         * tests/test-fmod.c: New file.
61526         Tests for module 'fabs'.
61527         * modules/fabs-tests: New file.
61528         * tests/test-fabs.c: New file.
61530         Tests for module 'exp'.
61531         * modules/exp-tests: New file.
61532         * tests/test-exp.c: New file.
61534         Tests for module 'erfc'.
61535         * modules/erfc-tests: New file.
61536         * tests/test-erfc.c: New file.
61538         Tests for module 'erf'.
61539         * modules/erf-tests: New file.
61540         * tests/test-erf.c: New file.
61542         Tests for module 'cosh'.
61543         * modules/cosh-tests: New file.
61544         * tests/test-cosh.c: New file.
61546         Tests for module 'cos'.
61547         * modules/cos-tests: New file.
61548         * tests/test-cos.c: New file.
61550         Tests for module 'copysign'.
61551         * modules/copysign-tests: New file.
61552         * tests/test-copysign.c: New file.
61554         Tests for module 'cbrt'.
61555         * modules/cbrt-tests: New file.
61556         * tests/test-cbrt.c: New file.
61558         Tests for module 'atan2'.
61559         * modules/atan2-tests: New file.
61560         * tests/test-atan2.c: New file.
61562         Tests for module 'atan'.
61563         * modules/atan-tests: New file.
61564         * tests/test-atan.c: New file.
61566         Tests for module 'asin'.
61567         * modules/asin-tests: New file.
61568         * tests/test-asin.c: New file.
61570         Tests for module 'acos'.
61571         * modules/acos-tests: New file.
61572         * tests/test-acos.c: New file.
61574 2010-01-24  Bruno Haible  <bruno@clisp.org>
61576         Fix tests for common <math.h> functions.
61577         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
61578         code snippet that references the function pointer, rather than merely
61579         calling the function. Substitute the FUNC_LIBM variable.
61580         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
61581         * modules/acos (configure.ac): Likewise.
61582         * modules/asin (configure.ac): Likewise.
61583         * modules/atan (configure.ac): Likewise.
61584         * modules/atan2 (configure.ac): Likewise.
61585         * modules/cbrt (configure.ac): Likewise.
61586         * modules/copysign (configure.ac): Likewise.
61587         * modules/cos (configure.ac): Likewise.
61588         * modules/cosh (configure.ac): Likewise.
61589         * modules/erf (configure.ac): Likewise.
61590         * modules/erfc (configure.ac): Likewise.
61591         * modules/exp (configure.ac): Likewise.
61592         * modules/fabs (configure.ac): Likewise.
61593         * modules/fmod (configure.ac): Likewise.
61594         * modules/hypot (configure.ac): Likewise.
61595         * modules/j0 (configure.ac): Likewise.
61596         * modules/j1 (configure.ac): Likewise.
61597         * modules/jn (configure.ac): Likewise.
61598         * modules/ldexp (configure.ac): Likewise.
61599         * modules/lgamma (configure.ac): Likewise.
61600         * modules/log (configure.ac): Likewise.
61601         * modules/log10 (configure.ac): Likewise.
61602         * modules/log1p (configure.ac): Likewise.
61603         * modules/logb (configure.ac): Likewise.
61604         * modules/modf (configure.ac): Likewise.
61605         * modules/nextafter (configure.ac): Likewise.
61606         * modules/pow (configure.ac): Likewise.
61607         * modules/remainder (configure.ac): Likewise.
61608         * modules/rint (configure.ac): Likewise.
61609         * modules/sin (configure.ac): Likewise.
61610         * modules/sinh (configure.ac): Likewise.
61611         * modules/tan (configure.ac): Likewise.
61612         * modules/tanh (configure.ac): Likewise.
61613         * modules/y0 (configure.ac): Likewise.
61614         * modules/y1 (configure.ac): Likewise.
61615         * modules/yn (configure.ac): Likewise.
61617 2010-01-24  Bruno Haible  <bruno@clisp.org>
61619         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
61620         * tests/test-acosl.c (x): New variable.
61621         (main): Store argument in x and fetch it from x.
61622         * tests/test-asinl.c (x): New variable.
61623         (main): Store argument in x and fetch it from x.
61624         * tests/test-atanl.c (x): New variable.
61625         (main): Store argument in x and fetch it from x.
61626         * tests/test-cosl.c (x): New variable.
61627         (main): Store argument in x and fetch it from x.
61628         * tests/test-expl.c (x): New variable.
61629         (main): Store argument in x and fetch it from x.
61630         * tests/test-logl.c (x): New variable.
61631         (main): Store argument in x and fetch it from x.
61632         * tests/test-sinl.c (x): New variable.
61633         (main): Store argument in x and fetch it from x.
61634         * tests/test-sqrtl.c (x): New variable.
61635         (main): Store argument in x and fetch it from x.
61636         * tests/test-tanl.c (x): New variable.
61637         (main): Store argument in x and fetch it from x.
61639 2010-01-24  Bruno Haible  <bruno@clisp.org>
61641         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
61642         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
61643         assignments to the initial TESTS_ENVIRONMENT.
61644         * doc/gnulib.texi (Unit test modules): Document it.
61645         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
61646         TESTS_ENVIRONMENT.
61647         * modules/btowc-tests (Makefile.am): Likewise.
61648         * modules/c-stack-tests (Makefile.am): Likewise.
61649         * modules/c-strcase-tests (Makefile.am): Likewise.
61650         * modules/copy-file-tests (Makefile.am): Likewise.
61651         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
61652         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
61653         * modules/mbrtowc-tests (Makefile.am): Likewise.
61654         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61655         * modules/mbscasestr-tests (Makefile.am): Likewise.
61656         * modules/mbschr-tests (Makefile.am): Likewise.
61657         * modules/mbscspn-tests (Makefile.am): Likewise.
61658         * modules/mbsinit-tests (Makefile.am): Likewise.
61659         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61660         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
61661         * modules/mbspbrk-tests (Makefile.am): Likewise.
61662         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61663         * modules/mbsrchr-tests (Makefile.am): Likewise.
61664         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
61665         * modules/mbsspn-tests (Makefile.am): Likewise.
61666         * modules/mbsstr-tests (Makefile.am): Likewise.
61667         * modules/nl_langinfo-tests (Makefile.am): Likewise.
61668         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
61669         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61670         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61671         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61672         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61673         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
61674         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61675         * modules/wcrtomb-tests (Makefile.am): Likewise.
61676         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
61677         * modules/wcsrtombs-tests (Makefile.am): Likewise.
61678         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
61679         assignments from TESTS_ENVIRONMENT.
61680         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
61681         augmentation.
61682         * modules/argp-version-etc-tests (Makefile.am): Likewise.
61683         * modules/atexit-tests (Makefile.am): Likewise.
61684         * modules/binary-io-tests (Makefile.am): Likewise.
61685         * modules/closein-tests (Makefile.am): Likewise.
61686         * modules/dprintf-posix-tests (Makefile.am): Likewise.
61687         * modules/exclude-tests (Makefile.am): Likewise.
61688         * modules/fflush-tests (Makefile.am): Likewise.
61689         * modules/fpending-tests (Makefile.am): Likewise.
61690         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61691         * modules/freadahead-tests (Makefile.am): Likewise.
61692         * modules/freadptr-tests (Makefile.am): Likewise.
61693         * modules/freadseek-tests (Makefile.am): Likewise.
61694         * modules/fseek-tests (Makefile.am): Likewise.
61695         * modules/fseeko-tests (Makefile.am): Likewise.
61696         * modules/ftell-tests (Makefile.am): Likewise.
61697         * modules/ftello-tests (Makefile.am): Likewise.
61698         * modules/idpriv-drop-tests (Makefile.am): Likewise.
61699         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
61700         * modules/lseek-tests (Makefile.am): Likewise.
61701         * modules/parse-duration-tests (Makefile.am): Likewise.
61702         * modules/perror-tests (Makefile.am): Likewise.
61703         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
61704         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
61705         * modules/pipe-tests (Makefile.am): Likewise.
61706         * modules/pread-tests (Makefile.am): Likewise.
61707         * modules/printf-posix-tests (Makefile.am): Likewise.
61708         * modules/select-tests (Makefile.am): Likewise.
61709         * modules/sigpipe-tests (Makefile.am): Likewise.
61710         * modules/tsearch-tests (Makefile.am): Likewise.
61711         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
61712         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
61713         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61714         * modules/uniwidth/width-tests (Makefile.am): Likewise.
61715         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
61716         * modules/version-etc-tests (Makefile.am): Likewise.
61717         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61718         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61719         * modules/xalloc-die-tests (Makefile.am): Likewise.
61720         * modules/xprintf-posix-tests (Makefile.am): Likewise.
61721         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61722         * modules/xstrtol-tests (Makefile.am): Likewise.
61723         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61724         * modules/yesno-tests (Makefile.am): Likewise.
61725         Suggested by Jim Meyering.
61727 2010-01-24  Bruno Haible  <bruno@clisp.org>
61729         More documentation.
61730         * doc/gnulib.texi (Writing modules): New chapter.
61731         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
61732         the new chapter.
61734 2010-01-24  Jim Meyering  <meyering@redhat.com>
61736         maint.mk: do not prepend "./" after filtering
61737         * top/maint.mk (_prepend_srcdir_prefix): New variable
61738         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
61739         "./" when $(srcdir) is ".".
61741         define STREQ(a,b) consistently, removing useless parentheses
61742         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
61743         since the only risk is that "a" or "b" contains an unparenthesized
61744         comma, but if either did that, STREQ would have 3 or more arguments.
61745         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
61746         * lib/fts.c (STREQ): Remove unnecessary parentheses.
61747         * lib/hash-triple.c (STREQ): Likewise.
61748         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
61749         * lib/getugroups.c (STREQ): Likewise.
61751 2010-01-23  Jim Meyering  <meyering@redhat.com>
61753         maint.mk: fix syntax-check in a non-srcdir build directory
61754         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
61755         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
61757 2010-01-22  Jim Meyering  <meyering@redhat.com>
61759         userspec: add unit tests
61760         * tests/test-userspec.c: New file.
61761         * modules/userspec-tests: Likewise.
61763 2010-01-21  Jim Meyering  <meyering@redhat.com>
61765         maint.mk: handle source file names containing "." robustly
61766         * top/maint.mk (_dot_escaped_srcdir): Define.
61767         (VC_LIST): Use it in LHS of sed substitution.
61769 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
61771         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
61772         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
61773         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
61774         from a non-srcdir build.
61776 2010-01-20  Eric Blake  <ebb9@byu.net>
61778         warn-on-use: use instead of link-warning
61779         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
61780         * modules/unistd (Depends-on, Makefile.am): Likewise.
61781         * modules/arpa_inet (Depends-on): Replace link-warning with
61782         warn-on-use.
61783         (Makefile.am): Update rules accordingly.
61784         * modules/ctype (Depends-on, Makefile.am): Likewise.
61785         * modules/dirent (Depends-on, Makefile.am): Likewise.
61786         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
61787         * modules/inttypes (Depends-on, Makefile.am): Likewise.
61788         * modules/langinfo (Depends-on, Makefile.am): Likewise.
61789         * modules/locale (Depends-on, Makefile.am): Likewise.
61790         * modules/math (Depends-on, Makefile.am): Likewise.
61791         * modules/search (Depends-on, Makefile.am): Likewise.
61792         * modules/signal (Depends-on, Makefile.am): Likewise.
61793         * modules/spawn (Depends-on, Makefile.am): Likewise.
61794         * modules/stdlib (Depends-on, Makefile.am): Likewise.
61795         * modules/string (Depends-on, Makefile.am): Likewise.
61796         * modules/strings (Depends-on, Makefile.am): Likewise.
61797         * modules/sys_file (Depends-on, Makefile.am): Likewise.
61798         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
61799         * modules/sys_select (Depends-on, Makefile.am): Likewise.
61800         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
61801         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
61802         * modules/sys_times (Depends-on, Makefile.am): Likewise.
61803         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
61804         * modules/wchar (Depends-on, Makefile.am): Likewise.
61805         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
61806         should be poisoned.
61807         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
61808         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
61809         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
61810         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61811         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
61812         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
61813         * m4/math_h.m4 (gl_MATH_H): Likewise.
61814         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
61815         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
61816         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
61817         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
61818         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
61819         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
61820         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
61821         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
61822         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
61823         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61824         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61825         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
61826         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
61827         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
61828         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
61829         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
61830         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
61831         GL_LINK_WARNING.
61832         * lib/ctype.in.h: Likewise.
61833         * lib/dirent.in.h: Likewise.
61834         * lib/fcntl.in.h: Likewise.
61835         * lib/inttypes.in.h: Likewise.
61836         * lib/langinfo.in.h: Likewise.
61837         * lib/locale.in.h: Likewise.
61838         * lib/math.in.h: Likewise.
61839         * lib/search.in.h: Likewise.
61840         * lib/signal.in.h: Likewise.
61841         * lib/spawn.in.h: Likewise.
61842         * lib/stdio.in.h: Likewise.
61843         * lib/stdlib.in.h: Likewise.
61844         * lib/string.in.h: Likewise.
61845         * lib/strings.in.h: Likewise.
61846         * lib/sys_file.in.h: Likewise.
61847         * lib/sys_ioctl.in.h: Likewise.
61848         * lib/sys_select.in.h: Likewise.
61849         * lib/sys_socket.in.h: Likewise.
61850         * lib/sys_stat.in.h: Likewise.
61851         * lib/sys_times.in.h: Likewise.
61852         * lib/sys_utsname.in.h: Likewise.
61853         * lib/unistd.in.h: Likewise.
61854         * lib/wchar.in.h: Likewise.
61856 2010-01-20  Bruno Haible  <bruno@clisp.org>
61858         Avoid duplicate -lm.
61859         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
61860         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
61861         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
61862         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
61863         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
61864         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
61865         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
61866         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
61867         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
61868         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
61869         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
61870         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
61871         Reported by Paolo Bonzini.
61873 2010-01-19  Bruno Haible  <bruno@clisp.org>
61875         langinfo, nl_langinfo: Relicense under LGPLv2+.
61876         * modules/langinfo (License): Change to LGPLv2+.
61877         * modules/nl_langinfo (License): Likewise.
61878         Patch by David Lutterkort <lutter@redhat.com>.
61880 2010-01-19  Bruno Haible  <bruno@clisp.org>
61882         Avoid compilation error with cc on OSF/1 5.1.
61883         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
61884         statement, not before.
61885         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61887 2010-01-18  Bruno Haible  <bruno@clisp.org>
61889         Avoid a link error due to the __printf__ symbol.
61890         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
61891         and 2.6.x.
61892         (__format__, __printf__): Remove definitions.
61893         * lib/argp-fmtstream.h: Likewise.
61894         * lib/argp.h: Likewise.
61895         * lib/error.h: Likewise.
61896         * lib/vasnprintf.h: Likewise.
61897         * lib/xprintf.h: Likewise.
61898         * lib/xvasprintf.h: Likewise.
61899         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61901 2010-01-18  Bruno Haible  <bruno@clisp.org>
61903         Tests for module 'tanl'.
61904         * modules/tanl-tests: New file.
61905         * tests/test-tanl.c: New file.
61907         Tests for module 'sqrtl'.
61908         * modules/sqrtl-tests: New file.
61909         * tests/test-sqrtl.c: New file.
61911         Tests for module 'sinl'.
61912         * modules/sinl-tests: New file.
61913         * tests/test-sinl.c: New file.
61915         Tests for module 'logl'.
61916         * modules/logl-tests: New file.
61917         * tests/test-logl.c: New file.
61919         Tests for module 'expl'.
61920         * modules/expl-tests: New file.
61921         * tests/test-expl.c: New file.
61923         Tests for module 'cosl'.
61924         * modules/cosl-tests: New file.
61925         * tests/test-cosl.c: New file.
61927         Tests for module 'atanl'.
61928         * modules/atanl-tests: New file.
61929         * tests/test-atanl.c: New file.
61931         Tests for module 'asinl'.
61932         * modules/asinl-tests: New file.
61933         * tests/test-asinl.c: New file.
61935         Tests for module 'acosl'.
61936         * modules/acosl-tests: New file.
61937         * tests/test-acosl.c: New file.
61939         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
61940         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
61941         tanl): Use the standard gnulib idiom.
61942         * lib/cosl.c: Don't include trigl.c and sincosl.c.
61943         * lib/sinl.c: Likewise.
61944         * lib/tanl.c: Don't include trigl.c.
61945         (kernel_tanl): Make static.
61946         * lib/sincosl.c: Include trigl.h first.
61947         * lib/trigl.c: Likewise.
61948         * m4/acosl.m4: New file.
61949         * m4/asinl.m4: New file.
61950         * m4/atanl.m4: New file.
61951         * m4/cosl.m4: New file.
61952         * m4/expl.m4: New file.
61953         * m4/logl.m4: New file.
61954         * m4/sinl.m4: New file.
61955         * m4/sqrtl.m4: New file.
61956         * m4/tanl.m4: New file.
61957         * m4/mathl.m4: Remove file.
61958         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
61959         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
61960         Don't initialize GNULIB_MATHL.
61961         * modules/acosl: New file.
61962         * modules/asinl: New file.
61963         * modules/atanl: New file.
61964         * modules/cosl: New file.
61965         * modules/expl: New file.
61966         * modules/logl: New file.
61967         * modules/sinl: New file.
61968         * modules/sqrtl: New file.
61969         * modules/tanl: New file.
61970         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
61971         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
61972         substitute GNULIB_MATHL.
61973         * modules/mathl: Rewritten.
61974         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
61975         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
61976         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
61977         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
61978         * doc/posix-functions/expl.texi: Mention the 'expl' module.
61979         * doc/posix-functions/logl.texi: Mention the 'logl' module.
61980         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
61981         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
61982         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
61984 2010-01-18  Bruno Haible  <bruno@clisp.org>
61986         sqrt: Make gl_FUNC_SQRT requirable.
61987         * m4/sqrt.m4: New file.
61988         * modules/sqrt (Files): Add it.
61989         (configure.ac): Invoke gl_FUNC_SQRT.
61991 2010-01-18  Bruno Haible  <bruno@clisp.org>
61993         New modules for common <math.h> functions.
61994         * m4/mathfunc.m4: New file.
61995         * modules/acos: New file.
61996         * modules/asin: New file.
61997         * modules/atan: New file.
61998         * modules/atan2: New file.
61999         * modules/cbrt: New file.
62000         * modules/copysign: New file.
62001         * modules/cos: New file.
62002         * modules/cosh: New file.
62003         * modules/erf: New file.
62004         * modules/erfc: New file.
62005         * modules/exp: New file.
62006         * modules/fabs: New file.
62007         * modules/fmod: New file.
62008         * modules/hypot: New file.
62009         * modules/j0: New file.
62010         * modules/j1: New file.
62011         * modules/jn: New file.
62012         * modules/ldexp: New file.
62013         * modules/lgamma: New file.
62014         * modules/log: New file.
62015         * modules/log10: New file.
62016         * modules/log1p: New file.
62017         * modules/logb: New file.
62018         * modules/modf: New file.
62019         * modules/nextafter: New file.
62020         * modules/pow: New file.
62021         * modules/remainder: New file.
62022         * modules/rint: New file.
62023         * modules/sin: New file.
62024         * modules/sinh: New file.
62025         * modules/sqrt: New file.
62026         * modules/tan: New file.
62027         * modules/tanh: New file.
62028         * modules/y0: New file.
62029         * modules/y1: New file.
62030         * modules/yn: New file.
62031         * doc/posix-functions/acos.texi: Mention the 'acos' module.
62032         * doc/posix-functions/asin.texi: Mention the 'asin' module.
62033         * doc/posix-functions/atan.texi: Mention the 'atan' module.
62034         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
62035         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
62036         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
62037         * doc/posix-functions/cos.texi: Mention the 'cos' module.
62038         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
62039         * doc/posix-functions/erf.texi: Mention the 'erf' module.
62040         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
62041         * doc/posix-functions/exp.texi: Mention the 'exp' module.
62042         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
62043         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
62044         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
62045         * doc/posix-functions/j0.texi: Mention the 'j0' module.
62046         * doc/posix-functions/j1.texi: Mention the 'j1' module.
62047         * doc/posix-functions/jn.texi: Mention the 'jn' module.
62048         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
62049         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
62050         * doc/posix-functions/log.texi: Mention the 'log' module.
62051         * doc/posix-functions/log10.texi: Mention the 'log10' module.
62052         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
62053         * doc/posix-functions/logb.texi: Mention the 'logb' module.
62054         * doc/posix-functions/modf.texi: Mention the 'modf' module.
62055         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
62056         * doc/posix-functions/pow.texi: Mention the 'pow' module.
62057         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
62058         * doc/posix-functions/rint.texi: Mention the 'rint' module.
62059         * doc/posix-functions/sin.texi: Mention the 'sin' module.
62060         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
62061         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
62062         * doc/posix-functions/tan.texi: Mention the 'tan' module.
62063         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
62064         * doc/posix-functions/y0.texi: Mention the 'y0' module.
62065         * doc/posix-functions/y1.texi: Mention the 'y1' module.
62066         * doc/posix-functions/yn.texi: Mention the 'yn' module.
62068 2010-01-18  Jim Meyering  <meyering@redhat.com>
62070         ignore-value: relax license to LGPLv2+
62071         * modules/ignore-value (License): Relax to LGPLv2+.
62073         getdate: don't leak when TZ contains two or more '"'s
62074         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
62075         double quote in TZ after the first one.
62077         readtokens: do not leak internal token_lengths buffer
62078         * lib/readtokens.c (readtokens): Free the local, lengths,
62079         when the supplied "token_lengths" parameter is NULL.
62081 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62083         Fix a couple of missing LIBTHREAD link failures on AIX.
62084         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
62085         $(LIBTHREAD).
62086         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
62088         Link test-poll against INET_PTON_LIB.
62089         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
62090         for inet_pton on Solaris 10.
62092 2010-01-17  Bruno Haible  <bruno@clisp.org>
62094         unistdio/*-sprintf: Fix typo in module description.
62095         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
62096         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
62097         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
62098         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
62099         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
62100         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
62101         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
62102         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62104 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62106         gnulib-tool: fix filelist for AIX, HP-UX ksh.
62107         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
62108         variables in shell case patterns, for AIX and HP-UX ksh.
62110         Split large sed scripts, for HP-UX sed.
62111         * modules/stdio: Split sed scripts around 50 sed commands,
62112         to avoid HP-UX limit of 99 commands, in the near future.
62113         * modules/string: Likewise.
62114         * modules/unistd: Likewise.
62116         gnulib-tool: avoid writing in the current directory.
62117         * gnulib-tool (func_emit_lib_Makefile_am)
62118         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
62119         not in the current directory, so concurrent gnulib-tool
62120         instances do not interfere.
62122 2010-01-16  Jim Meyering  <meyering@redhat.com>
62124         doc: update users.txt
62125         * users.txt: Add grep.
62126         (diffutils, gzip): Update URLs.
62128 2010-01-12  Bruno Haible  <bruno@clisp.org>
62130         posix_spawn: Avoid test failure on Cygwin.
62131         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
62132         characters.
62133         Reported by Simon Josefsson.
62135 2010-01-12  Bruno Haible  <bruno@clisp.org>
62137         * tests/test-cond.c (main): When skipping the test, show the reason.
62139 2010-01-12  Simon Josefsson  <simon@josefsson.org>
62141         * lib/striconv.c (str_cd_iconv): Avoid if before free.
62143 2010-01-12  Simon Josefsson  <simon@josefsson.org>
62145         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
62146         VC_LIST_ALWAYS_EXCLUDE_REGEX.
62148 2010-01-12  Eric Blake  <ebb9@byu.net>
62150         build: guarantee AS_VAR_IF
62151         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
62152         (gl_AS_VAR_IF): Move...
62153         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
62154         Reported by Simon Josefsson.
62156 2010-01-12  Simon Josefsson  <simon@josefsson.org>
62158         * lib/stdio.in.h: Fix typo.
62160 2010-01-12  Simon Josefsson  <simon@josefsson.org>
62162         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
62163         libgpg-error.
62165 2010-01-12  Simon Josefsson  <simon@josefsson.org>
62167         * tests/test-xalloc-die.sh: Use $EXEEXT.
62169 2010-01-12  Simon Josefsson  <simon@josefsson.org>
62170             Bruno Haible  <bruno@clisp.org>
62172         getlogin, getlogin_r: Avoid test failure.
62173         * tests/test-getlogin.c: Include <stdio.h>.
62174         (main): Skip the test when the function fails because stdin is not a
62175         tty.
62176         * tests/test-getlogin_r.c: Include <stdio.h>.
62177         (main): Skip the test when the function fails because stdin is not a
62178         tty.
62180 2010-01-11  Eric Blake  <ebb9@byu.net>
62182         tests: avoid more large file warnings
62183         * tests/test-fflush.c: Avoid warning about ftell use.
62184         * tests/test-fseek.c: Avoid warning about fseek use.
62186 2010-01-10  Bruno Haible  <bruno@clisp.org>
62188         nproc: Work better on Linux when /proc and /sys are not mounted.
62189         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
62190         as lower bound when, on glibc/Linux systems,
62191         sysconf (_SC_NPROCESSORS_CONF) returns 1.
62192         Suggested by Pádraig Brady <P@draigbrady.com>.
62193         Reported by Dmitry V. Levin <ldv@altlinux.org>.
62195         nproc: Refactor.
62196         * lib/nproc.c (num_processors_via_affinity_mask): New function,
62197         extracted from num_processors.
62198         (num_processors): Call it.
62200 2010-01-11  Jim Meyering  <meyering@redhat.com>
62202         utimecmp: avoid new warning from upcoming gcc-4.5.0
62203         * lib/utimecmp.c (BILLION): Define using #define rather than an
62204         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
62206 2010-01-11  Eric Blake  <ebb9@byu.net>
62208         math: add portability warnings for classification macros
62209         * modules/math (Depends-on): Add warn-on-use.
62210         (Makefile.am): Provide new substitutions.
62211         * m4/math_h.m4 (gl_MATH_H): Require inline.
62212         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
62213         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
62214         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
62215         implement warnings.
62217         unistd: warn on use of environ without module
62218         * modules/unistd (Depends-on): Add warn-on-use.
62219         (Makefile.am): Provide new substitutions.
62220         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
62221         * lib/unistd.in.h (environ): Wrap with a warning helper function.
62223         stdio: warn on suspicious uses
62224         * modules/stdio (Depends-on): Add warn-on-use.
62225         (Makefile.am): Provide new substitutions.
62226         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
62227         fseeko.
62228         * lib/stdio.in.h (gets): Always warn on use.
62229         (fseek, ftell): Adjust when warnings are issued, and honor
62230         _GL_NO_LARGE_FILES as a way to silence the warning.
62231         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
62232         any warning about large file offsets.
62233         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
62234         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
62235         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
62236         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
62237         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
62238         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
62239         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
62240         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
62242         warn-on-use: new module
62243         * modules/warn-on-use: New file.
62244         * build-aux/warn-on-use.h: Likewise.
62245         * m4/warn-on-use.m4: Likewise.
62246         * MODULES.html.sh (Support for building): Mention it.
62248 2010-01-10  Bruno Haible  <bruno@clisp.org>
62250         Tests for module 'unistr/u32-strdup'.
62251         * modules/unistr/u32-strdup-tests: New file.
62252         * tests/unistr/test-u32-strdup.c: New file.
62254         Tests for module 'unistr/u16-strdup'.
62255         * modules/unistr/u16-strdup-tests: New file.
62256         * tests/unistr/test-u16-strdup.c: New file.
62258         Tests for module 'unistr/u8-strdup'.
62259         * modules/unistr/u8-strdup-tests: New file.
62260         * tests/unistr/test-u8-strdup.c: New file.
62261         * tests/unistr/test-strdup.h: New file.
62263         Tests for module 'unistr/u32-strncmp'.
62264         * modules/unistr/u32-strncmp-tests: New file.
62265         * tests/unistr/test-u32-strncmp.c: New file.
62267         Tests for module 'unistr/u16-strncmp'.
62268         * modules/unistr/u16-strncmp-tests: New file.
62269         * tests/unistr/test-u16-strncmp.c: New file.
62271         Tests for module 'unistr/u8-strncmp'.
62272         * modules/unistr/u8-strncmp-tests: New file.
62273         * tests/unistr/test-u8-strncmp.c: New file.
62274         * tests/unistr/test-strncmp.h: New file.
62276         Tests for module 'unistr/u32-strcoll'.
62277         * modules/unistr/u32-strcoll-tests: New file.
62278         * tests/unistr/test-u32-strcoll.c: New file.
62280         Tests for module 'unistr/u16-strcoll'.
62281         * modules/unistr/u16-strcoll-tests: New file.
62282         * tests/unistr/test-u16-strcoll.c: New file.
62284         Tests for module 'unistr/u8-strcoll'.
62285         * modules/unistr/u8-strcoll-tests: New file.
62286         * tests/unistr/test-u8-strcoll.c: New file.
62288         Tests for module 'unistr/u32-strcmp'.
62289         * modules/unistr/u32-strcmp-tests: New file.
62290         * tests/unistr/test-u32-strcmp.c: New file.
62291         * tests/unistr/test-u32-strcmp.h: New file.
62293         Tests for module 'unistr/u16-strcmp'.
62294         * modules/unistr/u16-strcmp-tests: New file.
62295         * tests/unistr/test-u16-strcmp.c: New file.
62296         * tests/unistr/test-u16-strcmp.h: New file.
62298         Tests for module 'unistr/u8-strcmp'.
62299         * modules/unistr/u8-strcmp-tests: New file.
62300         * tests/unistr/test-u8-strcmp.c: New file.
62301         * tests/unistr/test-u8-strcmp.h: New file.
62302         * tests/unistr/test-strcmp.h: New file.
62304         Tests for module 'unistr/u32-strncat'.
62305         * modules/unistr/u32-strncat-tests: New file.
62306         * tests/unistr/test-u32-strncat.c: New file.
62308         Tests for module 'unistr/u16-strncat'.
62309         * modules/unistr/u16-strncat-tests: New file.
62310         * tests/unistr/test-u16-strncat.c: New file.
62312         Tests for module 'unistr/u8-strncat'.
62313         * modules/unistr/u8-strncat-tests: New file.
62314         * tests/unistr/test-u8-strncat.c: New file.
62315         * tests/unistr/test-strncat.h: New file.
62317         Tests for module 'unistr/u32-strcat'.
62318         * modules/unistr/u32-strcat-tests: New file.
62319         * tests/unistr/test-u32-strcat.c: New file.
62321         Tests for module 'unistr/u16-strcat'.
62322         * modules/unistr/u16-strcat-tests: New file.
62323         * tests/unistr/test-u16-strcat.c: New file.
62325         Tests for module 'unistr/u8-strcat'.
62326         * modules/unistr/u8-strcat-tests: New file.
62327         * tests/unistr/test-u8-strcat.c: New file.
62328         * tests/unistr/test-strcat.h: New file.
62330         Tests for module 'unistr/u32-stpncpy'.
62331         * modules/unistr/u32-stpncpy-tests: New file.
62332         * tests/unistr/test-u32-stpncpy.c: New file.
62334         Tests for module 'unistr/u16-stpncpy'.
62335         * modules/unistr/u16-stpncpy-tests: New file.
62336         * tests/unistr/test-u16-stpncpy.c: New file.
62338         Tests for module 'unistr/u8-stpncpy'.
62339         * modules/unistr/u8-stpncpy-tests: New file.
62340         * tests/unistr/test-u8-stpncpy.c: New file.
62341         * tests/unistr/test-stpncpy.h: New file.
62343         Tests for module 'unistr/u32-strncpy'.
62344         * modules/unistr/u32-strncpy-tests: New file.
62345         * tests/unistr/test-u32-strncpy.c: New file.
62347         Tests for module 'unistr/u16-strncpy'.
62348         * modules/unistr/u16-strncpy-tests: New file.
62349         * tests/unistr/test-u16-strncpy.c: New file.
62351         Tests for module 'unistr/u8-strncpy'.
62352         * modules/unistr/u8-strncpy-tests: New file.
62353         * tests/unistr/test-u8-strncpy.c: New file.
62354         * tests/unistr/test-strncpy.h: New file.
62356         Tests for module 'unistr/u32-stpcpy'.
62357         * modules/unistr/u32-stpcpy-tests: New file.
62358         * tests/unistr/test-u32-stpcpy.c: New file.
62360         Tests for module 'unistr/u16-stpcpy'.
62361         * modules/unistr/u16-stpcpy-tests: New file.
62362         * tests/unistr/test-u16-stpcpy.c: New file.
62364         Tests for module 'unistr/u8-stpcpy'.
62365         * modules/unistr/u8-stpcpy-tests: New file.
62366         * tests/unistr/test-u8-stpcpy.c: New file.
62367         * tests/unistr/test-stpcpy.h: New file.
62369         Tests for module 'unistr/u32-strcpy'.
62370         * modules/unistr/u32-strcpy-tests: New file.
62371         * tests/unistr/test-u32-strcpy.c: New file.
62373         Tests for module 'unistr/u16-strcpy'.
62374         * modules/unistr/u16-strcpy-tests: New file.
62375         * tests/unistr/test-u16-strcpy.c: New file.
62377         Tests for module 'unistr/u8-strcpy'.
62378         * modules/unistr/u8-strcpy-tests: New file.
62379         * tests/unistr/test-u8-strcpy.c: New file.
62380         * tests/unistr/test-strcpy.h: New file.
62382         Tests for module 'unistr/u32-strnlen'.
62383         * modules/unistr/u32-strnlen-tests: New file.
62384         * tests/unistr/test-u32-strnlen.c: New file.
62386         Tests for module 'unistr/u16-strnlen'.
62387         * modules/unistr/u16-strnlen-tests: New file.
62388         * tests/unistr/test-u16-strnlen.c: New file.
62390         Tests for module 'unistr/u8-strnlen'.
62391         * modules/unistr/u8-strnlen-tests: New file.
62392         * tests/unistr/test-u8-strnlen.c: New file.
62393         * tests/unistr/test-strnlen.h: New file.
62395         Tests for module 'unistr/u32-strlen'.
62396         * modules/unistr/u32-strlen-tests: New file.
62397         * tests/unistr/test-u32-strlen.c: New file.
62399         Tests for module 'unistr/u16-strlen'.
62400         * modules/unistr/u16-strlen-tests: New file.
62401         * tests/unistr/test-u16-strlen.c: New file.
62403         Tests for module 'unistr/u8-strlen'.
62404         * modules/unistr/u8-strlen-tests: New file.
62405         * tests/unistr/test-u8-strlen.c: New file.
62407         Tests for module 'unistr/u32-prev'.
62408         * modules/unistr/u32-prev-tests: New file.
62409         * tests/unistr/test-u32-prev.c: New file.
62411         Tests for module 'unistr/u16-prev'.
62412         * modules/unistr/u16-prev-tests: New file.
62413         * tests/unistr/test-u16-prev.c: New file.
62415         Tests for module 'unistr/u8-prev'.
62416         * modules/unistr/u8-prev-tests: New file.
62417         * tests/unistr/test-u8-prev.c: New file.
62419         Tests for module 'unistr/u32-next'.
62420         * modules/unistr/u32-next-tests: New file.
62421         * tests/unistr/test-u32-next.c: New file.
62423         Tests for module 'unistr/u16-next'.
62424         * modules/unistr/u16-next-tests: New file.
62425         * tests/unistr/test-u16-next.c: New file.
62427         Tests for module 'unistr/u8-next'.
62428         * modules/unistr/u8-next-tests: New file.
62429         * tests/unistr/test-u8-next.c: New file.
62431         Tests for module 'unistr/u32-strmbtouc'.
62432         * modules/unistr/u32-strmbtouc-tests: New file.
62433         * tests/unistr/test-u32-strmbtouc.c: New file.
62435         Tests for module 'unistr/u16-strmbtouc'.
62436         * modules/unistr/u16-strmbtouc-tests: New file.
62437         * tests/unistr/test-u16-strmbtouc.c: New file.
62439         Tests for module 'unistr/u8-strmbtouc'.
62440         * modules/unistr/u8-strmbtouc-tests: New file.
62441         * tests/unistr/test-u8-strmbtouc.c: New file.
62443         Tests for module 'unistr/u32-strmblen'.
62444         * modules/unistr/u32-strmblen-tests: New file.
62445         * tests/unistr/test-u32-strmblen.c: New file.
62447         Tests for module 'unistr/u16-strmblen'.
62448         * modules/unistr/u16-strmblen-tests: New file.
62449         * tests/unistr/test-u16-strmblen.c: New file.
62451         Tests for module 'unistr/u8-strmblen'.
62452         * modules/unistr/u8-strmblen-tests: New file.
62453         * tests/unistr/test-u8-strmblen.c: New file.
62455         Tests for module 'unistr/u32-cpy-alloc'.
62456         * modules/unistr/u32-cpy-alloc-tests: New file.
62457         * tests/unistr/test-u32-cpy-alloc.c: New file.
62459         Tests for module 'unistr/u16-cpy-alloc'.
62460         * modules/unistr/u16-cpy-alloc-tests: New file.
62461         * tests/unistr/test-u16-cpy-alloc.c: New file.
62463         Tests for module 'unistr/u8-cpy-alloc'.
62464         * modules/unistr/u8-cpy-alloc-tests: New file.
62465         * tests/unistr/test-u8-cpy-alloc.c: New file.
62466         * tests/unistr/test-cpy-alloc.h: New file.
62468         Tests for module 'unistr/u32-mbsnlen'.
62469         * modules/unistr/u32-mbsnlen-tests: New file.
62470         * tests/unistr/test-u32-mbsnlen.c: New file.
62472         Tests for module 'unistr/u16-mbsnlen'.
62473         * modules/unistr/u16-mbsnlen-tests: New file.
62474         * tests/unistr/test-u16-mbsnlen.c: New file.
62476         Tests for module 'unistr/u8-mbsnlen'.
62477         * modules/unistr/u8-mbsnlen-tests: New file.
62478         * tests/unistr/test-u8-mbsnlen.c: New file.
62480         Tests for module 'unistr/u32-chr'.
62481         * modules/unistr/u32-chr-tests: New file.
62482         * tests/unistr/test-u32-chr.c: New file.
62484         Tests for module 'unistr/u16-chr'.
62485         * modules/unistr/u16-chr-tests: New file.
62486         * tests/unistr/test-u16-chr.c: New file.
62488         Tests for module 'unistr/u8-chr'.
62489         * modules/unistr/u8-chr-tests: New file.
62490         * tests/unistr/test-u8-chr.c: New file.
62491         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
62493         Tests for module 'unistr/u32-cmp2'.
62494         * modules/unistr/u32-cmp2-tests: New file.
62495         * tests/unistr/test-u32-cmp2.c: New file.
62497         Tests for module 'unistr/u16-cmp2'.
62498         * modules/unistr/u16-cmp2-tests: New file.
62499         * tests/unistr/test-u16-cmp2.c: New file.
62501         Tests for module 'unistr/u8-cmp2'.
62502         * modules/unistr/u8-cmp2-tests: New file.
62503         * tests/unistr/test-u8-cmp2.c: New file.
62504         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
62506         Tests for module 'unistr/u32-cmp'.
62507         * modules/unistr/u32-cmp-tests: New file.
62508         * tests/unistr/test-u32-cmp.c: New file.
62510         Tests for module 'unistr/u16-cmp'.
62511         * modules/unistr/u16-cmp-tests: New file.
62512         * tests/unistr/test-u16-cmp.c: New file.
62514         Tests for module 'unistr/u8-cmp'.
62515         * modules/unistr/u8-cmp-tests: New file.
62516         * tests/unistr/test-u8-cmp.c: New file.
62517         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
62519         Tests for module 'unistr/u32-set'.
62520         * modules/unistr/u32-set-tests: New file.
62521         * tests/unistr/test-u32-set.c: New file.
62523         Tests for module 'unistr/u16-set'.
62524         * modules/unistr/u16-set-tests: New file.
62525         * tests/unistr/test-u16-set.c: New file.
62527         Tests for module 'unistr/u8-set'.
62528         * modules/unistr/u8-set-tests: New file.
62529         * tests/unistr/test-u8-set.c: New file.
62530         * tests/unistr/test-set.h: New file.
62532         Tests for module 'unistr/u32-move'.
62533         * modules/unistr/u32-move-tests: New file.
62534         * tests/unistr/test-u32-move.c: New file.
62536         Tests for module 'unistr/u16-move'.
62537         * modules/unistr/u16-move-tests: New file.
62538         * tests/unistr/test-u16-move.c: New file.
62540         Tests for module 'unistr/u8-move'.
62541         * modules/unistr/u8-move-tests: New file.
62542         * tests/unistr/test-u8-move.c: New file.
62543         * tests/unistr/test-move.h: New file.
62545         Tests for module 'unistr/u32-cpy'.
62546         * modules/unistr/u32-cpy-tests: New file.
62547         * tests/unistr/test-u32-cpy.c: New file.
62549         Tests for module 'unistr/u16-cpy'.
62550         * modules/unistr/u16-cpy-tests: New file.
62551         * tests/unistr/test-u16-cpy.c: New file.
62553         Tests for module 'unistr/u8-cpy'.
62554         * modules/unistr/u8-cpy-tests: New file.
62555         * tests/unistr/test-u8-cpy.c: New file.
62556         * tests/unistr/test-cpy.h: New file.
62558 2010-01-09  Bruno Haible  <bruno@clisp.org>
62560         Tests for module 'unistr/u32-uctomb'.
62561         * modules/unistr/u32-uctomb-tests: New file.
62562         * tests/unistr/test-u32-uctomb.c: New file.
62564         Tests for module 'unistr/u16-uctomb'.
62565         * modules/unistr/u16-uctomb-tests: New file.
62566         * tests/unistr/test-u16-uctomb.c: New file.
62568         Tests for module 'unistr/u8-uctomb'.
62569         * modules/unistr/u8-uctomb-tests: New file.
62570         * tests/unistr/test-u8-uctomb.c: New file.
62572         Tests for module 'unistr/u32-mbtoucr'.
62573         * modules/unistr/u32-mbtoucr-tests: New file.
62574         * tests/unistr/test-u32-mbtoucr.c: New file.
62576         Tests for module 'unistr/u16-mbtoucr'.
62577         * modules/unistr/u16-mbtoucr-tests: New file.
62578         * tests/unistr/test-u16-mbtoucr.c: New file.
62580         Tests for module 'unistr/u8-mbtoucr'.
62581         * modules/unistr/u8-mbtoucr-tests: New file.
62582         * tests/unistr/test-u8-mbtoucr.c: New file.
62584         Tests for module 'unistr/u32-mbtouc'.
62585         * modules/unistr/u32-mbtouc-tests: New file.
62586         * tests/unistr/test-u32-mbtouc.c: New file.
62588         Tests for module 'unistr/u16-mbtouc'.
62589         * modules/unistr/u16-mbtouc-tests: New file.
62590         * tests/unistr/test-u16-mbtouc.c: New file.
62592         Tests for module 'unistr/u8-mbtouc'.
62593         * modules/unistr/u8-mbtouc-tests: New file.
62594         * tests/unistr/test-u8-mbtouc.c: New file.
62596         Tests for module 'unistr/u32-mbtouc-unsafe'.
62597         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
62598         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
62599         * tests/unistr/test-u32-mbtouc.h: New file.
62601         Tests for module 'unistr/u16-mbtouc-unsafe'.
62602         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
62603         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
62604         * tests/unistr/test-u16-mbtouc.h: New file.
62606         Tests for module 'unistr/u8-mbtouc-unsafe'.
62607         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
62608         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
62609         * tests/unistr/test-u8-mbtouc.h: New file.
62611         Tests for module 'unistr/u32-mblen'.
62612         * modules/unistr/u32-mblen-tests: New file.
62613         * tests/unistr/test-u32-mblen.c: New file.
62615         Tests for module 'unistr/u16-mblen'.
62616         * modules/unistr/u16-mblen-tests: New file.
62617         * tests/unistr/test-u16-mblen.c: New file.
62619         Tests for module 'unistr/u8-mblen'.
62620         * modules/unistr/u8-mblen-tests: New file.
62621         * tests/unistr/test-u8-mblen.c: New file.
62623         Tests for module 'unistr/u32-to-u16'.
62624         * modules/unistr/u32-to-u16-tests: New file.
62625         * tests/unistr/test-u32-to-u16.c: New file.
62627         Tests for module 'unistr/u32-to-u8'.
62628         * modules/unistr/u32-to-u8-tests: New file.
62629         * tests/unistr/test-u32-to-u8.c: New file.
62631         Tests for module 'unistr/u16-to-u32'.
62632         * modules/unistr/u16-to-u32-tests: New file.
62633         * tests/unistr/test-u16-to-u32.c: New file.
62635         Tests for module 'unistr/u16-to-u8'.
62636         * modules/unistr/u16-to-u8-tests: New file.
62637         * tests/unistr/test-u16-to-u8.c: New file.
62639         Tests for module 'unistr/u8-to-u32'.
62640         * modules/unistr/u8-to-u32-tests: New file.
62641         * tests/unistr/test-u8-to-u32.c: New file.
62643         Tests for module 'unistr/u8-to-u16'.
62644         * modules/unistr/u8-to-u16-tests: New file.
62645         * tests/unistr/test-u8-to-u16.c: New file.
62647         Tests for module 'unistr/u32-check'.
62648         * modules/unistr/u32-check-tests: New file.
62649         * tests/unistr/test-u32-check.c: New file.
62651         Tests for module 'unistr/u16-check'.
62652         * modules/unistr/u16-check-tests: New file.
62653         * tests/unistr/test-u16-check.c: New file.
62655         Tests for module 'unistr/u8-check'.
62656         * modules/unistr/u8-check-tests: New file.
62657         * tests/unistr/test-u8-check.c: New file.
62659         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
62660         (category_equals): New function.
62661         (main): Add more tests.
62662         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
62664         * tests/unictype/test-bidi_byname.c (main): Add more tests.
62666 2010-01-10  Bruno Haible  <bruno@clisp.org>
62668         unistr/u*-strcoll: Try harder to distinguish different strings.
62669         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
62670         compare s1 and s2 to see if they are different.
62672 2010-01-10  Bruno Haible  <bruno@clisp.org>
62674         unistr/u*-stpncpy: Fix the return value.
62675         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
62676         description of the return value consistent with stpncpy in glibc.
62677         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
62678         written non-NUL unit.
62680 2010-01-10  Bruno Haible  <bruno@clisp.org>
62682         unistr/u*-next: Add missing dependencies.
62683         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
62684         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
62685         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
62687 2010-01-10  Bruno Haible  <bruno@clisp.org>
62689         unistr/u8-mbsnlen: Fix return value for incomplete character.
62690         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
62691         u8_mblen.
62692         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
62693         Remove unistr/u8-mblen.
62694         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
62695         u16_mblen.
62696         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
62697         Remove unistr/u16-mblen.
62699 2010-01-10  Bruno Haible  <bruno@clisp.org>
62701         wchar: Fix compilation error when <wchar.h> is used from coreutils.
62702         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
62703         Reported by Brian Gough <bjg@gnu.org> and
62704         Chris Clayton <chris2553@googlemail.com> via
62705         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
62707 2010-01-09  Bruno Haible  <bruno@clisp.org>
62709         unistr/u16-to-u32: Reject invalid input.
62710         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
62711         u16_mbtouc.
62712         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
62713         Remove unistr/u16-mbtouc.
62715         unistr/u16-to-u8: Reject invalid input.
62716         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
62717         u16_mbtouc.
62718         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
62719         Remove unistr/u16-mbtouc.
62721         unistr/u8-to-u32: Reject invalid input.
62722         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
62723         u8_mbtouc.
62724         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
62725         Remove unistr/u8-mbtouc.
62727         unistr/u8-to-u16: Reject invalid input.
62728         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
62729         u8_mbtouc.
62730         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
62731         Remove unistr/u8-mbtouc.
62733 2010-01-09  Bruno Haible  <bruno@clisp.org>
62735         Tests for module 'getlogin'.
62736         * modules/getlogin-tests: New file.
62737         * tests/test-getlogin.c: New file.
62739         New module 'getlogin'.
62740         * lib/unistd.in.h (getlogin): New declaration.
62741         * lib/getlogin.c: New file.
62742         * m4/getlogin.m4: New file.
62743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
62744         HAVE_GETLOGIN.
62745         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
62746         HAVE_GETLOGIN.
62747         * modules/getlogin: New file.
62748         * doc/posix-functions/getlogin.texi: Mention the new module.
62749         Reported by John W. Eaton <jwe@gnu.org>.
62751 2010-01-09  Bruno Haible  <bruno@clisp.org>
62753         getlogin_r: Support for native Windows.
62754         * lib/getlogin_r.c: Include <windows.h>
62755         (getlogin_r): Implement for native Windows.
62756         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
62757         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
62758         via John W. Eaton <jwe@gnu.org>.
62760 2010-01-09  Bruno Haible  <bruno@clisp.org>
62762         getlogin_r: Small fixes.
62763         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
62764         succeeds.
62765         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
62766         before testing whether getlogin_r is declared. No need to set
62767         HAVE_DECL_GETLOGIN_R to 1.
62768         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
62770 2010-01-09  Bruno Haible  <bruno@clisp.org>
62772         * lib/unistd.in.h (getlogin_r): Add comment.
62774 2010-01-09  Bruno Haible  <bruno@clisp.org>
62776         Tests for module 'getlogin_r'.
62777         * modules/getlogin_r-tests: New file.
62778         * tests/test-getlogin_r.c: New file.
62780 2010-01-09  Jim Meyering  <meyering@redhat.com>
62782         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
62783         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
62784         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
62786 2010-01-08  Simon Josefsson  <simon@josefsson.org>
62788         * lib/dup2.c (rpl_dup2): Improve comment.
62790 2010-01-08  Eric Blake  <ebb9@byu.net>
62792         maint.mk: allow packages to add makefile @@ exceptions
62793         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
62794         (sc_makefile_check): Rename...
62795         (sc_makefile_at_at_check): ...to this, and use hook.
62797         dup2: work around mingw bug
62798         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
62799         Reported by Simon Josefsson.
62801 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
62803         glob: Fix C++ compilation.
62804         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
62805         C++.
62807 2010-01-07  Bruno Haible  <bruno@clisp.org>
62809         Fix indentation of wctype.in.h, broken since 2007-01-06.
62810         * lib/wctype.in.h: Fix indentation of preprocessor directives.
62812 2010-01-07  Bruno Haible  <bruno@clisp.org>
62814         mbslen: Avoid collision with system function.
62815         * lib/string.in.h [MirBSD]: Include <wchar.h>.
62816         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
62817         * m4/mbslen.m4: New file.
62818         * modules/mbslen (Files): Add it.
62819         (configure.ac): Invoke gl_MBSLEN.
62820         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
62821         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
62822         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
62823         via Ian Beckwith <ianb@erislabs.net>.
62825 2010-01-07  Bruno Haible  <bruno@clisp.org>
62827         dirent: Document the last fix.
62828         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
62830 2010-01-07  Bruno Haible  <bruno@clisp.org>
62832         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
62833         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
62834         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
62835         va_list are defined.
62836         * doc/posix-headers/stdio.texi: Document the bug of missing types.
62837         Reported by Eric Blake.
62839 2010-01-07  Bruno Haible  <bruno@clisp.org>
62841         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
62842         * modules/xlist (Depends-on): Add 'list',
62843         * modules/xoset (Depends-on): Add 'oset'.
62844         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62846 2010-01-07  Bruno Haible  <bruno@clisp.org>
62848         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
62849         * doc/posix-functions/strncasecmp.texi: Likewise.
62851 2010-01-07  Bruno Haible  <bruno@clisp.org>
62853         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
62855 2010-01-07  John W. Eaton  <jwe@octave.org>
62857         wctype: allow C++ use
62858         * lib/wctype.in.h: Add extern "C" block for C++.
62860 2010-01-06  Eric Blake  <ebb9@byu.net>
62862         maint.mk: detect incorrect GFDL usage
62863         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
62865 2010-01-06  Jim Meyering  <meyering@redhat.com>
62866         and Eric Blake  <ebb9@byu.net>
62868         maint.mk: ignore multi-line copyright in NEWS
62869         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
62871 2010-01-06  Eric Blake  <ebb9@byu.net>
62873         select: add missing dependency
62874         * modules/select-tests (Depends-on): Move sockets dependency...
62875         * modules/select (Depends-on): ...here.
62876         Reported by Ian Beckwith.
62878         doc: regenerate INSTALL
62879         * doc/INSTALL: Reflect recent autoconf update.
62880         * doc/INSTALL.ISO: Likewise.
62881         * doc/INSTALL.UTF-8: Likewise.
62883         pread: fix compilation on glibc
62884         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
62885         Reported by Ralf Wildenhues.
62887         dirent: fix test failure
62888         * lib/dirent.in.h (includes): Guarantee ino_t.
62889         Reported by Ralf Wildenhues.
62891 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
62893         linkat, renameat: avoid bad free
62894         * lib/at-func2.c (at_func2): Fix typo.
62895         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
62897 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62899         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
62900         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
62901         to avoid failure of symlink test later.
62903 2010-01-06  Eric Blake  <ebb9@byu.net>
62905         stdio, unistd: guarantee ssize_t
62906         * lib/unistd.in.h (includes): Ensure that types required by POSIX
62907         2008 are exposed when needed.
62908         * lib/stdio.in.h (includes): Likewise.
62909         Reported by Ralf Wildenhues.
62911 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
62913         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
62914         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
62915         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
62917 2010-01-06  Jim Meyering  <meyering@redhat.com>
62919         readtokens: this module *does* require xalloc.h
62920         It uses only functions that were omitted by the old syntax-check rule.
62921         * lib/readtokens.c: Include "xalloc.h" once again.
62922         * modules/readtokens (Depends-on): Add xalloc.
62923         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
62925 2010-01-05  Eric Blake  <ebb9@byu.net>
62927         maint: support 'make announcement' from a VPATH build
62928         * top/maint.mk (announcement): Look for correct NEWS file.
62930 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
62932         utimens (fdutimens): ignore a negative FD, per contract
62933         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
62934         when we have a valid file descriptor.  Otherwise, using a brand
62935         new glibc (with just-patched futimens that now fails with EBADF)
62936         would cause this function to fail with ENOSYS.
62937         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
62938         See also http://bugzilla.redhat.com/552320.
62940 2010-01-05  Eric Blake  <ebb9@byu.net>
62942         strcase: document what it provides
62943         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
62944         gnulib module.
62945         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
62946         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
62948 2010-01-05  Jim Meyering  <meyering@redhat.com>
62950         maint: remove useless inclusions of "xalloc.h"
62951         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
62952         * lib/readtokens.c: Likewise.
62953         * lib/same.c: Likewise.
62954         * modules/getloadavg (Depends-on): Remove xalloc.
62955         * modules/readtokens: Likewise.
62956         * modules/same: Likewise.
62958         maint.mk: include 4 more function names in alloca.h-checking regexp
62959         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
62960         regexp.  Before, we would give a false-positive (saying alloca.h
62961         is included unnecessarily) when the only uses involved omitted symbols.
62963         xalloc.h: use consistent formatting
62964         * lib/xalloc.h: Move declarations to start in the first column.
62966 2010-01-05  Eric Blake  <ebb9@byu.net>
62968         mkdir: avoid xalloc
62969         * lib/mkdir.c (includes): Drop unused header.
62970         Reported by John W. Eaton.
62972 2010-01-04  Jim Meyering  <meyering@redhat.com>
62974         nl_langinfo: avoid configure-time syntax error
62975         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
62976         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
62977         the empty string.  Don't let that provoke a shell syntax error.
62979         regcomp, regexec, fnmatch: avoid array bounds read error
62980         * lib/regcomp.c (build_equiv_class): From glibc:
62981         Use only the low 24 bits of a findidx return value as an index
62982         into the weights array.  Patch by Ulrich Drepper:
62983         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
62984         * lib/regexec.c (check_node_accept_bytes): Likewise.
62985         * lib/fnmatch_loop.c (FCT): Likewise.
62987         regcomp: skip collseq lookup when there are no rules
62988         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
62989         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
62991         regcomp: recognize ill-formed { } expressions
62992         * lib/regcomp.c (parse_dup_op): From glibc:
62993         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
62995         regcomp: fix typo in comment
62996         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
62997         s/satisfy/satisfies/.
62999         regcomp: sync from glibc: remove dead store
63000         * lib/regcomp.c (duplicate_node_closure): Remove useless
63001         search_duplicated_node call and dead store.
63003         regcomp: sync from glibc; always use nl_langinfo
63004         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
63005         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
63006         * modules/regex (Depends-on): Add nl_langinfo.
63008 2010-01-04  Eric Blake  <ebb9@byu.net>
63010         fdopendir: fix configure test
63011         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
63013 2010-01-01  Bruno Haible  <bruno@clisp.org>
63015         wchar: Remove unused configure check.
63016         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
63018 2010-01-01  Eric Blake  <ebb9@byu.net>
63020         headers: make check of system header explicit
63021         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
63022         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
63023         ourselves.
63024         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63025         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63026         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63027         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
63028         internals.
63029         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
63030         missing.
63031         Suggested by Bruno Haible.
63033 2010-01-01  Jim Meyering  <meyering@redhat.com>
63035         ChangeLog: tweak to eliminate unnecessary copyright line
63036         * ChangeLog: Remove a copyright line that was mistakenly updated
63037         by today's update-copyright run.  Reported by Eric Blake.
63039         test-update-copyright: don't let envvar setting cause test failure
63040         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
63042 2010-01-01  Bruno Haible  <bruno@clisp.org>
63044         localename: Avoid gcc warning.
63045         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
63046         function if it is not used.
63048 2010-01-01  Jim Meyering  <meyering@redhat.com>
63050         update nearly all FSF copyright year lists to include 2010
63051         Use the same procedure as for 2009, outlined in
63052         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
63054         version-etc: set COPYRIGHT_YEAR to 2010
63055         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
63057 2009-12-31  Eric Blake  <ebb9@byu.net>
63059         doc: correct availability of cygwin 1.5.x getopt
63060         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
63061         variables.
63062         * doc/posix-functions/opterr.texi (opterr): Likewise.
63063         * doc/posix-functions/optind.texi (optind): Likewise.
63064         * doc/posix-functions/optopt.texi (optopt): Likewise.
63065         * doc/posix-functions/tzname.texi (tzname): Likewise.
63067         openat: update maintainer
63068         * modules/openat (Maintainer): Add myself.
63070         utimens: avoid shadowing warning
63071         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
63072         buffers into one, to avoid shadowing, as well as avoiding a
63073         redundant stat.
63074         Reported by Jim Meyering.
63076         test-dup2: avoid compiler warning
63077         * tests/test-dup2.c (is_inheritable): Only define if used.
63079 2010-01-01  Bruno Haible  <bruno@clisp.org>
63081         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
63082         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
63083         defined, use wctomb instead of wcrtomb.
63085 2010-01-01  Bruno Haible  <bruno@clisp.org>
63087         iconv: Reject native Solaris iconv.
63088         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
63089         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
63091 2009-12-31  Bruno Haible  <bruno@clisp.org>
63093         * tests/test-signal.c (main): Remove test of 'SIG'.
63095 2009-12-31  Bruno Haible  <bruno@clisp.org>
63097         spawn: Fix incomplete fix.
63098         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
63099         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
63100         warnings for GNULIB_POSIXCHECK again.
63101         Reported by Eric Blake.
63103 2009-12-31  Bruno Haible  <bruno@clisp.org>
63105         Avoid namespace pollution on glibc systems.
63106         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
63107         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
63108         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
63109         glibc systems.
63111 2009-12-31  Bruno Haible  <bruno@clisp.org>
63113         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
63114         (gl_REPLACE_WCHAR_H): Turn into a no-op.
63115         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
63116         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
63117         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
63118         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
63119         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
63121 2009-12-31  Bruno Haible  <bruno@clisp.org>
63123         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
63124         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
63125         afterwards.
63127 2009-12-31  Bruno Haible  <bruno@clisp.org>
63129         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
63130         SYS_UTSNAME_H.
63132 2009-12-31  Bruno Haible  <bruno@clisp.org>
63134         spawn: Fix misapplied patch.
63135         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
63136         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
63137         warnings for GNULIB_POSIXCHECK.
63139 2009-12-31  Bruno Haible  <bruno@clisp.org>
63141         times: Update after sys_times changed.
63142         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
63143         * modules/times (Files): Add it.
63144         (configure.ac): Invoke gl_FUNC_TIMES.
63146 2009-12-31  Bruno Haible  <bruno@clisp.org>
63148         Use AC_C_INLINE where necessary.
63149         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
63150         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
63151         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
63152         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
63153         * m4/mbfile.m4 (gl_MBFILE): Likewise.
63154         * m4/mbiter.m4 (gl_MBITER): Likewise.
63155         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63156         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
63157         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
63158         * modules/u64 (configure.ac): Likewise.
63160 2009-12-31  Bruno Haible  <bruno@clisp.org>
63162         Use AC_C_INLINE instead of module 'inline' where possible.
63163         * modules/inline (Description): Clarify purpose.
63164         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
63165         * modules/count-one-bits (Depends-on): Remove inline.
63166         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
63167         * modules/openat (Depends-on): Remove inline.
63168         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
63169         instead of depending on module 'inline'.
63170         * modules/filevercmp (Depends-on, configure.ac): Likewise.
63171         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
63172         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
63173         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
63174         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
63175         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
63176         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
63177         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
63178         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
63179         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
63180         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
63181         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
63182         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
63183         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
63184         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
63185         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
63186         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
63187         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
63188         Likewise.
63189         * modules/unictype/property-ascii-hex-digit (Depends-on,
63190         configure.ac): Likewise.
63191         * modules/unictype/property-bidi-arabic-digit (Depends-on,
63192         configure.ac): Likewise.
63193         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
63194         configure.ac): Likewise.
63195         * modules/unictype/property-bidi-block-separator (Depends-on,
63196         configure.ac): Likewise.
63197         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
63198         configure.ac): Likewise.
63199         * modules/unictype/property-bidi-common-separator (Depends-on,
63200         configure.ac): Likewise.
63201         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
63202         Likewise.
63203         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
63204         configure.ac): Likewise.
63205         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
63206         configure.ac): Likewise.
63207         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
63208         configure.ac): Likewise.
63209         * modules/unictype/property-bidi-european-digit (Depends-on,
63210         configure.ac): Likewise.
63211         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
63212         configure.ac): Likewise.
63213         * modules/unictype/property-bidi-left-to-right (Depends-on,
63214         configure.ac): Likewise.
63215         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
63216         configure.ac): Likewise.
63217         * modules/unictype/property-bidi-other-neutral (Depends-on,
63218         configure.ac): Likewise.
63219         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
63220         Likewise.
63221         * modules/unictype/property-bidi-segment-separator (Depends-on,
63222         configure.ac): Likewise.
63223         * modules/unictype/property-bidi-whitespace (Depends-on,
63224         configure.ac): Likewise.
63225         * modules/unictype/property-combining (Depends-on, configure.ac):
63226         Likewise.
63227         * modules/unictype/property-composite (Depends-on, configure.ac):
63228         Likewise.
63229         * modules/unictype/property-currency-symbol (Depends-on,
63230         configure.ac): Likewise.
63231         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
63232         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
63233         Likewise.
63234         * modules/unictype/property-default-ignorable-code-point (Depends-on,
63235         configure.ac): Likewise.
63236         * modules/unictype/property-deprecated (Depends-on, configure.ac):
63237         Likewise.
63238         * modules/unictype/property-diacritic (Depends-on, configure.ac):
63239         Likewise.
63240         * modules/unictype/property-extender (Depends-on, configure.ac):
63241         Likewise.
63242         * modules/unictype/property-format-control (Depends-on, configure.ac):
63243         Likewise.
63244         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
63245         Likewise.
63246         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
63247         Likewise.
63248         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
63249         Likewise.
63250         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
63251         Likewise.
63252         * modules/unictype/property-hyphen (Depends-on, configure.ac):
63253         Likewise.
63254         * modules/unictype/property-id-continue (Depends-on, configure.ac):
63255         Likewise.
63256         * modules/unictype/property-id-start (Depends-on, configure.ac):
63257         Likewise.
63258         * modules/unictype/property-ideographic (Depends-on, configure.ac):
63259         Likewise.
63260         * modules/unictype/property-ids-binary-operator (Depends-on,
63261         configure.ac): Likewise.
63262         * modules/unictype/property-ids-trinary-operator (Depends-on,
63263         configure.ac): Likewise.
63264         * modules/unictype/property-ignorable-control (Depends-on,
63265         configure.ac): Likewise.
63266         * modules/unictype/property-iso-control (Depends-on, configure.ac):
63267         Likewise.
63268         * modules/unictype/property-join-control (Depends-on, configure.ac):
63269         Likewise.
63270         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
63271         Likewise.
63272         * modules/unictype/property-line-separator (Depends-on, configure.ac):
63273         Likewise.
63274         * modules/unictype/property-logical-order-exception (Depends-on,
63275         configure.ac): Likewise.
63276         * modules/unictype/property-lowercase (Depends-on, configure.ac):
63277         Likewise.
63278         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
63279         * modules/unictype/property-non-break (Depends-on, configure.ac):
63280         Likewise.
63281         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
63282         Likewise.
63283         * modules/unictype/property-numeric (Depends-on, configure.ac):
63284         Likewise.
63285         * modules/unictype/property-other-alphabetic (Depends-on,
63286         configure.ac): Likewise.
63287         * modules/unictype/property-other-default-ignorable-code-point
63288         (Depends-on, configure.ac): Likewise.
63289         * modules/unictype/property-other-grapheme-extend (Depends-on,
63290         configure.ac): Likewise.
63291         * modules/unictype/property-other-id-continue (Depends-on,
63292         configure.ac): Likewise.
63293         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
63294         Likewise.
63295         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
63296         Likewise.
63297         * modules/unictype/property-other-math (Depends-on, configure.ac):
63298         Likewise.
63299         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
63300         Likewise.
63301         * modules/unictype/property-paired-punctuation (Depends-on,
63302         configure.ac): Likewise.
63303         * modules/unictype/property-paragraph-separator (Depends-on,
63304         configure.ac): Likewise.
63305         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
63306         Likewise.
63307         * modules/unictype/property-pattern-white-space (Depends-on,
63308         configure.ac): Likewise.
63309         * modules/unictype/property-private-use (Depends-on, configure.ac):
63310         Likewise.
63311         * modules/unictype/property-punctuation (Depends-on, configure.ac):
63312         Likewise.
63313         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
63314         Likewise.
63315         * modules/unictype/property-radical (Depends-on, configure.ac):
63316         Likewise.
63317         * modules/unictype/property-sentence-terminal (Depends-on,
63318         configure.ac): Likewise.
63319         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
63320         Likewise.
63321         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
63322         * modules/unictype/property-terminal-punctuation (Depends-on,
63323         configure.ac): Likewise.
63324         * modules/unictype/property-titlecase (Depends-on, configure.ac):
63325         Likewise.
63326         * modules/unictype/property-unassigned-code-value (Depends-on,
63327         configure.ac): Likewise.
63328         * modules/unictype/property-unified-ideograph (Depends-on,
63329         configure.ac): Likewise.
63330         * modules/unictype/property-uppercase (Depends-on, configure.ac):
63331         Likewise.
63332         * modules/unictype/property-variation-selector (Depends-on,
63333         configure.ac): Likewise.
63334         * modules/unictype/property-white-space (Depends-on, configure.ac):
63335         Likewise.
63336         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
63337         Likewise.
63338         * modules/unictype/property-xid-start (Depends-on, configure.ac):
63339         Likewise.
63340         * modules/unictype/property-zero-width (Depends-on, configure.ac):
63341         Likewise.
63342         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
63343         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
63344         Likewise.
63346 2009-12-31  Bruno Haible  <bruno@clisp.org>
63348         Remove unnecessary AC_C_INLINE invocation.
63349         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
63350         since 2009-08-21.
63352 2009-12-31  Jim Meyering  <meyering@redhat.com>
63354         maint.mk: don't require explicit gpg_key_ID in cfg.mk
63355         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
63356         With this change, we can all remove the gpg_key_ID = ... definition
63357         from our respective cfg.mk files.
63359         maint.mk: create announcement template in ~/, not in /tmp
63360         * top/maint.mk (emit_upload_commands): Adjust.
63361         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
63362         Remove temporary file, .ci-msg.
63364 2009-12-31  Eric Blake  <ebb9@byu.net>
63366         link-warning: always build headers with link warnings
63367         * modules/arpa_inet (Makefile.am): Always build replacement
63368         header.
63369         * modules/ctype (Makefile.am): Likewise.
63370         * modules/dirent (Makefile.am): Likewise.
63371         * modules/inttypes (Makefile.am): Likewise.
63372         * modules/langinfo (Makefile.am): Likewise.
63373         * modules/locale (Makefile.am): Likewise.
63374         * modules/spawn (Makefile.am): Likewise.
63375         * modules/sys_file (Makefile.am): Likewise.
63376         * modules/sys_ioctl (Makefile.am): Likewise.
63377         * modules/sys_select (Makefile.am): Likewise.
63378         * modules/sys_socket (Makefile.am): Likewise.
63379         * modules/sys_times (Makefile.am): Likewise.
63380         * modules/sys_utsname (Makefile.am): Likewise.
63381         * modules/sys_wait (Makefile.am): Likewise.
63382         * modules/wchar (Makefile.am): Likewise.
63383         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
63384         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
63385         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
63386         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
63387         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
63388         Likewise.
63389         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63390         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
63391         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
63392         Likewise.
63393         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
63394         Likewise.
63395         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
63396         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
63397         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
63398         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63399         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
63400         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
63401         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
63402         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
63403         (gl_WCHAR_H_DEFAULTS): Likewise.
63405 2009-12-31  Eric Blake  <ebb9@byu.net>
63407         signal, spawn: use link warnings
63408         * lib/signal.in.h (sigset_t): Make unconditional.
63409         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
63410         (sigpending, sigprocmask, sigaction): Add link warnings.
63411         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
63412         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
63413         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
63414         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
63415         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
63416         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
63417         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
63418         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
63419         (posix_spawn_file_actions_destroy)
63420         (posix_spawn_file_actions_addopen)
63421         (posix_spawn_file_actions_addclose)
63422         (posix_spawn_file_actions_adddup2): Likewise.
63423         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
63424         * tests/test-signal.c (main): Enhance test.
63426         spawn: improve wrapper support
63427         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
63428         (gl_SPAWN_H_DEFAULTS): New defaults.
63429         * modules/spawn (Makefile.am): Substitute them.
63430         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
63431         Only declare if missing or broken.
63433         sys_times, sys_utsname: use include_next
63434         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
63435         header.
63436         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
63437         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
63438         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
63439         * modules/sys_times (Depends-on): Add include_next.
63440         (Makefile.am): Substitute additional values.
63441         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
63442         * lib/sys_times.in.h (includes): Include native header, if
63443         available.
63444         * lib/sys_utsname.in.h (includes): Likewise.
63445         * tests/test-sys_times.c (main): Enhance test.
63447         fdutimensat: revert prior patch
63448         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
63449         utimens.h.
63450         Reported by Bruno Haible.
63452 2009-12-30  Eric Blake  <ebb9@byu.net>
63454         sys_wait: drop link-warning dependency
63455         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
63456         link-warning efforts.
63457         * lib/sys_wait.in.h: Likewise.
63459         fdutimensat: remove bogus dependency
63460         * modules/fdutimensat (Depends-on): Drop inline.
63462         unistd: fix typo
63463         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
63465 2009-12-30  Bruno Haible  <bruno@clisp.org>
63467         Fix compilation error with Solaris cc.
63468         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
63469         * lib/unicase/u16-is-invariant.c: Likewise.
63470         * lib/unicase/u32-is-invariant.c: Likewise.
63471         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
63473 2009-12-30  Bruno Haible  <bruno@clisp.org>
63475         Fix test crash.
63476         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
63477         locales.
63478         Reported by Simon Josefsson <simon@josefsson.org>.
63480 2009-12-30  Bruno Haible  <bruno@clisp.org>
63482         Fix compilation error on most platforms.
63483         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
63484         Reported by Simon Josefsson <simon@josefsson.org>
63485         and Nelson H. F. Beebe <beebe@math.utah.edu>.
63487 2009-12-30  Eric Blake  <ebb9@byu.net>
63489         futimens, utimensat: work around ntfs-3g bug
63490         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
63491         a ctime bug is present, and expand workaround to cover ntfs-3g.
63492         * lib/utimens.c (fdutimens, lutimens): Likewise.
63493         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
63494         (validate_timespec): Adjust return value.
63495         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
63496         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
63497         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
63499 2009-12-29  Eric Blake  <ebb9@byu.net>
63501         link-warning: make usage consistent
63502         * modules/ctype (Depends-on): Add link-warning.
63503         (Makefile.am): Update rules accordingly.
63504         * modules/langinfo (Depends-on, Makefile.am): Likewise.
63505         * modules/locale (Depends-on, Makefile.am): Likewise.
63506         * modules/sys_file (Makefile.am): Likewise.
63507         * modules/getopt-posix (Makefile.am): Delete unused link warning
63508         efforts.
63509         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
63510         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
63511         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
63512         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
63514         stdio: remove unused variables
63515         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
63516         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
63517         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
63519         tests: test more substitute headers
63520         * modules/ctype-tests: New file.
63521         * modules/dirent-tests: Likewise.
63522         * modules/spawn-tests: Likewise.
63523         * modules/sys_file-tests: Likewise.
63524         * modules/sys_ioctl-tests: Likewise.
63525         * modules/sys_wait-tests: Likewise.
63526         * tests/test-ctype.c: Likewise.
63527         * tests/test-dirent.c: Likewise.
63528         * tests/test-spawn.c: Likewise.
63529         * tests/test-sys_file.c: Likewise.
63530         * tests/test-sys_ioctl.c: Likewise.
63531         * tests/test-sys_wait.c: Likewise.
63532         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
63533         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
63534         whether or not flock is in use.
63536         tests: remove License section from module
63537         * modules/arpa_inet-tests: Remove unneeded section.
63538         * modules/byteswap-tests: Likewise.
63539         * modules/ceilf-tests: Likewise.
63540         * modules/ceill-tests: Likewise.
63541         * modules/crypto/des-tests: Likewise.
63542         * modules/crypto/gc-arcfour-tests: Likewise.
63543         * modules/crypto/gc-arctwo-tests: Likewise.
63544         * modules/crypto/gc-des-tests: Likewise.
63545         * modules/crypto/gc-hmac-md5-tests: Likewise.
63546         * modules/crypto/gc-hmac-sha1-tests: Likewise.
63547         * modules/crypto/gc-md2-tests: Likewise.
63548         * modules/crypto/gc-md4-tests: Likewise.
63549         * modules/crypto/gc-md5-tests: Likewise.
63550         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
63551         * modules/crypto/gc-rijndael-tests: Likewise.
63552         * modules/crypto/gc-sha1-tests: Likewise.
63553         * modules/crypto/gc-tests: Likewise.
63554         * modules/crypto/md2-tests: Likewise.
63555         * modules/crypto/md4-tests: Likewise.
63556         * modules/fcntl-h-tests: Likewise.
63557         * modules/floorf-tests: Likewise.
63558         * modules/floorl-tests: Likewise.
63559         * modules/frexp-nolibm-tests: Likewise.
63560         * modules/frexp-tests: Likewise.
63561         * modules/frexpl-nolibm-tests: Likewise.
63562         * modules/frexpl-tests: Likewise.
63563         * modules/getaddrinfo-tests: Likewise.
63564         * modules/inttypes-tests: Likewise.
63565         * modules/isfinite-tests: Likewise.
63566         * modules/isinf-tests: Likewise.
63567         * modules/ldexpl-tests: Likewise.
63568         * modules/locale-tests: Likewise.
63569         * modules/math-tests: Likewise.
63570         * modules/netdb-tests: Likewise.
63571         * modules/netinet_in-tests: Likewise.
63572         * modules/printf-frexp-tests: Likewise.
63573         * modules/printf-frexpl-tests: Likewise.
63574         * modules/priv-set-tests: Likewise.
63575         * modules/random_r-tests: Likewise.
63576         * modules/round-tests: Likewise.
63577         * modules/roundf-tests: Likewise.
63578         * modules/roundl-tests: Likewise.
63579         * modules/search-tests: Likewise.
63580         * modules/select-tests: Likewise.
63581         * modules/signal-tests: Likewise.
63582         * modules/stdbool-tests: Likewise.
63583         * modules/stddef-tests: Likewise.
63584         * modules/stdint-tests: Likewise.
63585         * modules/stdio-tests: Likewise.
63586         * modules/stdlib-tests: Likewise.
63587         * modules/string-tests: Likewise.
63588         * modules/strings-tests: Likewise.
63589         * modules/sys_select-tests: Likewise.
63590         * modules/sys_socket-tests: Likewise.
63591         * modules/sys_stat-tests: Likewise.
63592         * modules/sys_time-tests: Likewise.
63593         * modules/sys_utsname-tests: Likewise.
63594         * modules/sysexits-tests: Likewise.
63595         * modules/time-tests: Likewise.
63596         * modules/trunc-tests: Likewise.
63597         * modules/truncf-tests: Likewise.
63598         * modules/truncl-tests: Likewise.
63599         * modules/tsearch-tests: Likewise.
63600         * modules/unistd-tests: Likewise.
63601         * modules/wchar-tests: Likewise.
63602         * modules/wctype-tests: Likewise.
63604         tests: fix license on several tests
63605         * tests/test-des.c: Update to GPLv3+.
63606         * tests/test-flock.c: Likewise.
63607         * tests/test-fsync.c: Likewise.
63608         * tests/test-futimens.h: Likewise.
63609         * tests/test-gc-arcfour.c: Likewise.
63610         * tests/test-gc-arctwo.c: Likewise.
63611         * tests/test-gc-des.c: Likewise.
63612         * tests/test-gc-hmac-md5.c: Likewise.
63613         * tests/test-gc-hmac-sha1.c: Likewise.
63614         * tests/test-gc-md2.c: Likewise.
63615         * tests/test-gc-md4.c: Likewise.
63616         * tests/test-gc-md5.c: Likewise.
63617         * tests/test-gc-pbkdf2-sha1.c: Likewise.
63618         * tests/test-gc-rijndael.c: Likewise.
63619         * tests/test-gc-sha1.c: Likewise.
63620         * tests/test-gc.c: Likewise.
63621         * tests/test-getcwd.c: Likewise.
63622         * tests/test-link.c: Likewise.
63623         * tests/test-link.h: Likewise.
63624         * tests/test-lutimens.h: Likewise.
63625         * tests/test-md2.c: Likewise.
63626         * tests/test-md4.c: Likewise.
63627         * tests/test-mkdir.h: Likewise.
63628         * tests/test-rename.c: Likewise.
63629         * tests/test-rename.h: Likewise.
63630         * tests/test-safe-alloc.c: Likewise.
63631         * tests/test-utimens-common.h: Likewise.
63632         * tests/test-utimens.h: Likewise.
63634         maint: sync license texts
63635         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
63636         * doc/gpl-3.0.texi: Revert copyright year update.
63637         * doc/lgpl-3.0.texi: Likewise.
63639 2009-12-29  Jim Meyering  <meyering@redhat.com>
63641         update nearly all FSF copyright year lists to include 2009
63642         The files named by the following are exempted:
63643             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
63644               test -f "$dst" && { echo "$dst"; continue; }
63645               test -d "$dst" || continue
63646               echo "$dst"/$(basename "$src")
63647             done > exempt
63648             git ls-files tests/unictype >> exempt
63649         In the remaining files, convert to all-interval notation if
63650         - there is already at least one year interval like 2000-2003
63651         - the file is maintained by me
63652         - the file is in lib/uni*/, where that style already prevails
63653         Otherwise, use update-copyright's default.
63655 2009-12-29  Simon Josefsson  <simon@josefsson.org>
63656         and Eric Blake  <ebb9@byu.net>
63658         tests: don't require debug system() to pass
63659         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
63660         * tests/test-rmdir.h (test_rmdir_func): Likewise.
63661         * tests/test-unlink.h (test_unlink_func): Likewise.
63662         * tests/test-fstatat.c (main): ...into callers.
63663         * tests/test-lstat.c (main): Likewise.
63664         * tests/test-rmdir.c (main): Likewise.
63665         * tests/test-unlink.c (main): Likewise.
63666         * tests/test-unlinkat.c (main): Likewise.
63667         * tests/test-areadlink-with-size.c (main): Don't require a
63668         debug-only system call to pass, aiding cross-testing to mingw.
63669         * tests/test-areadlink.c (main): Likewise.
63670         * tests/test-areadlinkat-with-size.c (main): Likewise.
63671         * tests/test-areadlinkat.c (main): Likewise.
63672         * tests/test-canonicalize-lgpl.c (main): Likewise.
63673         * tests/test-canonicalize.c (main): Likewise.
63674         * tests/test-chown.c (main): Likewise.
63675         * tests/test-fchownat.c (main): Likewise.
63676         * tests/test-lchown.c (main): Likewise.
63677         * tests/test-fdutimensat.c (main): Likewise.
63678         * tests/test-futimens.c (main): Likewise.
63679         * tests/test-link.c (main): Likewise.
63680         * tests/test-linkat.c (main): Likewise.
63681         * tests/test-mkdir.c (main): Likewise.
63682         * tests/test-mkdirat.c (main): Likewise.
63683         * tests/test-mkfifo.c (main): Likewise.
63684         * tests/test-mkfifoat.c (main): Likewise.
63685         * tests/test-mknod.c (main): Likewise.
63686         * tests/test-readlink.c (main): Likewise.
63687         * tests/test-remove.c (main): Likewise.
63688         * tests/test-rename.c (main): Likewise.
63689         * tests/test-renameat.c (main): Likewise.
63690         * tests/test-symlink.c (main): Likewise.
63691         * tests/test-symlinkat.c (main): Likewise.
63692         * tests/test-utimens.c (main): Likewise.
63693         * tests/test-utimensat.c (main): Likewise.
63695 2009-12-29  Simon Josefsson  <simon@josefsson.org>
63697         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
63698         on $(UNUSED_PARAMETER_H) to avoid build failure.
63700 2009-12-28  Jim Meyering  <meyering@redhat.com>
63702         update-copyright: you may specify a max. line length other than 72
63703         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
63705         maint: use consistent FSF copyright line syntax
63706         * lib/posixtm.c: Add missing comma in FSF copyright line.
63707         * lib/posixtm.h: Likewise.
63708         * lib/getugroups.c: Add missing ", Inc.".
63710         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
63711         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
63712         FSF copyright line.  Remove trailing blanks.
63714 2009-12-28  Eric Blake  <ebb9@byu.net>
63716         test-dup2: reduce dependencies
63717         * modules/cloexec (Configure.ac): Set witness.
63718         * modules/dup2-tests (Depends-on): Drop cloexec.
63719         * tests/test-dup2.c (main): Skip portion of test if cloexec module
63720         not present.
63721         Suggested by Bruno Haible.
63723 2009-12-26  Bruno Haible  <bruno@clisp.org>
63725         Remove an unneeded dependency.
63726         * modules/fseterr (Depends-on): Remove dup2.
63728 2009-12-26  Eric Blake  <ebb9@byu.net>
63730         tests: use macros.h in more places
63731         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
63732         (ASSERT_STREAM): Provide default of stderr.
63733         * tests/test-dirent-safer.c: Include macros.h, using alternate
63734         stream for assertions.
63735         * tests/test-dup-safer.c: Likewise.
63736         * tests/test-freopen-safer.c: Likewise.
63737         * tests/test-getopt.c: Likewise.
63738         * tests/test-openat-safer.c: Likewise.
63739         * tests/test-pipe.c: Likewise.
63740         * tests/test-popen-safer.c: Likewise.
63741         * modules/dirent-safer-tests (Files): Include macros.h.
63742         * modules/unistd-safer-tests (Files): Likewise.
63743         * modules/freopen-safer-tests (Files): Likewise.
63744         * modules/getopt-posix-tests (Files): Likewise.
63745         * modules/openat-safer-tests (Files): Likewise.
63746         * modules/pipe-tests (Files): Likewise.
63748 2009-12-26  Bruno Haible  <bruno@clisp.org>
63750         javacomp-script: Portability fix.
63751         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
63752         that it also works on Solaris.
63754 2009-12-26  Bruno Haible  <bruno@clisp.org>
63756         localename: Fix storage allocation of gl_locale_name_thread's result.
63757         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
63758         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
63759         all platforms that have 'uselocale'.
63760         (gl_locale_name_thread_unsafe): New function, extracted from
63761         gl_locale_name_thread.
63762         (gl_locale_name_thread): Call struniq on all platforms that have
63763         'uselocale'.
63764         * tests/test-localename.c (test_locale_name_thread): Check that the
63765         resulting strings are permanently allocated.
63766         * modules/localename-tests (Depends-on): Add strdup.
63768 2009-12-26  Bruno Haible  <bruno@clisp.org>
63770         * tests/test-localename.c (categories): Fill in the strings.
63772 2009-12-26  Jim Meyering  <meyering@redhat.com>
63774         isdir: complete the removal of m4/isdir.m4
63775         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
63777         isdir: clean up, since at least grep still uses it
63778         * lib/isdir.c: Include "isdir.h".
63779         (S_ISDIR): Remove now-unneeded definition.
63780         * modules/isdir (Files): Add lib/isdir.h.
63781         * lib/isdir.h: New file, with declaration.
63782         * m4/isdir.m4: Remove file -- unneeded.
63784 2009-12-25  Bruno Haible  <bruno@clisp.org>
63786         selinux-h: Make generated .h files standalone.
63787         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
63788         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
63789         * lib/se-selinux.in.h: Likewise.
63790         * modules/selinux-h (Depends-on): Add unused-parameter.
63791         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
63792         selinux/selinux.h and selinux/context.h.
63793         Suggested by Eric Blake.
63795 2009-12-25  Bruno Haible  <bruno@clisp.org>
63797         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
63798         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
63799         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
63800         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
63801         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
63803 2009-12-24  Bruno Haible  <bruno@clisp.org>
63805         openat: Fix warning.
63806         * lib/openat-proc.c: Include <unistd.h>.
63808 2009-12-24  Bruno Haible  <bruno@clisp.org>
63810         New module 'unused-parameter'.
63811         * build-aux/unused-parameter.h: New file, extracted from earlier
63812         gnulib-common.m4.
63813         * modules/unused-parameter: New file.
63814         * lib/unistr.h: Include unused-parameter.h.
63815         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
63816         _GL_UNUSED.
63817         * modules/unistr/base (Depends-on): Add unused-parameter.
63819 2009-12-24  Bruno Haible  <bruno@clisp.org>
63821         Add missing dependencies to 'extensions' module.
63822         * m4/extensions.m4: Add comment.
63823         * modules/accept4 (Depends-on): Add extensions.
63824         * modules/dup3 (Depends-on): Likewise.
63825         * modules/fcntl (Depends-on): Likewise.
63826         * modules/futimens (Depends-on): Likewise.
63827         * modules/mknod (Depends-on): Likewise.
63828         * modules/pipe2 (Depends-on): Likewise.
63829         * modules/stat-time (Depends-on): Likewise.
63830         * modules/strcasestr-simple (Depends-on): Likewise.
63831         * modules/strsignal (Depends-on): Likewise.
63832         * modules/utimensat (Depends-on): Likewise.
63833         * modules/localcharset (Depends-on): Likewise. Needed because of
63834         gl_FCNTL_O_FLAGS.
63835         * modules/wcrtomb (Depends-on): Likewise. Needed because of
63836         AC_TYPE_MBSTATE_T.
63837         * modules/wcsnrtombs (Depends-on): Likewise.
63838         * modules/wcsrtombs (Depends-on): Likewise.
63840 2009-12-24  Bruno Haible  <bruno@clisp.org>
63842         binary-io: Avoid gcc warning due to SET_BINARY.
63843         * lib/binary-io.h (SET_BINARY): Cast the result to void.
63844         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
63846 2009-12-24  Bruno Haible  <bruno@clisp.org>
63848         Avoid future namespace pollution on glibc systems.
63849         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
63850         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
63851         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
63852         glibc systems.
63854 2009-12-24  Bruno Haible  <bruno@clisp.org>
63856         Refactor common macros used in tests.
63857         * tests/macros.h: New file.
63858         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
63859         and/or <stdlib.h>, if appropriate.
63860         (ASSERT, SIZEOF): Remove macros.
63861         * tests/test-areadlink-with-size.c: Likewise.
63862         * tests/test-areadlinkat.c: Likewise.
63863         * tests/test-areadlinkat-with-size.c: Likewise.
63864         * tests/test-argmatch.c: Likewise.
63865         * tests/test-argv-iter.c: Likewise.
63866         * tests/test-array-mergesort.c: Likewise.
63867         * tests/test-array_list.c: Likewise.
63868         * tests/test-array_oset.c: Likewise.
63869         * tests/test-avltree_list.c: Likewise.
63870         * tests/test-avltree_oset.c: Likewise.
63871         * tests/test-avltreehash_list.c: Likewise.
63872         * tests/test-base64.c: Likewise.
63873         * tests/test-binary-io.c: Likewise.
63874         * tests/test-bitrotate.c: Likewise.
63875         * tests/test-btowc.c: Likewise.
63876         * tests/test-byteswap.c: Likewise.
63877         * tests/test-c-ctype.c: Likewise.
63878         * tests/test-c-stack.c: Likewise.
63879         * tests/test-c-strcasecmp.c: Likewise.
63880         * tests/test-c-strcasestr.c: Likewise.
63881         * tests/test-c-strncasecmp.c: Likewise.
63882         * tests/test-c-strstr.c: Likewise.
63883         * tests/test-canonicalize-lgpl.c: Likewise.
63884         * tests/test-canonicalize.c: Likewise.
63885         * tests/test-carray_list.c: Likewise.
63886         * tests/test-ceilf1.c: Likewise.
63887         * tests/test-ceilf2.c: Likewise.
63888         * tests/test-ceill.c: Likewise.
63889         * tests/test-chown.c: Likewise.
63890         * tests/test-cloexec.c: Likewise.
63891         * tests/test-copy-acl.c: Likewise.
63892         * tests/test-copy-file.c: Likewise.
63893         * tests/test-count-one-bits.c: Likewise.
63894         * tests/test-dprintf-posix.c: Likewise.
63895         * tests/test-dup2.c: Likewise.
63896         * tests/test-dup3.c: Likewise.
63897         * tests/test-duplocale.c: Likewise.
63898         * tests/test-fbufmode.c: Likewise.
63899         * tests/test-fchdir.c: Likewise.
63900         * tests/test-fchownat.c: Likewise.
63901         * tests/test-fcntl-safer.c: Likewise.
63902         * tests/test-fcntl.c: Likewise.
63903         * tests/test-fdopendir.c: Likewise.
63904         * tests/test-fdutimensat.c: Likewise.
63905         * tests/test-fflush2.c: Likewise.
63906         * tests/test-file-has-acl.c: Likewise.
63907         * tests/test-filevercmp.c: Likewise.
63908         * tests/test-flock.c: Likewise.
63909         * tests/test-floorf1.c: Likewise.
63910         * tests/test-floorf2.c: Likewise.
63911         * tests/test-floorl.c: Likewise.
63912         * tests/test-fnmatch.c: Likewise.
63913         * tests/test-fopen.h: Likewise.
63914         * tests/test-fpending.c: Likewise.
63915         * tests/test-fprintf-posix.c: Likewise.
63916         * tests/test-fpurge.c: Likewise.
63917         * tests/test-freadable.c: Likewise.
63918         * tests/test-freadahead.c: Likewise.
63919         * tests/test-freading.c: Likewise.
63920         * tests/test-freadptr.c: Likewise.
63921         * tests/test-freadptr2.c: Likewise.
63922         * tests/test-freadseek.c: Likewise.
63923         * tests/test-freopen.c: Likewise.
63924         * tests/test-frexp.c: Likewise.
63925         * tests/test-frexpl.c: Likewise.
63926         * tests/test-fseek.c: Likewise.
63927         * tests/test-fseeko.c: Likewise.
63928         * tests/test-fstatat.c: Likewise.
63929         * tests/test-fstrcmp.c: Likewise.
63930         * tests/test-fsync.c: Likewise.
63931         * tests/test-ftell.c: Likewise.
63932         * tests/test-ftello.c: Likewise.
63933         * tests/test-func.c: Likewise.
63934         * tests/test-futimens.c: Likewise.
63935         * tests/test-fwritable.c: Likewise.
63936         * tests/test-fwriting.c: Likewise.
63937         * tests/test-getcwd.c: Likewise.
63938         * tests/test-getdate.c: Likewise.
63939         * tests/test-getdelim.c: Likewise.
63940         * tests/test-getdtablesize.c: Likewise.
63941         * tests/test-getgroups.c: Likewise.
63942         * tests/test-getline.c: Likewise.
63943         * tests/test-getndelim2.c: Likewise.
63944         * tests/test-glob.c: Likewise.
63945         * tests/test-hash.c: Likewise.
63946         * tests/test-i-ring.c: Likewise.
63947         * tests/test-iconv-utf.c: Likewise.
63948         * tests/test-iconv.c: Likewise.
63949         * tests/test-idpriv-drop.c: Likewise.
63950         * tests/test-idpriv-droptemp.c: Likewise.
63951         * tests/test-inet_ntop.c: Likewise.
63952         * tests/test-inet_pton.c: Likewise.
63953         * tests/test-isblank.c: Likewise.
63954         * tests/test-isfinite.c: Likewise.
63955         * tests/test-isinf.c: Likewise.
63956         * tests/test-isnan.c: Likewise.
63957         * tests/test-isnand.h: Likewise.
63958         * tests/test-isnanf.h: Likewise.
63959         * tests/test-isnanl.h: Likewise.
63960         * tests/test-lchown.c: Likewise.
63961         * tests/test-ldexpl.c: Likewise.
63962         * tests/test-link.c: Likewise.
63963         * tests/test-linkat.c: Likewise.
63964         * tests/test-linked_list.c: Likewise.
63965         * tests/test-linkedhash_list.c: Likewise.
63966         * tests/test-localename.c: Likewise.
63967         * tests/test-lseek.c: Likewise.
63968         * tests/test-lstat.c: Likewise.
63969         * tests/test-mbmemcasecmp.c: Likewise.
63970         * tests/test-mbmemcasecoll.c: Likewise.
63971         * tests/test-mbrtowc.c: Likewise.
63972         * tests/test-mbscasecmp.c: Likewise.
63973         * tests/test-mbscasestr1.c: Likewise.
63974         * tests/test-mbscasestr2.c: Likewise.
63975         * tests/test-mbscasestr3.c: Likewise.
63976         * tests/test-mbscasestr4.c: Likewise.
63977         * tests/test-mbschr.c: Likewise.
63978         * tests/test-mbscspn.c: Likewise.
63979         * tests/test-mbsinit.c: Likewise.
63980         * tests/test-mbsncasecmp.c: Likewise.
63981         * tests/test-mbsnrtowcs.c: Likewise.
63982         * tests/test-mbspbrk.c: Likewise.
63983         * tests/test-mbspcasecmp.c: Likewise.
63984         * tests/test-mbsrchr.c: Likewise.
63985         * tests/test-mbsrtowcs.c: Likewise.
63986         * tests/test-mbsspn.c: Likewise.
63987         * tests/test-mbsstr1.c: Likewise.
63988         * tests/test-mbsstr2.c: Likewise.
63989         * tests/test-mbsstr3.c: Likewise.
63990         * tests/test-memchr.c: Likewise.
63991         * tests/test-memchr2.c: Likewise.
63992         * tests/test-memcmp.c: Likewise.
63993         * tests/test-memmem.c: Likewise.
63994         * tests/test-memrchr.c: Likewise.
63995         * tests/test-mkdir.c: Likewise.
63996         * tests/test-mkdirat.c: Likewise.
63997         * tests/test-mkfifo.c: Likewise.
63998         * tests/test-mkfifoat.c: Likewise.
63999         * tests/test-mknod.c: Likewise.
64000         * tests/test-nanosleep.c: Likewise.
64001         * tests/test-nl_langinfo.c: Likewise.
64002         * tests/test-obstack-printf.c: Likewise.
64003         * tests/test-open.c: Likewise.
64004         * tests/test-openat.c: Likewise.
64005         * tests/test-pipe-filter-gi1.c: Likewise.
64006         * tests/test-pipe-filter-gi2-main.c: Likewise.
64007         * tests/test-pipe-filter-ii1.c: Likewise.
64008         * tests/test-pipe-filter-ii2-main.c: Likewise.
64009         * tests/test-pipe2.c: Likewise.
64010         * tests/test-popen.h: Likewise.
64011         * tests/test-posixtm.c: Likewise.
64012         * tests/test-pread.c: Likewise.
64013         * tests/test-printf-frexp.c: Likewise.
64014         * tests/test-printf-frexpl.c: Likewise.
64015         * tests/test-printf-posix.c: Likewise.
64016         * tests/test-priv-set.c: Likewise.
64017         * tests/test-quotearg.c: Likewise.
64018         * tests/test-random_r.c: Likewise.
64019         * tests/test-rawmemchr.c: Likewise.
64020         * tests/test-rbtree_list.c: Likewise.
64021         * tests/test-rbtree_oset.c: Likewise.
64022         * tests/test-rbtreehash_list.c: Likewise.
64023         * tests/test-readlink.c: Likewise.
64024         * tests/test-remove.c: Likewise.
64025         * tests/test-rename.c: Likewise.
64026         * tests/test-renameat.c: Likewise.
64027         * tests/test-rmdir.c: Likewise.
64028         * tests/test-round1.c: Likewise.
64029         * tests/test-roundf1.c: Likewise.
64030         * tests/test-roundl.c: Likewise.
64031         * tests/test-safe-alloc.c: Likewise.
64032         * tests/test-sameacls.c: Likewise.
64033         * tests/test-set-mode-acl.c: Likewise.
64034         * tests/test-setenv.c: Likewise.
64035         * tests/test-sigaction.c: Likewise.
64036         * tests/test-signbit.c: Likewise.
64037         * tests/test-sleep.c: Likewise.
64038         * tests/test-snprintf-posix.c: Likewise.
64039         * tests/test-snprintf.c: Likewise.
64040         * tests/test-sprintf-posix.c: Likewise.
64041         * tests/test-stat-time.c: Likewise.
64042         * tests/test-stat.c: Likewise.
64043         * tests/test-strcasestr.c: Likewise.
64044         * tests/test-strchrnul.c: Likewise.
64045         * tests/test-strerror.c: Likewise.
64046         * tests/test-striconv.c: Likewise.
64047         * tests/test-striconveh.c: Likewise.
64048         * tests/test-striconveha.c: Likewise.
64049         * tests/test-strsignal.c: Likewise.
64050         * tests/test-strstr.c: Likewise.
64051         * tests/test-strtod.c: Likewise.
64052         * tests/test-strverscmp.c: Likewise.
64053         * tests/test-symlink.c: Likewise.
64054         * tests/test-symlinkat.c: Likewise.
64055         * tests/test-trunc1.c: Likewise.
64056         * tests/test-trunc2.c: Likewise.
64057         * tests/test-truncf1.c: Likewise.
64058         * tests/test-truncf2.c: Likewise.
64059         * tests/test-truncl.c: Likewise.
64060         * tests/test-uname.c: Likewise.
64061         * tests/test-unlink.c: Likewise.
64062         * tests/test-unlinkat.c: Likewise.
64063         * tests/test-unsetenv.c: Likewise.
64064         * tests/test-usleep.c: Likewise.
64065         * tests/test-utimens.c: Likewise.
64066         * tests/test-utimensat.c: Likewise.
64067         * tests/test-vasnprintf-posix.c: Likewise.
64068         * tests/test-vasnprintf-posix2.c: Likewise.
64069         * tests/test-vasnprintf.c: Likewise.
64070         * tests/test-vasprintf-posix.c: Likewise.
64071         * tests/test-vasprintf.c: Likewise.
64072         * tests/test-vdprintf-posix.c: Likewise.
64073         * tests/test-vfprintf-posix.c: Likewise.
64074         * tests/test-vprintf-posix.c: Likewise.
64075         * tests/test-vsnprintf-posix.c: Likewise.
64076         * tests/test-vsnprintf.c: Likewise.
64077         * tests/test-vsprintf-posix.c: Likewise.
64078         * tests/test-wcrtomb.c: Likewise.
64079         * tests/test-wcsnrtombs.c: Likewise.
64080         * tests/test-wcsrtombs.c: Likewise.
64081         * tests/test-wctype.c: Likewise.
64082         * tests/test-wcwidth.c: Likewise.
64083         * tests/test-xfprintf-posix.c: Likewise.
64084         * tests/test-xmemdup0.c: Likewise.
64085         * tests/test-xprintf-posix.c: Likewise.
64086         * tests/test-xvasprintf.c: Likewise.
64087         * tests/unicase/test-locale-language.c: Likewise.
64088         * tests/unicase/test-mapping-part1.h: Likewise.
64089         * tests/unicase/test-predicate-part1.h: Likewise.
64090         * tests/unicase/test-u8-casecmp.c: Likewise.
64091         * tests/unicase/test-u8-casecoll.c: Likewise.
64092         * tests/unicase/test-u8-casefold.c: Likewise.
64093         * tests/unicase/test-u8-is-cased.c: Likewise.
64094         * tests/unicase/test-u8-is-casefolded.c: Likewise.
64095         * tests/unicase/test-u8-is-lowercase.c: Likewise.
64096         * tests/unicase/test-u8-is-titlecase.c: Likewise.
64097         * tests/unicase/test-u8-is-uppercase.c: Likewise.
64098         * tests/unicase/test-u8-tolower.c: Likewise.
64099         * tests/unicase/test-u8-totitle.c: Likewise.
64100         * tests/unicase/test-u8-toupper.c: Likewise.
64101         * tests/unicase/test-u16-casecmp.c: Likewise.
64102         * tests/unicase/test-u16-casecoll.c: Likewise.
64103         * tests/unicase/test-u16-casefold.c: Likewise.
64104         * tests/unicase/test-u16-is-cased.c: Likewise.
64105         * tests/unicase/test-u16-is-casefolded.c: Likewise.
64106         * tests/unicase/test-u16-is-lowercase.c: Likewise.
64107         * tests/unicase/test-u16-is-titlecase.c: Likewise.
64108         * tests/unicase/test-u16-is-uppercase.c: Likewise.
64109         * tests/unicase/test-u16-tolower.c: Likewise.
64110         * tests/unicase/test-u16-totitle.c: Likewise.
64111         * tests/unicase/test-u16-toupper.c: Likewise.
64112         * tests/unicase/test-u32-casecmp.c: Likewise.
64113         * tests/unicase/test-u32-casecoll.c: Likewise.
64114         * tests/unicase/test-u32-casefold.c: Likewise.
64115         * tests/unicase/test-u32-is-cased.c: Likewise.
64116         * tests/unicase/test-u32-is-casefolded.c: Likewise.
64117         * tests/unicase/test-u32-is-lowercase.c: Likewise.
64118         * tests/unicase/test-u32-is-titlecase.c: Likewise.
64119         * tests/unicase/test-u32-is-uppercase.c: Likewise.
64120         * tests/unicase/test-u32-tolower.c: Likewise.
64121         * tests/unicase/test-u32-totitle.c: Likewise.
64122         * tests/unicase/test-u32-toupper.c: Likewise.
64123         * tests/unicase/test-ulc-casecmp.c: Likewise.
64124         * tests/unicase/test-ulc-casecoll.c: Likewise.
64125         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64126         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
64127         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64128         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64129         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
64130         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
64131         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64132         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64133         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64134         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
64135         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64136         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64137         * tests/unictype/test-bidi_byname.c: Likewise.
64138         * tests/unictype/test-bidi_name.c: Likewise.
64139         * tests/unictype/test-bidi_of.c: Likewise.
64140         * tests/unictype/test-bidi_test.c: Likewise.
64141         * tests/unictype/test-block_list.c: Likewise.
64142         * tests/unictype/test-block_of.c: Likewise.
64143         * tests/unictype/test-block_test.c: Likewise.
64144         * tests/unictype/test-categ_and.c: Likewise.
64145         * tests/unictype/test-categ_and_not.c: Likewise.
64146         * tests/unictype/test-categ_byname.c: Likewise.
64147         * tests/unictype/test-categ_name.c: Likewise.
64148         * tests/unictype/test-categ_none.c: Likewise.
64149         * tests/unictype/test-categ_of.c: Likewise.
64150         * tests/unictype/test-categ_or.c: Likewise.
64151         * tests/unictype/test-categ_test_withtable.c: Likewise.
64152         * tests/unictype/test-combining.c: Likewise.
64153         * tests/unictype/test-decdigit.c: Likewise.
64154         * tests/unictype/test-digit.c: Likewise.
64155         * tests/unictype/test-mirror.c: Likewise.
64156         * tests/unictype/test-numeric.c: Likewise.
64157         * tests/unictype/test-pr_byname.c: Likewise.
64158         * tests/unictype/test-pr_test.c: Likewise.
64159         * tests/unictype/test-predicate-part1.h: Likewise.
64160         * tests/unictype/test-scripts.c: Likewise.
64161         * tests/unictype/test-sy_c_ident.c: Likewise.
64162         * tests/unictype/test-sy_java_ident.c: Likewise.
64163         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
64164         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
64165         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
64166         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
64167         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
64168         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
64169         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
64170         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
64171         * tests/uninorm/test-canonical-decomposition.c: Likewise.
64172         * tests/uninorm/test-compat-decomposition.c: Likewise.
64173         * tests/uninorm/test-composition.c: Likewise.
64174         * tests/uninorm/test-decomposing-form.c: Likewise.
64175         * tests/uninorm/test-decomposition.c: Likewise.
64176         * tests/uninorm/test-u8-nfc.c: Likewise.
64177         * tests/uninorm/test-u8-nfd.c: Likewise.
64178         * tests/uninorm/test-u8-nfkc.c: Likewise.
64179         * tests/uninorm/test-u8-nfkd.c: Likewise.
64180         * tests/uninorm/test-u8-normcmp.c: Likewise.
64181         * tests/uninorm/test-u8-normcoll.c: Likewise.
64182         * tests/uninorm/test-u16-nfc.c: Likewise.
64183         * tests/uninorm/test-u16-nfd.c: Likewise.
64184         * tests/uninorm/test-u16-nfkc.c: Likewise.
64185         * tests/uninorm/test-u16-nfkd.c: Likewise.
64186         * tests/uninorm/test-u16-normcmp.c: Likewise.
64187         * tests/uninorm/test-u16-normcoll.c: Likewise.
64188         * tests/uninorm/test-u32-nfc.c: Likewise.
64189         * tests/uninorm/test-u32-nfd.c: Likewise.
64190         * tests/uninorm/test-u32-nfkc.c: Likewise.
64191         * tests/uninorm/test-u32-nfkd.c: Likewise.
64192         * tests/uninorm/test-u32-normalize-big.c: Likewise.
64193         * tests/uninorm/test-u32-normcmp.c: Likewise.
64194         * tests/uninorm/test-u32-normcoll.c: Likewise.
64195         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
64196         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
64197         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
64198         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
64199         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
64200         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
64201         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
64202         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
64203         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
64204         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
64205         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
64206         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
64207         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
64208         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
64209         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
64210         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
64211         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
64212         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
64213         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
64214         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
64215         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
64216         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
64217         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
64218         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
64219         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
64220         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
64221         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
64222         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
64223         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
64224         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
64225         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
64226         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
64227         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
64228         * tests/uniwidth/test-u8-strwidth.c: Likewise.
64229         * tests/uniwidth/test-u8-width.c: Likewise.
64230         * tests/uniwidth/test-u16-strwidth.c: Likewise.
64231         * tests/uniwidth/test-u16-width.c: Likewise.
64232         * tests/uniwidth/test-u32-strwidth.c: Likewise.
64233         * tests/uniwidth/test-u32-width.c: Likewise.
64234         * tests/uniwidth/test-uc_width.c: Likewise.
64235         * tests/uniwidth/test-uc_width2.c: Likewise.
64236         * modules/acl-tests (Files): Add tests/macros.h.
64237         * modules/areadlink-tests (Files): Likewise.
64238         * modules/areadlink-with-size-tests (Files): Likewise.
64239         * modules/areadlinkat-tests (Files): Likewise.
64240         * modules/areadlinkat-with-size-tests (Files): Likewise.
64241         * modules/argmatch-tests (Files): Likewise.
64242         * modules/argv-iter-tests (Files): Likewise.
64243         * modules/array-list-tests (Files): Likewise.
64244         * modules/array-mergesort-tests (Files): Likewise.
64245         * modules/array-oset-tests (Files): Likewise.
64246         * modules/avltree-list-tests (Files): Likewise.
64247         * modules/avltree-oset-tests (Files): Likewise.
64248         * modules/avltreehash-list-tests (Files): Likewise.
64249         * modules/base64-tests (Files): Likewise.
64250         * modules/binary-io-tests (Files): Likewise.
64251         * modules/bitrotate-tests (Files): Likewise.
64252         * modules/btowc-tests (Files): Likewise.
64253         * modules/byteswap-tests (Files): Likewise.
64254         * modules/c-ctype-tests (Files): Likewise.
64255         * modules/c-stack-tests (Files): Likewise.
64256         * modules/c-strcase-tests (Files): Likewise.
64257         * modules/c-strcasestr-tests (Files): Likewise.
64258         * modules/c-strstr-tests (Files): Likewise.
64259         * modules/canonicalize-lgpl-tests (Files): Likewise.
64260         * modules/canonicalize-tests (Files): Likewise.
64261         * modules/carray-list-tests (Files): Likewise.
64262         * modules/ceilf-tests (Files): Likewise.
64263         * modules/ceill-tests (Files): Likewise.
64264         * modules/chown-tests (Files): Likewise.
64265         * modules/cloexec-tests (Files): Likewise.
64266         * modules/copy-file-tests (Files): Likewise.
64267         * modules/count-one-bits-tests (Files): Likewise.
64268         * modules/dprintf-posix-tests (Files): Likewise.
64269         * modules/dup2-tests (Files): Likewise.
64270         * modules/dup3-tests (Files): Likewise.
64271         * modules/duplocale-tests (Files): Likewise.
64272         * modules/fbufmode-tests (Files): Likewise.
64273         * modules/fchdir-tests (Files): Likewise.
64274         * modules/fcntl-safer-tests (Files): Likewise.
64275         * modules/fcntl-tests (Files): Likewise.
64276         * modules/fdopendir-tests (Files): Likewise.
64277         * modules/fdutimensat-tests (Files): Likewise.
64278         * modules/fflush-tests (Files): Likewise.
64279         * modules/filevercmp-tests (Files): Likewise.
64280         * modules/flock-tests (Files): Likewise.
64281         * modules/floorf-tests (Files): Likewise.
64282         * modules/floorl-tests (Files): Likewise.
64283         * modules/fnmatch-tests (Files): Likewise.
64284         * modules/fopen-safer-tests (Files): Likewise.
64285         * modules/fopen-tests (Files): Likewise.
64286         * modules/fpending-tests (Files): Likewise.
64287         * modules/fprintf-posix-tests (Files): Likewise.
64288         * modules/fpurge-tests (Files): Likewise.
64289         * modules/freadable-tests (Files): Likewise.
64290         * modules/freadahead-tests (Files): Likewise.
64291         * modules/freading-tests (Files): Likewise.
64292         * modules/freadptr-tests (Files): Likewise.
64293         * modules/freadseek-tests (Files): Likewise.
64294         * modules/freopen-tests (Files): Likewise.
64295         * modules/frexp-nolibm-tests (Files): Likewise.
64296         * modules/frexp-tests (Files): Likewise.
64297         * modules/frexpl-nolibm-tests (Files): Likewise.
64298         * modules/frexpl-tests (Files): Likewise.
64299         * modules/fseek-tests (Files): Likewise.
64300         * modules/fseeko-tests (Files): Likewise.
64301         * modules/fstrcmp-tests (Files): Likewise.
64302         * modules/fsync-tests (Files): Likewise.
64303         * modules/ftell-tests (Files): Likewise.
64304         * modules/ftello-tests (Files): Likewise.
64305         * modules/func-tests (Files): Likewise.
64306         * modules/futimens-tests (Files): Likewise.
64307         * modules/fwritable-tests (Files): Likewise.
64308         * modules/fwriting-tests (Files): Likewise.
64309         * modules/getcwd-tests (Files): Likewise.
64310         * modules/getdate-tests (Files): Likewise.
64311         * modules/getdelim-tests (Files): Likewise.
64312         * modules/getdtablesize-tests (Files): Likewise.
64313         * modules/getgroups-tests (Files): Likewise.
64314         * modules/getline-tests (Files): Likewise.
64315         * modules/getndelim2-tests (Files): Likewise.
64316         * modules/glob-tests (Files): Likewise.
64317         * modules/hash-tests (Files): Likewise.
64318         * modules/i-ring-tests (Files): Likewise.
64319         * modules/iconv-tests (Files): Likewise.
64320         * modules/iconv_open-utf-tests (Files): Likewise.
64321         * modules/idpriv-drop-tests (Files): Likewise.
64322         * modules/idpriv-droptemp-tests (Files): Likewise.
64323         * modules/inet_ntop-tests (Files): Likewise.
64324         * modules/inet_pton-tests (Files): Likewise.
64325         * modules/isblank-tests (Files): Likewise.
64326         * modules/isfinite-tests (Files): Likewise.
64327         * modules/isinf-tests (Files): Likewise.
64328         * modules/isnan-tests (Files): Likewise.
64329         * modules/isnand-nolibm-tests (Files): Likewise.
64330         * modules/isnand-tests (Files): Likewise.
64331         * modules/isnanf-nolibm-tests (Files): Likewise.
64332         * modules/isnanf-tests (Files): Likewise.
64333         * modules/isnanl-nolibm-tests (Files): Likewise.
64334         * modules/isnanl-tests (Files): Likewise.
64335         * modules/lchown-tests (Files): Likewise.
64336         * modules/ldexpl-tests (Files): Likewise.
64337         * modules/link-tests (Files): Likewise.
64338         * modules/linkat-tests (Files): Likewise.
64339         * modules/linked-list-tests (Files): Likewise.
64340         * modules/linkedhash-list-tests (Files): Likewise.
64341         * modules/localename-tests (Files): Likewise.
64342         * modules/lseek-tests (Files): Likewise.
64343         * modules/lstat-tests (Files): Likewise.
64344         * modules/mbmemcasecmp-tests (Files): Likewise.
64345         * modules/mbmemcasecoll-tests (Files): Likewise.
64346         * modules/mbrtowc-tests (Files): Likewise.
64347         * modules/mbscasecmp-tests (Files): Likewise.
64348         * modules/mbscasestr-tests (Files): Likewise.
64349         * modules/mbschr-tests (Files): Likewise.
64350         * modules/mbscspn-tests (Files): Likewise.
64351         * modules/mbsinit-tests (Files): Likewise.
64352         * modules/mbsncasecmp-tests (Files): Likewise.
64353         * modules/mbsnrtowcs-tests (Files): Likewise.
64354         * modules/mbspbrk-tests (Files): Likewise.
64355         * modules/mbspcasecmp-tests (Files): Likewise.
64356         * modules/mbsrchr-tests (Files): Likewise.
64357         * modules/mbsrtowcs-tests (Files): Likewise.
64358         * modules/mbsspn-tests (Files): Likewise.
64359         * modules/mbsstr-tests (Files): Likewise.
64360         * modules/memchr-tests (Files): Likewise.
64361         * modules/memchr2-tests (Files): Likewise.
64362         * modules/memcmp-tests (Files): Likewise.
64363         * modules/memmem-tests (Files): Likewise.
64364         * modules/memrchr-tests (Files): Likewise.
64365         * modules/mkdir-tests (Files): Likewise.
64366         * modules/mkfifo-tests (Files): Likewise.
64367         * modules/mkfifoat-tests (Files): Likewise.
64368         * modules/mknod-tests (Files): Likewise.
64369         * modules/nanosleep-tests (Files): Likewise.
64370         * modules/nl_langinfo-tests (Files): Likewise.
64371         * modules/obstack-printf-tests (Files): Likewise.
64372         * modules/open-tests (Files): Likewise.
64373         * modules/openat-tests (Files): Likewise.
64374         * modules/pipe-filter-gi-tests (Files): Likewise.
64375         * modules/pipe-filter-ii-tests (Files): Likewise.
64376         * modules/pipe2-tests (Files): Likewise.
64377         * modules/popen-safer-tests (Files): Likewise.
64378         * modules/popen-tests (Files): Likewise.
64379         * modules/posixtm-tests (Files): Likewise.
64380         * modules/pread-tests (Files): Likewise.
64381         * modules/printf-frexp-tests (Files): Likewise.
64382         * modules/printf-frexpl-tests (Files): Likewise.
64383         * modules/printf-posix-tests (Files): Likewise.
64384         * modules/priv-set-tests (Files): Likewise.
64385         * modules/quotearg-tests (Files): Likewise.
64386         * modules/random_r-tests (Files): Likewise.
64387         * modules/rawmemchr-tests (Files): Likewise.
64388         * modules/rbtree-list-tests (Files): Likewise.
64389         * modules/rbtree-oset-tests (Files): Likewise.
64390         * modules/rbtreehash-list-tests (Files): Likewise.
64391         * modules/readlink-tests (Files): Likewise.
64392         * modules/remove-tests (Files): Likewise.
64393         * modules/rename-tests (Files): Likewise.
64394         * modules/renameat-tests (Files): Likewise.
64395         * modules/rmdir-tests (Files): Likewise.
64396         * modules/round-tests (Files): Likewise.
64397         * modules/roundf-tests (Files): Likewise.
64398         * modules/roundl-tests (Files): Likewise.
64399         * modules/safe-alloc-tests (Files): Likewise.
64400         * modules/setenv-tests (Files): Likewise.
64401         * modules/sigaction-tests (Files): Likewise.
64402         * modules/signbit-tests (Files): Likewise.
64403         * modules/sleep-tests (Files): Likewise.
64404         * modules/snprintf-posix-tests (Files): Likewise.
64405         * modules/snprintf-tests (Files): Likewise.
64406         * modules/sprintf-posix-tests (Files): Likewise.
64407         * modules/stat-tests (Files): Likewise.
64408         * modules/stat-time-tests (Files): Likewise.
64409         * modules/strcasestr-tests (Files): Likewise.
64410         * modules/strchrnul-tests (Files): Likewise.
64411         * modules/strerror-tests (Files): Likewise.
64412         * modules/striconv-tests (Files): Likewise.
64413         * modules/striconveh-tests (Files): Likewise.
64414         * modules/striconveha-tests (Files): Likewise.
64415         * modules/strsignal-tests (Files): Likewise.
64416         * modules/strstr-tests (Files): Likewise.
64417         * modules/strtod-tests (Files): Likewise.
64418         * modules/strverscmp-tests (Files): Likewise.
64419         * modules/symlink-tests (Files): Likewise.
64420         * modules/symlinkat-tests (Files): Likewise.
64421         * modules/trunc-tests (Files): Likewise.
64422         * modules/truncf-tests (Files): Likewise.
64423         * modules/truncl-tests (Files): Likewise.
64424         * modules/uname-tests (Files): Likewise.
64425         * modules/unicase/cased-tests (Files): Likewise.
64426         * modules/unicase/ignorable-tests (Files): Likewise.
64427         * modules/unicase/locale-language-tests (Files): Likewise.
64428         * modules/unicase/tolower-tests (Files): Likewise.
64429         * modules/unicase/totitle-tests (Files): Likewise.
64430         * modules/unicase/toupper-tests (Files): Likewise.
64431         * modules/unicase/u8-casecmp-tests (Files): Likewise.
64432         * modules/unicase/u8-casecoll-tests (Files): Likewise.
64433         * modules/unicase/u8-casefold-tests (Files): Likewise.
64434         * modules/unicase/u8-is-cased-tests (Files): Likewise.
64435         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
64436         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
64437         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
64438         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
64439         * modules/unicase/u8-tolower-tests (Files): Likewise.
64440         * modules/unicase/u8-totitle-tests (Files): Likewise.
64441         * modules/unicase/u8-toupper-tests (Files): Likewise.
64442         * modules/unicase/u16-casecmp-tests (Files): Likewise.
64443         * modules/unicase/u16-casecoll-tests (Files): Likewise.
64444         * modules/unicase/u16-casefold-tests (Files): Likewise.
64445         * modules/unicase/u16-is-cased-tests (Files): Likewise.
64446         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
64447         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
64448         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
64449         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
64450         * modules/unicase/u16-tolower-tests (Files): Likewise.
64451         * modules/unicase/u16-totitle-tests (Files): Likewise.
64452         * modules/unicase/u16-toupper-tests (Files): Likewise.
64453         * modules/unicase/u32-casecmp-tests (Files): Likewise.
64454         * modules/unicase/u32-casecoll-tests (Files): Likewise.
64455         * modules/unicase/u32-casefold-tests (Files): Likewise.
64456         * modules/unicase/u32-is-cased-tests (Files): Likewise.
64457         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
64458         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
64459         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
64460         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
64461         * modules/unicase/u32-tolower-tests (Files): Likewise.
64462         * modules/unicase/u32-totitle-tests (Files): Likewise.
64463         * modules/unicase/u32-toupper-tests (Files): Likewise.
64464         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
64465         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
64466         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
64467         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
64468         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
64469         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
64470         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
64471         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
64472         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
64473         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
64474         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
64475         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
64476         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
64477         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
64478         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
64479         * modules/unictype/bidicategory-name-tests (Files): Likewise.
64480         * modules/unictype/bidicategory-of-tests (Files): Likewise.
64481         * modules/unictype/bidicategory-test-tests (Files): Likewise.
64482         * modules/unictype/block-list-tests (Files): Likewise.
64483         * modules/unictype/block-of-tests (Files): Likewise.
64484         * modules/unictype/block-test-tests (Files): Likewise.
64485         * modules/unictype/category-C-tests (Files): Likewise.
64486         * modules/unictype/category-Cc-tests (Files): Likewise.
64487         * modules/unictype/category-Cf-tests (Files): Likewise.
64488         * modules/unictype/category-Cn-tests (Files): Likewise.
64489         * modules/unictype/category-Co-tests (Files): Likewise.
64490         * modules/unictype/category-Cs-tests (Files): Likewise.
64491         * modules/unictype/category-L-tests (Files): Likewise.
64492         * modules/unictype/category-Ll-tests (Files): Likewise.
64493         * modules/unictype/category-Lm-tests (Files): Likewise.
64494         * modules/unictype/category-Lo-tests (Files): Likewise.
64495         * modules/unictype/category-Lt-tests (Files): Likewise.
64496         * modules/unictype/category-Lu-tests (Files): Likewise.
64497         * modules/unictype/category-M-tests (Files): Likewise.
64498         * modules/unictype/category-Mc-tests (Files): Likewise.
64499         * modules/unictype/category-Me-tests (Files): Likewise.
64500         * modules/unictype/category-Mn-tests (Files): Likewise.
64501         * modules/unictype/category-N-tests (Files): Likewise.
64502         * modules/unictype/category-Nd-tests (Files): Likewise.
64503         * modules/unictype/category-Nl-tests (Files): Likewise.
64504         * modules/unictype/category-No-tests (Files): Likewise.
64505         * modules/unictype/category-P-tests (Files): Likewise.
64506         * modules/unictype/category-Pc-tests (Files): Likewise.
64507         * modules/unictype/category-Pd-tests (Files): Likewise.
64508         * modules/unictype/category-Pe-tests (Files): Likewise.
64509         * modules/unictype/category-Pf-tests (Files): Likewise.
64510         * modules/unictype/category-Pi-tests (Files): Likewise.
64511         * modules/unictype/category-Po-tests (Files): Likewise.
64512         * modules/unictype/category-Ps-tests (Files): Likewise.
64513         * modules/unictype/category-S-tests (Files): Likewise.
64514         * modules/unictype/category-Sc-tests (Files): Likewise.
64515         * modules/unictype/category-Sk-tests (Files): Likewise.
64516         * modules/unictype/category-Sm-tests (Files): Likewise.
64517         * modules/unictype/category-So-tests (Files): Likewise.
64518         * modules/unictype/category-Z-tests (Files): Likewise.
64519         * modules/unictype/category-Zl-tests (Files): Likewise.
64520         * modules/unictype/category-Zp-tests (Files): Likewise.
64521         * modules/unictype/category-Zs-tests (Files): Likewise.
64522         * modules/unictype/category-and-not-tests (Files): Likewise.
64523         * modules/unictype/category-and-tests (Files): Likewise.
64524         * modules/unictype/category-byname-tests (Files): Likewise.
64525         * modules/unictype/category-name-tests (Files): Likewise.
64526         * modules/unictype/category-none-tests (Files): Likewise.
64527         * modules/unictype/category-of-tests (Files): Likewise.
64528         * modules/unictype/category-or-tests (Files): Likewise.
64529         * modules/unictype/category-test-withtable-tests (Files): Likewise.
64530         * modules/unictype/combining-class-tests (Files): Likewise.
64531         * modules/unictype/ctype-alnum-tests (Files): Likewise.
64532         * modules/unictype/ctype-alpha-tests (Files): Likewise.
64533         * modules/unictype/ctype-blank-tests (Files): Likewise.
64534         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
64535         * modules/unictype/ctype-digit-tests (Files): Likewise.
64536         * modules/unictype/ctype-graph-tests (Files): Likewise.
64537         * modules/unictype/ctype-lower-tests (Files): Likewise.
64538         * modules/unictype/ctype-print-tests (Files): Likewise.
64539         * modules/unictype/ctype-punct-tests (Files): Likewise.
64540         * modules/unictype/ctype-space-tests (Files): Likewise.
64541         * modules/unictype/ctype-upper-tests (Files): Likewise.
64542         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
64543         * modules/unictype/decimal-digit-tests (Files): Likewise.
64544         * modules/unictype/digit-tests (Files): Likewise.
64545         * modules/unictype/mirror-tests (Files): Likewise.
64546         * modules/unictype/numeric-tests (Files): Likewise.
64547         * modules/unictype/property-alphabetic-tests (Files): Likewise.
64548         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
64549         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
64550         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
64551         Likewise.
64552         * modules/unictype/property-bidi-block-separator-tests (Files):
64553         Likewise.
64554         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
64555         Likewise.
64556         * modules/unictype/property-bidi-common-separator-tests (Files):
64557         Likewise.
64558         * modules/unictype/property-bidi-control-tests (Files): Likewise.
64559         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
64560         Likewise.
64561         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
64562         Likewise.
64563         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
64564         Likewise.
64565         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
64566         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
64567         Likewise.
64568         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
64569         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
64570         Likewise.
64571         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
64572         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
64573         * modules/unictype/property-bidi-segment-separator-tests (Files):
64574         Likewise.
64575         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
64576         * modules/unictype/property-byname-tests (Files): Likewise.
64577         * modules/unictype/property-combining-tests (Files): Likewise.
64578         * modules/unictype/property-composite-tests (Files): Likewise.
64579         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
64580         * modules/unictype/property-dash-tests (Files): Likewise.
64581         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
64582         * modules/unictype/property-default-ignorable-code-point-tests (Files):
64583         Likewise.
64584         * modules/unictype/property-deprecated-tests (Files): Likewise.
64585         * modules/unictype/property-diacritic-tests (Files): Likewise.
64586         * modules/unictype/property-extender-tests (Files): Likewise.
64587         * modules/unictype/property-format-control-tests (Files): Likewise.
64588         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
64589         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
64590         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
64591         * modules/unictype/property-hex-digit-tests (Files): Likewise.
64592         * modules/unictype/property-hyphen-tests (Files): Likewise.
64593         * modules/unictype/property-id-continue-tests (Files): Likewise.
64594         * modules/unictype/property-id-start-tests (Files): Likewise.
64595         * modules/unictype/property-ideographic-tests (Files): Likewise.
64596         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
64597         * modules/unictype/property-ids-trinary-operator-tests (Files):
64598         Likewise.
64599         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
64600         * modules/unictype/property-iso-control-tests (Files): Likewise.
64601         * modules/unictype/property-join-control-tests (Files): Likewise.
64602         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
64603         * modules/unictype/property-line-separator-tests (Files): Likewise.
64604         * modules/unictype/property-logical-order-exception-tests (Files):
64605         Likewise.
64606         * modules/unictype/property-lowercase-tests (Files): Likewise.
64607         * modules/unictype/property-math-tests (Files): Likewise.
64608         * modules/unictype/property-non-break-tests (Files): Likewise.
64609         * modules/unictype/property-not-a-character-tests (Files): Likewise.
64610         * modules/unictype/property-numeric-tests (Files): Likewise.
64611         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
64612         * modules/unictype/property-other-default-ignorable-code-point-tests
64613         (Files): Likewise.
64614         * modules/unictype/property-other-grapheme-extend-tests (Files):
64615         Likewise.
64616         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
64617         * modules/unictype/property-other-id-start-tests (Files): Likewise.
64618         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
64619         * modules/unictype/property-other-math-tests (Files): Likewise.
64620         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
64621         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
64622         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
64623         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
64624         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
64625         * modules/unictype/property-private-use-tests (Files): Likewise.
64626         * modules/unictype/property-punctuation-tests (Files): Likewise.
64627         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
64628         * modules/unictype/property-radical-tests (Files): Likewise.
64629         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
64630         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
64631         * modules/unictype/property-space-tests (Files): Likewise.
64632         * modules/unictype/property-terminal-punctuation-tests (Files):
64633         Likewise.
64634         * modules/unictype/property-test-tests (Files): Likewise.
64635         * modules/unictype/property-titlecase-tests (Files): Likewise.
64636         * modules/unictype/property-unassigned-code-value-tests (Files):
64637         Likewise.
64638         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
64639         * modules/unictype/property-uppercase-tests (Files): Likewise.
64640         * modules/unictype/property-variation-selector-tests (Files): Likewise.
64641         * modules/unictype/property-white-space-tests (Files): Likewise.
64642         * modules/unictype/property-xid-continue-tests (Files): Likewise.
64643         * modules/unictype/property-xid-start-tests (Files): Likewise.
64644         * modules/unictype/property-zero-width-tests (Files): Likewise.
64645         * modules/unictype/scripts-tests (Files): Likewise.
64646         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
64647         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
64648         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
64649         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
64650         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
64651         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
64652         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
64653         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
64654         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
64655         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
64656         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
64657         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
64658         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
64659         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
64660         * modules/uninorm/composition-tests (Files): Likewise.
64661         * modules/uninorm/decomposing-form-tests (Files): Likewise.
64662         * modules/uninorm/decomposition-tests (Files): Likewise.
64663         * modules/uninorm/filter-tests (Files): Likewise.
64664         * modules/uninorm/nfc-tests (Files): Likewise.
64665         * modules/uninorm/nfd-tests (Files): Likewise.
64666         * modules/uninorm/nfkc-tests (Files): Likewise.
64667         * modules/uninorm/nfkd-tests (Files): Likewise.
64668         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
64669         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
64670         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
64671         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
64672         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
64673         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
64674         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
64675         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
64676         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
64677         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
64678         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
64679         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
64680         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
64681         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
64682         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
64683         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
64684         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
64685         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
64686         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
64687         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
64688         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
64689         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
64690         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
64691         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
64692         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
64693         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
64694         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
64695         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
64696         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
64697         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
64698         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
64699         * modules/uniwidth/u8-width-tests (Files): Likewise.
64700         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
64701         * modules/uniwidth/u16-width-tests (Files): Likewise.
64702         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
64703         * modules/uniwidth/u32-width-tests (Files): Likewise.
64704         * modules/uniwidth/width-tests (Files): Likewise.
64705         * modules/unlink-tests (Files): Likewise.
64706         * modules/unsetenv-tests (Files): Likewise.
64707         * modules/usleep-tests (Files): Likewise.
64708         * modules/utimens-tests (Files): Likewise.
64709         * modules/utimensat-tests (Files): Likewise.
64710         * modules/vasnprintf-posix-tests (Files): Likewise.
64711         * modules/vasnprintf-tests (Files): Likewise.
64712         * modules/vasprintf-posix-tests (Files): Likewise.
64713         * modules/vasprintf-tests (Files): Likewise.
64714         * modules/vdprintf-posix-tests (Files): Likewise.
64715         * modules/vfprintf-posix-tests (Files): Likewise.
64716         * modules/vprintf-posix-tests (Files): Likewise.
64717         * modules/vsnprintf-posix-tests (Files): Likewise.
64718         * modules/vsnprintf-tests (Files): Likewise.
64719         * modules/vsprintf-posix-tests (Files): Likewise.
64720         * modules/wcrtomb-tests (Files): Likewise.
64721         * modules/wcsnrtombs-tests (Files): Likewise.
64722         * modules/wcsrtombs-tests (Files): Likewise.
64723         * modules/wctype-tests (Files): Likewise.
64724         * modules/wcwidth-tests (Files): Likewise.
64725         * modules/xmemdup0-tests (Files): Likewise.
64726         * modules/xprintf-posix-tests (Files): Likewise.
64727         * modules/xvasprintf-tests (Files): Likewise.
64729 2009-12-24  Eric Blake  <ebb9@byu.net>
64731         test-nanosleep: fix typo
64732         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
64733         patch.
64734         Reported by Bruno Haible.
64736 2009-12-24  Bruno Haible  <bruno@clisp.org>
64738         Reduce namespace pollution on glibc systems.
64739         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
64740         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
64741         systems.
64742         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
64743         <getopt.h> on glibc systems.
64744         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
64745         systems.
64746         * lib/fcntl.c: Include <unistd.h> here instead.
64748 2009-12-24  Bruno Haible  <bruno@clisp.org>
64750         * lib/stdlib.in.h (includes): Fix typo in today's commit.
64752 2009-12-24  Eric Blake  <ebb9@byu.net>
64754         tests: add signature checks
64755         * tests/signature.h (SIGNATURE_CHECK): New file.
64756         * modules/atexit-tests (Files): Use it.
64757         * modules/btowc-tests (Files): Likewise.
64758         * modules/canonicalize-lgpl-tests (Files): Likewise.
64759         * modules/ceilf-tests (Files): Likewise.
64760         * modules/ceill-tests (Files): Likewise.
64761         * modules/chown-tests (Files): Likewise.
64762         * modules/dprintf-posix-tests (Files): Likewise.
64763         * modules/dup2-tests (Files): Likewise.
64764         * modules/dup3-tests (Files): Likewise.
64765         * modules/duplocale-tests (Files): Likewise.
64766         * modules/fchdir-tests (Files): Likewise.
64767         * modules/fcntl-tests (Files): Likewise.
64768         * modules/fdopendir-tests (Files): Likewise.
64769         * modules/fflush-tests (Files): Likewise.
64770         * modules/flock-tests (Files): Likewise.
64771         * modules/floorf-tests (Files): Likewise.
64772         * modules/floorl-tests (Files): Likewise.
64773         * modules/fnmatch-tests (Files): Likewise.
64774         * modules/fopen-tests (Files): Likewise.
64775         * modules/fprintf-posix-tests (Files): Likewise.
64776         * modules/freopen-tests (Files): Likewise.
64777         * modules/frexp-nolibm-tests (Files): Likewise.
64778         * modules/frexp-tests (Files): Likewise.
64779         * modules/frexpl-nolibm-tests (Files): Likewise.
64780         * modules/frexpl-tests (Files): Likewise.
64781         * modules/fseek-tests (Files): Likewise.
64782         * modules/fseeko-tests (Files): Likewise.
64783         * modules/fsync-tests (Files): Likewise.
64784         * modules/ftell-tests (Files): Likewise.
64785         * modules/ftello-tests (Files): Likewise.
64786         * modules/futimens-tests (Files): Likewise.
64787         * modules/getaddrinfo-tests (Files): Likewise.
64788         * modules/getcwd-tests (Files): Likewise.
64789         * modules/getdelim-tests (Files): Likewise.
64790         * modules/getdtablesize-tests (Files): Likewise.
64791         * modules/getgroups-tests (Files): Likewise.
64792         * modules/gethostname-tests (Files): Likewise.
64793         * modules/getline-tests (Files): Likewise.
64794         * modules/getopt-posix-tests (Files): Likewise.
64795         * modules/gettimeofday-tests (Files): Likewise.
64796         * modules/glob-tests (Files): Likewise.
64797         * modules/iconv-tests (Files): Likewise.
64798         * modules/inet_ntop-tests (Files): Likewise.
64799         * modules/inet_pton-tests (Files): Likewise.
64800         * modules/isblank-tests (Files): Likewise.
64801         * modules/lchown-tests (Files): Likewise.
64802         * modules/ldexpl-tests (Files): Likewise.
64803         * modules/link-tests (Files): Likewise.
64804         * modules/linkat-tests (Files): Likewise.
64805         * modules/lseek-tests (Files): Likewise.
64806         * modules/lstat-tests (Files): Likewise.
64807         * modules/mbrtowc-tests (Files): Likewise.
64808         * modules/mbsinit-tests (Files): Likewise.
64809         * modules/mbsnrtowcs-tests (Files): Likewise.
64810         * modules/mbsrtowcs-tests (Files): Likewise.
64811         * modules/memchr-tests (Files): Likewise.
64812         * modules/memcmp-tests (Files): Likewise.
64813         * modules/memmem-tests (Files): Likewise.
64814         * modules/memrchr-tests (Files): Likewise.
64815         * modules/mkdir-tests (Files): Likewise.
64816         * modules/mkfifo-tests (Files): Likewise.
64817         * modules/mkfifoat-tests (Files): Likewise.
64818         * modules/mknod-tests (Files): Likewise.
64819         * modules/nanosleep-tests (Files): Likewise.
64820         * modules/nl_langinfo-tests (Files): Likewise.
64821         * modules/obstack-printf-tests (Files): Likewise.
64822         * modules/open-tests (Files): Likewise.
64823         * modules/openat-tests (Files): Likewise.
64824         * modules/perror-tests (Files): Likewise.
64825         * modules/pipe2-tests (Files): Likewise.
64826         * modules/poll-tests (Files): Likewise.
64827         * modules/popen-tests (Files): Likewise.
64828         * modules/posix_spawn-tests (Files): Likewise.
64829         * modules/posix_spawnp-tests (Files): Likewise.
64830         * modules/pread-tests (Files): Likewise.
64831         * modules/printf-posix-tests (Files): Likewise.
64832         * modules/pty-tests (Files): Likewise.
64833         * modules/random_r-tests (Files): Likewise.
64834         * modules/rawmemchr-tests (Files): Likewise.
64835         * modules/readlink-tests (Files): Likewise.
64836         * modules/remove-tests (Files): Likewise.
64837         * modules/rename-tests (Files): Likewise.
64838         * modules/renameat-tests (Files): Likewise.
64839         * modules/rmdir-tests (Files): Likewise.
64840         * modules/round-tests (Files): Likewise.
64841         * modules/roundf-tests (Files): Likewise.
64842         * modules/roundl-tests (Files): Likewise.
64843         * modules/select-tests (Files): Likewise.
64844         * modules/setenv-tests (Files): Likewise.
64845         * modules/sigaction-tests (Files): Likewise.
64846         * modules/sleep-tests (Files): Likewise.
64847         * modules/snprintf-posix-tests (Files): Likewise.
64848         * modules/snprintf-tests (Files): Likewise.
64849         * modules/sprintf-posix-tests (Files): Likewise.
64850         * modules/stat-tests (Files): Likewise.
64851         * modules/strcasestr-tests (Files): Likewise.
64852         * modules/strchrnul-tests (Files): Likewise.
64853         * modules/strerror-tests (Files): Likewise.
64854         * modules/strsignal-tests (Files): Likewise.
64855         * modules/strstr-tests (Files): Likewise.
64856         * modules/strtod-tests (Files): Likewise.
64857         * modules/strverscmp-tests (Files): Likewise.
64858         * modules/symlink-tests (Files): Likewise.
64859         * modules/symlinkat-tests (Files): Likewise.
64860         * modules/times-tests (Files): Likewise.
64861         * modules/trunc-tests (Files): Likewise.
64862         * modules/truncf-tests (Files): Likewise.
64863         * modules/truncl-tests (Files): Likewise.
64864         * modules/tsearch-tests (Files): Likewise.
64865         * modules/uname-tests (Files): Likewise.
64866         * modules/unlink-tests (Files): Likewise.
64867         * modules/unsetenv-tests (Files): Likewise.
64868         * modules/usleep-tests (Files): Likewise.
64869         * modules/utimensat-tests (Files): Likewise.
64870         * modules/vasprintf-tests (Files): Likewise.
64871         * modules/vdprintf-posix-tests (Files): Likewise.
64872         * modules/vfprintf-posix-tests (Files): Likewise.
64873         * modules/vprintf-posix-tests (Files): Likewise.
64874         * modules/vsnprintf-posix-tests (Files): Likewise.
64875         * modules/vsnprintf-tests (Files): Likewise.
64876         * modules/vsprintf-posix-tests (Files): Likewise.
64877         * modules/wcrtomb-tests (Files): Likewise.
64878         * modules/wcsnrtombs-tests (Files): Likewise.
64879         * modules/wcsrtombs-tests (Files): Likewise.
64880         * modules/wcwidth-tests (Files): Likewise.
64881         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
64882         * tests/test-isinf.c (isinf): Likewise.
64883         * tests/test-isnan.c (isnan): Likewise.
64884         * tests/test-signbit.c (signbit): Likewise.
64885         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
64886         declaration, either as macro or with correct signature.
64887         (select): Ensure function under test is declared with correct
64888         signature in correct header.
64889         * tests/test-atexit.c (atexit): Likewise.
64890         * tests/test-btowc.c (btowc): Likewise.
64891         * tests/test-canonicalize-lgpl.c (realpath)
64892         (canonicalize_file_name): Likewise.
64893         * tests/test-ceilf1.c (ceilf): Likewise.
64894         * tests/test-ceill.c (ceill): Likewise.
64895         * tests/test-chown.c (chown): Likewise.
64896         * tests/test-dprintf-posix.c (dprintf): Likewise.
64897         * tests/test-dup2.c (dup2): Likewise.
64898         * tests/test-dup3.c (dup3): Likewise.
64899         * tests/test-duplocale.c (duplocale): Likewise.
64900         * tests/test-fchdir.c (fchdir): Likewise.
64901         * tests/test-fchownat.c (fchownat): Likewise.
64902         * tests/test-fcntl.c (fcntl): Likewise.
64903         * tests/test-fdopendir.c (fdopendir): Likewise.
64904         * tests/test-fflush.c (fflush): Likewise.
64905         * tests/test-flock.c (flock): Likewise.
64906         * tests/test-floorf1.c (floorf): Likewise.
64907         * tests/test-floorl.c (floorl): Likewise.
64908         * tests/test-fnmatch.c (fnmatch): Likewise.
64909         * tests/test-fopen.c (fopen): Likewise.
64910         * tests/test-fprintf-posix.c (fprintf): Likewise.
64911         * tests/test-freopen.c (freopen): Likewise.
64912         * tests/test-frexp.c (frexp): Likewise.
64913         * tests/test-frexpl.c (frexpl): Likewise.
64914         * tests/test-fseek.c (fseek): Likewise.
64915         * tests/test-fseeko.c (fseeko): Likewise.
64916         * tests/test-fstatat.c (fstatat): Likewise.
64917         * tests/test-fsync.c (fsync): Likewise.
64918         * tests/test-ftell.c (ftell): Likewise.
64919         * tests/test-ftello.c (ftello): Likewise.
64920         * tests/test-futimens.c (futimens): Likewise.
64921         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
64922         (gai_strerror): Likewise.
64923         * tests/test-getcwd.c (getcwd): Likewise.
64924         * tests/test-getdelim.c (getdelim): Likewise.
64925         * tests/test-getdtablesize.c (getdtablesize): Likewise.
64926         * tests/test-getgroups.c (getgroups): Likewise.
64927         * tests/test-gethostname.c (gethostname): Likewise.
64928         * tests/test-getline.c (getline): Likewise.
64929         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
64930         Likewise.
64931         * tests/test-gettimeofday.c (gettimeofday): Likewise.
64932         * tests/test-glob.c (glob, globfree): Likewise.
64933         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
64934         * tests/test-inet_ntop.c (inet_ntop): Likewise.
64935         * tests/test-inet_pton.c (inet_pton): Likewise.
64936         * tests/test-isblank.c (isblank): Likewise.
64937         * tests/test-lchown.c (lchown): Likewise.
64938         * tests/test-ldexpl.c (ldexpl): Likewise.
64939         * tests/test-link.c (link): Likewise.
64940         * tests/test-linkat.c (linkat): Likewise.
64941         * tests/test-lseek.c (lseek): Likewise.
64942         * tests/test-lstat.c (lstat): Likewise.
64943         * tests/test-mbrtowc.c (mbrtowc): Likewise.
64944         * tests/test-mbsinit.c (mbsinit): Likewise.
64945         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
64946         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
64947         * tests/test-memchr.c (memchr): Likewise.
64948         * tests/test-memcmp.c (memcmp): Likewise.
64949         * tests/test-memmem.c (memmem): Likewise.
64950         * tests/test-memrchr.c (memrchr): Likewise.
64951         * tests/test-mkdir.c (mkdir): Likewise.
64952         * tests/test-mkdirat.c (mkdirat): Likewise.
64953         * tests/test-mkfifo.c (mkfifo): Likewise.
64954         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
64955         * tests/test-mknod.c (mknod): Likewise.
64956         * tests/test-nanosleep.c (nanosleep): Likewise.
64957         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
64958         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
64959         Likewise.
64960         * tests/test-open.c (open): Likewise.
64961         * tests/test-openat.c (openat): Likewise.
64962         * tests/test-perror.c (perror): Likewise.
64963         * tests/test-pipe2.c (pipe2): Likewise.
64964         * tests/test-poll.c (poll): Likewise.
64965         * tests/test-popen.c (popen, pclose): Likewise.
64966         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
64967         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
64968         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
64969         (posix_spawn_file_actions_destroy)
64970         (posix_spawn_file_actions_addclose)
64971         (posix_spawn_file_actions_addopen)
64972         (posix_spawn_file_actions_adddup2): Likewise.
64973         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
64974         * tests/test-pread.c (pread): Likewise.
64975         * tests/test-printf-posix.c (printf): Likewise.
64976         * tests/test-pty.c (openpty, forkpty): Likewise.
64977         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
64978         (random_r): Likewise.
64979         * tests/test-rawmemchr.c (rawmemchr): Likewise.
64980         * tests/test-readlink.c (readlink): Likewise.
64981         * tests/test-remove.c (remove): Likewise.
64982         * tests/test-rename.c (rename): Likewise.
64983         * tests/test-renameat.c (renameat): Likewise.
64984         * tests/test-rmdir.c (rmdir): Likewise.
64985         * tests/test-round1.c (round): Likewise.
64986         * tests/test-roundf1.c (roundf): Likewise.
64987         * tests/test-roundl.c (roundl): Likewise.
64988         * tests/test-setenv.c (setenv): Likewise.
64989         * tests/test-sigaction.c (sigaction): Likewise.
64990         * tests/test-sleep.c (sleep): Likewise.
64991         * tests/test-snprintf.c (snprintf): Likewise.
64992         * tests/test-sprintf-posix.c (sprintf): Likewise.
64993         * tests/test-stat.c (stat): Likewise.
64994         * tests/test-stpncpy.c (stpncpy): Likewise.
64995         * tests/test-strcasestr.c (strcasestr): Likewise.
64996         * tests/test-strchrnul.c (strchrnul): Likewise.
64997         * tests/test-strerror.c (strerror): Likewise.
64998         * tests/test-strsignal.c (strsignal): Likewise.
64999         * tests/test-strstr.c (strstr): Likewise.
65000         * tests/test-strtod.c (strtod): Likewise.
65001         * tests/test-strverscmp.c (strverscmp): Likewise.
65002         * tests/test-symlink.c (symlink): Likewise.
65003         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
65004         * tests/test-times.c (times): Likewise.
65005         * tests/test-trunc1.c (trunc): Likewise.
65006         * tests/test-truncf1.c (truncf): Likewise.
65007         * tests/test-truncl.c (truncl): Likewise.
65008         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
65009         Likewise.
65010         * tests/test-uname.c (uname): Likewise.
65011         * tests/test-unlink.c (unlink): Likewise.
65012         * tests/test-unlinkat.c (unlinkat): Likewise.
65013         * tests/test-unsetenv.c (unsetenv): Likewise.
65014         * tests/test-usleep.c (usleep): Likewise.
65015         * tests/test-utimensat.c (utimensat): Likewise.
65016         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
65017         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
65018         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
65019         * tests/test-vprintf-posix.c (vprintf): Likewise.
65020         * tests/test-vsnprintf.c (vsnprintf): Likewise.
65021         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
65022         * tests/test-wcrtomb.c (wcrtomb): Likewise.
65023         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
65024         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
65025         * tests/test-wcwidth.c (wcwidth): Likewise.
65027         build: pull in conditional headers during GNULIB_POSIXCHECK
65028         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
65029         definitions from any conditionally-included headers.
65030         * lib/stdlib.in.h (includes): Likewise.
65031         * lib/unistd.in.h (includes): Likewise.
65033 2009-12-24  Bruno Haible  <bruno@clisp.org>
65035         * tests/test-argv-iter.c: Include header file being tested immediately
65036         after config.h.
65037         * tests/test-base64.c: Likewise.
65038         * tests/test-flock.c: Likewise.
65039         * tests/test-fsync.c: Likewise.
65040         * tests/test-getdate.c: Likewise.
65041         * tests/test-getndelim2.c: Likewise.
65042         * tests/test-isfinite.c: Likewise.
65043         * tests/test-isinf.c: Likewise.
65044         * tests/test-strerror.c: Likewise.
65045         * tests/test-strsignal.c: Likewise.
65047 2009-12-23  Eric Blake  <ebb9@byu.net>
65049         unistd: work around cygwin bug
65050         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
65051         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
65052         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
65054 2009-12-23  Bruno Haible  <bruno@clisp.org>
65056         localename: More tests.
65057         * tests/test-localename.c (SIZEOF): New macro.
65058         (categories): New variable.
65059         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
65060         test_locale_name_default): Add test w.r.t. thread locale.
65061         (test_locale_name_thread): New function.
65062         (main): Invoke it.
65064         localename: Make aware of thread locale.
65065         * lib/localename.h (gl_locale_name_thread): New declaration.
65066         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
65067         behaviour with respect to thread locale.
65068         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
65069         <langinfo.h>, glthread/lock.h.
65070         (SIZE_BITS): New macro.
65071         (string_hash): New function.
65072         (struct hash_node): New type.
65073         (HASH_TABLE_SIZE): New macro.
65074         (struniq_hash_table, struniq_lock): New variables.
65075         (struniq): New function.
65076         (gl_locale_name_thread): New function.
65077         (gl_locale_name): Invoke it.
65078         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
65079         * modules/localename (Depends-on): Add lock.
65080         Reported by Mike Gran <spk121@yahoo.com>.
65082 2009-12-23  Eric Blake  <ebb9@byu.net>
65084         va-args: new module
65085         * modules/va-args: New file.
65086         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
65087         * MODULES.html.sh (Core language properties): Mention it.
65089         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
65090         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
65091         named alias for __attribute__((__unused__)).
65092         * lib/chown.c: Update client.
65093         * lib/fchmodat.c: Likewise.
65094         * lib/fts.c: Likewise.
65095         * lib/getdate.y: Likewise.
65096         * lib/getgroups.c: Likewise.
65097         * lib/getopt.c: Likewise.
65098         * lib/getugroups.c: Likewise.
65099         * lib/mkdir.c: Likewise.
65100         * lib/mkfifo.c: Likewise.
65101         * lib/mkfifoat.c: Likewise.
65102         * lib/mknod.c: Likewise.
65103         * lib/mknodat.c: Likewise.
65104         * lib/readlink.c: Likewise.
65105         * lib/se-context.in.h: Likewise.
65106         * lib/se-selinux.in.h: Likewise.
65107         * lib/sockets.c: Likewise.
65108         * lib/symlink.c: Likewise.
65109         * lib/symlinkat.c: Likewise.
65110         * lib/unicodeio.c: Likewise.
65111         * lib/unistr.h: Likewise.
65112         * tests/test-areadlink.c: Likewise.
65113         * tests/test-areadlinkat.c: Likewise.
65114         * tests/test-filenamecat.c: Likewise.
65115         * tests/test-fseeko.c: Likewise.
65116         * tests/test-ftello.c: Likewise.
65117         * tests/test-getdate.c: Likewise.
65118         * tests/test-getgroups.c: Likewise.
65119         * tests/test-gethostname.c: Likewise.
65120         * tests/test-quotearg.c: Likewise.
65121         * tests/test-version-etc.c: Likewise.
65122         * tests/test-xalloc-die.c: Likewise.
65123         * tests/test-xfprintf-posix.c: Likewise.
65124         * tests/test-xprintf-posix.c: Likewise.
65125         * tests/test-xvasprintf.c: Likewise.
65127         tests: avoid compiler warnings
65128         * tests/test-fcntl.c (main): Delete unused parameters.
65129         * tests/test-freopen-safer.c (main): Likewise.
65130         * tests/test-xalloc-die.c (main): Mark unused parameters.
65131         * tests/test-fseeko.c (main): Likewise.
65132         * tests/test-ftello.c (main): Likewise.
65133         * tests/test-nanosleep.c (main): Avoid declaration warning.
65134         * tests/test-sleep.c (main): Likewise.
65135         * tests/test-unsetenv.c (main): Silence warning about string
65136         literal.
65137         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
65139 2009-12-23  Bruno Haible  <bruno@clisp.org>
65141         * tests/test-localename.c (test_locale_name): New function, extracted
65142         from main. Also test mixed situations.
65143         (test_locale_name_posix, test_locale_name_environ,
65144         test_locale_name_default): New functions.
65145         (main): Invoke them all.
65146         * modules/localename-tests (configure.ac): Test for newlocale.
65148 2009-12-23  Bruno Haible  <bruno@clisp.org>
65150         unistd: Ensure getcwd gets declared before being overridden.
65151         * lib/unistd.in.h: Conditionally include <io.h>.
65153 2009-12-22  Bruno Haible  <bruno@clisp.org>
65155         wchar: Diagnose broken combination of glibc and gcc versions and flags.
65156         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
65157         (gl_WCHAR_H): Invoke it.
65158         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
65159         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
65160         Reported by Karl Berry <karl@freefriends.org>.
65162 2009-12-22  Eric Blake  <ebb9@byu.net>
65164         math, unistd: avoid redundant includes
65165         * lib/math.in.h (isnan): No need to re-include <math.h>.
65166         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
65168         getsubopt: work around cygwin bug
65169         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
65170         avoid conflicting with system getsubopt.
65171         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
65172         bug.
65174         getopt: synchronize from glibc
65175         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
65176         parameter order.  Adjust all callers.
65177         (_getopt_internal_r, main): Adjust quoting in error messages.
65178         Drop considerations for outdated POSIX 1003.2 error message.
65179         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
65180         callers.
65181         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
65183         test-getopt: test stderr behavior
65184         * modules/getopt-posix-tests (Depends-on): Add dup2.
65185         * tests/test-getopt.c (ASSERT): Avoid stderr.
65186         (main): Move stderr to a temporary file.
65187         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
65188         Instead, add parameter to inform caller if output occurred.
65189         (test_getopt): Adjust all existing tests to expect silence, and
65190         add new tests of leading ":".
65191         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
65192         glibc shortcomings with leading "-:" or "+:" in optstring.
65193         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
65194         Likewise.
65195         * doc/posix-functions/getopt.texi (getopt): Likewise.
65197         test-getopt: enhance test
65198         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
65199         supports optind=0.
65200         * tests/test-getopt.c (OPTIND_MIN): Move...
65201         * tests/test-getopt.h (OPTIND_MIN): ...here.
65202         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
65203         Require that optind=0 works, since modern BSD supports it in
65204         addition to optreset, and since coreutils expects it.
65205         (test_getopt_long_only): New test.
65206         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
65207         glibc shortcomings with 'W;', and enforcement of optind=0.
65208         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
65209         Likewise.
65211 2009-12-21  Bruno Haible  <bruno@clisp.org>
65213         localename: Improvements for MacOS X and Cygwin.
65214         * lib/localename.h (gl_locale_name_environ): New declaration.
65215         * lib/localename.c (gl_locale_name_environ): New function, extracted from
65216         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
65217         (gl_locale_name_posix): Invoke it.
65218         (gl_locale_name_default): Add comments. Use Windows native API also on
65219         Cygwin.
65221 2009-12-21  Bruno Haible  <bruno@clisp.org>
65223         Update list of Win32 locale ids.
65224         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
65225         (LANG_SAMI): Renamed from LANG_SAAMI.
65226         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
65227         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
65228         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
65229         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
65230         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
65231         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
65232         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
65233         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
65234         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
65235         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
65236         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
65237         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
65238         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
65239         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
65240         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
65241         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
65242         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
65243         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
65244         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
65245         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
65246         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
65247         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
65248         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
65249         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
65250         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
65251         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
65252         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
65253         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
65254         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
65255         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
65256         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
65257         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
65258         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
65259         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
65260         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
65261         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
65262         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
65263         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
65264         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
65265         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
65266         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
65267         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
65268         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
65269         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
65270         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
65271         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
65272         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
65273         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
65274         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
65275         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
65276         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
65277         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
65278         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
65279         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
65280         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
65281         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
65282         Add more languages and countries for Sami, Sorbian. Add more countries
65283         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
65284         for Pashto. Change country for Syriac, Tswana.
65286 2009-12-21  Eric Blake  <ebb9@byu.net>
65288         test-utimens: avoid spurious failure
65289         * tests/test-chown.h (nap): Factor...
65290         * tests/nap.h: ...into new file.
65291         * tests/test-lchown.h (nap): Avoid duplication.
65292         * tests/test-utimens-common.h (nap): Use shared implementation,
65293         necessary on file systems with 1-second resolution.
65294         * modules/chown-tests (Files): Include new file.
65295         * modules/fdutimensat-tests (Files): Likewise.
65296         * modules/futimens-tests (Files): Likewise.
65297         * modules/lchown-tests (Files): Likewise.
65298         * modules/openat-tests (Files): Likewise.
65299         * modules/utimens-tests (Files): Likewise.
65300         * modules/utimensat-tests (Files): Likewise.
65302 2009-12-19  Eric Blake  <ebb9@byu.net>
65304         futimens, utimensat: work around Linux bug
65305         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
65306         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
65307         * lib/utimensat.c (rpl_utimensat): Work around it.
65308         * lib/futimens.c (rpl_futimens): Adjust comment.
65310         utimens: work around Linux ctime bug
65311         * lib/utimens.c (detect_ctime_bug): New helper function.
65312         (update_timespec): Differentiate between workaround needed for
65313         this bug vs. what is needed for systems that lack utimensat.
65314         (fdutimens, lutimens): Work around bug.
65316         utimens: check for ctime update
65317         * tests/test-utimens-common.h (check_ctime): Define.
65318         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
65319         * tests/test-futimens.h (test_futimens): Likewise.
65320         * tests/test-lutimens.h (test_lutimens): Likewise.
65321         * doc/posix-functions/futimens.texi (futimens): Document the bug.
65322         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
65324 2009-12-19  Bruno Haible  <bruno@clisp.org>
65326         dprintf-posix: Check against memory leak fixed on 2009-12-15.
65327         * tests/test-dprintf-posix2.sh: New file.
65328         * tests/test-dprintf-posix2.c: New file.
65329         * modules/dprintf-posix-tests (Files): Add them.
65330         (configure.ac): Check for getrlimit and setrlimit.
65331         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
65333 2009-12-19  Bruno Haible  <bruno@clisp.org>
65335         fprintf-posix: Check against memory leak fixed on 2009-12-15.
65336         * tests/test-fprintf-posix3.sh: New file.
65337         * tests/test-fprintf-posix3.c: New file.
65338         * modules/fprintf-posix-tests (Files): Add them.
65339         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
65341 2009-12-19  Eric Blake  <ebb9@byu.net>
65343         dirfd: fix prototype
65344         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
65345         * lib/dirfd.c (dirfd): Likewise.
65347         canonicalize: reduce memory usage
65348         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
65349         allocation to size.
65350         Reported by Solar Designer <solar@openwall.com>.
65352 2009-12-19  Bruno Haible  <bruno@clisp.org>
65354         New module attribute 'Applicability'.
65355         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
65356         * gnulib-tool: New option --extract-applicability.
65357         (func_usage): Document it.
65358         (sed_extract_prog): Recognize it.
65359         (func_get_applicability): New function.
65360         (func_import): Generalize handling of 'link-warning' module.
65361         * modules/link-warning (Applicability): New section.
65362         * modules/arg-nonnull (Applicability): New section.
65363         Repoted by Simon Josefsson <simon@josefsson.org>.
65365 2009-12-19  Bruno Haible  <bruno@clisp.org>
65367         fflush: tweak
65368         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
65369         * lib/fseeko.c (rpl_fseeko): Likewise.
65371 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
65373         * lib/gl_list.h: Fix typo in comment.
65375 2009-12-16  Eric Blake  <ebb9@byu.net>
65377         fcntl: use to simplify other modules
65378         * modules/cloexec (Depends-on): Add fcntl.
65379         * modules/fchdir (Depends-on): Likewise.
65380         * modules/fd-safer-flag (Depends-on): Likewise.
65381         * modules/unistd-safer (Depends-on): Likewise.
65382         * modules/dup3 (configure.ac): Set module indicator.
65383         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
65384         missing.
65385         * lib/fchdir.c (_gl_register_dup): Fix comment.
65386         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
65387         * lib/dup-safer.c (dup_safer): Likewise.
65388         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
65389         * lib/dup3.c (dup3): Likewise.
65390         * tests/test-fchdir.c (main): Enhance test.
65391         Fixes a dup_cloexec bug reported by Ondřej Vašík.
65393         fcntl: port portions of fcntl to mingw
65394         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
65395         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
65396         replacement for mingw.
65397         * modules/fcntl (Description): Update.
65398         (Depends-on): Add dup2.
65399         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
65400         * modules/fcntl-h (Makefile.am): Substitute it.
65401         * lib/fcntl.in.h (fcntl): Update declaration.
65402         (F_DUPFD, F_GETFD): New macros, when needed.
65403         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
65404         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
65405         * tests/test-fcntl.c (check_flags, main): Enhance test for items
65406         we now guarantee.
65408         fcntl: work around cygwin bug in F_DUPFD
65409         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
65410         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
65411         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
65412         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
65413         * doc/posix-functions/fcntl.texi (fcntl): Document it.
65415         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
65416         * modules/fcntl (Files): List new files.
65417         (configure.ac): Run a test.
65418         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
65419         * lib/fcntl.c (rpl_fcntl): Likewise.
65420         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
65421         (gl_FCNTL_H): Always replace fcntl.h.
65422         * modules/fcntl-h (Makefile.am): Substitute witnesses.
65423         * lib/fcntl.in.h (fcntl): Declare replacement.
65424         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
65425         needed, plus a witness.
65426         * doc/posix-functions/fcntl.texi (fcntl): Document this.
65427         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
65428         * tests/test-fcntl.c: New file.
65429         * modules/fcntl-tests: Likewise.
65431         binary-io: avoid potential compilation warning
65432         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
65433         directives.
65435         fflush: avoid compilation error on NetBSD
65436         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
65437         between off_t and fpos_t, since the latter is sometimes a struct.
65438         * lib/fseeko.c (rpl_fseeko): Likewise.
65439         Reported by Alexander Nasonov <alnsn@yandex.ru>.
65441 2009-12-15  Eric Blake  <ebb9@byu.net>
65443         fcntl-h, stdio, sys_ioctl: fix declarations
65444         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
65445         function must not take arguments.
65446         * lib/sys_ioctl.in.h (ioctl): Likewise.
65447         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
65448         (open): Add a link warning.
65450 2009-12-15  Jim Meyering  <meyering@redhat.com>
65452         areadlink, areadlink-with-size: relax license to LGPLv2+
65453         * modules/areadlink (License): Relax to LGPLv2+.
65454         * modules/areadlink-with-size (License): Likewise.
65456 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
65457             Bruno Haible  <bruno@clisp.org>
65459         *printf: Fix memory leak.
65460         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
65461         * lib/vfprintf.c (vfprintf): Likewise.
65462         * lib/dprintf.c (dprintf): Likewise.
65463         * lib/vdprintf.c (vdprintf): Likewise.
65465 2009-12-14  Eric Blake  <ebb9@byu.net>
65467         accept4: adjust module dependencies
65468         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
65470         utimens: one more try at avoiding compiler warning
65471         * lib/utimens.c (lutimens): Lower scope of result.
65473 2009-12-13  Bruno Haible  <bruno@clisp.org>
65475         Move the malloc checking from module 'list' to new module 'xlist'.
65476         * modules/xlist: New file.
65477         * lib/gl_xlist.h: New file.
65478         * lib/gl_xlist.c: New file.
65479         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
65480         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
65481         gl_list_add_last, gl_list_add_before, gl_list_add_after,
65482         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
65483         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
65484         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
65485         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
65486         gl_sortedlist_nx_add): New declarations.
65487         (struct gl_list_implementation): Rename and change methods accordingly.
65488         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
65489         (gl_list_nx_create): Renamed from gl_list_create.
65490         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
65491         (gl_list_nx_set_at): Renamed from gl_list_set_at.
65492         (gl_list_nx_add_first): Renamed from gl_list_add_first.
65493         (gl_list_nx_add_last): Renamed from gl_list_add_last.
65494         (gl_list_nx_add_before): Renamed from gl_list_add_before.
65495         (gl_list_nx_add_after): Renamed from gl_list_add_after.
65496         (gl_list_nx_add_at): Renamed from gl_list_add_at.
65497         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
65498         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
65499         gl_list_create_empty.
65500         (gl_list_nx_create): Renamed from gl_list_create.
65501         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
65502         (gl_list_nx_set_at): Renamed from gl_list_set_at.
65503         (gl_list_nx_add_first): Renamed from gl_list_add_first.
65504         (gl_list_nx_add_last): Renamed from gl_list_add_last.
65505         (gl_list_nx_add_before): Renamed from gl_list_add_before.
65506         (gl_list_nx_add_after): Renamed from gl_list_add_after.
65507         (gl_list_nx_add_at): Renamed from gl_list_add_at.
65508         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
65509         * lib/gl_array_list.c: Don't include xalloc.h.
65510         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
65511         NULL upon out-of-memory.
65512         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
65513         out-of-memory.
65514         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
65515         Change return type to 'int'.
65516         (gl_array_nx_set_at): Renamed from gl_array_set_at.
65517         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
65518         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
65519         upon out-of-memory.
65520         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
65521         upon out-of-memory.
65522         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
65523         upon out-of-memory.
65524         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
65525         upon out-of-memory.
65526         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
65527         out-of-memory.
65528         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
65529         Update.
65530         (gl_array_list_implementation): Update.
65531         * lib/gl_carray_list.c: Don't include xalloc.h.
65532         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
65533         Return NULL upon out-of-memory.
65534         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
65535         out-of-memory.
65536         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
65537         Change return type to 'int'.
65538         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
65539         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
65540         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
65541         upon out-of-memory.
65542         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
65543         upon out-of-memory.
65544         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
65545         out-of-memory.
65546         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
65547         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
65548         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
65549         Update.
65550         (gl_carray_list_implementation): Update.
65551         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
65552         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
65553         gl_linked_create_empty. Return NULL upon out-of-memory.
65554         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
65555         out-of-memory.
65556         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
65557         Change return type to 'int'. Return -1 upon out-of-memory.
65558         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
65559         out-of-memory.
65560         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
65561         upon out-of-memory.
65562         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
65563         upon out-of-memory.
65564         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
65565         NULL upon out-of-memory.
65566         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
65567         upon out-of-memory.
65568         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
65569         out-of-memory.
65570         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
65571         Update.
65572         * lib/gl_linked_list.c: Don't include xalloc.h.
65573         (gl_linked_list_implementation): Update.
65574         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
65575         (add_to_bucket): Change return type to 'int'.
65576         (gl_linkedhash_list_implementation): Update.
65577         * lib/gl_anytree_list1.h (free_subtree): New function.
65578         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
65579         gl_tree_create_empty. Return NULL upon out-of-memory.
65580         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
65581         Change return type to 'int'. Return -1 upon out-of-memory.
65582         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
65583         out-of-memory.
65584         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
65585         (gl_tree_remove_node): New function, moved here from
65586         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
65587         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
65588         Update.
65589         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
65590         malloc, not xmalloc. Return NULL upon out-of-memory.
65591         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
65592         out-of-memory.
65593         (gl_tree_remove_node_from_tree): New function, extracted from
65594         gl_tree_remove_node.
65595         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
65596         upon out-of-memory.
65597         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
65598         out-of-memory.
65599         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
65600         upon out-of-memory.
65601         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
65602         upon out-of-memory.
65603         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
65604         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
65605         not xmalloc. Return NULL upon out-of-memory.
65606         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
65607         out-of-memory.
65608         (gl_tree_remove_node_from_tree): New function, extracted from
65609         gl_tree_remove_node.
65610         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
65611         upon out-of-memory.
65612         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
65613         out-of-memory.
65614         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
65615         upon out-of-memory.
65616         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
65617         upon out-of-memory.
65618         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
65619         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
65620         gl_anytree_list1.h before gl_anyavltree_list2.h.
65621         (gl_avltree_list_implementation): Update.
65622         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
65623         gl_anytree_list1.h before gl_anyavltree_list2.h.
65624         (gl_rbtree_list_implementation): Update.
65625         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
65626         Change return type to 'int'. Return -1 upon out-of-memory. Use
65627         __builtin_expect.
65628         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
65629         (gl_avltreehash_list_implementation): Update.
65630         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
65631         (gl_rbtreehash_list_implementation): Update.
65632         * modules/array-list (Depends-on): Remove xalloc.
65633         * modules/carray-list (Depends-on): Likewise.
65634         * modules/linked-list (Depends-on): Likewise.
65635         * modules/linkedhash-list (Depends-on): Likewise.
65636         * modules/avltree-list (Depends-on): Likewise.
65637         * modules/rbtree-list (Depends-on): Likewise.
65638         * modules/avltreehash-list (Depends-on): Likewise.
65639         * modules/rbtreehash-list (Depends-on): Likewise.
65641         * modules/xsublist: New file.
65642         * lib/gl_xsublist.h: New file.
65643         * lib/gl_xsublist.c: New file.
65644         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
65645         (gl_sublist_nx_create): New declaration.
65646         * lib/gl_sublist.c: Don't include xalloc.h.
65647         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
65648         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
65649         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
65650         Change return type to 'int'. Return -1 upon out-of-memory.
65651         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
65652         upon out-of-memory.
65653         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
65654         NULL upon out-of-memory.
65655         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
65656         upon out-of-memory.
65657         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
65658         NULL upon out-of-memory.
65659         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
65660         NULL upon out-of-memory.
65661         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
65662         upon out-of-memory.
65663         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
65664         (gl_sublist_list_implementation): Update.
65665         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
65666         upon out-of-memory.
65667         * modules/sublist (Depends-on): Remove xalloc.
65669         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
65670         * tests/test-carray_list.c: Likewise.
65671         * tests/test-linked_list.c: Likewise.
65672         * tests/test-linkedhash_list.c: Likewise.
65673         * tests/test-avltree_list.c: Likewise.
65674         * tests/test-rbtree_list.c: Likewise.
65675         * tests/test-avltreehash_list.c: Likewise.
65676         * tests/test-rbtreehash_list.c: Likewise.
65677         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
65678         * modules/carray-list-tests (Makefile.am): Likewise.
65679         * modules/linked-list-tests (Makefile.am): Likewise.
65680         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65681         * modules/avltree-list-tests (Makefile.am): Likewise.
65682         * modules/rbtree-list-tests (Makefile.am): Likewise.
65683         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65684         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65686         * NEWS: Mention the changes.
65688         * lib/clean-temp.c: Include gl_xlist.h.
65689         * modules/clean-temp (Depends-on): Add xlist.
65691         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
65692         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
65694         * tests/test-array_oset.c: Include gl_xlist.h.
65695         * modules/array-oset-tests (Depends-on): Add xlist.
65697         Reported by José E. Marchesi <jemarch@gnu.org>.
65699 2009-12-13  Bruno Haible  <bruno@clisp.org>
65701         Move the malloc checking from module 'oset' to new module 'xoset'.
65702         * modules/xoset: New file.
65703         * lib/gl_xoset.h: New file.
65704         * lib/gl_xoset.c: New file.
65705         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
65706         declarations.
65707         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
65708         (struct gl_oset_implementation): Rename and change methods accordingly.
65709         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
65710         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
65711         'int'. Mark as __warn_unused_result__.
65712         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
65713         gl_oset_create_empty.
65714         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
65715         'int'.
65716         * lib/gl_array_oset.c: Don't include xalloc.h.
65717         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
65718         malloc, not xmalloc.
65719         (grow): Change return type to 'int'. Don't call xalloc_die.
65720         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
65721         to 'int'.
65722         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
65723         'int'.
65724         (gl_array_oset_implementation): Update.
65725         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
65726         gl_tree_create_empty.
65727         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
65728         'int'.
65729         * lib/gl_avltree_oset.c: Don't include xalloc.h.
65730         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
65731         xmalloc.
65732         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
65733         not xmalloc.
65734         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
65735         xmalloc.
65736         (gl_avltree_oset_implementation): Update.
65737         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
65738         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
65739         xmalloc.
65740         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
65741         not xmalloc.
65742         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
65743         xmalloc.
65744         (gl_rbtree_oset_implementation): Update.
65745         * modules/array-oset (Depends-on): Remove xalloc.
65746         * modules/avltree-oset (Depends-on): Likewise.
65747         * modules/rbtree-oset (Depends-on): Likewise.
65748         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
65749         * tests/test-avltree_oset.c: Likewise.
65750         * tests/test-rbtree_oset.c: Likewise.
65751         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
65752         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
65753         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65754         * NEWS: Mention the change.
65756 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
65758         maint.mk: allow a project to override release-prep commands
65759         * top/maint.mk (alpha, beta, stable): Move release-preparatory
65760         commands into a new rule.
65761         (release-prep): New rule.
65762         (release-prep-hook): New overridable variable.
65764 2009-12-13  Bruno Haible  <bruno@clisp.org>
65766         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
65768 2009-12-13  Jim Meyering  <meyering@redhat.com>
65770         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
65771         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
65773 2009-12-12  Bruno Haible  <bruno@clisp.org>
65775         duplocale: Tweak.
65776         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
65778 2009-12-12  Karl Berry  <karl@gnu.org>
65780         * config/srclist.txt (strtoll.c): tab changes, no more sync.
65782 2009-12-12  Bruno Haible  <bruno@clisp.org>
65784         * m4/po.m4: Undo incorrect untabification.
65786 2009-12-12  Bruno Haible  <bruno@clisp.org>
65788         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
65789         * modules/c-strtod (Depends-on): Add locale.
65790         * modules/c-strtold (Depends-on): Likewise.
65792 2009-12-12  Bruno Haible  <bruno@clisp.org>
65794         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
65796 2009-12-11  Eric Blake  <ebb9@byu.net>
65798         setenv: relax requirement in light of POSIX ruling
65799         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
65800         not NULL.
65801         * tests/test-setenv.c (main): Relax test.
65802         * tests/test-unsetenv.c (main): Likewise.
65803         * doc/posix-functions/setenv.texi (setenv): Document this.
65804         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
65806 2009-12-11  Bruno Haible  <bruno@clisp.org>
65808         New module 'fd-safer-flag'.
65809         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
65810         * lib/dup-safer.c (dup_safer_flag): Remove function.
65811         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
65812         * lib/fd-safer.c (fd_safer_flag): Remove function.
65813         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
65814         * modules/cloexec (configure.ac): Drop indicator macro.
65815         * modules/fd-safer-flag: New file.
65816         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
65817         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
65818         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
65820 2009-12-11  Bruno Haible  <bruno@clisp.org>
65822         Tests for module 'nl_langinfo'.
65823         * modules/nl_langinfo-tests: New file.
65824         * tests/test-nl_langinfo.sh: New file.
65825         * tests/test-nl_langinfo.c: New file.
65827         New module 'nl_langinfo'.
65828         * lib/nl_langinfo.c: New file.
65829         * m4/nl_langinfo.m4: New file.
65830         * modules/nl_langinfo: New file.
65831         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
65833 2009-12-11  Bruno Haible  <bruno@clisp.org>
65835         Tests for module 'langinfo'.
65836         * modules/langinfo-tests: New file.
65837         * tests/test-langinfo.c: New file.
65839         New module 'langinfo'.
65840         * lib/langinfo.in.h: New file.
65841         * m4/langinfo_h.m4: New file.
65842         * modules/langinfo: New file.
65843         * doc/posix-headers/langinfo.texi: Mention the new module.
65845 2009-12-11  Bruno Haible  <bruno@clisp.org>
65847         * lib/config.charset: Untabify.
65849 2009-12-11  Bruno Haible  <bruno@clisp.org>
65851         * modules/unistd-safer (configure.ac): Drop indicator macro.
65853 2009-12-11  Bruno Haible  <bruno@clisp.org>
65855         Move pipe2-safer code to its own file.
65856         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
65857         * lib/pipe-safer.c (pipe2_safer): Remove function.
65858         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
65859         (Makefile.am): Add it to lib_SOURCES.
65861 2009-12-10  Bruno Haible  <bruno@clisp.org>
65863         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
65865 2009-12-10  Bruno Haible  <bruno@clisp.org>
65867         Declare which arguments expect non-NULL values, for GCC and clang.
65868         * build-aux/arg-nonnull.h: New file.
65869         * modules/arg-nonnull: New file.
65870         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
65871         (inet_ntop, inet_pton): Use it.
65872         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
65873         (closedir, dirfd, opendir, scandir, alphasort): Use it.
65874         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
65875         (open, openat): Use it.
65876         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
65877         (fnmatch): Use it.
65878         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
65879         (getopt, getopt_long, getopt_long_only): Use it.
65880         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
65881         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
65882         Use it.
65883         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
65884         (iconv_open): Use it.
65885         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
65886         (strtoimax, strtoumax): Use it.
65887         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
65888         (duplocale): Use it.
65889         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
65890         (frexp, frexpl): Use it.
65891         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
65892         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
65893         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
65894         (tsearch, tfind, tdelete, twalk): Use it.
65895         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
65896         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
65897         sigpending): Use it.
65898         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
65899         (posix_spawn, posix_spawnp, posix_spawnattr_init,
65900         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
65901         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
65902         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
65903         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
65904         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
65905         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
65906         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
65907         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
65908         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
65909         Use it.
65910         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
65911         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
65912         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
65913         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
65914         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
65915         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
65916         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
65917         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
65918         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
65919         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
65920         strtoull, unsetenv): Use it.
65921         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
65922         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
65923         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
65924         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
65925         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
65926         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
65927         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
65928         (strcasecmp, strncasecmp): Use it.
65929         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
65930         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
65931         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
65932         rpl_setsockopt): Use it.
65933         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
65934         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
65935         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
65936         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
65937         (gettimeofday): Use it.
65938         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
65939         (times): Use it.
65940         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
65941         (uname): Use it.
65942         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
65943         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
65944         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
65945         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
65946         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
65947         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
65948         unlinkat, write): Use it.
65949         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
65950         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
65951         * lib/argv-iter.h: Include arg-nonnull.h.
65952         (_ATTRIBUTE_NONNULL_): Remove macro.
65953         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
65954         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
65955         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
65956         optimization.
65957         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
65958         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
65959         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
65960         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
65961         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
65962         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
65963         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
65964         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
65965         * modules/arpa_inet (Depends-on): Add arg-nonnull.
65966         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
65967         * modules/dirent (Depends-on): Add arg-nonnull.
65968         (Makefile.am): Insert arg-nonnull.h into dirent.h.
65969         * modules/fcntl-h (Depends-on): Add arg-nonnull.
65970         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
65971         * modules/fnmatch (Depends-on): Add arg-nonnull.
65972         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
65973         * modules/getopt-posix (Depends-on): Add arg-nonnull.
65974         (Makefile.am): Insert arg-nonnull.h into getopt.h.
65975         * modules/glob (Depends-on): Add arg-nonnull.
65976         (Makefile.am): Insert arg-nonnull.h into glob.h.
65977         * modules/iconv_open (Depends-on): Add arg-nonnull.
65978         (Makefile.am): Insert arg-nonnull.h into iconv.h.
65979         * modules/inttypes (Depends-on): Add arg-nonnull.
65980         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
65981         * modules/locale (Depends-on): Add arg-nonnull.
65982         (Makefile.am): Insert arg-nonnull.h into locale.h.
65983         * modules/math (Depends-on): Add arg-nonnull.
65984         (Makefile.am): Insert arg-nonnull.h into math.h.
65985         * modules/netdb (Depends-on): Add arg-nonnull.
65986         (Makefile.am): Insert arg-nonnull.h into netdb.h.
65987         * modules/search (Depends-on): Add arg-nonnull.
65988         (Makefile.am): Insert arg-nonnull.h into search.h.
65989         * modules/signal (Depends-on): Add arg-nonnull.
65990         (Makefile.am): Insert arg-nonnull.h into signal.h.
65991         * modules/spawn (Depends-on): Add arg-nonnull.
65992         (Makefile.am): Insert arg-nonnull.h into spawn.h.
65993         * modules/stdio (Depends-on): Add arg-nonnull.
65994         (Makefile.am): Insert arg-nonnull.h into stdio.h.
65995         * modules/stdlib (Depends-on): Add arg-nonnull.
65996         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
65997         * modules/string (Depends-on): Add arg-nonnull.
65998         (Makefile.am): Insert arg-nonnull.h into string.h.
65999         * modules/strings (Depends-on): Add arg-nonnull.
66000         (Makefile.am): Insert arg-nonnull.h into strings.h.
66001         * modules/sys_socket (Depends-on): Add arg-nonnull.
66002         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
66003         * modules/sys_stat (Depends-on): Add arg-nonnull.
66004         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
66005         * modules/sys_time (Depends-on): Add arg-nonnull.
66006         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
66007         * modules/sys_times (Depends-on): Add arg-nonnull.
66008         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
66009         * modules/sys_utsname (Depends-on): Add arg-nonnull.
66010         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
66011         * modules/time (Depends-on): Add arg-nonnull.
66012         (Makefile.am): Insert arg-nonnull.h into time.h.
66013         * modules/unistd (Depends-on): Add arg-nonnull.
66014         (Makefile.am): Insert arg-nonnull.h into unistd.h.
66015         * modules/wchar (Depends-on): Add arg-nonnull.
66016         (Makefile.am): Insert arg-nonnull.h into wchar.h.
66017         * modules/argv-iter (Depends-on): Add arg-nonnull.
66018         * tests/test-canonicalize.c (null_ptr): New function.
66019         (main): Use it.
66020         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
66021         (main): Use it.
66022         * tests/test-memmem.c (null_ptr): New function.
66023         (main): Use it.
66024         Reported by Jim Meyering.
66026 2009-12-10  Bruno Haible  <bruno@clisp.org>
66028         Use spaces for indentation, not tabs.
66029         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
66030         * m4/*.m4: Untabify.
66031         * build-aux/*.h: Untabify.
66032         * tests/**/*.[hc]: Untabify.
66033         * README: New section "Indent with spaces, not TABs", based on
66034         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
66035         * NEWS: Mention the change.
66037 2009-12-10  Bruno Haible  <bruno@clisp.org>
66039         pty test: Fix link error.
66040         * modules/pty-tests (Makefile.am): Add the default LDADD value to
66041         test_pty_LDADD.
66043 2009-12-07  Simon Josefsson  <simon@josefsson.org>
66045         * modules/pty: New file.
66046         * modules/pty-tests: New file.
66047         * m4/pty.m4: New file.
66048         * tests/test-pty.c: New file.
66049         * doc/glibc-headers/pty.texi: Modified.
66050         * doc/glibc-functions/forkpty.texi: Modified.
66051         * doc/glibc-functions/openpty.texi: Modified.
66053 2009-12-10  Bruno Haible  <bruno@clisp.org>
66055         Avoid syntax error in C++ mode.
66056         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
66058 2009-12-10  Bruno Haible  <bruno@clisp.org>
66060         Use sed with option -e.
66061         * gnulib-tool (func_version, func_emit_copyright_notice,
66062         func_emit_initmacro_end, func_import, func_create_testdir): Pass
66063         option -e to sed.
66064         * modules/link-warning (Makefile.am): Likewise.
66066 2009-12-10  Jim Meyering  <meyering@redhat.com>
66068         mgetgroups: do not write bytes beyond end of malloc'd buffer
66069         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
66070         username, we call getgroups with a one-element-shorter buffer,
66071         but still told it the length was original, max_n_groups.
66073 2009-12-09  Eric Blake  <ebb9@byu.net>
66075         cloexec: relax license
66076         * modules/cloexec (Maintainer): Add myself.
66077         (License): Use LGPL, not GPL.
66079         link-warning: optimize generation
66080         * modules/link-warning (Makefile.am): Reduce process usage.
66082 2009-12-09  Bruno Haible  <bruno@clisp.org>
66084         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
66085         workaround was added on 2009-11-17.
66087 2009-12-09  Jim Meyering  <meyering@redhat.com>
66088             Bruno Haible  <bruno@clisp.org>
66090         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
66091         * modules/link-warning (Makefile.am): Make the comment-removing sed
66092         command more robust in the face of bootstrap-prepended comment lines.
66094 2009-12-09  Bruno Haible  <bruno@clisp.org>
66096         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
66097         most one group.
66099 2009-12-09  Simon Josefsson  <simon@josefsson.org>
66100             Bruno Haible  <bruno@clisp.org>
66102         * build-aux/link-warning.h: Add copyright notice.
66103         * modules/link-warning (Makefile.am): Generate link-warning.h from
66104         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
66105         * NEWS: Mention change in link-warning module.
66106         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
66107         * modules/dirent (Makefile.am): Add dependency to dirent.h.
66108         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
66109         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
66110         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
66111         * modules/math (Makefile.am): Add dependency to math.h.
66112         * modules/search (Makefile.am): Add dependency to search.h.
66113         * modules/signal (Makefile.am): Add dependency to signal.h.
66114         * modules/spawn (Makefile.am): Add dependency to spawn.h.
66115         * modules/stdio (Makefile.am): Add dependency to stdio.h.
66116         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
66117         * modules/string (Makefile.am): Add dependency to string.h.
66118         * modules/strings (Makefile.am): Add dependency to strings.h.
66119         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
66120         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
66121         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
66122         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
66123         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
66124         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
66125         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
66126         * modules/unistd (Makefile.am): Add dependency to unistd.h.
66127         * modules/wchar (Makefile.am): Add dependency to wchar.h.
66129 2009-12-09  Bruno Haible  <bruno@clisp.org>
66131         fchdir: Optimize away rpl_fstat when possible.
66132         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
66133         REPLACE_OPEN_DIRECTORY.
66134         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
66136 2009-12-09  Bruno Haible  <bruno@clisp.org>
66138         * lib/fchdir.c: Update comment.
66140 2009-12-09  Bruno Haible  <bruno@clisp.org>
66142         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
66144 2009-12-08  Eric Blake  <ebb9@byu.net>
66146         fchdir: avoid memory leak on re-registration.
66147         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
66149 2009-12-08  Jim Meyering  <meyering@redhat.com>
66151         init.sh: avoid Solaris 10 /bin/sh portability problem
66152         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
66153         sourced script:
66154           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
66155           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
66156           bar
66157         tests/init.sh relied on that, accepting a --set-path=DIR argument,
66158         and two tests used that idiom.
66159         * tests/init.sh: Update suggested usage comments.
66160         (path_prepend_): New function, to be used in place
66161         of the --src-path=DIR option.
66162         (setup_): Move PATH-prepending code into path_prepend_.
66163         * tests/test-pread.sh: Adapt to new usage.
66164         * tests/test-xalloc-die.sh: Likewise.
66166 2009-12-08  Simon Josefsson  <simon@josefsson.org>
66168         * doc/gnulib.texi (Glibc pty.h): Add.
66169         * doc/glibc-functions/forkpty.texi: Add.
66170         * doc/glibc-functions/openpty.texi: Add.
66171         Suggested by Bruno Haible.
66173 2009-12-08  Eric Blake  <ebb9@byu.net>
66175         fchdir: fix logic bugs
66176         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
66177         * tests/test-fchdir.c (main): Enhance test.
66178         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
66179         is in use.
66181         dup2: fix logic bugs
66182         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
66183         REPLACE_DUP2 to decide when rpl_dup2 is needed.
66184         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
66185         exists.
66186         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
66188 2009-12-07  Eric Blake  <ebb9@byu.net>
66190         unlink: fix m4 detection
66191         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
66193         unistd-safer: add unit test
66194         * modules/unistd-safer-tests: New file.
66195         * tests/test-dup-safer.c: Likewise.
66196         * tests/test-cloexec.c (setmode): Avoid compiler warning.
66197         * tests/test-dup2.c (setmode): Likewise.
66198         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
66200         cloexec: preserve text vs. binary across dup_cloexec
66201         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
66202         mode.
66203         * modules/dup2-tests (Depends-on): Add binary-io.
66204         * modules/cloexec-tests (Depends-on): Likewise.
66205         * tests/test-dup2.c (setmode, is_mode): New helpers.
66206         (main): Add tests that translation mode is preserved.
66207         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
66208         Reported by Bruno Haible.
66210         mgetgroups: reduce duplicate listings
66211         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
66212         resulting array.
66213         * tests/test-chown.h (test_chown): Simplify client.
66214         * tests/test-lchown.h (test_lchown): Likewise.
66216 2009-12-06  Bruno Haible  <bruno@clisp.org>
66218         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
66219         value.
66221 2009-12-06  Bruno Haible  <bruno@clisp.org>
66223         * lib/progname.c: Include stdio.h, stdlib.h.
66224         (set_program_name): Reject a NULL argument.
66226 2009-12-05  Eric Blake  <ebb9@byu.net>
66228         pipe2-safer: new module
66229         * modules/pipe2-safer: New file.
66230         * lib/unistd-safer.h (pipe2_safer): New prototype.
66231         * lib/unistd--.h (pipe2): New wrapper.
66232         * lib/pipe-safer.c (pipe2_safer): New function.
66233         * modules/pipe (Depends-on): Add pipe2-safer.
66234         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
66236         stdlib-safer: preserve cloexec flag for mkostemp[s]
66237         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
66238         fd_safer_flag.
66240         unistd-safer: allow preservation of cloexec status via flag
66241         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
66242         prototypes.
66243         * lib/dup-safer.c (dup_safer_flag): New function.
66244         * lib/fd-safer.c (fd_safer_flag): Likewise.
66245         * modules/cloexec (configure.ac): Set witness.
66247         test-dup2: enhance test
66248         * modules/dup2-tests (Depends-on): Add cloexec.
66249         * tests/test-dup2.c (main): Enhance test.
66251         cloexec: add dup_cloexec
66252         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
66253         header and comments.
66254         * lib/cloexec.c (set_cloexec_flag): Add comments.
66255         (dup_cloexec): New function, with mingw implementation borrowed
66256         from...
66257         * lib/w32spawn.h (dup_noinherit): ...here.
66258         * modules/execute (Depends-on): Add cloexec.
66259         * modules/pipe (Depends-on): Likewise.
66260         * modules/cloexec (Depends-on): Add dup2.
66261         * modules/cloexec-tests (Files): New file.
66262         * tests/test-cloexec.c: Likewise.
66264         test-xalloc-die: fix test for mingw
66265         * modules/xalloc-die-tests (Files): Add tests/init.sh.
66266         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
66267         directory and .exe suffix off argv[0] output.
66269         test-fseeko: fix test for mingw
66270         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
66271         than undefining fseek, so test will pass on mingw.
66273 2009-12-05  Bruno Haible  <bruno@clisp.org>
66275         * lib/progname.h (set_program_name): Clarify specification.
66276         * lib/progname.c (set_program_name): Likewise.
66277         Reported by Jim Meyering.
66279 2009-12-05  Jim Meyering  <meyering@redhat.com>
66281         maint.mk: backslash-escape parens in default regexp
66282         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
66283         backslash-escape the literal parentheses.
66285         maint.mk: news-date-check: use grep -E
66286         * top/maint.mk (today): Define a Make variable, not a...
66287         (news-date-check): ...shell variable.
66288         (news-date-regexp): Use the Make variable.
66289         Use grep's -E option.  Change the failing diagnostic to mention
66290         the variable, $(news-date-regexp).
66292 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
66294         maintainer-makefile: allow customization of NEWS entry format
66295         * top/maint.mk (news-date-regexp): New overridable variable.
66296         (news-date-check): Use it.
66298 2009-12-04  Eric Blake  <ebb9@byu.net>
66300         mgetgroups: add xgetgroups, and avoid ENOSYS failures
66301         * lib/mgetgroups.h (xgetgroups): New prototype.
66302         * lib/mgetgroups.c (xgetgroups): New wrapper.
66303         (mgetgroups): Handle ENOSYS.
66304         * modules/mgetgroups (Depends-on): Add realloc.
66305         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
66307         mgetgroups: avoid argument promotion issues with -1
66308         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
66309         for invalid gid_t.
66310         * tests/test-chown.h (getegid, test_chown): Likewise.
66311         * tests/test-lchown.h (getegid, test_lchown): Likewise.
66313 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
66315         exclude: Fix header file problems.
66316         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
66318 2009-12-01  Jim Meyering  <meyering@redhat.com>
66320         fts: fts_open: do not let an empty string cause immediate failure
66321         This is required in support of GNU rm, for which the command
66322         "rm A '' B" must process and remove both A and B, in spite of
66323         the empty string argument.
66324         * lib/fts.c (fts_open): Do not let the presence of an empty string
66325         cause fts_open to fail immediately.  Most fts-using tools must be
66326         able to process all arguments, in order, and can be expected to
66327         diagnose such arguments themselves.
66329 2009-11-30  Eric Blake  <ebb9@byu.net>
66331         utimens: fix compilation error
66332         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
66333         Declare variable at right scope.
66335 2009-11-29  Jim Meyering  <meyering@redhat.com>
66337         bootstrap: handle perl-5.11's changed --version output
66338         * build-aux/bootstrap (get_version): Handle perl separately,
66339         since perl-5.11's --version output is different.
66341 2009-11-28  Jim Meyering  <meyering@redhat.com>
66343         userspec: depend on the inttostr module, too
66344         * modules/userspec (Depends-on): Add inttostr.
66346         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
66347         * lib/userspec.c (parse_with_separator): Do not accept a user ID
66348         number of MAXUID when it evaluates to (uid_t) -1.
66349         Likewise for group ID.  Reported by Matt McCutchen in
66350         <http://savannah.gnu.org/bugs/?28113>
66352         userspec: reformat to use spaces, not TABs
66353         * lib/userspec.c: Expand TABs to spaces.
66354         Add Emacs' "indent-tabs-mode: nil" hint.
66356 2009-11-27  Eric Blake  <ebb9@byu.net>
66358         getopt-gnu: flush out another BSD bug
66359         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
66360         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
66361         flush out BSD bug.
66362         * tests/test-getopt.h (test_getopt): End lists with NULL.
66363         * tests/test-getopt_long.h (test_getopt_long): Likewise.
66364         (test_getopt_long_posix): Enhance test.
66365         * modules/getopt-posix-tests (Depends-on): Add stdbool.
66366         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
66367         getopt-gnu.
66368         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
66369         Likewise.
66371 2009-11-27  Simon Josefsson  <simon@josefsson.org>
66373         * modules/idpriv-droptemp-tests (Notice): Fix text.
66375 2009-11-27  Jim Meyering  <meyering@redhat.com>
66377         test-xalloc-die: avoid spurious failure due to libtool argv difference
66378         In a libtool-enabled project, this test would fail due to a difference
66379         in the emitted program name, e.g.,
66380         -test-xalloc-die: memory exhausted
66381         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
66382         Use program to avoid that.
66383         * modules/xalloc-die-tests (Depends-on): Add progname.
66384         * tests/test-xalloc-die.c: Include progname.h".
66385         (program_name): Remove decl.
66386         (main): Call set_program_name.
66387         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
66389 2009-11-26  Richard Jones  <rjones@redhat.com>
66391         w32sock: leave win32 error in place.
66392         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
66394 2009-11-26  Eric Blake  <ebb9@byu.net>
66396         init.sh: suggest to use skip_ and fail_ functions in comments
66397         * tests/init.sh: Add a sentence.
66399 2009-11-25  Bruno Haible  <bruno@clisp.org>
66401         init.sh: add documentation in comments
66402         * tests/init.sh: Add some developer and user documentation.
66404 2009-11-26  Jim Meyering  <meyering@redhat.com>
66406         init.sh: accommodate even those who specify bogus srcdir manually
66407         * tests/init.sh: Normally, srcdir is guaranteed by automake and
66408         configure-time tests to be sanitized, so that there is no need to
66409         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
66410         (with no double quotes) suffices.  However, since tests may be
66411         invoked manually, and since you may explicitly set srcdir to the
66412         name of a directory containing spaces, do quote its uses here.
66413         * tests/test-pread.sh: Likewise.
66414         Suggested by Bruno Haible.
66416         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
66417         * tests/test-pread.sh: Write no data into the pipe, because
66418         test-pread actually reads none.  This avoids a diagnostic,
66419         "bash: echo: write error: Broken pipe", that arises in the unusual
66420         event something is ignoring SIGPIPE, and might be interpreted
66421         as some sort of failure.  Reported by Bruno Haible.
66423 2009-11-25  Jim Meyering  <meyering@redhat.com>
66425         test-pread: cover failure with ESPIPE and EINVAL
66426         * tests/test-pread.c (main): Test for failure, too.
66427         * tests/test-pread.sh: Invoke with stdin on a pipe.
66428         Suggested by Eric Blake.
66430         pread: improvement and fix
66431         * modules/pread (Depends-on): Depend on lseek, for portability to
66432         e.g., mingw.  Suggested by Eric Blake.
66433         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
66435         unistd.in.h: correct declaration of pread
66436         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
66437         Reported by Richard W.M. Jones.
66439         test-pread.sh: distribute the test script
66440         * modules/pread-tests (Files): Include test-pread.sh.
66442         test-pread.sh: clean up
66443         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
66444         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
66445         That is unnecessary, since it's always ".".
66446         Suggestion from Eric Blake.
66448         test-pread.sh: make executable
66449         * tests/test-pread.sh: Set executable bit.
66450         Reported by Eric Blake.
66452         correct typo in test-pread.sh
66453         * tests/test-pread.sh: Add #! line.
66455         test pread
66456         * tests/test-pread.c: New file.
66457         * tests/test-pread.sh: Likewise.
66458         * modules/pread-tests: Likewise.
66460         pread: new module
66461         * modules/pread: New file.
66462         * lib/unistd.in.h (pread): Define/declare.
66463         * lib/pread.c (pread): New file.
66464         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
66465         * modules/unistd (Makefile.am): Substitute witnesses.
66466         * doc/posix-functions/pread.texi (pread): Update.
66467         * MODULES.html.sh: Add pread.
66469 2009-11-25  Jim Meyering  <meyering@redhat.com>
66471         tests/init.sh: new file to be used via most *.sh tests
66472         * tests/init.sh: New file.
66474 2009-11-25  Eric Blake  <ebb9@byu.net>
66476         utimens: work around older Linux failure with symlinks
66477         * lib/utimens.c (lutimensat_works_really): New variable.
66478         (fdutimens, lutimens): Use it to manage kernels that support
66479         nanosecond times on files, but not on symlinks.
66480         Reported by Ondřej Vašík.
66482         utimes: fix configure grammar
66483         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
66485 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
66487         regex: Fix fastmap for multibyte character ranges.
66488         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
66489         characters when a multibyte character range is included.
66491 2009-11-22  Andy Wingo  <wingo@pobox.com>
66493         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
66494         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
66496 2009-11-24  Bruno Haible  <bruno@clisp.org>
66498         doc: Most *_l functions exist in MacOS X 10.5.
66499         * doc/posix-functions/duplocale.texi: Update platforms list.
66500         * doc/posix-functions/freelocale.texi: Likewise.
66501         * doc/posix-functions/newlocale.texi: Likewise.
66502         * doc/posix-functions/uselocale.texi: Likewise.
66503         * doc/posix-functions/isalnum_l.texi: Likewise.
66504         * doc/posix-functions/isalpha_l.texi: Likewise.
66505         * doc/posix-functions/isblank_l.texi: Likewise.
66506         * doc/posix-functions/iscntrl_l.texi: Likewise.
66507         * doc/posix-functions/isdigit_l.texi: Likewise.
66508         * doc/posix-functions/isgraph_l.texi: Likewise.
66509         * doc/posix-functions/islower_l.texi: Likewise.
66510         * doc/posix-functions/isprint_l.texi: Likewise.
66511         * doc/posix-functions/ispunct_l.texi: Likewise.
66512         * doc/posix-functions/isspace_l.texi: Likewise.
66513         * doc/posix-functions/isupper_l.texi: Likewise.
66514         * doc/posix-functions/iswalnum_l.texi: Likewise.
66515         * doc/posix-functions/iswalpha_l.texi: Likewise.
66516         * doc/posix-functions/iswblank_l.texi: Likewise.
66517         * doc/posix-functions/iswcntrl_l.texi: Likewise.
66518         * doc/posix-functions/iswctype_l.texi: Likewise.
66519         * doc/posix-functions/iswdigit_l.texi: Likewise.
66520         * doc/posix-functions/iswgraph_l.texi: Likewise.
66521         * doc/posix-functions/iswlower_l.texi: Likewise.
66522         * doc/posix-functions/iswprint_l.texi: Likewise.
66523         * doc/posix-functions/iswpunct_l.texi: Likewise.
66524         * doc/posix-functions/iswspace_l.texi: Likewise.
66525         * doc/posix-functions/iswupper_l.texi: Likewise.
66526         * doc/posix-functions/iswxdigit_l.texi: Likewise.
66527         * doc/posix-functions/isxdigit_l.texi: Likewise.
66528         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
66529         * doc/posix-functions/strcasecmp_l.texi: Likewise.
66530         * doc/posix-functions/strcoll_l.texi: Likewise.
66531         * doc/posix-functions/strfmon_l.texi: Likewise.
66532         * doc/posix-functions/strftime_l.texi: Likewise.
66533         * doc/posix-functions/strncasecmp_l.texi: Likewise.
66534         * doc/posix-functions/strxfrm_l.texi: Likewise.
66535         * doc/posix-functions/tolower_l.texi: Likewise.
66536         * doc/posix-functions/toupper_l.texi: Likewise.
66537         * doc/posix-functions/towctrans_l.texi: Likewise.
66538         * doc/posix-functions/towlower_l.texi: Likewise.
66539         * doc/posix-functions/towupper_l.texi: Likewise.
66540         * doc/posix-functions/wcscoll_l.texi: Likewise.
66541         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
66542         * doc/posix-functions/wctrans_l.texi: Likewise.
66543         * doc/posix-functions/wctype_l.texi: Likewise.
66544         * doc/glibc-functions/strptime_l.texi: Likewise.
66545         * doc/glibc-functions/strtod_l.texi: Likewise.
66546         * doc/glibc-functions/strtof_l.texi: Likewise.
66547         * doc/glibc-functions/strtol_l.texi: Likewise.
66548         * doc/glibc-functions/strtold_l.texi: Likewise.
66549         * doc/glibc-functions/strtoll_l.texi: Likewise.
66550         * doc/glibc-functions/strtoul_l.texi: Likewise.
66551         * doc/glibc-functions/strtoull_l.texi: Likewise.
66552         * doc/glibc-functions/wcsftime_l.texi: Likewise.
66553         * doc/glibc-functions/wcstod_l.texi: Likewise.
66554         * doc/glibc-functions/wcstof_l.texi: Likewise.
66555         * doc/glibc-functions/wcstol_l.texi: Likewise.
66556         * doc/glibc-functions/wcstold_l.texi: Likewise.
66557         * doc/glibc-functions/wcstoll_l.texi: Likewise.
66558         * doc/glibc-functions/wcstoul_l.texi: Likewise.
66559         * doc/glibc-functions/wcstoull_l.texi: Likewise.
66561 2009-11-24  Bruno Haible  <bruno@clisp.org>
66563         duplocale: Fix logic bug.
66564         * lib/duplocale.c: Don't include <langinfo.h>.
66565         (_NL_LOCALE_NAME): Remove macro.
66566         (rpl_duplocale): Use setlocale instead of nl_langinfo.
66567         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
66569 2009-11-23  Jim Meyering  <meyering@redhat.com>
66571         test-update-copyright: don't hard-code /usr/bin/perl
66572         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
66573         perl to print the current year.  Gilles Espinasse reported that
66574         the replaced use of perl was hard-coded as /usr/bin/perl.
66576 2009-11-23  Bruno Haible  <bruno@clisp.org>
66578         duplocale: Add support for glibc 2.3.x.
66579         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
66581 2009-11-22  Bruno Haible  <bruno@clisp.org>
66583         vasnprintf: Tiny optimization.
66584         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
66585         MacOS X.
66587 2009-11-22  Bruno Haible  <bruno@clisp.org>
66589         Tests for module 'duplocale'.
66590         * modules/duplocale-tests: New file.
66591         * tests/test-duplocale.c: New file.
66593         New module 'duplocale'.
66594         * m4/duplocale.m4: New file.
66595         * lib/locale.in.h (duplocale): New declaration.
66596         * lib/duplocale.c: New file.
66597         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
66598         gl_LOCALE_H_DEFAULTS): New macros.
66599         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
66600         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
66601         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
66602         REPLACE_DUPLOCALE.
66603         * modules/duplocale: New file.
66604         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
66606 2009-11-22  Bruno Haible  <bruno@clisp.org>
66608         * modules/locale-tests (configure.ac): Test for newlocale function.
66609         * tests/test-locale.c: When the system has extended locale functions,
66610         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
66612         locale: Make locale_t available when possible.
66613         * lib/locale.in.h: Include <xlocale.h> when it exists.
66614         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
66615         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
66616         * modules/locale (Depends-on): Add extensions.
66617         (Makefile.am): Also substitute HAVE_XLOCALE_H.
66618         * doc/posix-headers/locale.texi: Document the problem with locale_t.
66620 2009-11-22  Bruno Haible  <bruno@clisp.org>
66622         Add comments.
66623         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
66624         invocation.
66625         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
66626         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
66627         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
66629 2009-11-22  Bruno Haible  <bruno@clisp.org>
66631         error: account for the possibility of freopen (stdout).
66632         * lib/error.c: Include <unistd.h>.
66633         (flush_stdout): New function, extracted from error and error_at_line.
66634         Determine stdout's fd dynamically.
66635         (error, error_at_line): Invoke flush_stdout.
66636         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
66637         * modules/error (Depends-on): Add unistd.
66639 2009-11-22  Bruno Haible  <bruno@clisp.org>
66641         diffseq: Add comment.
66642         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
66644 2009-11-22  Jim Meyering  <meyering@redhat.com>
66646         c-stack: avoid defining an unused static function
66647         * lib/c-stack.c (find_stack_direction): Do not define this function
66648         when it will not be used.
66650         diffseq: avoid spurious gcc warnings
66651         * lib/diffseq.h (IF_LINT2): Define.
66652         (compareseq): Use it to initialize two members of "part".
66653         This avoids two used-uninitialized warnings.
66655 2009-11-21  Jim Meyering  <meyering@redhat.com>
66657         c-stack: avoid "ignoring return value of `write'" warning
66658         * lib/c-stack.c: Include "ignore-value.h".
66659         (die): Explicitly ignore each write return value.
66660         * modules/c-stack (Depends-on): Add ignore-value.
66662 2009-11-21  Bruno Haible  <bruno@clisp.org>
66664         diffseq: reduce scope of variable 'best'.
66665         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
66666         variable, earlier used for two different purposes.
66668 2009-11-21  Jim Meyering  <meyering@redhat.com>
66670         diffseq: remove useless assignment to "best"
66671         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
66672         assignment.  At that point "best" is already guaranteed to be zero.
66674 2009-11-20  Eric Blake  <ebb9@byu.net>
66676         build: mention ftp redirector in release announcements
66677         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
66678         values that used to come from cfg.mk; mention FTP redirect URL.
66679         * build-aux/announce-gen: Mention the mirror list.
66680         Suggested by Karl Berry.
66682         nanosleep: improve port to mingw
66683         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
66684         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
66685         LIB_NANOSLEEP, but only when needed.
66686         * modules/select (Link): Document LIBSOCKET.
66687         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
66688         enough.
66690         nanosleep: work around cygwin bug
66691         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
66692         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
66693         bug.
66694         (getnow): Delete, not needed.
66695         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
66696         LIB_CLOCK_GETTIME.
66697         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
66698         clock-time, gettime.
66699         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
66700         bug.
66701         * modules/nanosleep-tests: New test.
66702         * tests/test-nanosleep.c: New file.
66704         sleep: work around cygwin bug
66705         * lib/sleep.c (rpl_sleep): Work around the bug.
66706         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
66707         (gl_PREREQ_SLEEP): Delete unused macro.
66708         * modules/sleep (Depends-on): Add verify.
66709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
66710         * modules/unistd (Makefile.am): Substitute witness.
66711         * lib/unistd.in.h (sleep): Update prototype.
66712         * doc/posix-functions/sleep.texi (sleep): Document the bug.
66713         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
66714         * modules/sleep-tests (Depends-on): Check for alarm.
66716 2009-11-20  Jim Meyering  <meyering@redhat.com>
66718         maint.mk: improve sc_prohibit_magic_number_exit
66719         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
66720         so it does not match uses like System.exit(1).
66721         Add comments showing how to correct all offenders.
66723 2009-11-19  Eric Blake  <ebb9@byu.net>
66725         xalloc-die-tests: add missing library
66726         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
66728         test-xvasprintf: silence compiler warnings
66729         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
66730         empty string from gcc.
66732 2009-11-19  Jim Meyering  <meyering@redhat.com>
66734         xfreopen: new module, from coreutils
66735         * modules/xfreopen: New module.
66736         * lib/xfreopen.c: New file.
66737         * lib/xfreopen.h: New file.
66738         * MODULES.html.sh (File stream based Input/Output"): Add it.
66740 2009-11-19  Eric Blake  <ebb9@byu.net>
66742         manywarnings: depend on warnings
66743         * modules/manywarnings (Depends-on): Add warnings.
66745         build: avoid compiler warnings
66746         * lib/select.c (rpl_select): Delete unused variable.
66747         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
66749 2009-11-18  Eric Blake  <ebb9@byu.net>
66751         tests: avoid false negative with --with-packager
66752         * tests/test-version-etc.sh: Discard packager information.
66753         * tests/test-argp-version-etc-1.sh: Likewise.
66754         Reported by Mike Frysinger.
66756         utimens: fix regression on Solaris
66757         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
66758         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
66759         can only change fd timestamps via futimesat.  Instead, use an
66760         additional witness macro to avoid BSD bug.
66761         Reported by Jim Meyering.
66763 2009-11-17  Eric Blake  <ebb9@byu.net>
66765         usleep: use it to simplify tests
66766         * modules/stat-time-tests (Depends-on): Add usleep.
66767         (configure.ac): Drop usleep check.
66768         * modules/chown-tests (Depends-on, configure.ac): Likewise.
66769         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
66770         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
66771         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
66772         * modules/openat-tests (Depends-on, configure.ac): Likewise.
66773         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
66774         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
66775         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
66776         Likewise.
66777         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
66778         * tests/test-lchown.h (nap): Likewise.
66779         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
66780         * tests/test-stat-time.c (nap): Likewise.
66781         * tests/test-utimens-common.h (nap): Update comments.
66783         usleep: new module
66784         * modules/usleep: New file.
66785         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
66786         * lib/usleep.c (usleep): Likewise.
66787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
66788         * modules/unistd (Makefile.am): Substitute witnesses.
66789         * lib/unistd.in.h (usleep): Add declaration.
66790         * doc/pastposix-functions/usleep.texi (usleep): Document this.
66791         * MODULES.html.sh (Date and time): Likewise.
66792         * modules/usleep-tests (Depends-on): New test.
66793         * tests/test-usleep.c: New file.
66795         chown: work around OpenBSD bug
66796         * lib/chown.c (rpl_chown): Work around the bug.
66797         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
66798         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
66799         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
66800         * modules/chown (Depends-on): Add stdbool.
66801         * modules/lchown (Depends-on): Likewise.
66802         * doc/posix-functions/chown.texi (chown): Document the bug.
66803         * doc/posix-functions/lchown.texi (lchown): Likewise.
66804         * tests/test-lchown.h (test_chown): Relax test.
66806         mkstemp: avoid conflict with C++ keyword template
66807         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
66808         * lib/mkostemp.c (mkostemp): Likewise.
66809         * lib/mkostemps.c (mkostemps): Likewise.
66810         * lib/mkstemp.c (mkstemp): Likewise.
66811         * lib/mkstemps.c (mkstemps): Likewise.
66813         xalloc-die-tests: optimize
66814         * tests/test-xalloc-die.sh: Reduce number of processes.
66816 2009-11-17  Simon Josefsson  <simon@josefsson.org>
66818         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
66819         patch from ludo@gnu.org (Ludovic Courtès).
66821 2009-11-17  Jim Meyering  <meyering@redhat.com>
66823         version-etc: use proper license string
66824         * modules/version-etc (License): Use LGPL, not LGPLv3+.
66825         * modules/version-etc-fsf: Likewise.
66827 2009-11-17  Simon Josefsson  <simon@josefsson.org>
66829         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
66830         printed to stdout.  Deal with EOL differences.
66832 2009-11-17  Eric Blake  <ebb9@byu.net>
66834         unsetenv: work around Solaris bug
66835         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
66836         * lib/unsetenv.c (rpl_unsetenv): Work around it.
66837         Reported by Jim Meyering.
66839         vasnprintf: avoid compiler warnings
66840         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
66841         variables.
66842         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
66844 2009-11-17  Simon Josefsson  <simon@josefsson.org>
66846         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
66847         settings since xalloc-die is no longer the self test,
66848         xalloc-die.sh is.
66850 2009-11-17  Jim Meyering  <meyering@redhat.com>
66852         test-xalloc-die.sh: make the code agree with the commit log
66853         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
66854         at the end, just in case you happen to have a test-xalloc-die
66855         program in some other PATH directory.
66857         test-xalloc-die.sh: fix a portability bug
66858         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
66859         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
66860         Otherwise, argv[0] (as often seen in diagnostics) would be too
66861         system-dependent, sometimes with, and sometimes without the leading "./".
66863         version-etc-fsf: relax license to LGPLv3+
66864         * modules/version-etc-fsf (License): Relax license.
66866 2009-11-16  Eric Blake  <ebb9@byu.net>
66868         xalloc-die-tests: avoid printing null pointer
66869         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
66870         shell script.
66871         * tests/test-xalloc-die.c (program_name): Declare.
66872         * tests/test-xalloc-die.sh (tmpfiles): New file.
66874         setenv, unsetenv: work around various bugs
66875         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
66876         (setenv) [HAVE_SETENV]: Work around bugs.
66877         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
66878         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
66879         for bugs.
66880         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
66881         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
66882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
66883         * modules/stdlib (Makefile.am): Update substitutions.
66884         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
66885         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
66886         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
66887         * modules/setenv-tests: New test.
66888         * modules/unsetenv-tests: Likewise.
66889         * tests/test-setenv.c: New file.
66890         * tests/test-unsetenv.c: Likewise.
66892 2009-11-16  Jim Meyering  <meyering@redhat.com>
66894         version-etc: relax license to LGPLv3+
66895         * modules/version-etc (License): Relax license.
66897         better AC_REQUIRE expanded-before-required-warning avoidance
66898         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
66899         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
66900         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
66901         which is no longer needed.
66903 2009-11-16  Eric Blake  <ebb9@byu.net>
66905         test-freading: clean up temporary file
66906         * tests/test-freading.c (main): Remove file on success, and use
66907         ASSERT more liberally.
66908         Reported by Jim Meyering.
66910 2009-11-16  Jim Meyering  <meyering@redhat.com>
66912         avoid new AC_REQUIRE expanded-before-required warnings
66913         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
66914         merely using it.
66915         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
66916         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
66918 2009-11-15  Simon Josefsson  <simon@josefsson.org>
66920         * tests/test-xalloc-die.c: New file.
66921         * modules/xalloc-die-tests: New file.
66922         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
66923         XFAIL_TESTS so it can be appended by modules.
66925 2009-11-15  Simon Josefsson  <simon@josefsson.org>
66927         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
66928         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
66930 2009-11-14  Eric Blake  <ebb9@byu.net>
66932         fnmatch: avoid compiler warning
66933         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
66934         to silence compiler warning about mismatch signedness in ?:.
66935         Reported by Robert Millan.
66937         intprops: add double-inclusion guard
66938         * lib/intprops.h: Allow idempotent includes.
66939         Suggested by Bruce Korb.
66941         openat: detect Solaris fchownat bug
66942         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
66943         penalizing glibc chownat when only lchownat is broken.
66944         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
66945         trailing slash bugs.
66946         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
66947         * modules/openat-tests (Files): Include more files.
66948         (Depends-on): Add mgetgroups, sleep, stat-time.
66949         (configure.ac): Add additional checks.
66950         (Makefile.am): Build new test.
66951         * tests/test-fchownat.c: New file.
66953         lchown: detect Solaris and FreeBSD bug
66954         * lib/lchown.c (rpl_lchown): Work around bug.
66955         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
66956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
66957         * modules/unistd (Makefile.am): Populate it.
66958         * lib/unistd.in.h (lchown): Update declaration.
66959         * doc/posix-functions/lchown.texi (lchown): Document the bug.
66960         * modules/lchown-tests: New file.
66961         * tests/test-lchown.h (test_lchown): Likewise.
66962         * tests/test-lchown.c (main): Likewise.
66964         chown: detect Solaris and FreeBSD bug
66965         * lib/chown.c (rpl_chown): Work around bug.
66966         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
66967         (gl_PREREQ_CHOWN): Delete.
66968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
66969         * modules/unistd (Makefile.am): Populate it.
66970         * lib/unistd.in.h (chown): Update declaration.
66971         * lib/lchown.c (chown): Update client.
66972         * modules/lchown (Depends-on): Add lstat.
66973         * doc/posix-functions/chown.texi (chown): Document the bug.
66974         * doc/posix-functions/getgroups.texi (getgroups): Document
66975         getgroups pitfall.
66976         * modules/chown-tests: New file.
66977         * tests/test-chown.h (test_chown): Likewise.
66978         * tests/test-chown.c (main): Likewise.
66980 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
66982         gnulib-tool: correctly detect absence of m4 directories
66983         * gnulib-tool: Avoid extra newline on data passed to wc -l.
66985 2009-11-14  Jim Meyering  <meyering@redhat.com>
66987         maint.mk: Prohibit inclusion of "xalloc.h" without use.
66988         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
66990 2009-11-14  John W. Eaton  <jwe@gnu.org>
66992         strftime.h: wrap function declaration in extern "C" block
66993         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
66995 2009-11-13  Eric Blake  <ebb9@byu.net>
66997         getgroups: avoid compiler warning
66998         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
67000         getgroups: work around FreeBSD bug
67001         * lib/getgroups.c (rpl_getgroups): Work around the bug.
67002         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
67003         * doc/posix-functions/getgroups.texi (getgroups): Document it.
67004         * tests/test-getgroups.c (main): Fix buffer overrun.
67006         getgroups: avoid compilation failure
67007         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
67008         * modules/getgroups (Depends-on): Add stdint.
67010 2009-11-13  Jim Meyering  <meyering@redhat.com>
67012         test-getgroups: avoid compilation failure
67013         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
67015 2009-11-13  Eric Blake  <ebb9@byu.net>
67017         mgetgroups: new module, taken from coreutils
67018         * modules/mgetgroups: New file.
67019         * lib/mgetgroups.h: Likewise.
67020         * lib/mgetgroups.c (mgetgroups): Likewise.
67021         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
67022         * MODULES.html.sh (Users and groups): Mention it.
67024         getgroups: don't expose GETGROUPS_T to user
67025         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
67026         an element at a time if GETGROUPS_T is wrong size.
67027         * lib/getugroups.h (getugroups): Change signature.
67028         * lib/unistd.in.h (getgroups): Likewise.
67029         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
67030         signature needs fixing.
67031         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
67032         AC_TYPE_GETGROUPS.
67033         * modules/group-member (Depends-on): Add getgroups.
67034         * lib/group-member.c (group_info, get_group_info): Use gid_t.
67035         (group_member): Rely on getgroups replacement.
67036         * lib/getugroups.c (getugroups): Use gid_t.
67037         * tests/test-getgroups.c (main): Likewise.
67038         * NEWS: Mention the signature change.
67039         * doc/posix-functions/getgroups.texi (getgroups): Mention the
67040         problem with signature.
67041         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
67042         GETGROUPS_T is still useful for setgroups.
67044         getgroups, getugroups: provide stubs for mingw
67045         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
67046         * lib/getugroups.c (getugroups): Likewise.
67047         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
67048         function.  Modernize replacement scheme.
67049         (gl_PREREQ_GETGROUPS): Delete.
67050         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
67051         * modules/getgroups (configure.ac): Declare witness.
67052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
67053         * modules/unistd (Depends-on): Substitute witness.
67054         * lib/unistd.in.h (getgroups): Declare replacement.
67056         getgroups: avoid calling exit
67057         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
67058         drop xalloc.
67059         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
67060         dependencies.
67061         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
67062         exiting, in the rare case of malloc failure.
67064         getgroups: fix logic error
67065         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
67066         has more than 20 groups.
67067         * modules/getgroups-tests: New test.
67068         * tests/test-getgroups.c: New file.
67070 2009-11-13  Simon Josefsson  <simon@josefsson.org>
67072         * tests/test-base64.c: Improve.
67074 2009-11-13  Simon Josefsson  <simon@josefsson.org>
67076         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
67077         Blake <ebb9@byu.net>.
67079 2009-11-13  Simon Josefsson  <simon@josefsson.org>
67081         * tests/test-xvasprintf.c: Add %s%s related checks.
67083 2009-11-12  Eric Blake  <ebb9@byu.net>
67085         version-etc: match standards.texi style
67086         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
67087         and use <> only for URLs.
67089 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
67091         fts: do not fail on a submount during traversal
67092         * lib/fts.c (fts_build): Read the stat info again after opening
67093         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
67094         Original report at http://bugzilla.redhat.com/501848.
67096 2009-11-12  Jim Meyering  <meyering@redhat.com>
67098         bootstrap: sync from coreutils
67099         * build-aux/bootstrap (bootstrap_epilogue): New function.
67100         Use git_modules_config in one more place.  This make bootstrap's
67101         --gnulib-srcdir option more useful for testing.
67103         bootstrap: generalize autoheader check
67104         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
67105         AC_CONFIG_HEADERS.
67107 2009-11-11  Eric Blake  <ebb9@byu.net>
67109         mkfifoat: use new modules for Solaris and BSD bugs
67110         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
67111         * lib/mkfifoat.c (mknodat): Split...
67112         * lib/mknodat.c (mknodat): ...into new file.
67113         * modules/mkfifoat (Files): Ship new file.
67114         (Depends-on): Add mkfifo, mknod.
67115         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
67116         (Depends-on): Add symlink.
67117         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
67118         redundant with test_mkfifo.h.
67119         (do_mkfifoat, do_mknodat): New helpers.
67121         mknod: new module
67122         * modules/mknod: New file.
67123         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
67124         * lib/mknod.c (mknod): Likewise.
67125         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
67126         defaults.
67127         * modules/sys_stat (Makefile.am): Substitute them.
67128         * lib/sys_stat.in.h (mknod): Declare replacement.
67129         * MODULES.html.sh (Support for systems lacking POSIX:2008):
67130         Document it.
67131         * doc/posix-functions/mknod.texi (mknod): Likewise.
67132         * modules/mknod-tests: New test.
67133         * tests/test-mknod.c: Likewise.
67135         mkfifo: new module
67136         * modules/mkfifo: New file.
67137         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
67138         * lib/mkfifo.c (mkfifo): Likewise.
67139         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
67140         defaults.
67141         * modules/sys_stat (Makefile.am): Substitute them.
67142         * lib/sys_stat.in.h (mkfifo): Declare replacement.
67143         * MODULES.html.sh (Support for systems lacking POSIX:2008):
67144         Document it.
67145         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
67146         * modules/mkfifo-tests: New test.
67147         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
67148         from test-mkfifoat.c.
67149         * tests/test-mkfifo.c: New file.
67151         readlink: detect FreeBSD bug
67152         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
67153         slash on symlink.
67154         * doc/posix-functions/readlink.texi (readlink): Document the bug.
67155         * tests/test-readlink.h (test_readlink): Enhance test.
67157         symlink: detect FreeBSD bug
67158         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
67159         slash on symlink.
67160         * doc/posix-functions/symlink.texi (symlink): Document the bug.
67161         * tests/test-symlink.h (test_symlink): Enhance test.
67163 2009-11-10  Eric Blake  <ebb9@byu.net>
67165         link: detect FreeBSD bug
67166         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
67167         symlink.
67168         * doc/posix-functions/link.texi (link): Document the bug.
67169         * tests/test-link.h (test_link): Enhance test.
67170         * tests/test-linkat.c (main): Update caller.
67172         unlink, remove: detect FreeBSD bug
67173         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
67174         slash on symlink.
67175         * doc/posix-functions/unlink.texi (unlink): Document the bug.
67176         * doc/posix-functions/remove.texi (remove): Likewise.
67177         * tests/test-unlink.h (test_unlink): Enhance test.
67178         * tests/test-remove.c (main): Likewise.
67180 2009-11-09  Eric Blake  <ebb9@byu.net>
67182         rename: detect FreeBSD bug
67183         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
67184         slash on symlink.
67185         * modules/renameat-tests (Depends-on): Add filenamecat.
67186         * tests/test-rename.h (test_rename): Allow one more errno.
67187         * tests/test-renameat.c (main): Likewise.
67188         * doc/posix-functions/rename.texi (rename): Document the bug.
67190         open: detect FreeBSD bug
67191         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
67192         symlink.
67193         * doc/posix-functions/open.texi (open): Document the bug.
67194         * doc/posix-functions/utimes.texi (utimes): Likewise.
67195         * tests/test-open.h (test_open): Add parameters, and test symlink
67196         handling.
67197         * tests/test-open.c (main): Adjust caller.
67198         * tests/test-fcntl-safer.c (main): Likewise.
67199         * modules/open-tests (Depends-on): Add stdbool, symlink.
67200         * modules/fcntl-safer-tests (Depends-on): Likewise.
67201         * tests/test-openat.c (main): Add test-open tests.
67203         stat: detect FreeBSD bug
67204         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
67205         symlink.
67206         * doc/posix-functions/stat.texi (stat): Document the bug.
67207         * tests/test-stat.h (test_stat_func): Add argument.
67208         * tests/test-stat.c (main): Adjust caller.
67209         * tests/test-fstatat.c (main): Likewise.
67210         * modules/stat-tests (Depends-on): Add stdbool, symlink.
67211         Reported by Jim Meyering.
67213 2009-11-09  James Youngman  <jay@gnu.org>
67215         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
67216         * lib/strftime.c: Correct placement of #include "ignore-value.h".
67218 2009-11-08  Jim Meyering  <meyering@redhat.com>
67220         utimens: remove invalid futimesat call
67221         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
67222         It used the file descriptor of the target file as the DIR_FD
67223         parameter and NULL as the file name.  That caused failure with
67224         errno == EFAULT on FreeBSD-8.0-rc2
67226 2009-11-07  Eric Blake  <ebb9@byu.net>
67228         fflush, freadseek: use fseeko, not fseek
67229         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
67230         (clear_ungetc_buffer): Avoid potential problems on large files.
67231         * lib/freadseek.c (freadseek): Likewise.
67232         * modules/freadseek (Depends-on): Add fseeko.
67233         * modules/fseek (configure.ac): Set a witness.
67234         * tests/test-fflush.c (main): Use fseeko.
67235         * tests/test-fpurge.c (fseek): Disable link warning.
67236         * tests/test-freadable.c (fseek): Likewise.
67237         * tests/test-freading.c (fseek): Likewise.
67238         * tests/test-fseeko.c (fseek): Likewise.
67239         * tests/test-ftell.c (fseek): Likewise.
67240         * tests/test-ftello.c (fseek): Likewise.
67241         * tests/test-fwritable.c (fseek): Likewise.
67242         * tests/test-fwriting.c (fseek): Likewise.
67244 2009-11-06  Simon Josefsson  <simon@josefsson.org>
67246         * modules/memchr (Depends-on): Drop getpagesize dependency.
67248 2009-11-06  Simon Josefsson  <simon@josefsson.org>
67250         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
67251         Reported by Ludovic Courtès.
67252         * build-aux/pmccabe2html: Improve example usage.
67253         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
67255 2009-11-06  Jim Meyering  <meyering@redhat.com>
67257         do-release-commit-and-tag: New module.
67258         Automate the release-commit and tag process.
67259         * build-aux/do-release-commit-and-tag: New script, from coreutils.
67260         * modules/do-release-commit-and-tag: New file.
67261         * MODULES.html.sh (Support for maintaining and releasing): Add it.
67263 2009-11-06  Simon Josefsson  <simon@josefsson.org>
67265         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
67266         because test-select.c uses inet_pton.
67268 2009-11-06  Simon Josefsson  <simon@josefsson.org>
67270         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
67271         GETADDRINFO_LIB.  Bump serial number.
67272         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
67273         Suggested by Eric Blake <ebb9@byu.net>.
67275 2009-11-05  Eric Blake  <ebb9@byu.net>
67277         strtod: detect darwin bug
67278         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
67279         Reported by Leo Davis.
67281         freopen-safer: new module
67282         * modules/freopen-safer: New module.
67283         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
67284         * lib/freopen-safer.c (freopen_safer): New file.
67285         * lib/stdio-safer.h (freopen_safer): New declaration.
67286         * lib/stdio--.h (freopen): New override.
67287         * MODULES.html.sh (File stream based Input/Output): Mention it.
67288         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
67289         freopen-safer module.
67290         * doc/posix-functions/stderr.texi (stderr): Likewise.
67291         * doc/posix-functions/stdin.texi (stdin): Likewise.
67292         * doc/posix-functions/stdout.texi (stdout): Likewise.
67293         * modules/freopen-safer-tests: New test.
67294         * tests/test-reopen-safer.c: New file.
67296 2009-11-05  Jim Meyering  <meyering@redhat.com>
67298         maint.mk: Prohibit inclusion of "close-stream.h" without use.
67299         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
67301 2009-11-05  Simon Josefsson  <simon@josefsson.org>
67303         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
67305 2009-11-05  Simon Josefsson  <simon@josefsson.org>
67307         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
67309 2009-11-05  Simon Josefsson  <simon@josefsson.org>
67311         Fix link error.
67312         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
67313         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
67315 2009-11-05  Simon Josefsson  <simon@josefsson.org>
67317         * tests/test-func.c: Also test value of __func__.
67319 2009-11-05  Simon Josefsson  <simon@josefsson.org>
67321         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
67322         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
67324 2009-11-05  Bruno Haible  <bruno@clisp.org>
67326         Fix link error.
67327         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
67328         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
67329         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
67331 2009-11-05  Bruno Haible  <bruno@clisp.org>
67333         Tests for module 'inet_pton'.
67334         * modules/inet_pton-tests: New file.
67335         * tests/test-inet_pton.c: New file.
67337 2009-11-05  Bruno Haible  <bruno@clisp.org>
67339         Tests for module 'inet_ntop'.
67340         * modules/inet_ntop-tests: New file.
67341         * tests/test-inet_ntop.c: New file.
67343 2009-11-04  Eric Blake  <ebb9@byu.net>
67345         stdlib-safer: wrap all mkstemp variants
67346         * modules/mkostemp (configure.ac): Set witness.
67347         * modules/mkostemps (configure.ac): Likewise.
67348         * modules/mkstemps (configure.ac): Likewise.
67349         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
67350         (mkstemps_safer): Wrap more functions.
67351         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
67352         wrapping.
67353         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
67354         (mkstemps_safer): Implement the wrappers.
67356         mkstemps, mkostemps: new modules
67357         * modules/mkostemps: New module.
67358         * modules/mkstemps: Likewise.
67359         * lib/mkostemps.c (mkostemps): New file.
67360         * lib/mkstemps.c (mkstemps): Likewise.
67361         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
67362         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
67363         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
67364         * modules/stdlib (Makefile.am): Substitute them.
67365         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
67366         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
67367         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
67368         * doc/gnulib.texi (Glibc stdlib.h): Include them.
67369         * MODULES.html.sh (File system functions): Mention them.
67371         tempname: resync from glibc
67372         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
67373         same values for __GT_FILE as glibc.  Abort even when assertions
67374         are disabled.
67375         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
67376         match its value otherwise.  Allow idempotent inclusion.
67377         * lib/mkdtemp.c (mkdtemp): Adjust caller.
67378         * lib/mkostemp.c (mkostemp): Likewise.
67379         * lib/mkstemp.c (mkstemp): Likewise.
67380         * lib/tmpfile.c (tmpfile): Likewise.
67381         * NEWS: Document this.
67383         utimens: fix use of futimens on older Linux
67384         * lib/utimens.c (fdutimens): Use updated, rather than original,
67385         timespec to avoid bug in older Linux kernel.
67386         Reported by Simon Josefsson.
67388 2009-11-04  Bruno Haible  <bruno@clisp.org>
67390         Make num_processors more flexible and consistent.
67391         * lib/nproc.h (enum nproc_query): New type.
67392         (num_processors): Add a 'query' argument.
67393         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
67394         (num_processors): Add a 'query' argument. Test the value of the
67395         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
67396         mingw, count the number of CPUs available for the current process.
67397         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
67398         Check for sched_getaffinity and sched_getaffinity_np.
67399         * modules/nproc (Depends-on): Add c-ctype, extensions.
67400         * NEWS: Mention the change.
67402 2009-11-03  Bruno Haible  <bruno@clisp.org>
67404         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
67406 2009-11-03  Jim Meyering  <meyering@redhat.com>
67408         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
67409         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
67410         if it is defined.
67412 2009-11-02  Eric Blake  <ebb9@byu.net>
67414         mktime, timegm: share common declaration
67415         * lib/mktime-internal.h: New file.
67416         * lib/mktime.c: Use it rather than open-coding a declaration.
67417         * lib/timegm.c: Likewise.
67418         * modules/mktime (Files): Ship it.
67419         * modules/timegm (Files): Likewise.
67420         Suggested by Bruno Haible.
67422         test-update-copyright: update test to match script changes
67423         * tests/test-update-copyright.sh: Avoid hard-coding perl
67424         location.  Don't update *.bak created by earlier runs.
67426 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67427             Simon Josefsson  <simon@josefsson.org>
67428             Bruno Haible  <bruno@clisp.org>
67430         Fix link error on Solaris 8.
67431         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
67432         also in libnsl. Define also INET_PTON_LIB.
67433         * modules/inet_pton (Link): New section.
67435 2009-11-02  Simon Josefsson  <simon@josefsson.org>
67436             Bruno Haible  <bruno@clisp.org>
67438         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
67439         * modules/inet_ntop (Link): New section.
67440         Reported by Boyan Kasarov <bkasarov@gmail.com>.
67442 2009-11-02  Eric Blake  <ebb9@byu.net>
67444         maint: avoid compiler warnings in m4 macros
67445         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
67446         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
67448 2009-11-02  Simon Josefsson  <simon@josefsson.org>
67450         * m4/pmccabe2html.m4: Remove file.
67451         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
67452         function.  Change maintainer.
67453         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
67454         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
67455         Courtès).
67457 2009-10-31  Eric Blake  <ebb9@byu.net>
67459         fseeko: fix m4 regression
67460         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
67461         regression from 2009-10-27.
67462         Reported by Ralf Wildenhues.
67464 2009-10-31  Jim Meyering  <meyering@redhat.com>
67466         inttostr: aesthetics and improved (compile-time) safety
67467         Define inttype_is_signed rather than inttype_is_unsigned,
67468         since the sole use is via "#if inttype_is_signed".
67469         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
67470         inttype_is_unsigned.
67471         * lib/offtostr.c (inttype_is_signed): Likewise.
67472         * lib/uinttostr.c (inttype_is_signed): Likewise.
67473         * lib/umaxtostr.c (inttype_is_signed): Likewise.
67474         * lib/inttostr.c (inttostr): Use verify to cross-check the
67475         inttype_is_signed value and the signedness of the actual type.
67476         * modules/inttostr (Depends-on): Add verify.
67478 2009-10-30  Eric Blake  <ebb9@byu.net>
67480         build: avoid compiler warnings
67481         * lib/fchmodat.c (lchmod): Mark unused variables.
67482         * lib/getopt.c (_getopt_initialize): Likewise.
67483         * lib/mktime.c (__mktime_internal): Provide prototype.
67484         * lib/inttostr.c (inttostr): Avoid compiler warning even with
67485         older gcc that do not understand #pragma GCC diagnostic.
67486         * lib/uinttostr.c (inttype_is_unsigned): Define.
67487         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
67489 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
67491         stat: fix compilation on AIX
67492         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
67493         only see struct stat64.
67495 2009-10-30  Eric Blake  <ebb9@byu.net>
67497         exclude: make more robust
67498         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
67499         rather than masking a coding bug.
67500         Suggested by Bruno Haible.
67502 2009-10-30  Jim Meyering  <meyering@redhat.com>
67504         perl scripts: remove #!/usr/bin/perl in favor of more portable...
67505         Rather than putting #!/usr/bin/perl on the first line,
67506         start with a variant of what's recommended by "man perlrun" that
67507         invokes the first "perl" program from your shell's search path.
67508         * build-aux/gitlog-to-changelog: Replace #!... as above.
67509         Add a "Local Variables" perl mode setting.
67510         Prompted by a patch from Ludovic Courtès.
67511         Improved by Eric Blake.
67512         * build-aux/useless-if-before-free: Likewise.
67513         * build-aux/announce-gen: Likewise.
67514         * build-aux/update-copyright: Likewise.
67516 2009-10-29  Eric Blake  <ebb9@byu.net>
67518         filenamecat-lgpl: adjust clients
67519         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
67520         filenamecat.
67521         * modules/renameat (Depends-on): Likewise.
67523         filenamecat: split into filenamecat-lgpl
67524         * modules/filenamecat-lgpl: New module.
67525         * modules/filenamecat (Files): Move library-safe files into
67526         filenamecat-lgpl.
67527         (Depends-on): Add filenamecat-lgpl.
67528         (configure.ac): Declare witness.
67529         * lib/filenamecat.h (file_name_concat): Only declare when using
67530         GPL module.
67531         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
67532         Move...
67533         * lib/filenamecat-lgpl.c: ...into new file.
67534         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
67535         (gl_FILE_NAME_CONCAT): Use it.
67536         * MODULES.html.sh (File system functions): Mention new module.
67538         argp: avoid memory leak
67539         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
67540         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
67541         base_name, since the latter malloc()s and can call exit().
67542         Leak introduced 2006-07-03.
67544         dirname-lgpl: adjust clients that don't need full dirname
67545         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
67546         * modules/filenamecat (Depends-on): Likewise.
67547         * modules/linkat (Depends-on): Likewise.
67548         * modules/mkancesdirs (Depends-on): Likewise.
67549         * modules/mkdir (Depends-on): Likewise.
67550         * modules/openat (Depends-on): Likewise.
67551         * modules/savewd (Depends-on): Likewise.
67552         * modules/rename (Depends-on): Likewise.
67553         (License): Relax license.
67554         * modules/mkdir-tests (Depends-on): Drop progname.
67555         (Makefile.am): Delete unneeded LDADD.
67556         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
67558         dirname: split into dirname-lgpl
67559         * modules/dirname-lgpl: New module.
67560         * modules/dirname (Files): Move library-safe files into
67561         dirname-lgpl.
67562         (Depends-on): Add dirname-lgpl.
67563         (configure.ac): Declare witness.
67564         * modules/double-slash-root (License): Relax license.
67565         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
67566         module.
67567         * lib/dirname.c (dir_len, mdir_name): Move...
67568         * lib/dirname-lgpl.c: ...into new file.
67569         * lib/basename.c (last_component, base_len): Move...
67570         * lib/basename-lgpl.c: ...into new file.
67571         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
67572         (gl_DIRNAME): Use it.
67573         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
67574         Mention new module.
67575         * modules/dirname-tests (Depends-on): Add progname.
67576         * tests/test-dirname.c (program_name): Delete.
67578         mkdir: make safe for libraries
67579         * modules/mkdir (Depends-on): Drop xalloc.
67580         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
67581         exit.
67583         tests: avoid some compiler warnings
67584         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
67585         literals.
67586         * tests/test-memchr.c (main): Avoid type mismatch.
67587         * tests/test-arpa_inet.c (main): Avoid unused parameters.
67588         * tests/test-base64.c (main): Likewise.
67589         * tests/test-getdelim.c (main): Likewise.
67590         * tests/test-gethostname.c (main): Likewise.
67591         * tests/test-getline.c (main): Likewise.
67592         * tests/test-netinet_in.c (main): Likewise.
67593         * tests/test-select.c (open_server_socket, main): Likewise.
67594         * tests/test-select-stdin.c (main): Likewise.
67595         * tests/test-sockets.c (main): Likewise.
67596         * tests/test-strsignal.c (main): Likewise.
67597         * tests/test-sys_select.c (main): Likewise.
67598         * tests/test-sys_socket.c (main): Likewise.
67599         * tests/test-u64.c (main): Likewise.
67600         * tests/test-xfprintf-posix.c (main): Likewise.
67601         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
67603         sockets: avoid compiler warning
67604         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
67606         maint: detect usage(1) and other suspicious exits
67607         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
67609 2009-10-29  Jim Meyering  <meyering@redhat.com>
67611         timespec: long-to-int truncation could make timespec_cmp malfunction
67612         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
67613         a multiple of 2^32 nanoseconds as no difference.
67615 2009-10-28  Jim Meyering  <meyering@redhat.com>
67617         fprintftime: wrap macro code argument in "do {...} while(0)"
67618         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
67619         cpy macro must be a statement that can be followed by a semicolon.
67620         Now that the else clause contains a comment and is hence longer
67621         than one line, I require curly braces.  That in turn requires
67622         that we wrap this code block in the standard do...while(0).
67624         fprintftime: remove stray semicolon from previous change
67625         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
67627         fprintftime: avoid a warning about ignored fwrite return value
67628         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
67629         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
67630         that is unsafe.
67631         * modules/fprintftime (Depends-on): Add ignore-value.
67633         exclude: avoid an unwarranted warning
67634         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
67636 2009-10-27  Eric Blake  <ebb9@byu.net>
67638         fseek: avoid compilation failure when fflush is replaced
67639         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
67640         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
67641         module is in use.
67642         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
67643         module is not in use; since REPLACE_FSEEK worked otherwise.
67644         (GNULIB_FTELLO): Likewise for ftell.
67645         Reported by Ian Beckwith and others.
67647 2009-10-27  Bruno Haible  <bruno@clisp.org>
67649         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
67650         Reported by Jim Meyering.
67652 2009-10-27  Jim Meyering  <jim@meyering.net>
67653             Bruno Haible  <bruno@clisp.org>
67655         Avoid warning despite dropping the return value of fwrite.
67656         * lib/unicodeio.c: Include ignore-value.h.
67657         (fwrite_success_callback): Explicitly ignore fwrite's return value.
67658         * modules/unicodeio (Depends-on): Add ignore-value.
67660 2009-10-26  Eric Blake  <ebb9@byu.net>
67662         areadlinkat: fix fallback path
67663         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
67664         pointer and zero.
67666 2009-10-22  Pádraig Brady  <P@draigBrady.com>
67668         Use a better IO block size for modern systems
67669         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
67670         * lib/md2.c: Likewise.
67671         * lib/md4.c: Likewise.
67672         * lib/md5.c: Likewise.
67673         * lib/sha1.c: Likewise.
67674         * lib/sha256.c: Likewise.
67675         * lib/sha512.c: Likewise.
67677 2009-10-22  Eric Blake  <ebb9@byu.net>
67679         tests: avoid several compiler warnings
67680         * tests/test-getcwd.c (main): Avoid buffer underflow.
67681         * tests/test-getdate.c (main): String literals are not safe with
67682         putenv, so use setenv.  Declare unused argument.
67683         * modules/getdate-tests (Depends-on): Add setenv.
67684         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
67685         problems with string literals in char *.
67686         * tests/test-hash.c (main): Avoid shadowing declaration.
67687         (insert_new): Treat string literals as char const *.
67688         * tests/test-getopt.h (test_getopt): Likewise.
67689         (getopt_loop): Alter types to minimize casting elsewhere.
67690         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
67691         (test_getopt_long_posix): Likewise.
67692         (do_getopt_long): Add wrapper to minimize casting.
67693         * tests/test-atexit.c (clear_temp_file): Use void.
67694         * tests/test-areadlink-with-size.c (main): Declare unused
67695         arguments.
67696         * tests/test-areadlink.c (main): Likewise.
67697         * tests/test-areadlinkat-with-size.c (main): Likewise.
67698         * tests/test-areadlinkat.c (main): Likewise.
67699         * tests/test-canonicalize-lgpl.c (main): Likewise.
67700         * tests/test-canonicalize.c (main): Likewise.
67701         * tests/test-dirent-safer.c (main): Likewise.
67702         * tests/test-dirname.c (main): Likewise.
67703         * tests/test-dup2.c (main): Likewise.
67704         * tests/test-fchdir.c (main): Likewise.
67705         * tests/test-fcntl-h.c (main): Likewise.
67706         * tests/test-fcntl-safer.c (main): Likewise.
67707         * tests/test-fdopendir.c (main): Likewise.
67708         * tests/test-fdutimensat.c (main): Likewise.
67709         * tests/test-fflush.c (main): Likewise.
67710         * tests/test-filenamecat.c (main): Likewise.
67711         * tests/test-filevercmp.c (main): Likewise.
67712         * tests/test-fopen-safer.c (main): Likewise.
67713         * tests/test-fopen.c (main): Likewise.
67714         * tests/test-fpending.c (main): Likewise.
67715         * tests/test-fpurge.c (main): Likewise.
67716         * tests/test-freading.c (main): Likewise.
67717         * tests/test-fstatat.c (main): Likewise.
67718         * tests/test-fsync.c (main): Likewise.
67719         * tests/test-futimens.c (main): Likewise.
67720         * tests/test-getndelim2.c (main): Likewise.
67721         * tests/test-gettimeofday.c (main): Likewise.
67722         * tests/test-getopt.c (main): Likewise.
67723         * tests/test-i-ring.c (main): Likewise.
67724         * tests/test-inttypes.c (main): Likewise.
67725         * tests/test-link.c (main): Likewise.
67726         * tests/test-lstat.c (main): Likewise.
67727         * tests/test-math.c (main): Likewise.
67728         * tests/test-md5.c (main): Likewise.
67729         * tests/test-memchr2.c (main): Likewise.
67730         * tests/test-memrchr.c (main): Likewise.
67731         * tests/test-mkdir.c (main): Likewise.
67732         * tests/test-mkdirat.c (main): Likewise.
67733         * tests/test-mkfifoat.c (main): Likewise.
67734         * tests/test-open.c (main): Likewise.
67735         * tests/test-openat-safer.c (main): Likewise.
67736         * tests/test-openat.c (main): Likewise.
67737         * tests/test-quotearg.c (main): Likewise.
67738         * tests/test-rawmemchr.c (main): Likewise.
67739         * tests/test-readlink.c (main): Likewise.
67740         * tests/test-remove.c (main): Likewise.
67741         * tests/test-rename.c (main): Likewise.
67742         * tests/test-renameat.c (main): Likewise.
67743         * tests/test-rmdir.c (main): Likewise.
67744         * tests/test-sha1.c (main): Likewise.
67745         * tests/test-signal.c (main): Likewise.
67746         * tests/test-sigaction.c (main): Likewise.
67747         * tests/test-stat.c (main): Likewise.
67748         * tests/test-stat-time.c (main): Likewise.
67749         * tests/test-stddef.c (main): Likewise.
67750         * tests/test-stdint.c (main): Likewise.
67751         * tests/test-stdio.c (main): Likewise.
67752         * tests/test-stdlib.c (main): Likewise.
67753         * tests/test-strchrnul.c (main): Likewise.
67754         * tests/test-strerror.c (main): Likewise.
67755         * tests/test-string.c (main): Likewise.
67756         * tests/test-strtod.c (main): Likewise.
67757         * tests/test-strverscmp.c (main): Likewise.
67758         * tests/test-symlink.c (main): Likewise.
67759         * tests/test-symlinkat.c (main): Likewise.
67760         * tests/test-sys_stat.c (main): Likewise.
67761         * tests/test-sys_time.c (main): Likewise.
67762         * tests/test-time.c (main): Likewise.
67763         * tests/test-unistd.c (main): Likewise.
67764         * tests/test-unlink.c (main): Likewise.
67765         * tests/test-unlinkat.c (main): Likewise.
67766         * tests/test-utimens.c (main): Likewise.
67767         * tests/test-utimensat.c (main): Likewise.
67768         * tests/test-version-etc.c (main): Likewise.
67769         * tests/test-wchar.c (main): Likewise.
67770         * tests/test-wctype.c (main): Likewise.
67771         * tests/test-xprintf-posix.c (main): Likewise.
67772         * tests/test-posixtm.c (main): Likewise.
67773         (STREQ): Delete unused macro.
67774         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
67775         shadowed variables.
67776         * tests/test-memchr.c (main): Likewise.
67778 2009-10-21  Eric Blake  <ebb9@byu.net>
67780         areadlinkat: avoid failure on older glibc
67781         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
67782         rather than mis-comparing 0 against FUNC_RESULT of char*.
67784 2009-10-21  Bruno Haible  <bruno@clisp.org>
67786         * modules/stpncpy (License): Relicense under LGPLv2+.
67787         Reported by David Lutterkort <lutter@redhat.com>.
67789 2009-10-20  Eric Blake  <ebb9@byu.net>
67791         utimensat: work around Solaris 9 bug
67792         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
67793         has trailing slash bugs.
67794         * tests/test-lutimens.h (test_lutimens): Enhance test.
67795         * tests/test-utimens.h (test_utimens): Likewise.
67796         * doc/posix-functions/utime.texi (utime): Enhance documentation.
67797         * doc/posix-functions/utimes.texi (utimes): Likewise.
67798         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
67799         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
67800         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
67801         * doc/posix-functions/futimens.texi (futimens): Likewise.
67803         fdutimensat: new module
67804         * modules/fdutimensat: New file.
67805         * lib/fdutimensat.c (fdutimensat): Likewise.
67806         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
67807         * MODULES.html.sh (File system functions): Mention module.
67808         * modules/fdutimensat-tests: New test.
67809         * tests/test-fdutimensat.c: Likewise.
67811         doc: regenerate INSTALL
67812         * doc/INSTALL: Reflect recent autoconf update.
67813         * doc/INSTALL.ISO: Likewise.
67814         * doc/INSTALL.UTF-8: Likewise.
67816 2009-10-20  Pádraig Brady  <P@draigBrady.com>
67818         acl: warn if ACL support is not detected
67819         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
67821 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
67823         * lib/nproc.h: Add extern "C" block for C++.
67825 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
67826             Bruno Haible  <bruno@clisp.org>
67828         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
67829         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
67830         * doc/posix-functions/isalpha.texi: Likewise.
67831         * doc/posix-functions/isblank.texi: Likewise.
67832         * doc/posix-functions/iscntrl.texi: Likewise.
67833         * doc/posix-functions/isdigit.texi: Likewise.
67834         * doc/posix-functions/isgraph.texi: Likewise.
67835         * doc/posix-functions/islower.texi: Likewise.
67836         * doc/posix-functions/isprint.texi: Likewise.
67837         * doc/posix-functions/ispunct.texi: Likewise.
67838         * doc/posix-functions/isspace.texi: Likewise.
67839         * doc/posix-functions/isupper.texi: Likewise.
67840         * doc/posix-functions/isxdigit.texi: Likewise.
67842 2009-10-18  Bruno Haible  <bruno@clisp.org>
67844         Tests for module 'isblank'.
67845         * modules/isblank-tests: New file.
67846         * tests/test-isblank.c: New file.
67848         New module 'isblank'.
67849         * lib/isblank.c: New file.
67850         * m4/isblank.m4: New file.
67851         * modules/isblank: New file.
67852         * doc/posix-functions/isblank.texi: Mention the new module.
67854 2009-10-18  Bruno Haible  <bruno@clisp.org>
67856         New module 'ctype'.
67857         * lib/ctype.in.h: New file.
67858         * m4/ctype.m4: New file.
67859         * modules/ctype: New file.
67860         * doc/posix-headers/ctype.texi: Mention the new module.
67862 2009-10-18  Jim Meyering  <meyering@redhat.com>
67864         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
67865         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
67866         right after its initialization, rather than farther down.
67867         Keeping these in close proximity makes it easier to ensure
67868         that each such variable is initialized.  E.g.,
67870             LIB_CLOCK_GETTIME=
67871             AC_SUBST([LIB_CLOCK_GETTIME])
67873         This change also increments these serial numbers.
67874         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
67875         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
67876         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67878 2009-10-18  Bruno Haible  <bruno@clisp.org>
67880         Don't let environment variables perturb build.
67881         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
67882         (gl_PREREQ_GETHRXTIME): ... not here.
67884 2009-10-18  Bruno Haible  <bruno@clisp.org>
67886         Avoid symlink attack in localcharset module.
67887         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
67888         (O_NOFOLLOW): Define fallback.
67889         (get_charset_aliases): Don't open the file if it is a symbolic link.
67890         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
67891         gl_FCNTL_H.
67892         (gl_FCNTL_H): Require it.
67893         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
67894         * modules/localcharset (Files): Add m4/fcntl_h.m4.
67895         Reported by Fergal Glynn <fglynn@veracode.com>.
67897 2009-10-18  Bruno Haible  <bruno@clisp.org>
67899         Implement nproc for mingw.
67900         * lib/nproc.c: Include <windows.h>
67901         (num_processors): On native Windows platforms, try GetSystemInfo.
67903 2009-10-18  Bruno Haible  <bruno@clisp.org>
67905         Implement nproc for IRIX.
67906         * lib/nproc.c: Include <sys/sysmp.h>.
67907         (num_processors): On IRIX systems, try sysmp.
67908         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
67910 2009-10-18  Bruno Haible  <bruno@clisp.org>
67912         Implement nproc for HP-UX.
67913         * lib/nproc.c: Include <sys/pstat.h>
67914         (num_processors): On HP-UX systems, try pstat_getdynamic.
67915         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
67916         pstat_getdynamic.
67918 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
67919             Bruno Haible  <bruno@clisp.org>
67921         Implement nproc for NetBSD, OpenBSD.
67922         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
67923         (ARRAY_SIZE): New macro.
67924         (num_processors): On BSD systems, try sysctl of HW_NCPU.
67925         * m4/nproc.m4: New file.
67926         * modules/nproc (Files): Add m4/nproc.m4.
67927         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
67928         (Makefile.am): Instead, augment lib_SOURCES.
67930 2009-10-18  Bruno Haible  <bruno@clisp.org>
67932         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
67933         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
67934         sys/param.h.
67936 2009-10-16  Eric Blake  <ebb9@byu.net>
67938         utimensat: new module
67939         * modules/utimensat: New file.
67940         * lib/utimensat.c (utimensat): Likewise.
67941         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
67942         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
67943         so we can work around Linux bugs.
67944         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
67945         * modules/sys_stat (Makefile.am): Substitute them.
67946         * lib/sys_stat.in.h (utimensat): Declare it.
67947         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
67948         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
67949         * modules/utimensat-tests: New test.
67950         * tests/test-utimensat.c: Likewise.
67952         utimens: let lutimens work on non-symlinks
67953         * lib/utimens.c (lutimens): Fall back to utimens rather than
67954         failing with ENOSYS, when file is not a symlink.
67955         (utimens): Reduce redirection.
67956         * tests/test-lutimens.h (test_lutimens): Update test to cover
67957         non-symlinks.
67958         * tests/test-utimens.h (test_utimens): Update test to cover
67959         symlinks.
67960         * tests/test-utimens.c (main): Update caller.
67962         utimens: cache whether utimensat syscall works
67963         * lib/utimens.c (utimensat_works_really): New cache variable.
67964         (fdutimens, lutimens): Use it to avoid failing syscall.
67966         test-stat-time, test-utimens: improve portability
67967         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
67968         ext4 on alpha, and for cygwin.
67969         * tests/test-utimens-common.h: New file.
67970         (nap): Factor delays into single function.
67971         * tests/test-lutimens.h (test_lutimens): Use new header.
67972         * tests/test-futimens.h (test_futimens): Likewise.
67973         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
67974         timestamps to occur from same machine, as was done previously for
67975         test_utimens.
67976         * modules/utimens-tests (Files): Ship new file.
67977         * modules/futimens-tests (Files): Likewise.
67978         Reported in part by Jim Meyering.
67980         sys_stat: sort replacement declarations
67981         * lib/sys_stat.in.h: Sort declarations.
67982         * lib/futimens.c (futimens): Fix typo.
67984 2009-10-15  Jim Meyering  <meyering@redhat.com>
67986         don't let environment settings perturb build
67987         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
67988         could cause a configure-time and/or build-time malfunction.
67989         Typically, a configure-time function-in-library test is performed
67990         via code like this:
67992           LIB_VAR=
67993           AC_SUBST([LIB_VAR])
67994           prefix_saved_LIBS=$LIBS
67995             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
67996                        [test "$ac_cv_search_FUNC" = "none required" ||
67997                         LIB_VAR=$ac_cv_search_FUNC])
67998           LIBS=$prefix_saved_LIBS
68000         However, in each of the files affected by this change, the LIB_VAR=
68001         initialization was omitted.  Thus, when set in the environment, its
68002         value would propagate into generated Makefiles when FUNC is not found
68003         in LIB_NAME.
68004         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
68005         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
68006         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68008 2009-10-14  Eric Blake  <ebb9@byu.net>
68010         fchdir: avoid infinite recursion in mingw
68011         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
68012         recursing.
68014         test-stat-time: port to mingw
68015         * tests/test-stat-time.c (force_unlink): Return a value.
68016         (test_ctime) [W32]: Fix compilation error.
68017         (nap): Don't call usleep with too large an argument.  Use
68018         force_unlink.
68019         * doc/pastposix-functions/usleep.texi (usleep): Document the
68020         portability issue.
68022 2009-10-13  Jim Meyering  <meyering@redhat.com>
68024         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
68025         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
68026         * modules/pipe-filter-ii: Likewise.
68027         * modules/sys_socket-tests: Likewise.
68028         * modules/tsearch-tests: Likewise.
68029         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
68030         (check): Depend on it.
68032 2009-10-12  Eric Blake  <ebb9@byu.net>
68034         utimens-tests: port to NFS file systems
68035         * tests/test-utimens.h (test_utimens): Refactor utimecmp
68036         comparisons to avoid spurious failures from timestamp drift
68037         between NFS machines.
68039 2009-10-12  Eric Blake  <ebb9@byu.net>
68041         stat-time-tests: minor cleanups
68042         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
68043         * tests/test-stat-time.c (nap): Separate assignment from call.
68044         Suggested by Paolo Bonzini and Bruno Haible.
68046         sys_stat: guarantee struct timespec
68047         * lib/sys_stat.in.h (includes): Always include <time.h>
68048         * modules/sys_stat (Depends-on): Add time.
68049         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
68050         mode_t permission values.
68051         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
68052         get at subsecond timestamps.
68054 2009-10-10  Eric Blake  <ebb9@byu.net>
68056         futimens: new module
68057         * modules/futimens: New file.
68058         * lib/futimens.c (futimens): Likewise.
68059         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
68060         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
68061         we can work around Linux bugs.
68062         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
68063         * modules/sys_stat (Makefile.am): Substitute them.
68064         * lib/sys_stat.in.h (futimens): Declare it.
68065         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
68066         * doc/posix-functions/futimens.texi (futimens): Likewise.
68067         * modules/futimens-tests: New test.
68068         * tests/test-futimens.c: Likewise.
68070         utimens: introduce fdutimens
68071         * lib/utimens.h (fdutimens): New prototype.
68072         * lib/utimens.c (gl_futimens): Move guts...
68073         (fdutimens): ...to new interface.
68074         * tests/test-utimens.c (do_fdutimens): Use it.
68076         utimens: add UTIME_NOW and UTIME_OMIT support
68077         * lib/utimens.c (validate_timespec, update_timespec): New helper
68078         functions.
68079         (gl_futimens, lutimens): Use them.
68080         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
68081         stdbool, sys_stat.
68082         (Link): Mention resulting library dependency.
68083         * modules/utimecmp (Link): Likewise.
68084         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
68085         (Makefile.am): Pick up library dependency.
68086         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
68087         definition.
68088         * tests/test-sys_stat.c: Test the definitions.
68089         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
68090         * NEWS: Document library dependency.
68092         utimecmp: support symlink timestamps
68093         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
68094         hashing when possible.  Use pathconf when available.
68095         (SYSCALL_RESOLUTION): Recognize tighter resolution.
68096         * modules/utimecmp (Depends-on): Add lstat.
68098         utimens: add lutimens interface
68099         * lib/utimens.c (lutimens): New function.
68100         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
68101         * lib/utimens.h (lutimens): Declare new interface.
68102         * tests/test-utimens.c (main): Enhance test.
68103         * tests/test-lutimens.h (test_lutimens): New file.
68104         * modules/utimens-tests (Files): Distribute it.
68105         (Depends-on): Add symlink.
68106         (configure.ac): Check for usleep.
68108         utimens: validate futimens usage
68109         * lib/utimens.c (gl_futimens): Require valid fd up front, using
68110         fewer syscalls on failure later on.  Avoid compiler warning on
68111         mingw.
68112         * modules/utimens (Depends-on): Add dup2.
68114         utimens: add test
68115         * modules/utimens-tests: New test.
68116         * tests/test-utimens.h: New file.
68117         * tests/test-futimens.h: Likewise.
68118         * tests/test-utimens.c: Likewise.
68120         doc: mention timestamp portability issues
68121         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
68122         instead.
68123         * doc/posix-functions/utime.texi (utime): Likewise.
68124         * doc/posix-functions/utimes.texi (utimes): Likewise.
68125         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
68126         instead.
68127         * doc/posix-functions/futimens.texi (futimens): Mention utimens
68128         module.
68129         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
68130         Mention weakness with symlink timestamps.
68131         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
68132         to utimensat/futimens instead.
68133         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
68135         test-dup2: enhance test
68136         * tests/test-dup2.c (main): Also check AT_FDCWD.
68138         test-stat-time: avoid more spurious failures
68139         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
68140         xfs; and avoid race if the two timestamps cross quantization edge.
68142         relocatable: prefer 'file system' over 'filesystem'
68143         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
68144         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
68145         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
68146         * doc/relocatable.texi (Enabling Relocatability): Likewise.
68147         * lib/relocatable.c (compute_curr_prefix): Likewise.
68149 2009-10-10  Jim Meyering  <meyering@redhat.com>
68151         stat-time-tests: check for the usleep function
68152         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
68154 2009-10-10  Bruno Haible  <bruno@clisp.org>
68156         * modules/xnanosleep: Put the Link section after the Include section.
68158 2009-10-09  Eric Blake  <ebb9@byu.net>
68160         dup2: work around FreeBSD 6.1 bug
68161         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
68162         * doc/posix-functions/dup2.texi (dup2): Document it.
68163         Reported by Nelson H. F. Beebe and Jim Meyering.
68165         test-stat-time: port to buggy NFS clients
68166         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
68167         (test_ctime): Also skip test if mtime and ctime are skewed.
68169         maint: prefer 'file system' over 'filesystem'
68170         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
68171         * doc/posix-functions/lstat.texi (lstat): Likewise.
68172         * lib/file-has-acl.c (file_has_acl): Likewise.
68173         * lib/fwriteerror.c [TEST]: Likewise.
68174         * tests/test-areadlink.h (test_areadlink): Likewise.
68175         * tests/test-areadlinkat-with-size.c (main): Likewise.
68176         * tests/test-areadlinkat.c (main): Likewise.
68177         * tests/test-canonicalize-lgpl.c (main): Likewise.
68178         * tests/test-canonicalize.c (main): Likewise.
68179         * tests/test-fstatat.c (main): Likewise.
68180         * tests/test-linkat.c (main): Likewise.
68181         * tests/test-lstat.h (test_lstat_func): Likewise.
68182         * tests/test-mkdir.h (test_mkdir): Likewise.
68183         * tests/test-readlink.h (test_readlink): Likewise.
68184         * tests/test-remove.c (main): Likewise.
68185         * tests/test-rename.h (test_rename): Likewise.
68186         * tests/test-renameat.c (main): Likewise.
68187         * tests/test-rmdir.h (test_rmdir_func): Likewise.
68188         * tests/test-symlink.h (test_symlink): Likewise.
68189         * tests/test-symlinkat.c (main): Likewise.
68190         * tests/test-unlink.h (test_unlink_func): Likewise.
68191         * tests/test-unlinkat.c (main): Likewise.
68193         maint: make realtime library usage explicit
68194         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
68195         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
68196         * modules/settime (Link): Likewise.
68197         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
68199         test-stat-time: speed up execution
68200         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
68201         warning on mingw.
68202         (nap): New helper function.
68203         (prepare_test): Use it to reduce sleep time.
68204         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
68205         execution.
68206         * modules/stat-time-tests (configure.ac): Check for usleep.
68208 2009-10-09  Jim Meyering  <meyering@redhat.com>
68210         selinux-h: always use getfilecon wrappers
68211         * lib/getfilecon.c: New file.
68212         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
68213         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
68214         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
68215         (fgetfilecon): Provide a stub.
68216         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
68217         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
68218         file unconditionally.
68219         When <selinux/selinux.h> is found, arrange to use wrappers.
68220         * modules/selinux-h (Files): Add getfilecon.c.
68221         (Makefile.am): Substitute include-next-related bits
68222         into the now-always-generated selinux/selinux.h file.
68223         * doc/glibc-functions/lgetfilecon.texi: New file.
68224         * doc/glibc-functions/fgetfilecon.texi: New file.
68225         * doc/glibc-functions/getfilecon.texi: New file.
68226         * doc/glibc-functions/getfilecon-desc.texi: New file.
68227         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
68228         which to pull in the new files.
68229         * MODULES.html.sh (Misc): Add selinux-h.
68231 2009-10-08  Jim Meyering  <meyering@redhat.com>
68233         unistd: fix comment typo
68234         * lib/unistd.in.h (euidaccess): Fix a comment typo.
68236 2009-10-08  Eric Blake  <ebb9@byu.net>
68238         areadlink: use SIZE_MAX consistently
68239         * modules/areadlink (Depends-on): Add stdint.
68240         * modules/areadlink-with-size (Depends-on): Likewise.
68241         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
68242         gives NULL; drop sys/types, since unistd gives size_t; and add
68243         stdint for SIZE_MAX.
68244         (SIZE_MAX): Rely on headers.
68245         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
68246         and add stdint.
68247         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
68248         (SIZE_MAX): Likewise.
68249         (INITIAL_BUF_SIZE): Turn into enum.
68250         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
68252 2009-10-08  Jim Meyering  <meyering@redhat.com>
68254         areadlinkat: avoid compilation failure
68255         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
68256         Fix typo in comment.
68258 2009-10-07  Eric Blake  <ebb9@byu.net>
68260         areadlinkat-with-size: new module
68261         * modules/areadlinkat-with-size: New module.
68262         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
68263         * lib/areadlink.h (areadlinkat): Declare it.
68264         * MODULES.html.sh (File system functions): Mention it.
68265         * modules/areadlinkat-with-size-tests: New test.
68266         * tests/test-areadlinkat-with-size.c: New file.
68268         xreadlinkat: new module
68269         * modules/xreadlinkat: New module.
68270         * lib/xreadlinkat.c (xreadlinkat): New file.
68271         * lib/xreadlink.h (xreadlinkat): Declare it.
68272         * MODULES.html.sh (File system functions): Mention it.
68274         areadlinkat: new module
68275         * lib/at-func.c (FUNC_FAIL): New define.
68276         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
68277         * modules/areadlinkat: New module.
68278         * lib/linkat.c (areadlinkat): Move...
68279         * lib/areadlinkat.c (areadlinkat): ...to new file.
68280         * lib/areadlink.h (areadlinkat): Declare it.
68281         * modules/linkat (Depends-on): Add areadlinkat.
68282         * MODULES.html.sh (File system functions): Mention it.
68283         * modules/areadlinkat-tests: New test.
68284         * tests/test-areadlinkat.c: New file.
68286         areadlink, areadlink-with-size: add tests
68287         * modules/areadlink-tests: New test.
68288         * modules/areadlink-with-size-tests: Likewise.
68289         * tests/test-areadlink.h: New file.
68290         * tests/test-areadlink.c: Likewise.
68291         * tests/test-areadlink-with-size.c: Likewise.
68293         maint: minor cleanups
68294         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
68295         _UNUSED_PARAMETER_ instead.
68296         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
68297         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
68298         * modules/linkat-tests (Files): Distribute test-link.h.
68300         openat, utimens: whitespace cleanup
68301         * lib/openat.c: Prefer space throughout, rather than mix of 8
68302         spaces vs. tabs.
68303         * lib/at-func.c: Likewise.
68304         * lib/utimens.c: Likewise.
68306         openat: avoid using wrong fd
68307         * lib/openat.c (openat_permissive): Reject user's fd if saving the
68308         working directory chooses same fd.
68309         * lib/at-func.c (AT_FUNC_NAME): Likewise.
68311         mkdir, mkdirat: fix cygwin 1.5.x bug
68312         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
68313         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
68314         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
68315         bug.
68316         (gl_PREREQ_MKDIR): Delete unused macro.
68317         * modules/mkdir (Files): Track file rename.
68318         (configure.ac): Update macro name.
68319         * modules/openat (Depends-on): Add mkdir.
68320         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
68322         mkdir, mkdirat: add tests
68323         * modules/mkdir-tests: New test.
68324         * tests/test-mkdir.h: New file.
68325         * tests/test-mkdir.c: Likewise.
68326         * tests/test-mkdirat.c: Likewise.
68327         * modules/openat-tests (Files): Add new files.
68328         (Makefile.am): Run new test.
68330 2009-10-06  Eric Blake  <ebb9@byu.net>
68332         doc: tweak *at function documentation
68333         * doc/posix-functions/faccessat.texi (faccessat): Mention
68334         known issue with replacement.
68335         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
68336         * doc/posix-functions/linkat.texi (linkat): Likewise.
68337         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
68338         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
68339         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
68340         * doc/posix-functions/renameat.texi (renameat): Likewise.
68341         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
68343         openat: fix GNU/Hurd bug in unlinkat
68344         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
68345         broken.
68346         * doc/posix-functions/unlink.texi (unlink): Document this.
68347         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
68349         fdopendir: fix GNU/Hurd bug
68350         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
68351         allowing non-directory fds.
68352         * lib/fdopendir.c (rpl_fdopendir): Work around it.
68353         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
68354         * modules/dirent (Makefile.am): Substitute it.
68355         * lib/dirent.in.h (fdopendir): Declare replacement.
68356         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
68357         * tests/test-fdopendir.c (main): Test something other than
68358         /dev/null, since on Hurd that behaves like a directory.
68360         test-symlink: port to GNU/Hurd
68361         * tests/test-symlink.h (test_symlink): Relax expected errno.
68363         doc: tweak more cygwin information
68364         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
68365         now compatible with glibc.
68366         * doc/posix-functions/getopt.texi (getopt): Likewise.
68368         getopt-gnu: add another test
68369         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
68370         guarantee behavior relied on by m4.
68371         * tests/test-getopt.c (main): Use it.
68372         * modules/getopt-posix-tests (Depends-on): Add setenv.
68373         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
68375         getopt: fix compilation on darwin
68376         * lib/getopt.in.h (includes): Leave breadcrumbs during system
68377         include.
68378         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
68379         Reported by Ludovic Courtès.
68381 2009-10-06  Bruno Haible  <bruno@clisp.org>
68383         * modules/size_max (Description): Discourage its use.
68384         Reported by Simon Josefsson.
68386 2009-10-06  Jim Meyering  <meyering@redhat.com>
68388         linkat: avoid compilation failure
68389         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
68391 2009-10-05  Eric Blake  <ebb9@byu.net>
68393         linkat: support Linux 2.6.17
68394         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
68395         linkat on Linux, but allow cache variable override.
68396         * lib/linkat.c (rpl_linkat): Define override.
68397         * modules/linkat (Depends-on): Add symlinkat.
68398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
68399         * modules/unistd (Makefile.am): Substitute it.
68400         * lib/unistd.in.h (linkat): Declare replacement.
68401         Reported by Pádraig Brady.
68403         quotearg: port test to systems with C.UTF-8 locale
68404         * tests/test-quotearg.c (struct result_strings): Add another
68405         member, differentiating between C.ASCII and C.UTF-8 handling.
68406         (compare_strings): Add parameter.
68407         (main): Adjust all callers.
68409         getopt: avoid clash with FreeBSD _getopt_internal
68410         * lib/getopt.in.h (_getopt_internal): Override the name.
68411         * lib/getopt_int.h (includes): Pick up any overrides.
68412         Reported by Reuben Thomas.
68414         hash: allow C89 compilation
68415         * lib/hash.c (check_tuning): Move declaration before statement.
68416         Reported by Reuben Thomas.
68418 2009-10-05  Karl Berry  <karl@gnu.org>
68420         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
68422 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
68423             Bruno Haible  <bruno@clisp.org>
68425         * lib/uname.c (uname): Use a table-driven algorithm to compute
68426         Windows NT versions.
68428 2009-10-04  Bruno Haible  <bruno@clisp.org>
68430         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
68431         program_invocation_short_name.
68432         * modules/progname (configure.ac): Test for presence of
68433         program_invocation_short_name.
68434         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
68436 2009-10-04  Bruno Haible  <bruno@clisp.org>
68438         * lib/progname.c (set_program_name): Fix comment.
68439         Reported by Jim Meyering.
68441 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
68442             Bruno Haible  <bruno@clisp.org>
68444         * lib/uname.c: Include <string.h>.
68445         (uname): Do only one call to GetVersionEx in the common case.
68447 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
68448             Bruno Haible  <bruno@clisp.org>
68450         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
68451         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
68452         (uname): Add support for Windows CE and various non-x86 CPU types.
68454 2009-10-03  Bruno Haible  <bruno@clisp.org>
68456         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
68457         invocation to tests/configure.ac.
68458         Reported by Ian Beckwith <ianb@erislabs.net>.
68460 2009-10-02  Eric Blake  <ebb9@byu.net>
68462         fchdir: avoid compiler warning
68463         * lib/fchdir.c (canonicalize_file_name)
68464         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
68466         test-open: support mingw errno values
68467         * tests/test-open.h (test_open): Relax test.
68468         * tests/test-fopen.h (test_fopen): Likewise.
68469         * tests/test-openat-safer.c (main): Likewise.
68471         open: fix opening directory on mingw
68472         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
68474         test-open: on GNU/Hurd, /dev/null is a directory
68475         * tests/test-fopen.h (main): Rename...
68476         (test_fopen): ...to this.  Use a guaranteed non-directory when
68477         confirming open behavior on trailing slash.
68478         * tests/test-openat-safer.c (main): Likewise.
68479         * tests/test-open.h (main): Likewise....
68480         (test_open): ...to this.
68481         * tests/test-fopen.c (main): Adjust caller.
68482         * tests/test-fopen-safer.c (main): Likewise.
68483         * tests/test-open.c (main): Likewise.
68484         * tests/test-fcntl-safer.c (main): Likewise.
68485         Reported by Samuel Thibault.
68487         rename, fchdir: don't ignore chdir failure
68488         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
68489         * lib/rename.c (rpl_rename) [W32]: Likewise.
68490         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
68491         an empty destination directory if source cannot be renamed,
68492         although there is still possibility for failure.
68493         * doc/posix-functions/rename.texi (rename): Document the race.
68494         Reported by Jim Meyering.
68496         maint: cleanup whitespace in recent commits
68497         * lib/rename.c (rpl_rename): Remove tabs.
68498         * tests/test-link.h (test_link): Likewise.
68499         * lib/fchdir.c (get_name): Likewise.
68500         Reported by Jim Meyering.
68502 2009-10-02  Ben Pfaff  <blp@gnu.org>
68504         relocatable-prog-wrapper: Add missing dependency on
68505         double-slash-root.
68506         * modules/relocatable-prog-wrapper: Add dependency.
68507         Reported by Ian Beckwith <ianb@erislabs.net>.
68509 2009-10-02  Eric Blake  <ebb9@byu.net>
68511         renameat: fix Solaris bugs
68512         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
68513         needed fixing.
68514         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
68515         * modules/stdio (Makefile.am): Substitute it.
68516         * lib/stdio.in.h (renameat): Declare replacement.
68517         * lib/renameat.c (rpl_renameat): Implement fix.
68519         renameat: new module
68520         * modules/renameat: New file.
68521         * lib/renameat.c (renameat): Likewise.
68522         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
68523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
68524         * modules/stdio (Makefile.am): Substitute them.
68525         * lib/stdio.in.h (renameat): Declare it.
68526         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
68527         * doc/posix-functions/renameat.texi (renameat): Likewise.
68528         * modules/renameat-tests: New test.
68529         * tests/test-renameat.c: Likewise.
68531         rename: fix mingw bugs
68532         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
68533         directory overwrite bugs.
68535         rename: fix another cygwin 1.5 bug
68536         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
68537         checks.
68538         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
68539         unnecessary cygwin workarounds.  Also work around bug with moving
68540         full directory onto an empty one.
68541         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
68543         rename-dest-slash: merge into rename module
68544         * modules/rename-dest-slash (Status): Mark obsolete.
68545         (Depends-on): Add rename.
68546         (Files): Let rename do it all.
68547         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
68548         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
68549         * m4/rename-dest-slash.m4: ...so this file can be deleted.
68550         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
68551         * lib/rename.c (rpl_rename): Update comments.
68553         rename: fix cygwin 1.5.x bugs
68554         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
68555         * lib/rename.c (rpl_rename): Work around them.
68556         * modules/rename (Depends-on): Add same-inode.
68558         rename: fix Solaris 10 bug
68559         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
68560         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
68561         was the only bug.
68563         rename: fix Solaris 9 bug
68564         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
68565         on non-directory.  Avoid calling exit.
68566         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
68567         strdup.
68568         * modules/rename-tests (Depends-on): Drop lstat.
68569         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
68570         (gl_PREREQ_RENAME): Delete unused macro.
68572         rename-dest-slash: fix NetBSD bug
68573         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
68574         links.
68575         * modules/rename-dest-slash (Depends-on): Add same-inode.
68577         rename-tests: new test, exposes several platform bugs
68578         * modules/rename-tests: New file.
68579         * tests/test-rename.h: Likewise.
68580         * tests/test-rename.c: Likewise.
68581         * doc/posix-functions/rename.texi (rename): Improve documentation,
68582         including bugs that will eventually be fixed in gnulib.
68584 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
68586         * lib/uname.c: Include <stdlib.h>
68587         (uname): Assume version info is available.
68589 2009-10-02  Jim Meyering  <meyering@redhat.com>
68591         gnu-web-doc-update: correct --help output
68592         * build-aux/gnu-web-doc-update: Make --help output relevant.
68594         gnu-web-doc-update: add standard options
68595         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
68597         gnu-web-doc-update: New module.
68598         Use this script to automatically update the on-line web documentation
68599         for your GNU project at http://www.gnu.org/software/$pkg/manual/
68600         * modules/gnu-web-doc-update: New file, from coreutils.
68601         * build-aux/gnu-web-doc-update: New script.
68603 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
68605         link: LoadLibrary is not needed.
68606         * lib/link.c: Use GetModuleHandle.
68608 2009-10-01  Eric Blake  <ebb9@byu.net>
68610         getopt: bump serial number
68611         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
68612         change.
68614         tests: tighten link, rmdir, and remove tests
68615         * tests/test-link.h (includes): No need to use <config.h> here.
68616         Clean up if directory hard link was created, otherwise test for
68617         trailing '.'.
68618         * tests/test-linkat.c (main): Simplify.
68619         * tests/test-remove.c (main): Enhance test for trailing '.'.
68620         * tests/test-rmdir.h (test_rmdir_func): Likewise.
68622 2009-10-01  Jim Meyering  <meyering@redhat.com>
68624         maint.mk: requiring "make major" was annoying, for a "minor" release.
68625         What is intended is "stable", to contrast with alpha and beta,
68626         so require "make stable", not "make major".
68627         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
68628         (get_tool_versions): Likewise.
68629         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
68631 2009-09-30  Ben Pfaff  <blp@gnu.org>
68633         Fix broken build of replacement for Windows tmpfile().
68634         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
68635         flags argument added along with the 'mkostemp' module.
68637 2009-09-28  Bruno Haible  <bruno@clisp.org>
68639         Avoid identifier clash with POSIX function 'remove' defined as a macro.
68640         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
68641         to 'remove_elt'.
68642         (gl_list_remove): Update.
68643         * lib/gl_list.c (gl_list_remove): Update.
68644         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
68645         to 'remove_elt'.
68646         (gl_oset_remove): Update.
68647         * lib/gl_list.c (gl_oset_remove): Update.
68648         Reported by Eric Blake.
68650 2009-09-28  Eric Blake  <ebb9@byu.net>
68652         doc: mention yet more cygwin 1.7 status
68653         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
68654         cygwin.
68655         * doc/glibc-functions/execvpe.texi (execvpe): New file.
68656         * doc/gnulib.texi (Glibc unistd.h): Mention it.
68658         argp: fix test failure
68659         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
68660         that are not upper-case.  Pass correct range to tolower.
68662 2009-09-27  Jim Meyering  <meyering@redhat.com>
68664         test-yesno: work around sparc-dash here-document infelicity
68665         Without this change, the literal \177 byte in a here document
68666         would make dash 0.5.5.1-3 access uninitialized memory.
68667         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
68668         Instead, use a marker, "@", and filter through tr to create the desired
68669         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
68671 2009-09-27  Bruno Haible  <bruno@clisp.org>
68673         Disable untested support for new flavours of ACLs on AIX.
68674         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
68675         progress.
68676         * lib/set-mode-acl.c (qset_acl): Likewise.
68678 2008-12-07  Bruno Haible  <bruno@clisp.org>
68680         Add support for new flavours of ACLs on AIX. (Untested.)
68681         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
68682         (file_has_acl): Add support for newer AIX.
68683         * lib/set-mode-acl.c (qset_acl): Likewise.
68684         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
68685         Rainer Tammer <tammer@tammer.net>.
68687 2009-09-26  Eric Blake  <ebb9@byu.net>
68689         argp: fix compilation of getopt
68690         * lib/getopt.in.h (includes): Use different guard than glibc.
68691         Reported by Sergey Poznyakoff.
68693         doc: mention more cygwin 1.7 status
68694         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
68695         bug.
68696         * doc/posix-functions/execl.texi (execl): Likewise.
68697         * doc/posix-functions/execle.texi (execle): Likewise.
68698         * doc/posix-functions/execlp.texi (execlp): Likewise.
68699         * doc/posix-functions/execv.texi (execv): Likewise.
68700         * doc/posix-functions/execve.texi (execve): Likewise.
68701         * doc/posix-functions/execvp.texi (execvp): Likewise.
68702         * doc/glibc-functions/canonicalize_file_name.texi
68703         (canonicalize_file_name): Cygwin 1.7 now provides this.
68704         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
68705         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
68706         on AT_SYMLINK_NOFOLLOW.
68708 2009-09-24  Eric Blake  <ebb9@byu.net>
68710         test-linkat: make test more robust
68711         * tests/test-linkat.c (main): Avoid collision with EEXIST.
68713         getopt: fix inclusion guards for cygwin
68714         * modules/getopt-posix (Depends-on): Add include-next.
68715         (Makefile.am): Substitute more items in replacement header.
68716         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
68717         <getopt.h>.
68718         * lib/getopt.in.h (includes): Use split inclusion guard, and
68719         prefer <getopt.h> over include <unistd.h> when one is present.
68720         (option): Also override name of 'struct option'.
68722         same-inode: revert prior change; it is not yet ready
68723         * NEWS: Undo mention of this change.
68724         * lib/same-inode.h (same-inode.h): Undo tri-state change.
68725         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
68726         * lib/cycle-check.c (cycle_check): Likewise.
68727         * lib/same.c (same_name): Likewise.
68728         * lib/at-func2.c (at_func2): Likewise.
68730 2009-09-23  Eric Blake  <ebb9@byu.net>
68732         linkat: new module
68733         * modules/linkat: New file.
68734         * lib/at-func2.c (at_func2): Likewise.
68735         * lib/linkat.c (linkat): Likewise.
68736         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
68737         * lib/openat-priv.h (at_func2): Add declaration.
68738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
68739         * modules/unistd (Makefile.am): Substitute them.
68740         * lib/unistd.in.h (linkat): Declare it.
68741         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
68742         * doc/posix-functions/linkat.texi (linkat): Likewise.
68743         * doc/posix-functions/link.texi (link): Tweak wording.
68744         * tests/test-link.c (main): Move guts...
68745         * tests/test-link.h (test_link): ...into new file.
68746         * modules/linkat-tests: New test.
68747         * tests/test-linkat.c: Likewise.
68748         * modules/link-tests (Files): Ship new file.
68749         (Depends-on): Add stdbool.
68751         dirname: add library-safe mdir_name
68752         * lib/dirname.h (mdir_name): New prototype.
68753         * lib/dirname.c (dir_name): Move guts...
68754         (mdir_name): ...to new function that avoids xalloc_die.
68756         fchdir: another mingw fix
68757         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
68758         * lib/fchdir.c (get_name): New helper method; skips canonicalize
68759         on mingw (where it has not yet been ported), and make it optional
68760         elsewhere.
68761         (_gl_register_fd): Use it.
68763         same-inode: make SAME_INODE tri-state, to port to mingw
68764         * NEWS: Mention this change.
68765         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
68766         st_ino always being 0.
68767         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
68768         * lib/cycle-check.c (cycle_check): Likewise.
68769         * lib/same.c (same_name): Likewise.
68771         lstat: avoid mingw compilation error
68772         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
68773         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
68774         lstat ourselves.
68775         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
68776         was adequate.
68777         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
68778         the checks for lstat.
68779         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
68781         link: fix test failure on Solaris 9
68782         * lib/link.c (rpl_link): Don't assume link will catch bogus
68783         trailing slash on source.
68785         test-symlinkat: enhance test
68786         * tests/test-readlink.c (main): Move guts...
68787         * tests/test-readlink.h (test_readlink): ...into new file.
68788         * tests/test-symlink.c (main): Move guts...
68789         * tests/test-symlink.h (test_symlink): ...into new file.
68790         * tests/test-symlinkat.c (main): Use new files for further
68791         coverage.
68792         (do_symlink, do_readlink): New helper functions.
68793         * modules/symlink-tests (Files): Ship new file.
68794         (Depends-on): Add stdbool.
68795         * modules/readlink-tests (Files): Ship new file.
68796         (Depends-on): Add stdbool.
68797         * modules/symlinkat-tests (Files): Use new files.
68799 2009-09-23  Eric Blake  <ebb9@byu.net>
68801         readlink: document portability issue with symlink length
68802         * doc/posix-functions/lstat.texi (lstat): Mention that some file
68803         systems have bogus st_size on symlinks, and mention the
68804         areadlink-with-size module.
68805         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
68806         * doc/posix-functions/readlink.texi (readlink): Mention the
68807         areadlink module, and ERANGE failure.
68808         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
68809         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
68811         readlink: fix Solaris 9 bug with trailing slash
68812         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
68813         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
68814         * doc/posix-functions/readlink.texi (readlink): Document this.
68815         * modules/readlink-tests: New test.
68816         * tests/test-readlink.c: Likewise.
68818         readlink: fix cygwin 1.5.x bug with return type
68819         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
68820         * lib/unistd.in.h (readlink): Use ssize_t.
68821         * lib/readlink.c (readlink): Likewise.
68822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
68823         * modules/unistd (Makefile.am): Substitute it.
68824         * lib/unistd.in.h (readlink): Declare replacement.
68825         * doc/posix-functions/readlink.texi (readlink): Document this.
68827         symlink: use throughout gnulib
68828         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
68829         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
68830         symlink is not used.
68831         * modules/symlinkat (Depends-on): Add symlink.
68832         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
68833         * modules/canonicalize-tests (Depends-on): Likewise.
68834         * modules/lstat-tests (Depends-on): Likewise.
68835         * modules/openat-tests (Depends-on): Likewise.
68836         * modules/remove-tests (Depends-on): Likewise.
68837         * modules/rmdir-tests (Depends-on): Likewise.
68838         * modules/unlink-tests (Depends-on): Likewise.
68839         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
68840         * tests/test-canonicalize.c (symlink): Likewise.
68841         * tests/test-fstatat.c (symlink): Likewise.
68842         * tests/test-lstat.c (symlink): Likewise.
68843         * tests/test-remove.c (symlink): Likewise.
68844         * tests/test-rmdir.c (symlink): Likewise.
68845         * tests/test-unlink.c (symlink): Likewise.
68846         * tests/test-unlinkat.c (symlink): Likewise.
68848         symlink: new module, for Solaris 9 bug
68849         * modules/symlink: New file.
68850         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
68851         * lib/symlink.c: Likewise.
68852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
68853         * modules/unistd (Makefile.am): Substitute them.
68854         * lib/unistd.in.h (symlink): Declare replacement.
68855         * MODULES.html.sh (File system functions): Mention it.
68856         * doc/posix-functions/symlink.texi (symlink): Likewise.
68857         * modules/symlink-tests: New test.
68858         * tests/test-symlink.c: Likewise.
68860 2009-09-23  Bruno Haible  <bruno@clisp.org>
68862         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
68863         when needed.
68864         Test case: gnulib-tool --import --with-tests atexit inttypes.
68865         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
68867 2009-09-23  Bruno Haible  <bruno@clisp.org>
68869         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
68870         subcommand, not in a subshell.
68872 2009-09-22  Eric Blake  <ebb9@byu.net>
68874         unistd: sort replacement declarations
68875         * lib/unistd.in.h: Sort declarations.
68877         open, openat: minor optimization
68878         * lib/open.c (open): If open succeeded, len is non-zero.
68879         * lib/openat.c (rpl_openat): Likewise.
68881         link-follow: ensure correct result
68882         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
68883         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
68884         distinguish between possible failures.
68886 2009-09-21  Eric Blake  <ebb9@byu.net>
68888         fts: avoid compiler warning
68889         * lib/fts.c (dirent_inode_sort_may_be_useful)
68890         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
68892 2009-09-19  Bruno Haible  <bruno@clisp.org>
68894         * lib/progreloc.c (canonicalize_file_name): New declaration.
68896 2009-09-19  Eric Blake  <ebb9@byu.net>
68898         link: fix quoting
68899         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
68901         openat: fix openat bugs on Solaris 9
68902         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
68903         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
68904         * modules/openat (Depends-on): Add open.
68905         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
68906         * modules/fcntl-h (Makefile.am): Substitute it.
68907         * lib/fcntl.in.h (openat): Declare replacement.
68908         * doc/posix-functions/openat.texi (openat): Document this.
68910         openat: move fstatat and unlinkat into correct files
68911         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
68912         compiled.
68913         * lib/openat.c (fstatat, unlinkat): Move...
68914         * lib/fstatat.c (fstatat): ...into correct files.
68915         * lib/unlinkat.c (unlinkat): Likewise.
68917         openat: fix unlinkat bugs on Solaris 9
68918         * lib/unlinkat.c (unlinkat): New file.
68919         * modules/openat (Depends-on): Add unlink.
68920         (Files): Distribute it.
68921         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
68922         trailing slash behavior is broken.
68923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
68924         * modules/unistd (Makefile.am): Substitute it.
68925         * lib/unistd.in.h (unlinkat): Declare replacement.
68926         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
68928         openat: fix fstatat bugs on Solaris 9
68929         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
68930         stat.
68931         * doc/posix-functions/fstatat.texi (fstatat): Document this.
68933         test-unlinkat: enhance test, to expose Solaris 9 bug
68934         * tests/test-unlink.c (main): Factor guts...
68935         * tests/test-unlink.h (test_rmdir_func): ...into new file.
68936         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
68937         * tests/test-rmdir.c (main): Adjust caller.
68938         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
68939         (unlinker): New helper function.
68940         (rmdirat): Enhance check.
68941         * modules/rmdir-tests (Depends-on): Add stdbool.
68942         * modules/unlink-tests (Depends-on): Likewise.
68943         (Files): Add test-unlink.h.
68944         * modules/openat-tests (Files): Likewise.
68945         (Depends-on): Add unlinkdir.
68947         test-fstatat: new test, to expose Solaris 9 bugs
68948         * tests/test-stat.c (main): Factor guts...
68949         * tests/test-stat.h (test_stat_func): ...into new file.
68950         * tests/test-lstat.c (main): Factor guts...
68951         * tests/test-lstat.h (test_lstat_func): ...into new file.
68952         * tests/test-fstatat.c: New file.
68953         * modules/stat-tests (Files): Add test-stat.h.
68954         * modules/lstat-tests (Files): Add test-lstat.h.
68955         (Depends-on): Add stdbool.
68956         * modules/openat-tests (Depends-on): Add pathmax.
68957         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
68958         (Makefile.am): Run new test.
68960         remove: new module, for mingw and Solaris 9 bugs
68961         * modules/remove: New file.
68962         * lib/remove.c: Likewise.
68963         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
68964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
68965         * modules/stdio (Makefile.am): Use them.
68966         * lib/stdio.in.h (remove): Declare replacement.
68967         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
68968         * doc/posix-functions/remove.texi (remove): Likewise.
68969         * modules/remove-tests: New test.
68970         * tests/test-remove.c: Likewise.
68972         unlink: new module, for Solaris 9 bug
68973         * modules/unlink: New file.
68974         * lib/unlink.c: Likewise.
68975         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
68976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
68977         * modules/unistd (Makefile.am): Use them.
68978         * lib/unistd.in.h (stat): Declare replacement.
68979         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
68980         * doc/posix-functions/unlink.texi (unlink): Likewise.
68981         * modules/unlink-tests: New test.
68982         * tests/test-unlink.c: Likewise.
68984         lstat: fix Solaris 9 bug
68985         * lib/lstat.c (lstat): Also check for trailing slash on
68986         non-symlink, non-directories.  Use stat module to simplify logic.
68987         * doc/posix-functions/lstat.texi (lstat): Document it.
68988         * modules/lstat-tests (Depends-on): Add errno, same-inode.
68989         (configure.ac): Check for symlink.
68990         * tests/test-lstat.c (main): Add more tests.
68992         stat: add as dependency to other modules
68993         * modules/chown (Depends-on): Add stat.
68994         * modules/euidaccess (Depends-on): Likewise.
68995         * modules/fchdir (Depends-on): Likewise.
68996         * modules/isdir (Depends-on): Likewise.
68997         * modules/link (Depends-on): Likewise.
68998         * modules/lstat (Depends-on): Likewise.
68999         * modules/mkdir-p (Depends-on): Likewise.
69000         * modules/modechange (Depends-on): Likewise.
69001         * modules/open (Depends-on): Likewise.
69002         * modules/readlink (Depends-on): Likewise.
69003         * modules/same (Depends-on): Likewise.
69005         stat: fix Solaris 9 bug
69006         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
69007         slash.
69008         * lib/stat.c (rpl_stat): Work around it.
69009         * doc/posix-functions/stat.texi (stat): Update documentation.
69011         stat: new module, for mingw bug
69012         * modules/stat: New file.
69013         * lib/stat.c: Likewise.
69014         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
69015         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
69016         * modules/sys_stat (Makefile.am): Use them.
69017         * lib/sys_stat.in.h (stat): Declare replacement.
69018         * lib/openat.c (fstatat): Deal with lstat and stat being function
69019         macros.
69020         * modules/openat (Depends-on): Add inline.
69021         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
69022         * doc/posix-functions/stat.texi (stat): Likewise.
69023         * modules/stat-tests: New test.
69024         * tests/test-stat.c: Likewise.
69026 2009-09-19  Jim Meyering  <meyering@redhat.com>
69028         syntax-check: detect unnecessary inclusion of canonicalize.h
69029         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
69031 2009-09-19  Eric Blake  <ebb9@byu.net>
69033         canonicalize-lgpl: adjust clients to use correct header
69034         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
69035         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
69036         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
69037         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
69038         * lib/progreloc.c (includes): Likewise.
69040 2009-09-19  Jim Meyering  <meyering@redhat.com>
69042         test-posixtm.c: correct a comment
69043         * tests/test-posixtm.c: Correct first-line comment.
69044         Spotted by Eric Blake.
69046 2009-09-16  Jim Meyering  <meyering@redhat.com>
69048         posixtm-tests: make T const-correct; add a test case
69049         * tests/test-posixtm.c (T): Declare const.
69050         Add a test for -(2^31+1).
69051         Remove useless can-succeed-only-in-2002 test.
69053         posixtm-tests: adjust the sole failing test
69054         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
69055         expected output matches what mktime now produces.  Cross-checked via
69056         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
69058         posixtm: move #ifdef'd tests into a new module
69059         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
69060         * tests/test-posixtm.c: ... this new file.
69061         * modules/posixtm-tests: New module.
69063 2009-09-19  Eric Blake  <ebb9@byu.net>
69065         openat: simplify use of at-func.c
69066         * lib/at-func.c (includes): Include prerequisites here, to
69067         simplify requirements on client files.
69068         * lib/openat-priv.h: Add double-inclusion guard.
69069         * lib/faccessat.c (includes): Simplify.
69070         * lib/fchmodat.c (includes): Likewise.
69071         * lib/fchownat.c (includes): Likewise.
69072         * lib/mkdirat.c (includes): Likewise.
69073         * lib/mkfifoat.c (includes): Likewise.
69074         * lib/symlinkat.c (includes): Likewise.
69076         openat: allow return of fd 0
69077         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
69078         * modules/save-cwd (Depends-on): Replace fcntl-safer with
69079         unistd-safer.
69080         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
69081         <fcntl.h>; this module does not leak fds.
69082         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
69083         must be allowed to return 0, leaving openat_safer to add the
69084         safety.
69085         (openat_permissive): Avoid writing to just-opened fd 2 if
69086         restoring the current directory fails.
69087         * lib/openat-die.c (openat_restore_fail): Add comment.
69088         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
69089         (save_cwd): Guarantee safe fd, but without use of open_safer.
69090         * tests/test-openat.c: New test.
69091         * modules/openat-tests (Files, Makefile.am): Distribute and build
69092         new file.
69094         relocatable-prog-wrapper: fix build
69095         * modules/relocatable-prog-wrapper (Files): Update name of
69096         canonicalize m4 file, broken on 2009-09-17.
69097         Reported by emad hajjar <aleppos@hotmail.com>.
69099 2009-09-19  Bruno Haible  <bruno@clisp.org>
69101         * lib/safe-alloc.h: Use the standard header with GPL copyright.
69102         * lib/safe-alloc.c: Likewise.
69103         Reported by Ian Beckwith <ianb@erislabs.net>.
69105 2009-09-18  Bruno Haible  <bruno@clisp.org>
69107         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
69108         Reported by <erobles@sensacd.com.mx>.
69110 2009-09-17  Eric Blake  <ebb9@byu.net>
69112         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
69113         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
69114         slashes when checking if last component is missing.
69115         * tests/test-canonicalize.c (main): Test this.
69117         canonicalize, canonicalize-lgpl: honor // if distinct from /
69118         * modules/canonicalize (Files): Add double-slash-root.m4.
69119         * modules/canonicalize-lgpl (Files): Likewise.
69120         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
69121         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
69122         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
69123         fallback definition.
69124         (canonicalize_filename_mode): Use it to protect //.
69125         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
69126         (__realpath): Likewise.
69127         * tests/test-canonicalize.c (main): Test this.
69128         * tests/test-canonicalize-lgpl.c (main): Likewise.
69129         * modules/canonicalize-tests (Depends-on): Add same-inode.
69130         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
69132         canonicalize-lgpl: fix glibc bug with trailing slash
69133         * m4/canonicalize-lgpl.m4: Move contents...
69134         * m4/canonicalize.m4: ...here.
69135         (gl_CANONICALIZE_LGPL): Factor realpath check...
69136         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
69137         glibc 2.3.5 bug, fixed 2005-04-27.
69138         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
69139         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
69140         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
69141         * modules/canonicalize-lgpl (Files): Manage file rename.
69142         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
69143         * modules/stdlib (Makefile.am): Substitute witness.
69144         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
69145         is needed.
69146         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
69147         replacement is required.
69148         * lib/canonicalize.c (canonicalize_file_name): Likewise.
69149         * doc/glibc-functions/canonicalize_file_name.texi
69150         (canonicalize_file_name): Document this.
69151         * doc/posix-functions/realpath.texi (realpath): Likewise.
69153         canonicalize-lgpl: reject non-directory with trailing slash
69154         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
69155         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
69156         catches failures in glibc 2.3.5.
69157         * tests/test-canonicalize.c (main): Likewise.
69159         canonicalize-lgpl: use native realpath if it works
69160         * lib/canonicalize-lgpl.c (realpath): Guard with
69161         FUNC_REALPATH_WORKS.
69162         * lib/stdlib.in.h (realpath): Make declaration optional based on
69163         HAVE_REALPATH.
69164         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
69165         native realpath works.
69166         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
69167         * modules/stdlib (Makefile.am): Substitute witness.
69169         canonicalize, canonicalize-lgpl: use <stdlib.h>
69170         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
69171         (Include): Mention <stdlib.h>.
69172         (configure.ac): Mention functions we provide.
69173         * modules/canonicalize (configure.ac): Likewise.
69174         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
69175         realpath if canonicalize_file_name is missing.
69176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
69177         * modules/stdlib (Makefile.am): Substitute witnesses.
69178         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
69179         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
69180         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
69181         * NEWS: Document this.
69182         * doc/glibc-functions/canonicalize_file_name.texi
69183         (canonicalize_file_name): Likewise.
69184         * doc/posix-functions/realpath.texi (realpath): Likewise.
69185         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
69187         test-canonicalize: consolidate into single C program
69188         * tests/test-canonicalize.sh: Delete; move setup into...
69189         * tests/test-canonicalize.c (main): ...the program, making it
69190         easier to run in debugger.  Add some tests.
69191         * modules/canonicalize-tests (Files): Remove unused file.
69192         (Depends-on): Add progname.
69193         (configure.ac, Makefile.am): Simplify.
69195         test-canonicalize-lgpl: consolidate into single C program
69196         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
69197         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
69198         easier to run in debugger.  Add some tests.
69199         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
69200         (configure.ac, Makefile.am): Simplify.
69202         canonicalize: avoid resolvepath
69203         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
69204         unnecessary checks.
69205         * lib/canonicalize.c (includes): Simplify.
69206         (canonicalize_file_name): Drop resolvepath implementation.
69207         * modules/canonicalize (Depends-on): Drop filenamecat.
69209         canonicalize: don't lose errno
69210         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
69211         over calls to free.
69213         canonicalize: simplify errno handling
69214         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
69215         assignment.
69217         canonicalize, canonicalize-lgpl: update module dependencies
69218         * modules/canonicalize (Depends-on): Add extensions, lstat,
69219         pathmax, stdlib.
69220         (Files): Drop pathmax.h.
69221         (configure.ac): Adjust macro name.
69222         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
69223         lstat, stdlib, sys_stat.
69224         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
69225         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
69226         extensions.
69227         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
69228         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
69229         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
69230         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
69231         declaration, if available.
69232         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
69233         we can rely on the readlink module.
69234         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
69235         (includes): Use <unistd.h> unconditionally.
69237 2009-09-17  Eric Blake  <ebb9@byu.net>
69239         maint: make Include sections of modules consistent
69240         * modules/alloca: Use only header name; no need to list #include.
69241         * modules/alloca-opt: Likewise.
69242         * modules/arpa_inet: Likewise.
69243         * modules/canon-host: Likewise.
69244         * modules/configmake: Likewise.
69245         * modules/dirent: Likewise.
69246         * modules/eealloc: Likewise.
69247         * modules/environ: Likewise.
69248         * modules/fchdir: Likewise.
69249         * modules/fcntl: Likewise.
69250         * modules/fcntl-h: Likewise.
69251         * modules/gethrxtime: Likewise.
69252         * modules/gettime: Likewise.
69253         * modules/ignore-value: Likewise.
69254         * modules/inet_ntop: Likewise.
69255         * modules/inet_pton: Likewise.
69256         * modules/inttypes: Likewise.
69257         * modules/isnand-nolibm: Likewise.
69258         * modules/isnanf-nolibm: Likewise.
69259         * modules/mbchar: Likewise.
69260         * modules/mbfile: Likewise.
69261         * modules/mbiter: Likewise.
69262         * modules/mbuiter: Likewise.
69263         * modules/netdb: Likewise.
69264         * modules/netinet_in: Likewise.
69265         * modules/nproc: Likewise.
69266         * modules/pagealign_alloc: Likewise.
69267         * modules/poll: Likewise.
69268         * modules/printf-frexp: Likewise.
69269         * modules/pthread: Likewise.
69270         * modules/putenv: Likewise.
69271         * modules/random_r: Likewise.
69272         * modules/relocatable-prog: Likewise.
69273         * modules/search: Likewise.
69274         * modules/select: Likewise.
69275         * modules/selinux-h: Likewise.
69276         * modules/settime: Likewise.
69277         * modules/signal: Likewise.
69278         * modules/size_max: Likewise.
69279         * modules/socklen: Likewise.
69280         * modules/ssize_t: Likewise.
69281         * modules/stdarg: Likewise.
69282         * modules/stdbool: Likewise.
69283         * modules/stddef: Likewise.
69284         * modules/stdint: Likewise.
69285         * modules/stdio: Likewise.
69286         * modules/stdlib: Likewise.
69287         * modules/string: Likewise.
69288         * modules/strings: Likewise.
69289         * modules/sys_file: Likewise.
69290         * modules/sys_ioctl: Likewise.
69291         * modules/sys_select: Likewise.
69292         * modules/sys_socket: Likewise.
69293         * modules/sys_stat: Likewise.
69294         * modules/sys_time: Likewise.
69295         * modules/sys_times: Likewise.
69296         * modules/sys_utsname: Likewise.
69297         * modules/sys_wait: Likewise.
69298         * modules/sysexits: Likewise.
69299         * modules/time: Likewise.
69300         * modules/times: Likewise.
69301         * modules/tmpfile: Likewise.
69302         * modules/trim: Likewise.
69303         * modules/unistd: Likewise.
69304         * modules/wchar: Likewise.
69305         * modules/wctype: Likewise.
69307 2009-09-17  Bruno Haible  <bruno@clisp.org>
69309         Make getdate.y compile on QNX and NetBSD 5 / i386.
69310         * m4/getdate.m4 (gl_GETDATE): Conditionally define
69311         TIME_T_FITS_IN_LONG_INT.
69312         * lib/getdate.y (long_time_t): New type.
69313         (relative_time): Change type of 'seconds' field to long_time_t.
69314         (get_date): Update types of local variables. Check against overflow
69315         during conversion from long_time_t to time_t.
69316         Reported by Matt Kraai <kraai@ftbfs.org>
69317         and Hasso Tepper <hasso@netbsd.org>.
69319 2009-09-17  Bruno Haible  <bruno@clisp.org>
69321         * modules/COPYING: Update copyright years.
69322         * modules/README: Likeiwse.
69323         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
69324         Reported by Ian Beckwith <ianb@erislabs.net>.
69326 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
69328         * users.txt: Update references for gnuit package.
69330 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
69332         * m4/getdelim.m4: Fix typo in copyright line.
69334 2009-09-17  Bruno Haible  <bruno@clisp.org>
69336         * lib/atoll.c: Use the standard header with GPL copyright.
69337         * lib/argz.in.h: Likewise.
69338         * lib/glob.c: Likewise.
69339         * lib/glob-libc.h: Likewise.
69340         * lib/random_r.c: Likewise.
69341         * lib/siglist.h: Likewise.
69342         * lib/strsignal.c: Likewise.
69343         Reported by Ian Beckwith <ianb@erislabs.net>.
69345 2009-09-17  Eric Blake  <ebb9@byu.net>
69347         rmdir: ensure correct dependency order
69348         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
69350 2009-09-17  Bruno Haible  <bruno@clisp.org>
69352         Disable assertion that fails on NetBSD 5 / i386.
69353         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
69354         Reported by Sam Steingold <sds@gnu.org>
69355         and Hasso Tepper <hasso@netbsd.org>.
69357 2009-09-16  Eric Blake  <ebb9@byu.net>
69359         unlinkdir: port to mingw
69360         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
69361         on which no one can unlink a directory.
69363         stdlib: sort witness names
69364         * modules/stdlib (Makefile.am): Sort replacements.
69365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
69366         * lib/stdlib.in.h: Likewise.
69368         parse-duration-tests: avoid link failure
69369         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
69370         LIBINTL.
69371         Reported by Tom G. Christensen.
69373         openat-tests: ensure unlinkat behaves like rmdir
69374         * tests/test-rmdir.c (main): Factor guts...
69375         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
69376         * modules/rmdir-tests (Files): Ship new file.
69377         * modules/openat-tests: New test.
69378         * tests/test-unlinkat.c: Likewise.
69380         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
69381         * modules/rmdir-errno (Status, Notice): Now obsolete.
69383         rmdir: work around cygwin 1.5.x and mingw bugs
69384         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
69385         * lib/rmdir.c (rmdir): Work around it.
69386         * modules/rmdir (Status, Notice): No longer obsolete.
69387         (Files): Add dos.m4.
69388         (Depends-on): Add unistd.
69389         (configure.ac): Set witnesses.
69390         (License): Relax to LGPLv2+.
69391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
69392         * modules/unistd (Makefile.am): Substitute witnesses.
69393         * lib/unistd.in.h (rmdir): Declare replacement.
69394         * doc/posix-functions/rmdir.texi (rmdir): Document this.
69395         * modules/rmdir-tests: New tests.
69396         * tests/test-rmdir.c: Likewise.
69398 2009-09-15  Eric Blake  <ebb9@byu.net>
69400         fchdir: improve use of replacement functions
69401         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
69402         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
69403         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
69404         REPLACE_CLOSEDIR.
69405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
69406         * modules/sys_stat (Makefile.am): Substitute correct witness.
69407         * modules/dirent (Makefile.am): Likewise.
69408         * modules/unistd (Makefile.am): Likewise.
69409         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
69410         * lib/unistd.in.h (dup): Likewise.
69411         * lib/sys_stat.in.h (fstat): Likewise.
69413         maint: ignore gnulib-tool temp files
69414         * .gitignore: Ignore files created during gnulib-tool --test.
69416 2009-09-13  Jim Meyering  <meyering@redhat.com>
69418         posixtm: don't reject a time that specify "60" as the number of seconds
69419         * lib/posixtm.c (posixtime): The code to reject invalid dates
69420         would also reject a time specified with the .60 suffix.
69421         But POSIX allows that, in order to accommodate leap seconds.
69422         So don't reject it.
69423         (main): Adjust tests accordingly.
69424         * modules/posixtm (Depends-on): Add stpcpy.
69426 2009-09-11  Jim Meyering  <meyering@redhat.com>
69428         announce-gen: include [$release_type] in emitted Subject:
69429         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
69430         e.g., [stable] in the emitted Subject: line.
69432 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69434         Remove obsolete macros from several modules.
69435         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
69436         obsolete Autoconf macros with their modern counterparts.
69437         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
69438         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
69439         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
69440         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
69441         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
69442         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
69443         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
69444         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
69445         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
69446         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
69447         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
69448         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
69449         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
69450         * m4/sockets.m4 (gl_SOCKETS): Likewise.
69451         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
69452         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
69453         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
69454         * m4/time_r.m4 (gl_TIME_R): Likewise.
69455         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
69456         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
69457         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69459         Fix copyright header in build-aux scripts.
69460         * build-aux/git-version-gen: Fix copyright header to match GPLv3
69461         recommendation.
69462         * build-aux/ncftpput-ftp: Likewise.
69463         * build-aux/update-copyright: Likewise.
69465 2009-09-09  Eric Blake  <ebb9@byu.net>
69467         test-link: allow Linux choice of errno
69468         * tests/test-link.c (main): Relax test for alternate error.
69470         strndup: fix improper m4 caching
69471         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
69472         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
69473         (gl_PREREQ_STRNDUP): Delete.
69474         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
69475         * modules/string (Makefile.am): Substitute it.
69476         * lib/string.in.h (strndup): Modernize prototype.
69478         getcwd: port to mingw
69479         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
69480         different from the POSIX assumptions made throughout the getcwd
69481         module; fortunately, the mingw getcwd does not need replacement.
69482         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
69483         * modules/getcwd-tests: New test.
69484         * tests/test-getcwd.c: Likewise.
69486         link: fix platform bugs
69487         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
69488         * lib/link.c (link): Work around them.  Fix related mingw bug.
69489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
69490         * modules/unistd (Makefile.am): Substitute it.
69491         * lib/unistd.in.h (link): Declare replacement.
69492         * doc/posix-functions/link.texi (link): Document this.
69493         * modules/link (Depends-on): Add strdup-posix, sys_stat.
69495         test-link: consolidate into single C program, test more cases
69496         * tests/test-link.sh: Delete.
69497         * tests/test-link.c: Test more error conditions.  Exposes bugs on
69498         at least Cygwin and Solaris.
69499         * modules/link-tests (Files): Remove unused file.
69500         (Depends-on): Add errno, sys_stat.
69501         (Makefile.am): Simplify.
69503 2009-09-08  Bruno Haible  <bruno@clisp.org>
69505         Work around towlower, towupper bug on mingw.
69506         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
69507         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
69508         * doc/posix-functions/towlower.texi: Mention the mingw bug.
69509         * doc/posix-functions/towupper.texi: Likewise.
69510         Reported by Eric Blake.
69512 2009-09-08  Jim Meyering  <meyering@redhat.com>
69514         build: don't try to run autoheader if we don't use it
69515         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
69516         is not used in configure.ac.
69518 2009-09-08  Eric Blake  <ebb9@byu.net>
69520         euidaccess: fix compilation error
69521         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
69523         rawmemchr: relax license
69524         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
69525         okay.
69526         Reported by Jim Meyering.
69528         mkfifoat: new module
69529         * modules/mkfifoat: New file.
69530         * lib/mkfifoat.c: Likewise.
69531         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
69532         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
69533         * modules/sys_stat (Makefile.am): Use them.
69534         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
69535         * MODULES.html.sh (File system functions): Mention module.
69536         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
69537         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
69538         * modules/mkfifoat-tests: New test.
69539         * tests/test-mkfifoat.c: Likewise.
69541         strchrnul: relax license
69542         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
69543         okay.
69544         Reported by Jim Meyering.
69546 2009-09-08  Eric Blake  <ebb9@byu.net>
69548         fstatat: fix compilation on Solaris
69549         * lib/fstatat.c (includes): Add fcntl.h.
69550         Reported by Pádraig Brady.
69552 2009-09-07  Eric Blake  <ebb9@byu.net>
69554         rename: modernize replacement
69555         * modules/rename (Depends-on): Add stdio.
69556         (configure.ac): Declare witness.
69557         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
69558         stdio take care of replacement.
69559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
69560         * modules/stdio (Makefile.am): Substitute them.
69561         * lib/stdio.in.h (rename): Declare replacement.
69562         * lib/rename.c (includes): Allow cross-compilation to non-windows
69563         machines.
69564         * doc/posix-functions/rename.texi (rename): Improve
69565         documentation.
69567         stdio: sort witness names
69568         * modules/stdio (Makefile.am): Sort replacements.
69569         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
69570         * lib/stdio.in.h: Likewise.
69572         getcwd: minor cleanups
69573         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
69574         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
69576         openat: provide more convenience names
69577         * modules/faccessat (configure.ac): Add C witness.
69578         * lib/unistd.in.h (readlinkat): Fix typo.
69579         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
69580         convenience wrappers.
69581         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
69582         wrappers in syntax checks.
69584 2009-09-06  Eric Blake  <ebb9@byu.net>
69586         doc: fix comments in recent patches
69587         * lib/faccessat.c: Mention correct function.
69588         * lib/fchmodat.c: Likewise.
69589         * lib/fchownat.c: Likewise.
69590         * lib/symlinkat.c: Likewise.
69591         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
69592         constants.
69594         faccessat, symlinkat: continue cleanup of previous patch
69595         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
69596         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
69597         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
69598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
69599         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
69600         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
69601         set.
69603 2009-09-06  Bruno Haible  <bruno@clisp.org>
69605         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
69606         (fstatat): Declare if GNULIB_FSTATAT is set.
69607         (mkdirat): Declare if GNULIB_MKDIRAT is set.
69608         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
69609         (unlinkat): Declare if GNULIB_UNLINKAT is set.
69610         * modules/fcntl-h (Files): Remove m4/openat.m4.
69611         * modules/sys_stat (Files): Remove m4/openat.m4.
69612         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
69613         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
69614         * modules/unistd (Files): Remove m4/openat.m4.
69615         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
69616         GNULIB_OPENAT.
69617         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
69618         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
69619         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
69620         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
69621         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
69622         gl_OPENAT_DEFAULTS.
69623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
69624         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
69625         Don't require gl_OPENAT_DEFAULTS.
69626         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
69627         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
69628         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
69629         (gl_OPENAT_DEFAULTS): Remove macro.
69631 2009-09-06  Bruno Haible  <bruno@clisp.org>
69633         * modules/openat (configure.ac): Remove unneeded witness.
69635 2009-09-06  Bruno Haible  <bruno@clisp.org>
69637         Set errno to ENOSYS when a function is entirely unsupported.
69638         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
69639         EOPNOTSUPP.
69640         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
69641         * modules/chown (Depends-on): Remove errno.
69643 2009-09-06  Bruno Haible  <bruno@clisp.org>
69645         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
69647 2009-09-06  Bruno Haible  <bruno@clisp.org>
69649         * lib/sys_stat.in.h: Fix preprocessor command indentation.
69651 2009-09-06  Ben Pfaff  <blp@gnu.org>
69652             Bruno Haible  <bruno@clisp.org>
69654         Work around a glibc bug in strtok_r.
69655         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
69656         Undefine if UNDEFINE_STRTOK_R is set.
69657         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
69658         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69659         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
69660         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
69661         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
69662         UNDEFINE_STRTOK_R.
69663         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
69665 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
69667         exclude: minor fix
69668         * lib/exclude.c: Include wctype.h
69670 2009-09-06  Akim Demaille  <demaille@gostai.com>
69672         bootstrap: improve error message
69673         * build-aux/bootstrap (find_tool): Upon failure, report the list
69674         of candidates.
69675         Honor the initial value of the envvar.
69677 2009-09-05  Eric Blake  <ebb9@byu.net>
69679         symlinkat: new module
69680         * modules/symlinkat: New file.
69681         * lib/symlinkat.c: Likewise.
69682         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
69683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
69684         * modules/unistd (Makefile.am): Use them.
69685         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
69686         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
69687         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
69688         * MODULES.html.sh (File system functions): Mention module.
69689         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
69690         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
69691         * modules/symlinkat-tests: New test.
69692         * tests/test-symlinkat.c: Likewise.
69694         test-openat-safer: add more checks
69695         * tests/test-openat-safer.c (main): Check more code paths.
69697 2009-09-05  Jim Meyering  <meyering@redhat.com>
69699         syntax-check: detect unnecessary inclusion of openat.h
69700         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
69702 2009-09-05  Bruno Haible  <bruno@clisp.org>
69704         Support towlower, towupper.
69705         * doc/posix-functions/towlower.texi: Mention module wctype.
69706         * doc/posix-functions/towupper.texi: Likewise.
69707         * lib/wctype.in.h (towlower, towupper): New functions.
69708         * tests/test-wctype.c: Include stdio.h, stdlib.h.
69709         (ASSERT): New macro.
69710         (e): New variable.
69711         (main): Test also towlower, towupper. Test WEOF argument.
69712         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69714 2009-09-05  Bruno Haible  <bruno@clisp.org>
69716         Fix conversion behaviour when the input is invalid.
69717         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
69718         mark occurring in first pass of indirect conversion.
69719         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
69720         input.
69721         Found by clang's static analyzer.
69723 2009-09-05  Bruno Haible  <bruno@clisp.org>
69725         * tests/test-striconveh.c (main): Test indirect conversion on platforms
69726         where direct conversion is possible.
69728 2009-09-04  Eric Blake  <ebb9@byu.net>
69730         openat: fail with ENOENT on empty name
69731         * lib/openat-proc.c (openat_proc_name): Special-case the empty
69732         buffer.
69734         link-follow: fix logic bug in prior patch
69735         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
69736         reversed sense of yes and no in prior patch.  Avoid confusing
69737         compilation failure with desired semantics.
69739         link-follow: accommodate mingw and cross-compilation
69740         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
69741         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
69742         cross-compilation results to -1, to make linkat easier to
69743         implement when cross-compiling.  Trivially support mingw.
69744         * modules/link-follow (configure.ac): Call new name.
69745         * NEWS: Mention this.
69747 2009-09-03  Eric Blake  <ebb9@byu.net>
69749         faccessat: compile replacement
69750         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
69751         needed.
69753         fts: fix compilation error
69754         * lib/fts.c (includes): Re-add "openat.h", for
69755         openat_needs_fchdir.
69757         faccessat: new module
69758         * modules/faccessat: New file.
69759         * lib/faccessat.c: Likewise.
69760         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
69761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
69762         * modules/unistd (Makefile.am): Use it.
69763         * lib/unistd.in.h (faccessat): Declare it.
69764         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
69765         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
69766         * MODULES.html.sh (File system functions): Mention it.
69767         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
69768         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
69770         euidaccess: prefer POSIX over non-standard implementation
69771         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
69772         * lib/euidaccess.c (euidaccess): Use it if available.
69774         openat: make template easier to use
69775         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
69776         AT_FUNC_F2 to be undefined.
69777         (VALIDATE_FLAG): New macro; use it to reject bad flags.
69778         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
69779         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
69780         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
69781         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
69782         Likewise.
69783         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
69784         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
69785         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
69786         Likewise.
69788         openat: declare in POSIX headers
69789         * NEWS: Mention this.
69790         * modules/openat (configure.ac): Declare witnesses.
69791         (Depends-on): Add fcntl-h, sys_stat, unistd.
69792         (Include): Mention correct headers.
69793         * modules/fcntl-h (Depends-on): Add link-warning.
69794         (Files): Add openat.m4.
69795         (Makefile.am): Substitute witnesses.
69796         * modules/sys_stat (Files, Makefile.am): Likewise.
69797         * modules/unistd (Files, Makefile.am): Likewise.
69798         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
69799         (gl_OPENAT_DEFAULTS): New macro.
69800         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
69801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
69802         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
69803         (SYS_STAT_H): Remove unused variable.
69804         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
69805         * lib/fcntl--.h (includes): Remove unneeded header.
69806         * lib/openat-safer.c (includes): Likewise.
69807         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
69808         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
69809         appropriate headers.
69810         (__OPENAT_PREFIX): Delete.
69811         * lib/fcntl.in.h (openat): Provide declaration.
69812         (AT_FDCWD): Fix Solaris bug.
69813         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
69814         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
69815         * lib/fchmodat.c (includes):  Adjust to find declaration.
69816         * lib/fchownat.c (includes): Likewise.
69817         * lib/mkdirat.c (includes): Likewise.
69818         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
69819         still visible.
69821 2009-09-02  Eric Blake  <ebb9@byu.net>
69823         errno: use consistently
69824         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
69825         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
69826         * lib/canonicalize.c (ELOOP): Likewise.
69827         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
69828         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
69829         * lib/lchown.c (EOPNOTSUPP): Likewise.
69830         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
69831         * lib/savewd.c (ESTALE): Likewise.
69832         * lib/settime.c (ENOSYS): Likewise.
69833         * lib/utimens.c (ENOSYS): Likewise.
69834         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
69835         * lib/chdir-safer.c (ELOOP): Likewise.
69836         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
69837         * modules/c-stack (Depends-on): Add errno.
69838         * modules/canonicalize (Depends-on): Likewise.
69839         * modules/chdir-safer (Depends-on): Likewise.
69840         * modules/fdopendir (Depends-on): Likewise.
69841         * modules/inet_ntop (Depends-on): Likewise.
69842         * modules/inet_pton (Depends-on): Likewise.
69843         * modules/lchown (Depends-on): Likewise.
69844         * modules/openat (Depends-on): Likewise.
69845         * modules/savewd (Depends-on): Likewise.
69846         * modules/settime (Depends-on): Likewise.
69847         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
69849         fts: avoid leaking fds
69850         * modules/fts (Depends-on): Add cloexec.
69851         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
69852         flag.
69854         fts: make directory fds more robust
69855         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
69856         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
69858         backupfile, chdir-long, fts, savedir: make safer
69859         * lib/backupfile.c (includes): Use "dirent--.h", since
69860         numbered_backup can write to stderr during readdir.
69861         * lib/savedir.c (includes): Likewise.
69862         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
69863         emulation can write to stderr on failure.
69864         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
69865         * lib/getcwd.c: Document why opendir_safer is unused.
69866         * lib/glob.c: Likewise.
69867         * lib/scandir.c: Likewise.
69868         * lib/openat-proc.c: Likewise, for open_safer.
69869         * modules/backupfile (Depends-on): Add dirent-safer.
69870         * modules/savedir (Depends-on): Likewise.
69871         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
69872         * modules/chdir-long (Depends-on): Add openat-safer.
69874         openat-safer: new module
69875         * modules/openat-safer: New file.
69876         * lib/openat-safer.c: Likewise.
69877         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
69878         * lib/fcntl-safer.h (openat_safer): Declare.
69879         * lib/fcntl--.h (openat): Override.
69880         * MODULES.html.sh (File descriptor based I/O): Mention it.
69881         * lib/openat.h: Add double-inclusion guards.
69882         * lib/openat.c (includes): Only include "fcntl-safer.h", not
69883         "fcntl--.h", so we can implement openat.
69884         * modules/openat-safer-tests: New test.
69885         * tests/test-openat-safer.c: New file.
69887         dirent-safer: new module
69888         * modules/dirent-safer: New file.
69889         * lib/dirent--.h: Likewise.
69890         * lib/dirent-safer.h: Likewise.
69891         * lib/opendir-safer.c: Likewise.
69892         * m4/dirent-safer.m4: Likewise.
69893         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
69894         * modules/dirent-safer-tests: New test.
69895         * tests/test-dirent-safer.c: New file.
69896         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
69898         fdopendir: optimize on mingw
69899         * lib/unistd.in.h (_gl_directory_name): New prototype.
69900         * lib/fchdir.c (_gl_directory_name): Implement it.
69901         (fchdir): Use it to simplify implementation.
69902         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
69903         fchdir, when available, to avoid calling [f]chdir().
69905         fdopendir: split into its own module
69906         * lib/openat.c (fdopendir): Move...
69907         * lib/fdopendir.c: ...into new file.
69908         * modules/fdopendir: New module.
69909         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
69910         * modules/openat (Depends-on): Add fdopendir.
69911         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
69912         fdopendir here.
69913         * modules/savedir (Depends-on): Only need fdopendir, not full
69914         openat.
69915         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
69916         * lib/openat.h (fdopendir): Drop prototype.
69917         * lib/dirent.in.h (fdopendir): Provide prototype.
69918         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
69919         * modules/dirent (Makefile.am): Substitute them.
69920         * MODULES.html.sh (File system functions): Mention it.
69921         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
69922         * modules/fdopendir-tests: New file.
69923         * tests/test-fdopendir.c: Likewise.
69925         fchdir: use more consistent macro convention
69926         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
69927         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
69928         REPLACE_FCHDIR, rather than relying on config.h macros.
69929         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
69930         inside a single make-time REPLACE_FCHDIR block, rather than using
69931         the config.h FCHDIR_REPLACEMENT.
69932         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
69933         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
69934         Manage fstat replacement.
69935         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
69936         REPLACE_FCHDIR.
69937         * modules/sys_stat (Files): Add m4/unistd_h.m4.
69938         (Makefile.am): Substitute REPLACE_FCHDIR.
69939         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
69940         FCHDIR_REPLACEMENT.
69941         * lib/dup-safer.c (dup_safer): Likewise.
69942         * lib/dup2.c (rpl_dup2): Likewise.
69943         * lib/dup3.c (rpl_dup3): Likewise.
69944         * lib/open.c (rpl_open): Likewise.
69946         fchdir: simplify error handling, and support dup3
69947         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
69948         stdbool, malloc-posix, realloc-posix.
69949         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
69950         (ensure_dirs_slot): Return false on allocation failure.
69951         (rpl_dup2): Delete.
69952         (_gl_register_dup): New function.
69953         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
69954         (_gl_register_fd): Close fd on allocation failure.
69955         * lib/fcntl.in.h (_gl_register_fd): Update signature.
69956         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
69957         prototype.
69958         (rpl_dup2_fchdir): Delete prototype.
69959         * lib/open.c (open): Update caller.
69960         * lib/dup2.c (dup2): Track fchdir metadata.
69961         * lib/dup3.c (dup3): Likewise.
69962         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
69963         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
69965 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69967         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
69968         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
69969         don't pass arguments to AC_OUTPUT.
69971 2009-09-02  Bruno Haible  <bruno@clisp.org>
69973         * modules/mkdtemp (License): Relicense under LGPLv2+.
69974         Reported by Paolo Bonzini.
69976 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69978         Replace uses of obsolete autoconf macros in Jim's modules.
69979         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
69980         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
69981         can evoke a warning from autoconf when run with -Wobsolete
69982         enabled.  They were declared obsolete for good reasons (see
69983         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
69984         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
69985         should not continue using the deprecated macros.
69986         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
69987         obsolete Autoconf macros with modern counterparts.
69988         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
69989         * m4/dos.m4 (gl_AC_DOS): Likewise.
69990         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
69991         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
69992         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
69993         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
69994         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
69995         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
69996         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
69997         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
69998         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
69999         Likewise.
70000         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
70001         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
70002         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
70003         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
70004         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70005         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
70007 2009-09-01  Eric Blake  <ebb9@byu.net>
70009         fchdir: fix off-by-one bug in previous patch
70010         * lib/fchdir.c (rpl_fstat): Use correct bounds.
70011         (_gl_unregister_fd): Delete useless if.
70013 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
70015         maint.mk: sort the list of syntax-check rules
70016         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
70017         easier to get a sense of progress when the rules are run sequentially
70018         and take a long time.
70020 2009-09-01  Simon Josefsson  <simon@josefsson.org>
70022         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
70023         * modules/netinet_in: Likewise.
70024         * modules/sys_file: Likewise.
70025         * modules/sys_ioctl: Likewise.
70026         * modules/sys_select: Likewise.
70027         * modules/sys_socket: Likewise.
70028         * modules/sys_stat: Likewise.
70029         * modules/sys_time: Likewise.
70030         * modules/sys_times: Likewise.
70031         * modules/sys_utsname: Likewise.
70032         * modules/sys_wait: Likewise.
70034 2009-09-01  Jim Meyering  <meyering@redhat.com>
70036         fts: help ensure that return values are not ignored
70037         * lib/fts_.h (__GNUC_PREREQ): Define.
70038         (__attribute_warn_unused_result__): Define.
70039         (fts_children, fts_close, fts_open, fts_read): Declare with
70040         __attribute_warn_unused_result__.
70042         fts: fts_close now fails also when closing a dir file descriptor fails
70043         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
70044         and propagate to caller, along with errno.
70046         announce-gen: correct formatting in --help output
70047         * build-aux/announce-gen (usage): Move the one-line description in
70048         --help output "up", to where it belongs, just after Usage:.
70050 2009-08-31  Eric Blake  <ebb9@byu.net>
70052         fchdir: port to mingw
70053         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
70054         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
70055         opened, then use a substitute.
70056         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
70057         replacement.
70058         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
70059         (_gl_register_fd): No need to check stat if open already filters
70060         all directories.
70061         (fchdir): Fix error condition to match POSIX.
70062         * modules/fchdir (Depends-on): Add sys_stat.
70063         * doc/posix-functions/open.texi (open): Document the limitation.
70064         * modules/fchdir-tests: New file.
70065         * tests/test-fchdir.c: Likewise.
70067         canonicalize: allow cross-testing from cygwin to mingw
70068         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
70069         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
70070         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
70071         Likewise.
70072         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
70073         target does not support symlinks.
70074         * tests/test-canonicalize-lgpl.sh: Likewise.
70076         chown: avoid compilation warning on mingw
70077         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
70078         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
70079         mingw.
70080         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
70081         * modules/chown (Depends-on): Add errno.
70083 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
70085         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
70086         command.
70088 2009-08-31  Jim Meyering  <meyering@redhat.com>
70090         canonicalize: remove useless initialization
70091         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
70092         initialization of local, "end".
70094 2009-08-30  Bruno Haible  <bruno@clisp.org>
70096         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
70097         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
70098         ENOSYS.
70100 2009-08-30  Bruno Haible  <bruno@clisp.org>
70102         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
70103         /usr/xpg4/bin/tr when it exists.
70104         * tests/test-pipe-filter-gi1.sh: Likewise.
70106 2009-08-30  Bruno Haible  <bruno@clisp.org>
70108         Work around deficient /usr/bin/id program on Solaris.
70109         * tests/test-file-has-acl.sh (ID): New variable.
70110         * tests/test-set-mode-acl.sh (ID): Likewise.
70111         * tests/test-copy-acl.sh (ID): Likewise.
70112         * tests/test-copy-file.sh (ID): Likewise.
70114 2009-08-30  Bruno Haible  <bruno@clisp.org>
70116         New module 'xstriconveh'.
70117         * lib/xstriconveh.h: New file.
70118         * lib/xstriconveh.c: New file.
70119         * modules/xstriconveh: New file.
70121 2009-08-30  Bruno Haible  <bruno@clisp.org>
70123         Make it easier to use mem_cd_iconveh.
70124         * lib/striconveh.h (iconveh_t): New type.
70125         (iconveh_open, iconveh_close): New declarations.
70126         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
70127         with a single 'const iconveh_t *' argument.
70128         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
70129         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
70130         with a single 'const iconveh_t *' argument.
70131         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
70132         * tests/test-striconveh.c (main): Update.
70133         * NEWS: Mention the change.
70135 2009-08-30  Bruno Haible  <bruno@clisp.org>
70137         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
70138         problem.
70140 2009-08-30  Bruno Haible  <bruno@clisp.org>
70142         Work around iconv_open problem on Solaris.
70143         * lib/iconv_open-solaris.gperf: New file.
70144         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
70145         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
70146         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
70147         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
70148         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
70149         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
70151 2009-08-29  Jim Meyering  <meyering@redhat.com>
70153         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
70154         * top/maint.mk (cvs-check): Remove target; it was just an alias
70155         to the better-named vc-diff-check.
70156         (maintainer-distcheck): Remove rule.  It was used only from
70157         the (alpha/beta/major) target, and all of its commands but one
70158         were coreutils-specific.
70159         (vc-dist): Remove rule.
70160         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
70161         Run vc-diff-check, not vc-dist.
70162         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
70164 2009-08-27  Bruno Haible  <bruno@clisp.org>
70166         * tests/test-bitrotate.c (main): Remove test that uses a shift count
70167         of 0.
70169 2009-08-27  Bruno Haible  <bruno@clisp.org>
70171         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
70172         compilers.
70173         * doc/func.texi: Document the SunPRO C bug.
70175 2009-08-27  Bruno Haible  <bruno@clisp.org>
70177         Fix link error on Solaris.
70178         * tests/test-parse-duration.c (xstrdup): Remove function.
70180 2009-08-26  Pádraig Brady  <P@draigbrady.com>
70182         ignore-value: handle pointer types, too
70183         * lib/ignore-value.h (__attribute__): Remove definition.
70184         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
70185         of a more concise and more-often effective "(void) i" statement.
70186         (ignore_ptr): New function to suppress warnings from functions that
70187         return pointers, and to make it explicit that one function doesn't
70188         handle all cases.
70190 2009-08-25  Bruno Haible  <bruno@clisp.org>
70192         dup2: work around a Linux bug.
70193         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
70194         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
70195         * doc/posix-functions/dup2.texi: Mention the Linux bug.
70196         Reported by Simon Josefsson.
70198 2009-08-25  Jim Meyering  <meyering@redhat.com>
70200         libguestfs uses gnulib
70201         * users.txt: Add libguestfs.
70203 2009-08-24  Eric Blake  <ebb9@byu.net>
70205         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
70206         * lib/pipe2.c (includes): Add binary-io.h.
70207         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
70209 2009-08-24  Bruno Haible  <bruno@clisp.org>
70211         Tolerate declared but missing accept4 syscall.
70212         * lib/accept4.c (accept4): Invoke original accept4 function first, if
70213         available.
70214         * lib/sys_socket.in.h (accept4): If the function is already present,
70215         override it.
70216         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
70217         * modules/accept4 (Makefile.am): Compile accept4.c always.
70218         Reported by Paolo Bonzini and Eric Blake.
70220 2009-08-23  Bruno Haible  <bruno@clisp.org>
70222         New module 'accept4'.
70223         * lib/sys_socket.in.h (accept4): New declaration.
70224         * lib/accept4.c: New file.
70225         * m4/accept4.m4: New file.
70226         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
70227         GNULIB_ACCEPT4, HAVE_ACCEPT4.
70228         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
70229         HAVE_ACCEPT4.
70230         * modules/accept4: New file.
70231         * doc/glibc-functions/accept4.texi: Mention the new module.
70233 2009-08-24  Jim Meyering  <meyering@redhat.com>
70235         progname: also set global program_invocation_name, when possible
70236         Before this change, a libtool-enabled program that calls glibc's
70237         error function would report the program name as
70238         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
70239         * modules/progname (configure.ac): Check for a declaration of
70240         program_invocation_name.
70241         * lib/progname.c:  Include <errno.h>.
70242         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
70243         Set program_invocation_name.
70245 2009-08-23  Bruno Haible  <bruno@clisp.org>
70247         * lib/dup3.c: Include <string.h>.
70249 2009-08-23  Bruno Haible  <bruno@clisp.org>
70251         * lib/dup3.c (dup3): Test only once whether the system actually exists.
70252         * lib/pipe2.c (pipe2): Likewise.
70253         Suggested by Eric Blake.
70255 2009-08-23  Bruno Haible  <bruno@clisp.org>
70257         Tolerate declared but missing dup3 syscall.
70258         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
70259         * lib/unistd.in.h (dup3): If the function is already present,
70260         override it.
70261         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
70262         * modules/dup3 (Makefile.am): Compile dup3.c always.
70263         Reported by Paolo Bonzini.
70265 2009-08-23  Bruno Haible  <bruno@clisp.org>
70267         Tolerate declared but missing pipe2 syscall.
70268         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
70269         available.
70270         * lib/unistd.in.h (pipe2): If the function is already present,
70271         override it.
70272         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
70273         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
70274         Reported by Paolo Bonzini.
70276 2009-08-23  Bruno Haible  <bruno@clisp.org>
70278         * lib/pipe2.c (pipe2): Move #ifs inside function.
70280 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
70282         quotearg: document limitations of quote_these_too
70283         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
70284         those limitations are created.
70285         * lib/quotearg.h (set_char_quoting): Document that digits and
70286         letters that are special after backslash are not permitted.
70287         (quotearg_char): Cross-reference set_char_quoting documentation.
70289 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
70291         quotearg: implement custom_quoting_style
70292         * lib/quotearg.c: (struct quoting_options): Add left_quote and
70293         right_quote fields.
70294         (set_custom_quoting): New public function.
70295         (quotearg_buffer_restyled): Add left_quote and right_quote
70296         arguments, handle them very much like locale quoting, and update
70297         all uses.
70298         (quotearg_n_custom): New public function.
70299         (quotearg_n_custom_mem): New public function.
70300         (quotearg_custom): New public function.
70301         (quotearg_custom_mem): New public function.
70302         * lib/quotearg.h: Prototype and document new public functions.
70303         (enum quoting_style): For escape_quoting_style and
70304         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
70305         ignored even though they're otherwise like c_quoting_style.
70306         Add custom_quoting_style member and document with comparison to
70307         clocale_quoting_style.
70308         * tests/test-quotearg.c (custom_quotes): New array.
70309         (custom_results): New array.
70310         (main): Extend to test custom quoting.
70312 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
70314         quotearg: fix right quote escaping when it's in quote_these_too
70315         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
70316         quote, be sure to prepend only one backslash.
70317         * tests/test-quotearg.c (use_quote_double_quotes): New function.
70318         (main): Test it.
70320 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
70322         quotearg-tests: test escaping of embedded locale quotes
70323         * tests/test-quotearg.c (struct result_strings): Add member for
70324         new input.
70325         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
70326         (inputs): Add new input.
70327         (results_g): Add expected results.
70328         (flag_results): Likewise.
70329         (locale_results): Likewise.
70330         (compare_strings): Check those.
70332 2009-08-23  Bruno Haible  <bruno@clisp.org>
70334         Tests for module 'dup3'.
70335         * modules/dup3-tests: New file.
70336         * tests/test-dup3.c: New file.
70338         New module 'dup3'.
70339         * lib/unistd.in.h (dup3): New declaration.
70340         * lib/dup3.c: New file.
70341         * m4/dup3.m4: New file.
70342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
70343         HAVE_DUP3.
70344         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
70345         * modules/dup3: New file.
70346         * doc/glibc-functions/dup3.texi: Mention the new module.
70348 2009-08-23  Bruno Haible  <bruno@clisp.org>
70350         Tweak the dup2 test.
70351         * tests/test-dup2.c (main): Create the test file empty. Verify that an
70352         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
70353         the test file is still empty. Fix argument order of lseek.
70355 2009-08-23  Bruno Haible  <bruno@clisp.org>
70357         Avoid test link errors when the modules getopt-gnu, gettext are used.
70358         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
70359         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
70361 2009-08-23  Bruno Haible  <bruno@clisp.org>
70363         Fix getdtablesize() on mingw.
70364         * lib/getdtablesize.c (getdtablesize): Implement differently.
70365         * lib/unistd.in.h (getdtablesize): Improve comment.
70367 2009-08-23  Bruno Haible  <bruno@clisp.org>
70369         New module 'mkostemp'.
70370         Based on Ulrich Drepper's 2007-08-10 change in glibc.
70371         * lib/stdlib.in.h (mksotemp): New declaration.
70372         * lib/mkostemp.c: New file, from glibc with modifications.
70373         * lib/tempname.h (GT_FILE): Remove outdated comment.
70374         (gen_tempname): Add flags argument.
70375         * lib/tempname.c (__GT_BIGFILE): Remove macro.
70376         (__GT_FILE): Map to 1.
70377         (small_open, large_open): Remove macros.
70378         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
70379         * lib/mkstemp.c (mkstemp): Update.
70380         * lib/mkdtemp.c (mkdtemp): Likewise.
70381         * m4/mkostemp.m4: New file.
70382         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
70383         HAVE_MKOSTEMP.
70384         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
70385         HAVE_MKOSTEMP.
70386         * modules/mkostemp: New file, based on modules/mkstemp.
70387         * doc/glibc-functions/mkostemp.texi: Mention the new module.
70388         * NEWS: Mention the change.
70390 2009-08-23  Bruno Haible  <bruno@clisp.org>
70392         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
70393         Reported by Eric Blake.
70395 2009-08-23  Bruno Haible  <bruno@clisp.org>
70397         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
70398         Reported by Eric Blake.
70400 2009-08-23  Bruno Haible  <bruno@clisp.org>
70402         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
70403         * modules/pipe2 (Depends-on): Likewise.
70405 2009-08-23  Eric Blake  <ebb9@byu.net>
70407         fcntl-h: add O_TTY_INIT support
70408         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
70409         * tests/test-fcntl-h.c (o): Test it.
70410         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
70412         fcntl-h: rename from fcntl, in preparation for fcntl(2)
70413         * modules/fcntl: Move <fcntl.h> header replacement...
70414         * modules/fcntl-h: ...to new name, so as not to collide with
70415         like-named function.
70416         * tests/test-fcntl.c: Rename...
70417         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
70418         * modules/fcntl-tests: Rename...
70419         * modules/fcntl-h-tests: ...to this.  Update test file name.
70420         * modules/chdir-long (Depends-on): Update clients.
70421         * modules/chdir-safer (Depends-on): Likewise.
70422         * modules/fcntl-safer (Depends-on): Likewise.
70423         * modules/fts (Depends-on): Likewise.
70424         * modules/mkancesdirs (Depends-on): Likewise.
70425         * modules/mkdir-p (Depends-on): Likewise.
70426         * modules/open (Depends-on): Likewise.
70427         * modules/savewd (Depends-on): Likewise.
70428         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
70429         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
70431 2009-08-22  Bruno Haible  <bruno@clisp.org>
70433         * modules/binary-io (License): Relicense under LGPL.
70434         * modules/pipe2 (License): Likewise.
70436 2009-08-22  Bruno Haible  <bruno@clisp.org>
70438         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
70439         return value.
70440         * lib/pipe-filter-gi.c (filter_init): Likewise.
70441         Reported by Eric Blake.
70443 2009-08-22  Bruno Haible  <bruno@clisp.org>
70445         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
70446         * modules/pipe (Depends-on): Add pipe2.
70448 2009-08-22  Bruno Haible  <bruno@clisp.org>
70450         Tests for module 'pipe2'.
70451         * modules/pipe2-tests: New file.
70452         * tests/test-pipe2.c: New file.
70454         New module 'pipe2'.
70455         * lib/unistd.in.h (pipe2): New declaration.
70456         * lib/pipe2.c: New file.
70457         * m4/pipe2.m4: New file.
70458         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
70459         HAVE_PIPE2.
70460         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
70461         * modules/pipe2: New file.
70462         * doc/glibc-functions/pipe2.texi: Mention the new module.
70464 2009-08-22  Bruno Haible  <bruno@clisp.org>
70466         Reference some new glibc functions.
70467         * doc/glibc-functions/accept4.texi: New file.
70468         * doc/glibc-functions/dup3.texi: New file.
70469         * doc/glibc-functions/mkostemp.texi: New file.
70470         * doc/glibc-functions/pipe2.texi: New file.
70471         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
70472         (Glibc sys/socket.h): Refer to accept4.
70473         (Glibc unistd.h): Refer to dup3, pipe2.
70474         Reported by Eric Blake.
70476 2009-08-22  Jim Meyering  <meyering@redhat.com>
70477             Bruno Haible  <bruno@clisp.org>
70479         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
70480         This makes it so packages using automake-1.11's silent-rules option
70481         can print e.g., a single "GEN    configmake.h" line, rather than
70482         the 30+ statements that perform the job.  If you want to see the
70483         actual commands, you can still run "make V=1".
70484         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
70485         so that make output is abbreviated when those variables are defined
70486         appropriately.
70487         * modules/argz: Likewise.
70488         * modules/arpa_inet: Likewise.
70489         * modules/byteswap: Likewise.
70490         * modules/configmake: Likewise.
70491         * modules/dirent: Likewise.
70492         * modules/errno: Likewise.
70493         * modules/fcntl: Likewise.
70494         * modules/float: Likewise.
70495         * modules/fnmatch: Likewise.
70496         * modules/getopt-posix: Likewise.
70497         * modules/glob: Likewise.
70498         * modules/iconv_open: Likewise.
70499         * modules/inttypes: Likewise.
70500         * modules/localcharset: Likewise.
70501         * modules/locale: Likewise.
70502         * modules/math: Likewise.
70503         * modules/netdb: Likewise.
70504         * modules/netinet_in: Likewise.
70505         * modules/poll: Likewise.
70506         * modules/posix_spawnp-tests: Likewise.
70507         * modules/sched: Likewise.
70508         * modules/search: Likewise.
70509         * modules/selinux-h: Likewise.
70510         * modules/signal: Likewise.
70511         * modules/spawn: Likewise.
70512         * modules/stdarg: Likewise.
70513         * modules/stdbool: Likewise.
70514         * modules/stddef: Likewise.
70515         * modules/stdint: Likewise.
70516         * modules/stdio: Likewise.
70517         * modules/stdlib: Likewise.
70518         * modules/string: Likewise.
70519         * modules/strings: Likewise.
70520         * modules/sys_file: Likewise.
70521         * modules/sys_ioctl: Likewise.
70522         * modules/sys_select: Likewise.
70523         * modules/sys_socket: Likewise.
70524         * modules/sys_stat: Likewise.
70525         * modules/sys_time: Likewise.
70526         * modules/sys_times: Likewise.
70527         * modules/sys_utsname: Likewise.
70528         * modules/sys_wait: Likewise.
70529         * modules/sysexits: Likewise.
70530         * modules/time: Likewise.
70531         * modules/unistd: Likewise.
70532         * modules/wchar: Likewise.
70533         * modules/wctype: Likewise.
70535 2009-08-22  Jim Meyering  <meyering@redhat.com>
70537         announce-gen: detect write failure
70538         * build-aux/announce-gen: Add Coda at end.
70539         Remove equivalent-but-more-verbose block at top.
70541 2009-08-19  Akim Demaille  <demaille@gostai.com>
70543         bootstrap: --help to stdout.
70544         * bootstrap (usage): Don't send --help to stderr.
70545         Use a here doc instead of a long string.
70547 2009-08-21  Eric Blake  <ebb9@byu.net>
70549         test-popen-safer: split from test-popen
70550         * tests/test-popen.c (main): Move...
70551         * tests/test-popen.h: ...into new file.
70552         * tests/test-popen-safer2.c: New file.
70553         * modules/popen-tests (Files): Add test-popen.h.
70554         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
70555         Suggested by Bruno Haible.
70557         test-fcntl-safer: split from test-open
70558         * tests/test-open.c (main): Move...
70559         * tests/test-open.h: ...into new file.
70560         * tests/test-fcntl-safer.c: New file.
70561         * modules/open-tests (Files): Add test-open.h.
70562         * modules/fcntl-safer-tests: New file.
70563         Suggested by Bruno Haible.
70565         test-fopen-safer: split from test-fopen
70566         * tests/test-fopen.c (main): Move...
70567         * tests/test-fopen.h: ...into new file.
70568         * tests/test-fopen-safer.c: New file.
70569         * modules/fopen-tests (Files): Add test-fopen.h.
70570         * modules/fopen-safer-tests: New file.
70571         Suggested by Bruno Haible.
70573 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
70575         popen-safer: test O_CLOEXEC at run-time.
70576         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
70578 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
70580         fcntl: move more flags to the header
70581         * lib/cloexec.c: Do not define FD_CLOEXEC here.
70582         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
70583         * lib/fcntl.in.h: Do both things here.
70585 2009-08-21  Jim Meyering  <meyering@redhat.com>
70587         consistently remove $@-t before redirecting to it
70588         * modules/argz: Remove $@-t and $@ before redirecting to the former.
70589         * modules/alloca-opt: Likewise.
70590         * modules/byteswap: Likewise.
70591         * modules/fnmatch: Likewise.
70592         * modules/getopt-posix: Likewise.
70593         * modules/glob: Likewise.
70594         * modules/poll: Likewise.
70595         * modules/posix_spawnp-tests: Likewise.
70596         * modules/sys_socket: Likewise.
70597         * modules/sysexits: Likewise.
70599 2009-08-21  Eric Blake  <ebb9@byu.net>
70601         popen: simplify access to original popen
70602         * lib/popen.c (rpl_popen): No need to worry about popen being a
70603         macro.
70604         Reported by Bruno Haible.
70606 2009-08-20  Eric Blake  <ebb9@byu.net>
70608         build: avoid some compiler warnings
70609         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
70610         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
70611         type.
70612         (new_exclude_segment, excluded_file_pattern_p)
70613         (excluded_file_name_p): Reduce scope.
70614         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
70615         old-style declaration.
70617 2009-08-20  Simon Josefsson  <simon@josefsson.org>
70619         * tests/test-exclude1.sh: Handle Windows EOL.
70620         * tests/test-exclude2.sh: Likewise.
70621         * tests/test-exclude3.sh: Likewise.
70622         * tests/test-exclude4.sh: Likewise.
70623         * tests/test-exclude5.sh: Likewise.
70624         * tests/test-exclude6.sh: Likewise.
70625         * tests/test-exclude7.sh: Likewise.
70627 2009-08-19  Akim Demaille  <demaille@gostai.com>
70629         bootstrap: find sha1sum when named gsha1sum.
70630         * bootstrap (find_tool): New.
70631         ($SHA1SUM): New.
70632         Use it.
70634 2009-08-20  Jim Meyering  <meyering@redhat.com>
70636         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
70637         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
70638         expression that converts "." in a file name to "\." in the resulting
70639         regexp.  Start with a dummy statement, so that prior shell variable
70640         definitions are expanded portably.  Reported by Simon Josefsson.
70642 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
70644         Fix polling for writeability of a screen buffer.
70645         * lib/poll.c: Distinguish input and screen buffers for the
70646         Win32 implementation.
70647         * lib/select.c: Likewise.
70649 2009-08-19  Eric Blake  <ebb9@byu.net>
70651         popen-safer: prevent popen from clobbering std descriptors
70652         * modules/popen-safer: New file.
70653         * lib/popen-safer.c: Likewise.
70654         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
70655         * lib/stdio--.h (popen): Provide override.
70656         * lib/stdio-safer.h (popen_safer): Provide declaration.
70657         * tests/test-popen.c (includes): Partially test this.
70658         * modules/popen-safer-tests: New file, for more tests.
70659         * tests/test-popen-safer.c: Likewise.
70660         * MODULES.html.sh (file stream based Input/Output): Mention it.
70662         tests: test some of the *-safer modules
70663         * modules/fopen-safer (Depends-on): Add fopen.
70664         * modules/fcntl-safer (Depends-on): Add fcntl.
70665         * modules/stdlib-safer (Depends-on): Add stdlib.
70666         (configure.ac): Set indicator.
70667         * modules/unistd-safer (configure.ac): Likewise.
70668         * modules/tmpfile-safer (configure.ac): Likewise.
70669         (Depends-on): Add tmpfile.
70670         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
70671         active.
70672         * tests/test-fopen.c (includes): Test safer versions when they are
70673         in use.
70674         * tests/test-open.c (includes): Likewise.
70676         popen: fix cygwin 1.5 bug when stdin closed
70677         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
70678         * modules/popen: New file.
70679         * modules/popen-tests: Likewise.
70680         * tests/test-popen.c: Likewise.
70681         * m4/popen.m4: Likewise.
70682         * lib/popen.c: Likewise.
70683         * lib/stdio.in.h (popen): New declaration.
70684         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
70685         * modules/stdio (Makefile.am): Likewise.
70686         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
70688 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
70690         maint.mk: give full control over update-copyright exclusions
70691         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
70692         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
70693         (update-copyright): Don't force inclusion of top-level
70694         ChangeLog.  Don't force exclusion of all COPYING files, but make
70695         them the default exclusion instead.
70697 2009-08-16  Bruno Haible  <bruno@clisp.org>
70699         Fix test failures on Solaris 10.
70700         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
70701         tests when Solaris iconv() is used.
70702         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
70703         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
70704         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
70705         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
70706         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
70708 2009-08-16  Bruno Haible  <bruno@clisp.org>
70710         Fix test failures on Solaris 10.
70711         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
70712         'tr' program and pass it as first argument.
70713         * tests/test-pipe-filter-gi1.sh: Likewise.
70714         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
70715         program as first argument.
70716         * tests/test-pipe-filter-gi1.c (main): Likewise.
70718 2009-08-16  Eric Blake  <ebb9@byu.net>
70720         fpurge: fix previous commits
70721         * modules/fpurge (Makefile.am): Make replacement conditional,
70722         partially reverting 2007-04-29 change; missed in previous
70723         attempt.
70724         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
70725         is missing.
70727 2009-08-16  Bruno Haible  <bruno@clisp.org>
70729         Clarify fpurge's effect on the file position.
70730         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
70731         * tests/test-fpurge.c (main): Make a second pass for checking the file
70732         position.
70734 2009-08-16  Bruno Haible  <bruno@clisp.org>
70736         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
70737         declaration of fpurge is missing.
70738         * tests/test-fpurge.c (main): Check that the file has not more contents
70739         than expected. Close the file before removing it.
70741 2009-08-15  Eric Blake  <ebb9@byu.net>
70743         fpurge: don't wrap working cygwin implementation
70744         * lib/fpurge.c (fpurge): Fix comment typo.
70745         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
70746         1.7 to avoid replacement.
70747         * tests/test-fpurge.c (main): Enhance test.
70749 2009-08-15  Eric Blake  <ebb9@byu.net>
70750         and Jim Meyering  <meyering@redhat.com>
70752         test-update-copyright: skip if perl is insufficient
70753         * tests/test-update-copyright.sh: Failure to run maintainer tool
70754         should not cause testsuite failure on cygwin 1.5.
70756 2009-08-14  Eric Blake  <ebb9@byu.net>
70758         doc: mention more functions added in cygwin 1.7.0
70759         * doc/posix-headers/limits.texi (limits.h): Update for recent
70760         cygwin additions.
70761         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
70762         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
70763         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
70764         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
70765         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
70767 2009-08-14  Eric Blake  <ebb9@byu.net>
70769         maint.mk: simplify update-copyright rule
70770         * top/maint.mk (update-copyright-local): Delete, and document how
70771         to do it in cfg.mk instead.
70772         (update-copyright-exclude-regexp): Delete, and document how to do
70773         it in .x-update-copyright instead.
70774         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
70775         exclude ChangeLog.
70777 2009-08-14  Bruno Haible  <bruno@clisp.org>
70779         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
70781 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
70783         maint.mk: support update-copyright-env
70784         * top/maint.mk (update-copyright-env): Define place-holder.
70785         (update-copyright): Expand $(update-copyright-env) before
70786         invoking update-copyright.
70788 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
70790         update-copyright: implement forced reformatting
70791         * build-aux/update-copyright: Implement and document
70792         UPDATE_COPYRIGHT_FORCE.
70793         * tests/test-update-copyright.sh: Test it.
70795 2009-08-14  Eric Blake  <ebb9@byu.net>
70796         and Bruno Haible  <bruno@clisp.org>
70798         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
70799         * tests/test-locale.c: Revert previous patch related to NULL.
70800         * tests/test-stdio.c: Likewise.
70801         * tests/test-stdlib.c: Likewise.
70802         * tests/test-string.c: Likewise.
70803         * tests/test-unistd.c: Likewise.
70804         * modules/time-tests (Depends-on): Add verify.
70805         * modules/wchar-tests (Depends-on): Likewise.
70806         * tests/test-time.c: Test for NULL compliance.
70807         * tests/test-wchar.c: Likewise.
70808         * modules/locale (Depends-on): Add stddef.
70809         * modules/stdio (Depends-on): Likewise.
70810         * modules/stdlib (Depends-on): Likewise.
70811         * modules/string (Depends-on): Likewise.
70812         * modules/time (Depends-on): Likewise.
70813         * modules/unistd (Depends-on): Likewise.
70814         * modules/wchar (Depends-on): Likewise.
70815         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
70816         * lib/stdlib.in.h (includes): Likewise.
70817         * lib/string.in.h (includes): Likewise.
70818         * lib/time.in.h (includes): Likewise.
70819         * lib/unistd.in.h (includes): Likewise.
70820         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
70821         replaced.
70822         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
70823         * m4/stddef_h.m4: New file.
70824         * modules/stddef: Likewise.
70825         * lib/stddef.in.h: Likewise.
70826         * modules/stddef-tests: Likewise.
70827         * tests/test-stddef.c: Likewise.
70828         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
70829         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
70830         * doc/posix-headers/locale.texi (locale.h): Likewise.
70831         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
70832         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
70833         * doc/posix-headers/string.texi (string.h): Likewise.
70834         * doc/posix-headers/time.texi (time.h): Likewise.
70835         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
70836         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
70838 2009-08-14  Eric Blake  <ebb9@byu.net>
70840         doc: improve git diff of texinfo files
70841         * .gitattributes: Add rule for *.texi files, with hint on how to
70842         use it.
70843         Copied from m4, and based on a report by Bruno Haible.
70845 2009-08-14  Bruno Haible  <bruno@clisp.org>
70847         Disable multithread support by default on Cygwin 1.5.x for real.
70848         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
70850 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
70852         update-copyright: much ado about intervals
70853         * build-aux/update-copyright: Implement and document
70854         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
70855         of copyright year intervals.
70856         Also, document UPDATE_COPYRIGHT_YEAR.
70857         * tests/test-update-copyright.sh: Test it.
70859         update-copyright: convert 2-digit to 4-digit years
70860         * build-aux/update-copyright: Implement and document.
70861         * tests/test-update-copyright.sh: Update.
70863 2009-08-14  Jim Meyering  <meyering@redhat.com>
70865         test-exclude: avoid coreutils "make check" failure
70866         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
70867         just as in test-argmatch.c.
70869 2009-08-13  Eric Blake  <ebb9@byu.net>
70871         test-dup2: fix bad assumption
70872         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
70873         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
70875         test-version-etc: fix CRLF portability issue
70876         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
70877         recognize \r.
70878         * tests/test-argp-version-etc-1.sh: Likewise.
70880         getopt: update client modules
70881         * modules/argp (Depends-on): Use getopt-gnu.
70882         * modules/git-merge-changelog (Depends-on): Likewise.
70883         * modules/long-options (Depends-on): Likewise.
70884         * modules/xstrtol (Depends-on): Likewise.
70886 2009-08-13  Simon Josefsson  <simon@josefsson.org>
70888         * tests/test-version-etc.sh: Don't fail on different
70889         project/version.  Don't fail on CRLF differences.  Rewrite to use
70890         multiple -e instead of multiple sed forks, suggested by Eric Blake
70891         <ebb9@byu.net>.
70892         * tests/test-argp-version-etc-1.sh: Likewise.
70894 2009-08-13  Simon Josefsson  <simon@josefsson.org>
70896         * tests/test-version-etc.sh: Don't fail on different
70897         project/version.
70899 2009-08-12  Bruno Haible  <bruno@clisp.org>
70901         Tests for modules 'getopt-posix', 'getopt-gnu'.
70902         * modules/getopt-posix-tests: New file.
70903         * tests/test-getopt.c: New file.
70904         * tests/test-getopt.h: New file.
70905         * tests/test-getopt_long.h: New file.
70907         New modules 'getopt-posix', 'getopt-gnu'.
70908         * modules/getopt-gnu: New file, renamed from modules/getopt.
70909         * modules/getopt-posix: New file.
70910         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
70911         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
70912         (gl_GETOPT): Remove macro.
70913         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
70914         Disable the test against BSD systems that declare optreset. Test
70915         against mingw bug. Test against lack of support of optional arguments
70916         on many platforms.
70917         * doc/glibc-headers/getopt.texi: Update module name and list of
70918         relevant platforms.
70919         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
70920         'getopt-gnu' and more portability problems.
70921         * NEWS: Mention the changes.
70923 2009-08-12  Bruno Haible  <bruno@clisp.org>
70925         Ensure that optarg etc. get declared by <unistd.h>.
70926         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
70927         AC_USE_SYSTEM_EXTENSIONS.
70928         * modules/getopt (Depends-on): Add 'extensions'.
70930 2009-08-12  Bruno Haible  <bruno@clisp.org>
70932         Avoid test link errors.
70933         * modules/pipe-filter-ii-tests (Makefile.am): Define
70934         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
70935         * modules/pipe-filter-gi-tests (Makefile.am): Define
70936         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
70937         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
70939 2009-08-12  Bruno Haible  <bruno@clisp.org>
70941         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
70942         gl_GETOPT_SUBSTITUTE before.
70943         (gl_GETOPT): Use it.
70944         * m4/argp.m4 (gl_ARGP): Update.
70945         Reported by Sergey Poznyakoff.
70947         * m4/getopt.m4: Reorder macros.
70948         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
70949         (gl_GETOPT_SUBSTITUTE): Remove macro.
70951 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70953         Minor improvement in gitlog-to-changelog
70955         * build-aux/gitlog-to-changelog: New option `--format' makes
70956         output format string configurable.
70958 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70960         Optimize exclude: use hash tables for non-wildcard patterns.
70962         * lib/exclude.c: Include hash.h and mbuiter.h
70963         (struct exclude_pattern, exclude_segment): New data types.
70964         (struct exclude): Rewrite.
70965         (fnmatch_pattern_has_wildcards): New function.
70966         (new_exclude_segment, free_exclude_segment): New functions.
70967         (excluded_file_pattern_p, excluded_file_name_p): New functions.
70968         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
70969         * lib/exclude.h (is_fnmatch_pattern): New prototype.
70970         * modules/exclude: Depend on hash and mbuiter.
70972         * modules/exclude-tests: New file.
70973         * tests/test-exclude.c: New file.
70974         * tests/test-exclude1.sh: New file.
70975         * tests/test-exclude2.sh: New file.
70976         * tests/test-exclude3.sh: New file.
70977         * tests/test-exclude4.sh: New file.
70978         * tests/test-exclude5.sh: New file.
70979         * tests/test-exclude6.sh: New file.
70980         * tests/test-exclude7.sh: New file.
70982 2009-08-12  Bruno Haible  <bruno@clisp.org>
70984         Ensure that getopt() gets declared by <unistd.h>.
70985         * lib/unistd.in.h: Conditionally include getopt.h.
70986         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
70987         Set GNULIB_UNISTD_H_GETOPT.
70988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70989         GNULIB_UNISTD_H_GETOPT.
70990         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
70992 2009-08-12  Bruno Haible  <bruno@clisp.org>
70994         Clarify logic.
70995         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
70996         gl_replace_getopt instead of GETOPT_H.
70998 2009-08-12  Bruno Haible  <bruno@clisp.org>
71000         * m4/getopt.m4: Add comments.
71002 2009-08-12  Bruno Haible  <bruno@clisp.org>
71004         Disable multithread support by default on Cygwin 1.5.x.
71005         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
71006         set gl_use_threads=no if not specified otherwise.
71008 2009-08-11  Bruno Haible  <bruno@clisp.org>
71010         Avoid compilation error on NetBSD 5.0.
71011         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
71012         * tests/test-stdio.c: Likewise.
71013         * tests/test-stdlib.c: Likewise.
71014         * tests/test-string.c: Likewise.
71015         * tests/test-unistd.c: Likewise.
71016         Reported by Greg Troxel <gdt@ir.bbn.com>
71017         at <https://savannah.gnu.org/support/?106973>.
71019 2009-08-11  Bruno Haible  <bruno@clisp.org>
71021         * modules/dup2-tests (Depends-on): Remove close.
71023         Undo 2009-07-19 commit.
71024         * modules/acl-tests (Depends-on): Remove close.
71025         * modules/binary-io-tests (Depends-on): Likewise.
71026         * modules/closein-tests (Depends-on): Likewise.
71027         * modules/flock-tests (Depends-on): Likewise.
71028         * modules/fsync-tests (Depends-on): Likewise.
71029         * modules/lseek-tests (Depends-on): Likewise.
71030         * modules/pipe-tests (Depends-on): Likewise.
71031         * modules/posix_spawn-tests (Depends-on): Likewise.
71032         * modules/posix_spawnp-tests (Depends-on): Likewise.
71033         * modules/stat-time-tests (Depends-on): Likewise.
71034         * modules/yesno-tests (Depends-on): Likewise.
71036 2009-08-10  Bruno Haible  <bruno@clisp.org>
71038         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
71040 2009-08-10  Bruno Haible  <bruno@clisp.org>
71042         Fix a gcc warning.
71043         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
71045 2009-08-10  Bruno Haible  <bruno@clisp.org>
71047         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
71048         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
71049         not only the first time.
71050         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
71051         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
71052         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
71053         is 1, not only the first time.
71055 2009-08-10  Bruno Haible  <bruno@clisp.org>
71057         Make it possible to use module 'gethostname' without module 'close'.
71058         * lib/unistd.in.h (close): Evoke a link error only if
71059         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
71060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71061         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
71062         * modules/unistd (Makefile.am): Substitute
71063         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
71064         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
71065         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
71066         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
71067         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
71068         * modules/sys_ioctl (Makefile.am): Substitute
71069         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
71070         * modules/socket (configure.ac): On native Windows, set
71071         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
71072         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
71073         Reported by Sam Steingold <sds@gnu.org>.
71075 2009-08-10  Bruno Haible  <bruno@clisp.org>
71077         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
71078         * modules/ioctl (configure.ac): Likewise.
71080 2009-08-10  Bruno Haible  <bruno@clisp.org>
71082         Avoid collision between gnulib wrapper and libintl wrapper.
71083         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
71084         already defined in intl/printf.c.
71085         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
71086         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
71088 2009-08-09  Bruno Haible  <bruno@clisp.org>
71090         Make <sys/select.h> really self-contained, also on Solaris 10.
71091         * lib/sys_select.in.h: Include <string.h>.
71092         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
71093         Solaris 10 problem.
71094         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
71095         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
71096         Reported by Jim Meyering.
71098 2009-08-09  Bruno Haible  <bruno@clisp.org>
71100         Avoid warnings from 'aclocal' that are due to a use of macro name
71101         AM_XGETTEXT_OPTION that is not defined in automake.
71102         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
71103         automake.
71104         * modules/error (configure.ac): Likewise.
71105         * modules/propername (configure.ac): Likewise.
71106         * modules/vasprintf (configure.ac): Likewise.
71107         * modules/verror (configure.ac): Likewise.
71108         * modules/xprintf (configure.ac): Likewise.
71109         * modules/xvasprintf (configure.ac): Likewise.
71111 2009-08-08  Bruno Haible  <bruno@clisp.org>
71113         Avoid compilation error in C++ mode.
71114         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
71115         Reported by Sam Steingold <sds@gnu.org>.
71117 2009-08-08  Bruno Haible  <bruno@clisp.org>
71119         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
71120         for the various Unix platforms.
71121         * doc/posix-headers/limits.texi: Update platforms list regarding
71122         HOST_NAME_MAX.
71123         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
71125 2009-08-07  Jim Meyering  <meyering@redhat.com>
71127         selinux-at: fix typo in a comment
71128         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
71129         Spotted by Paolo Bonzini.
71131         selinux-at: remove redundant m4 code, add documentation
71132         * modules/selinux-at (configure.ac): Remove redundant code.
71133         LIB_SELINUX is already set via the dependent module, selinux-h.
71134         (Include): Add quotes around selinux-at.h.
71135         * lib/selinux-at.h: Add documentation.
71136         Reported by Bruno Haible in
71137         http://marc.info/?l=gnulib-bug&m=124958988300749
71139 2009-08-07  Bruno Haible  <bruno@clisp.org>
71141         Avoid link error on MacOS X 10.3 and 10.4.
71142         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
71143         on non-ELF systems.
71144         * lib/argp-pv.c (argp_program_version): Likewise.
71145         Reported by Simon Josefsson.
71147 2009-08-07  Simon Josefsson  <simon@josefsson.org>
71149         * tests/test-version-etc.sh: Use $EXEEXT.
71151 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
71153         update-copyright: update documentation to point to maint.mk
71154         * build-aux/update-copyright: Here.
71156 2009-08-06  Jim Meyering  <meyering@redhat.com>
71158         maint.mk: support update-copyright-local
71159         * top/maint.mk (update-copyright-local): Define place-holder.
71160         (update-copyright): Depend on $(update-copyright-local).
71162 2009-08-06  Jim Meyering  <meyering@redhat.com>
71164         selinux-at: new module
71165         Initially written for coreutils, this module will soon be
71166         used by findutils, too.
71167         * MODULES.html.sh [Misc]: Add selinux-at.
71168         * lib/selinux-at.h: New file, from coreutils.
71169         * lib/selinux-at.c: Likewise.
71170         * modules/selinux-at: Likewise.
71171         (License): Change from LGPL to GPL, since it depends
71172         on the GPL'd openat module.
71174         doc: update README
71175         * README: Remove references to cogito.
71176         Remove cvs-repo-updating instructions from 2007.
71177         Don't imply that CVS is better if you have limited disk space.
71179 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
71181         update-copyright: support C-style comments
71182         * build-aux/update-copyright: Implement and document.
71183         * tests/test-update-copyright.sh: Test.
71185 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
71187         update-copyright: support omitted "(C)"
71188         * build-aux/update-copyright: Implement and document.  Also,
71189         allow variable whitespace before "(C)".
71190         * tests/test-update-copyright.sh: Test.
71192 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
71194         update-copyright: don't trip on non-FSF copyright statements
71195         * build-aux/update-copyright: Fix so that the first correctly
71196         formatted FSF copyright statement is recognized no matter what
71197         appears before it.  Update documentation.
71198         * tests/test-update-copyright.sh: Test that.
71200 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
71202         update-copyright: clean up code a little
71203         * build-aux/update-copyright: Append "_re" to the name of any
71204         variable holding a regular expression.
71205         Replace "old" and "new" with "stmt" in variable names.
71206         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
71207         handled correctly.
71208         Format code more consistently.
71210 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
71212         update-copyright-tests: improve portability
71213         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
71214         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
71216 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
71218         update-copyright: support @copyright{} and &copy;
71219         * build-aux/update-copyright: Implement and document.
71220         * tests/test-update-copyright.sh: Test.
71222 2009-08-04  Jim Meyering  <meyering@redhat.com>
71224         update-copyright-tests: correctly test EOL=\r\n handling
71225         * tests/test-update-copyright.sh: Put \r at the end of some lines
71226         for the dos-eol tests.  Based on a patch by Joel E. Denny.
71228         maint.mk: make update-copyright exclusion list more configurable
71229         * top/maint.mk (update-copyright): Default to excluding COPYING,
71230         but allow an override, in case someone does want to update that file.
71232         maint.mk: don't update copyright date in COPYING
71233         * top/maint.mk (update-copyright): Exclude COPYING.
71235         maint.mk: add a copyright-updating rule
71236         * top/maint.mk (update-copyright): New rule.
71237         Derived from coreutils/Makefile.am.
71239         update-copyright: rename some variables
71240         * build-aux/update-copyright: Rename a few variables for clarity.
71241         Tweak syntax.  List Joel E. Denny as coauthor.
71243 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
71245         update-copyright: fix bug for 2-digit last year and add tests
71246         * build-aux/update-copyright: Fix bug.
71247         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
71248         specified.
71249         * modules/update-copyright-tests: New
71250         * tests/test-update-copyright.sh: New.
71252 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
71254         update-copyright: handle leading tabs in line prefix
71255         * build-aux/update-copyright: Count leading tabs as 8 spaces
71256         when computing margin.  This helps with the formatting of
71257         ChangeLogs, for example.
71258         Fix documentation a little.
71260 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
71262         update-copyright: support EOL=\r\n
71263         * build-aux/update-copyright: Implement that.
71265 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
71267         update-copyright: automatically format copyright statements
71268         * build-aux/update-copyright: Implement that.
71269         Also, be a little more predictable and safer by always failing
71270         when the full copyright format is not perfectly recognized as an
71271         unbroken whole.  Discussed at
71272         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
71273         Rewrite documentation.
71275 2009-08-03  Bruno Haible  <bruno@clisp.org>
71277         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
71279 2009-08-02  Bruno Haible  <bruno@clisp.org>
71281         Tests for module 'uname'.
71282         * modules/uname-tests: New file.
71283         * tests/test-uname.c: New file.
71285         New module 'uname'.
71286         * lib/uname.c: New file.
71287         * m4/uname.m4: New file.
71288         * modules/uname: New file.
71289         * doc/posix-functions/uname.texi: Mention the new module.
71291 2009-08-02  Bruno Haible  <bruno@clisp.org>
71293         Tests for module 'sys_utsname'.
71294         * modules/sys_utsname-tests: New file.
71295         * tests/test-sys_utsname.c: New file.
71297         New module 'sys_utsname'.
71298         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
71299         * m4/sys_utsname_h.m4: New file.
71300         * modules/sys_utsname: New file.
71301         * doc/posix-headers/sys_utsname.texi: Mention the new module.
71303 2009-08-02  Bruno Haible  <bruno@clisp.org>
71305         Implicitly initialize the sockets library.
71306         * lib/gethostname.c: Include sockets.h.
71307         (rpl_gethostname): Invoke gl_sockets_startup.
71308         * lib/socket.c: Include sockets.h.
71309         (rpl_socket): Invoke gl_sockets_startup.
71310         * modules/gethostname (Depends-on): Add sockets.
71311         * modules/socket (Depends-on): Likewise.
71312         * tests/test-poll.c: Don't include sockets.h.
71313         (main): Don't invoke gl_sockets_startup.
71314         * tests/test-select.c: Don't include sockets.h.
71315         (main): Don't invoke gl_sockets_startup.
71317 2009-08-02  Bruno Haible  <bruno@clisp.org>
71319         Allow multiple calls to gl_sockets_startup.
71320         * lib/sockets.c (initialized_sockets_version): New variable.
71321         (gl_sockets_startup): Do nothing if already called for this or a higher
71322         version.
71323         (gl_sockets_cleanup): Reset initialized_sockets_version.
71325 2009-08-03  Simon Josefsson  <simon@josefsson.org>
71327         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
71328         different project/version.
71330 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
71331             Bruno Haible  <bruno@clisp.org>
71333         Tests for module 'pipe-filter-gi'.
71334         * modules/pipe-filter-gi-tests: New file.
71335         * tests/test-pipe-filter-gi1.sh: New file.
71336         * tests/test-pipe-filter-gi1.c: New file.
71337         * tests/test-pipe-filter-gi2.sh: New file.
71338         * tests/test-pipe-filter-gi2-main.c: New file.
71339         * tests/test-pipe-filter-gi2-child.c: New file.
71341         New module 'pipe-filter-gi'.
71342         * lib/pipe-filter-gi.c: New file.
71343         * modules/pipe-filter-gi: New file.
71345 2009-08-02  Bruno Haible  <bruno@clisp.org>
71346             Paolo Bonzini  <bonzini@gnu.org>
71348         Tests for module 'pipe-filter-ii'.
71349         * modules/pipe-filter-ii-tests: New file.
71350         * tests/test-pipe-filter-ii1.sh: New file.
71351         * tests/test-pipe-filter-ii1.c: New file.
71352         * tests/test-pipe-filter-ii2.sh: New file.
71353         * tests/test-pipe-filter-ii2-main.c: New file.
71354         * tests/test-pipe-filter-ii2-child.c: New file.
71356         New module 'pipe-filter-ii'.
71357         * lib/pipe-filter.h: New file.
71358         * lib/pipe-filter-ii.c: New file.
71359         * lib/pipe-filter-aux.h: New file.
71360         * modules/pipe-filter-ii: New file.
71362 2009-08-02  Simon Josefsson  <simon@josefsson.org>
71364         * lib/gc-libgcrypt.c: Change copyright to FSF.
71365         * lib/gc-gnulib.c: Likewise.
71367 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
71369         * lib/gethostname.c: Include limits.h.
71371 2009-08-02  Simon Josefsson  <simon@josefsson.org>
71372             Bruno Haible  <bruno@clisp.org>
71374         Ensure HOST_NAME_MAX as part of the gethostname module.
71375         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
71376         define also HOST_NAME_MAX.
71377         * tests/test-gethostname.c: Include <limits.h>.
71378         (main): Check also HOST_NAME_MAX.
71379         * doc/posix-headers/limits.texi: Document the mingw problem.
71381 2009-08-02  Bruno Haible  <bruno@clisp.org>
71383         * lib/gethostname.c (gethostname): Fix handling of large len argument.
71384         Add comments.
71386 2009-03-31  Simon Josefsson  <simon@josefsson.org>
71388         * lib/gethostname.c: Add Windows wrapper.
71389         * m4/gethostname.m4: Look for gethostname in -lws2_32.
71390         * modules/gethostname: Depend on sys_socket & errno, for also
71391         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
71392         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
71394 2009-07-31  Jim Meyering  <meyering@redhat.com>
71396         getloadavg: fix symbol name in comment
71397         * lib/getloadavg.c: Correct a typo I introduced when adding
71398         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
71399         Matt Kraai spotted the problem.
71401 2009-07-29  Matt Kraai  <mkraai@beckman.com>
71403         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
71404         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
71405         code also if ! defined N_NAME_POINTER.
71406         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
71407         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
71408         but the n_name member is a 12-byte array.
71410 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
71412         update-copyright: generalize comment handling
71413         * build-aux/update-copyright: Handle copyright statements
71414         within more comment styles.
71415         Document usage.
71416         Report any file with an external copyright holder or parse failure.
71418 2009-07-29  Jim Meyering  <meyering@redhat.com>
71420         mktime: correct setting of REPLACE_MKTIME
71421         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
71423         update-copyright: new module
71424         * modules/update-copyright: New file.
71425         * build-aux/update-copyright: New file.
71426         * MODULES.html.sh (maint+release support): Add update-copyright.
71428 2009-07-27  Bruno Haible  <bruno@clisp.org>
71430         Fix compilation error when <ctime> is used and mktime is replaced.
71431         * lib/time.in.h (mktime): New declaration.
71432         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
71433         REPLACE_MKTIME instead of defining mktime in config.h.
71434         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
71435         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
71436         Reported by Ross McFarland <rwmcfa1@neces.com>.
71438 2009-07-27  Bruno Haible  <bruno@clisp.org>
71440         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
71441         Reported by Matt Kraai <mkraai@beckman.com>.
71443 2009-07-25  Jim Meyering  <meyering@redhat.com>
71445         maint.mk: avoid warnings about missing files
71446         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
71447         diagnostic when .prev-version does not exist.
71448         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
71449         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
71450         nonexistent cfg.mk.
71451         Suggestions from Simon Josefsson.
71453 2009-07-25  Bruno Haible  <bruno@clisp.org>
71455         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
71456         defined as macros. Needed on QNX 6.4.1.
71457         Reported by Matt Kraai <mkraai@beckman.com>.
71459 2009-07-23  Jim Meyering  <meyering@redhat.com>
71461         maint.mk: invoke "make dist" with a working value of XZ_OPT
71462         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
71464 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
71466         Make fseeko.c compile on QNX.
71467         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
71469 2009-07-22  Peter Simons  <simons@cryp.to>
71471         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
71472         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
71473         * lib/md4.h: Likewise.
71474         * lib/md5.h: Likewise.
71475         * lib/sha1.h: Likewise.
71476         * lib/sha256.h: Likewise.
71477         * lib/sha512.h: Likewise.
71479         tests-sha1: don't assign literal string to 'char *' variable
71480         * tests/test-sha1.c (main): Declare locals with "const" to match
71481         attributes of the right hand side.
71483 2009-07-21  Eric Blake  <ebb9@byu.net>
71485         dup2: fix more mingw problems
71486         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
71487         fd to itself.
71488         * doc/posix-functions/dup2.texi (dup2): Document the bug.
71489         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
71490         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
71491         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
71492         care of mingw bugs.
71494 2009-07-21  Jim Meyering  <meyering@redhat.com>
71496         vc-list-files: avoid failure when /bin/sh is dash
71497         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
71498         On some Debian based systems, /bin/sh is a symlink to dash, and running
71499         this command would omit the "/" following each 'tests' prefix:
71500           dash -x build-aux/vc-list-files -C . tests
71501         That is because bash and dash work differently:
71502           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
71503           bash ok
71504           dash odd
71506 2009-07-21  Eric Blake  <ebb9@byu.net>
71508         dup2-tests: test previous patch
71509         * modules/dup2-tests: New file.
71510         * tests/test-dup2.c: Likewise.
71511         * tests/test-open.c (main): Avoid unspecified behavior.
71512         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
71513         test.
71515         dup2: work around mingw and cygwin 1.5 bug
71516         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
71517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
71518         * modules/unistd (Makefile.am): Substitute it.
71519         * lib/unistd.in.h (dup2): Declare the replacement.
71520         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
71521         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
71522         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
71523         * modules/execute (Depends-on): Add dup2.
71524         * modules/fseterr (Depends-on): Likewise.
71525         * modules/pipe (Depends-on): Likewise.
71526         * modules/posix_spawn-internal (Depends-on): Likewise.
71528 2009-07-21  Bruno Haible  <bruno@clisp.org>
71530         * modules/.gitattributes: New file.
71532 2009-07-20  Bruno Haible  <bruno@clisp.org>
71534         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
71535         (main): Use it.
71537 2009-07-20  Eric Blake  <ebb9@byu.net>
71539         test-pipe: make a bit more robust.
71540         * tests/test-pipe.c (myerr): Allow error messages regardless of
71541         what we do to stderr.
71542         (test_pipe): Rearrange to avoid deadlock.
71543         (child_main): Try a larger read, to ensure we avoided deadlock.
71544         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
71545         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
71546         if misused.
71548 2009-07-19  Jim Meyering  <meyering@redhat.com>
71550         fts: avoid false-positive cycle-detection
71551         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
71552         for each new command line argument.
71554 2009-07-19  Bruno Haible  <bruno@clisp.org>
71556         Fix build error on mingw with the modules sys_select and unistd.
71557         * modules/acl-tests (Depends-on): Add close.
71558         * modules/binary-io-tests (Depends-on): Likewise.
71559         * modules/closein-tests (Depends-on): Likewise.
71560         * modules/flock-tests (Depends-on): Likewise.
71561         * modules/fsync-tests (Depends-on): Likewise.
71562         * modules/lseek-tests (Depends-on): Likewise.
71563         * modules/pipe-tests (Depends-on): Likewise.
71564         * modules/posix_spawn-tests (Depends-on): Likewise.
71565         * modules/posix_spawnp-tests (Depends-on): Likewise.
71566         * modules/stat-time-tests (Depends-on): Likewise.
71567         * modules/yesno-tests (Depends-on): Likewise.
71569 2009-07-19  Bruno Haible  <bruno@clisp.org>
71571         Unify conditionals.
71572         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
71573         macros, not at the compiler macros.
71574         * lib/pipe.c: Likewise.
71575         * lib/execute.c: Likewise.
71576         * lib/spawni.c: Likewise.
71578 2009-07-19  Bruno Haible  <bruno@clisp.org>
71580         Fix handling of closed stdin/stdout/stderr on mingw.
71581         * lib/w32spawn.h: Include unistd.h.
71582         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
71583         file descriptor with O_NOINHERIT flag.
71584         (fd_safer_noinherit): New function, based on fd-safer.c.
71585         (dup_safer_noinherit): New function, based on dup-safer.c.
71586         (undup_safer_noinherit): New function.
71587         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
71588         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
71589         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
71590         instead of fd_safer.
71591         * tests/test-pipe.c: Include <windows.h>.
71592         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
71593         result.
71595         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
71596         from main.
71597         (test_pipe): Pass an extra argument for disambiguation.
71598         (main): Invoke parent_main or child_main.
71600         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
71601         consistently.
71603 2009-07-18  Eric Blake  <ebb9@byu.net>
71605         test-pipe: fix mingw build
71606         * tests/test-pipe.c (main): Avoid fcntl on mingw.
71608 2009-07-18  Bruno Haible  <bruno@clisp.org>
71610         * modules/pipe-tests (Makefile.am): Fix typo.
71612 2009-07-18  Eric Blake  <ebb9@byu.net>
71614         error: fix mingw build
71615         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
71616         Reported by Bruno Haible.
71618         error: avoid undefined use of stdout
71619         * lib/error.c (error, error_at_line): Check that fd 1 is open
71620         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
71621         is handling faults and the close_stdout module wants to report the
71622         detection of closed stdout as an error.
71624 2009-07-17  Eric Blake  <ebb9@byu.net>
71626         pipe: be robust in face of closed fds
71627         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
71628         should cause child to misbehave.
71629         * modules/pipe-tests: New module.
71630         * tests/test-pipe.c: New file.
71631         * tests/test-pipe.sh: New file.
71632         Reported by Akim Demaille.
71634 2009-07-14  Bruno Haible  <bruno@clisp.org>
71636         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
71637         Reported by anonymous kc.
71639 2009-07-07  Jim Meyering  <meyering@redhat.com>
71641         maint.mk: don't look for translatable strings in *.m4 or *.mk
71642         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
71643         when searching for translatable strings.
71645 2009-07-05  Jim Meyering  <meyering@redhat.com>
71647         remove superfluous parentheses in STREQ definition
71648         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
71649         * lib/getugroups.c (STREQ): Likewise.
71650         * lib/fnmatch.c (STREQ): Likewise.
71651         Spotted by Bruno Haible.
71653 2009-07-04  Jim Meyering  <meyering@redhat.com>
71655         argv-iter: new module
71656         * MODULES.html.sh: Add argv-iter.
71657         * lib/argv-iter.c, lib/argv-iter.h: New files.
71658         * modules/argv-iter: New file.
71659         * modules/argv-iter-tests: New file.
71660         * tests/test-argv-iter.c: Test it.
71662 2009-07-04  Bruno Haible  <bruno@clisp.org>
71664         Fix assertion.
71665         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
71666         contains more exact copies of a given entry than file2, leave the extra
71667         copies unpaired rather than aborting.
71668         Reported by Eric Blake.
71670 2009-07-02  Bruno Haible  <bruno@clisp.org>
71672         Speedup git-merge-changelog for git cherry-pick.
71673         * lib/git-merge-changelog.c (struct entries_mapping): New type.
71674         (entries_mapping_get): New function, extracted from compute_mapping.
71675         (entries_mapping_reverse_get): New function.
71676         (compute_mapping): Add a 'full' argument. Return the result in a
71677         'struct entries_mapping'.
71678         (main): Update. Access the mappings through entries_mapping_get.
71679         Reported by Eric Blake.
71681 2009-07-02  Bruno Haible  <bruno@clisp.org>
71683         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
71684         best_i.
71686 2009-07-02  Bruno Haible  <bruno@clisp.org>
71688         Speed up approximate search for matching ChangeLog entries.
71689         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
71690         argument. Call fstrcmp_bounded instead of fstrcmp.
71691         (compute_mapping, try_split_merged_entry, main): Update callers.
71693 2009-07-02  Bruno Haible  <bruno@clisp.org>
71695         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
71697 2009-06-30  Bruno Haible  <bruno@clisp.org>
71699         Reduce the number of uc_is_cased calls.
71700         * lib/unicase.h (casing_suffix_context_t): Add
71701         'first_char_except_ignorable' field.
71702         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
71703         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
71704         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
71705         Update initializer.
71706         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
71707         case-ignorable characters.
71708         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
71709         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
71710         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
71711         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
71712         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
71714 2009-06-30  Bruno Haible  <bruno@clisp.org>
71716         Tests for module 'unicase/ignorable'.
71717         * modules/unicase/ignorable-tests: New file.
71718         * tests/unicase/test-ignorable.c: New file, generated by
71719         gen-uni-tables.
71721         Tests for module 'unicase/cased'.
71722         * modules/unicase/cased-tests: New file.
71723         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
71724         * tests/unicase/test-predicate-part1.h: New file, derived from
71725         tests/unictype/test-predicate-part1.h.
71726         * tests/unicase/test-predicate-part2.h: New file, same as
71727         tests/unictype/test-predicate-part2.h.
71729         Fix evaluation of "Before C" condition of FINAL_SIGMA.
71730         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
71731         (output_casing_properties): New function.
71732         (main): Call it.
71733         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
71734         * lib/unicase/cased.c: Include unictype/bitmap.h.
71735         (uc_is_cased): Define through a bitmap lookup.
71736         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
71737         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
71738         (uc_is_case_ignorable): Define through a bitmap lookup.
71739         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
71740         lib/unictype/bitmap.h.
71741         (Depends-on): Add inline. Clean up.
71742         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
71743         lib/unictype/bitmap.h.
71744         (Depends-on): Add inline. Clean up.
71745         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
71746         recognition.
71747         * tests/unicase/test-u16-tolower.c (main): Likewise.
71748         * tests/unicase/test-u32-tolower.c (main): Likewise.
71750 2009-06-30  Bruno Haible  <bruno@clisp.org>
71752         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
71753         * lib/unicase/u16-casemap.c: Likewise.
71754         * lib/unicase/u32-casemap.c: Likewise.
71756 2009-06-29  Bruno Haible  <bruno@clisp.org>
71758         Define u32_casefold as a wrapper around u32_ct_casefold.
71759         * lib/unicase/u32-casefold.c: Update.
71760         * modules/unicase/u32-casefold (Depends-on): Add
71761         unicase/u32-ct-casefold, unicase/empty-prefix-context,
71762         unicase/empty-suffix-context. Clean up.
71764         Define u16_casefold as a wrapper around u16_ct_casefold.
71765         * lib/unicase/u16-casefold.c: Update.
71766         * modules/unicase/u16-casefold (Depends-on): Add
71767         unicase/u16-ct-casefold, unicase/empty-prefix-context,
71768         unicase/empty-suffix-context. Clean up.
71770         Define u8_casefold as a wrapper around u8_ct_casefold.
71771         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
71772         * lib/unicase/u8-casefold.c: Update.
71773         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
71774         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
71776         Define u32_totitle as a wrapper around u32_ct_totitle.
71777         * lib/unicase/u32-totitle.c: Update.
71778         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
71779         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
71781         Define u16_totitle as a wrapper around u16_ct_totitle.
71782         * lib/unicase/u16-totitle.c: Update.
71783         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
71784         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
71786         Define u8_totitle as a wrapper around u8_ct_totitle.
71787         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
71788         functions.
71789         (FUNC): Delegate to U_CT_TOTITLE.
71790         * lib/unicase/u8-totitle.c: Update.
71791         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
71792         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
71794         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
71795         invocation.
71796         * modules/unicase/u32-tolower (Depends-on): Add
71797         unicase/empty-prefix-context, unicase/empty-suffix-context.
71799         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
71800         invocation.
71801         * modules/unicase/u16-tolower (Depends-on): Add
71802         unicase/empty-prefix-context, unicase/empty-suffix-context.
71804         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
71805         * modules/unicase/u8-tolower (Depends-on): Add
71806         unicase/empty-prefix-context, unicase/empty-suffix-context.
71808         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
71809         invocation.
71810         * modules/unicase/u32-toupper (Depends-on): Add
71811         unicase/empty-prefix-context, unicase/empty-suffix-context.
71813         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
71814         invocation.
71815         * modules/unicase/u16-toupper (Depends-on): Add
71816         unicase/empty-prefix-context, unicase/empty-suffix-context.
71818         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
71819         * modules/unicase/u8-toupper (Depends-on): Add
71820         unicase/empty-prefix-context, unicase/empty-suffix-context.
71822         New module 'unicase/u32-ct-casefold'.
71823         * lib/unicase/u32-ct-casefold.c: New file.
71824         * modules/unicase/u32-ct-casefold: New file.
71826         New module 'unicase/u16-ct-casefold'.
71827         * lib/unicase/u16-ct-casefold.c: New file.
71828         * modules/unicase/u16-ct-casefold: New file.
71830         New module 'unicase/u8-ct-casefold'.
71831         * lib/unicase/u8-ct-casefold.c: New file.
71832         * lib/unicase/u-ct-casefold.h: New file, derived from
71833         lib/unicase/u-casefold.h.
71834         * modules/unicase/u8-ct-casefold: New file.
71836         New module 'unicase/u32-ct-totitle'.
71837         * lib/unicase/u32-ct-totitle.c: New file.
71838         * modules/unicase/u32-ct-totitle: New file.
71840         New module 'unicase/u16-ct-totitle'.
71841         * lib/unicase/u16-ct-totitle.c: New file.
71842         * modules/unicase/u16-ct-totitle: New file.
71844         New module 'unicase/u8-ct-totitle'.
71845         * lib/unicase/u8-ct-totitle.c: New file.
71846         * lib/unicase/u-ct-totitle.h: New file, derived from
71847         lib/unicase/u-totitle.h.
71848         * modules/unicase/u8-ct-totitle: New file.
71850         New module 'unicase/u32-ct-tolower'.
71851         * lib/unicase/u32-ct-tolower.c: New file.
71852         * modules/unicase/u32-ct-tolower: New file.
71854         New module 'unicase/u16-ct-tolower'.
71855         * lib/unicase/u16-ct-tolower.c: New file.
71856         * modules/unicase/u16-ct-tolower: New file.
71858         New module 'unicase/u8-ct-tolower'.
71859         * lib/unicase/u8-ct-tolower.c: New file.
71860         * modules/unicase/u8-ct-tolower: New file.
71862         New module 'unicase/u32-ct-toupper'.
71863         * lib/unicase/u32-ct-toupper.c: New file.
71864         * modules/unicase/u32-ct-toupper: New file.
71866         New module 'unicase/u16-ct-toupper'.
71867         * lib/unicase/u16-ct-toupper.c: New file.
71868         * modules/unicase/u16-ct-toupper: New file.
71870         New module 'unicase/u8-ct-toupper'.
71871         * lib/unicase/u8-ct-toupper.c: New file.
71872         * modules/unicase/u8-ct-toupper: New file.
71874         Add context arguments to u*_casemap functions.
71875         * lib/unicase/unicasemap.h: Include unicase.h.
71876         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
71877         suffix_context arguments.
71878         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
71879         functions.
71880         (FUNC): Add prefix_context and suffix_context arguments. Use
71881         uc_is_cased and uc_is_case_ignorable.
71882         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
71883         * lib/unicase/u16-casemap.c: Likewise.
71884         * lib/unicase/u32-casemap.c: Likewise.
71885         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
71886         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
71887         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
71888         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
71889         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
71890         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
71892         New module 'unicase/u32-suffix-context'.
71893         * lib/unicase/u32-suffix-context.c: New file.
71894         * modules/unicase/u32-suffix-context: New file.
71896         New module 'unicase/u16-suffix-context'.
71897         * lib/unicase/u16-suffix-context.c: New file.
71898         * modules/unicase/u16-suffix-context: New file.
71900         New module 'unicase/u8-suffix-context'.
71901         * lib/unicase/u8-suffix-context.c: New file.
71902         * lib/unicase/u-suffix-context.h: New file.
71903         * modules/unicase/u8-suffix-context: New file.
71905         New module 'unicase/empty-suffix-context'.
71906         * lib/unicase/empty-suffix-context.c: New file.
71907         * modules/unicase/empty-suffix-context: New file.
71909         New module 'unicase/u32-prefix-context'.
71910         * lib/unicase/u32-prefix-context.c: New file.
71911         * modules/unicase/u32-prefix-context: New file.
71913         New module 'unicase/u16-prefix-context'.
71914         * lib/unicase/u16-prefix-context.c: New file.
71915         * modules/unicase/u16-prefix-context: New file.
71917         New module 'unicase/u8-prefix-context'.
71918         * lib/unicase/u8-prefix-context.c: New file.
71919         * lib/unicase/u-prefix-context.h: New file.
71920         * lib/unicase/context.h: New file.
71921         * modules/unicase/u8-prefix-context: New file.
71923         New module 'unicase/empty-prefix-context'.
71924         * lib/unicase/empty-prefix-context.c: New file.
71925         * modules/unicase/empty-prefix-context: New file.
71927         New module 'unicase/ignorable'.
71928         * lib/unicase/ignorable.c: New file.
71929         * modules/unicase/ignorable: New file.
71931         New module 'unicase/cased'.
71932         * lib/unicase/caseprop.h: New file.
71933         * lib/unicase/cased.c: New file.
71934         * modules/unicase/cased: New file.
71936         New functions for case mapping of substrings.
71937         * lib/unicase.h (casing_prefix_context_t): New type.
71938         (unicase_empty_prefix_context): New variable.
71939         (u8_casing_prefix_context, u16_casing_prefix_context,
71940         u32_casing_prefix_context, u8_casing_prefixes_context,
71941         u16_casing_prefixes_context, u32_casing_prefixes_context): New
71942         declarations.
71943         (casing_suffix_context_t): New type.
71944         (unicase_empty_suffix_context): New variable.
71945         (u8_casing_suffix_context, u16_casing_suffix_context,
71946         u32_casing_suffix_context, u8_casing_suffixes_context,
71947         u16_casing_suffixes_context, u32_casing_suffixes_context,
71948         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
71949         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
71950         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
71951         declarations.
71953 2009-06-28  Jim Meyering  <meyering@redhat.com>
71955         boostrap: indent only with spaces
71956         * build-aux/bootstrap: Indent only with spaces, never TABs.
71958         bootstrap: split long lines
71959         * build-aux/bootstrap: Keep line length < 80.
71961         bootstrap: sync from coreutils
71962         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
71963         just as autoreconf does.  Verify a list of prerequisite
71964         package-name,version-number pairs if defined in bootstrap.conf.
71965         Refer to README-prereq, if prerequisites are not satisfied.
71967 2009-06-27  Eric Blake  <ebb9@byu.net>
71969         tests: add test for bogus NULL definition
71970         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
71971         * tests/test-stdlib.c: Likewise.
71972         * tests/test-string.c: Likewise.
71973         * tests/test-locale.c: Likewise.
71974         * tests/test-unistd.c: Likewise.
71975         * modules/stdio-tests (Depends-on): Add verify.
71976         * modules/stdlib-tests (Depends-on): Likewise.
71977         * modules/string-tests (Depends-on): Likewise.
71978         * modules/locale-tests (Depends-on): Likewise.
71979         * modules/unistd-tests (Depends-on): Likewise.
71981 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
71983         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
71984         self-explaining comment.
71985         * m4/selinux-selinux-h: Update serial.
71986         (gl_LIBSELINUX): New macro, adding a warning for missing development
71987         packages to code extracted from...
71988         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
71989         Add warning for missing development packages here, too.
71991 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
71993         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
71995 2009-06-25  Eric Blake  <ebb9@byu.net>
71997         version-etc: fix regression
71998         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
71999         gcc.
72000         (version_etc): Use it, to catch bugs with trailing NULL.
72001         * lib/version-etc.c (version_etc_arn): Delete unused argument.
72002         (version_etc_va): Fix logic bug.
72003         * modules/version-etc-tests: Add test.
72004         * tests/test-version-etc.c: New file.
72005         * tests/test-version-etc.sh: Likewise.
72007 2009-06-25  Sam Steingold  <sds@gnu.org>
72009         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
72010         mbtowc declaration.
72012 2009-06-25  Eric Blake  <ebb9@byu.net>
72014         fpurge: migrate into <stdio.h>
72015         * lib/fpurge.h: Delete...
72016         * lib/stdio.in.h (fpurge): ...and declare here, instead.
72017         * lib/fpurge.c (fpurge): Change declaring header.
72018         * modules/fpurge (Files): Drop deleted file.
72019         (Depends-on): Add stdio.
72020         (configure.ac): Set witness.
72021         * modules/stdio (Makefile.am): Support fpurge macros.
72022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
72023         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
72024         * lib/fflush.c: Update client.
72025         * tests/test-fpurge.c: Likewise.
72026         * NEWS: Mention the change.
72028 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72030         * lib/argp-version-etc.c (program_authors): Add const
72031         qualifier.
72032         * lib/version-etc.c: Fix typos in the comments.
72033         * modules/argp-version-etc: Depends on version-etc.
72035 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72037         argp-version-etc: new module.
72039         * lib/argp-version-etc.c: New file.
72040         * lib/argp-version-etc.h: New file.
72041         * modules/argp-version-etc: New file.
72042         * modules/argp-version-etc-tests: New file.
72043         * tests/test-argp-version-etc.c: New test.
72044         * tests/test-argp-version-etc-1.sh: New test.
72046 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72048         Provide additional interfaces and documentation for version-etc
72049         module.
72051         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
72052         interfaces.
72053         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
72054         prototypes.
72056 2009-06-24  Bruno Haible  <bruno@clisp.org>
72058         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
72059         HAVE_LIB${NAME} macro.
72060         Reported by Sam Steingold <sds@gnu.org>.
72062 2009-06-23  Simon Josefsson  <simon@josefsson.org>
72064         * modules/hash-tests (test_hash_LDADD): Link to libintl when
72065         needed.
72067 2009-06-21  Bruno Haible  <bruno@clisp.org>
72069         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
72070         work.
72071         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
72072         together with LIB${NAME}, LTLIB${NAME}.
72073         Reported by Sam Steingold <sds@gnu.org>.
72075 2009-06-20  Jim Meyering  <meyering@redhat.com>
72077         tests: make sc_require_test_exit_idiom more generic
72078         * top/maint.mk (Exit_witness_file): New overridable variable.
72079         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
72080         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
72082 2009-06-19  Jim Meyering  <meyering@redhat.com>
72084         hash: reverse order of src/dst parameters in an internal interface
72085         * lib/hash.c (transfer_entries): Reverse order of parameters to
72086         put DST before SRC.  Adjust callers.
72088         tests: test-hash: avoid wholesale duplication
72089         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
72090         Instead, use a loop and add a single conditional.
72092         tests: test-hash: allow seed selection via a command line argument
72093         * tests/test-hash.c (get_seed): New function.
72094         (main): Use it.
72096 2009-06-19  Eric Blake  <ebb9@byu.net>
72098         hash: avoid memory leak on allocation failure
72099         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
72100         failure.  Factor repeated algorithm...
72101         (transfer_entries): ...into new helper routine.
72102         (hash_delete): React to hash_rehash return value.
72104         hash: reduce memory pressure in hash_rehash no-op case
72105         * lib/hash.c (next_prime): Avoid overflow.
72106         (hash_initialize): Factor bucket size computation...
72107         (compute_bucket_size): ...into new helper function.
72108         (hash_rehash): Use new function and open coding to reduce memory
72109         pressure, and avoid a memory leak in USE_OBSTACK code.
72110         Reported by Jim Meyering.
72112 2009-06-18  Eric Blake  <ebb9@byu.net>
72114         hash: make rotation more obvious
72115         * modules/hash (Depends-on): Add bitrotate and stdint.
72116         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
72117         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
72118         (SIZE_MAX): Rely on headers for definition.
72119         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
72120         (raw_hasher): Use rotr_sz.
72121         Suggested by Jim Meyering.
72123         hash: fix memory leak in last patch
72124         * lib/hash.c (hash_rehash): Avoid memory leak.
72126         hash: avoid no-op rehashing
72127         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
72129         hash: provide default callback functions
72130         * lib/hash.c (raw_hasher, raw_comparator): New functions.
72131         (hash_initialize): Use them as defaults.
72132         * tests/test-hash.c (main): Test this.
72134         hash: minor optimization
72135         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
72136         when possible.
72137         (hash_initialize): Document this promise.
72138         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
72139         * tests/test-hash.c (hash_compare_strings): Test this.
72141 2009-06-18  Bruno Haible  <bruno@clisp.org>
72143         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
72144         going to be replaced anyway.
72146 2009-06-18  Bruno Haible  <bruno@clisp.org>
72148         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
72149         in one place.
72150         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
72151         be replaced anyway.
72153 2009-06-18  Eric Blake  <ebb9@byu.net>
72155         hash: check for resize before insertion
72156         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
72157         threshold before insertion, so that a pathological hash_rehash
72158         that fills every bucket can still trigger another rehash.
72160 2009-06-18  Jim Meyering  <meyering@redhat.com>
72162         hash-tests: add a loop around the small tests
72163         * tests/test-hash.c (main): Repeat small tests with selected
72164         small initial table sizes.
72166 2009-06-17  Eric Blake  <ebb9@byu.net>
72168         hash: minor cleanups
72169         * lib/hash.h (hash_entry): Make opaque, by moving...
72170         * lib/hash.c (hash_entry): ...here.
72171         (hash_insert): Clarify restrictions on what can be inserted.
72172         (hash_get_next): Clarify when it is safe to remove an element
72173         during traversal.
72174         (check_tuning): Skip verification when tuning is known safe.
72175         (hash_initialize): Clarify restrictions on tuning.
72177 2009-06-17  Jim Meyering  <jim@meyering.net>
72178         and Eric Blake  <ebb9@byu.net>
72180         hash-tests: new module
72181         * modules/hash-tests: New file.
72182         * tests/test-hash.c: New file.
72184 2009-06-17  Eric Blake  <ebb9@byu.net>
72186         strstr-simple: document new module
72187         * MODULES.html.sh: Document new module.
72189         strstr, strcasestr: replace on platforms with broken memchr
72190         * modules/strstr: Split into...
72191         * modules/strstr-simple: ...new module that does not care about
72192         performance, but does care about glibc bug.
72193         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
72194         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
72195         if platform memchr is broken, per Debian bug 521737.
72196         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
72197         memchr.
72198         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
72199         * doc/posix-functions/strstr.texi (strstr): Document the fix.
72200         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
72201         * modules/mountlist (Depends-on): Add strstr-simple.
72202         * modules/gen-uni-tables (Depends-on): Likewise.
72203         * modules/argz (Depends-on): Add strstr.
72205 2009-06-17  Bruno Haible  <bruno@clisp.org>
72207         * modules/posix_spawn-internal (Depends-on): Add errno.
72209 2009-06-17  Bruno Haible  <bruno@clisp.org>
72211         Define missing ESTALE on Interix 3.5.
72212         * lib/errno.in.h (ESTALE): Assign a value if missing.
72213         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
72214         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
72215         missing.
72216         * doc/posix-headers/errno.texi: Mention the Interix bug.
72217         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
72219 2009-06-15  Eric Blake  <ebb9@byu.net>
72221         memchr, memchr2: add valgrind exception
72222         * lib/memchr.valgrind: New file.
72223         * lib/memchr2.valgrind: New file.
72224         * modules/memchr (Files): Distribute valgrind file.
72225         * modules/memchr2 (Files): Likewise.
72227         docs: memchr is no longer obsolete
72228         * MODULES.html.sh: Move memchr from obsolete to string.h section.
72229         * lib/string.in.h (memchr): Simplify logic.
72231 2009-06-14  Jim Meyering  <meyering@redhat.com>
72233         link-follow: fix the "checking..." message to not mention trailing slash
72234         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
72235         never considered trailing slashes.
72237 2009-06-14  Bruno Haible  <bruno@clisp.org>
72239         * m4/memchr.m4: Mention also the bug on IA-64.
72240         * doc/posix-functions/memchr.texi: Likewise.
72242 2009-06-12  Eric Blake  <ebb9@byu.net>
72244         memchr: detect broken x86_64 and alpha implementations
72245         * modules/memchr-tests (Depends-on): Move mmap detection...
72246         * modules/memchr (Depends-on): ...here.
72247         (configure.ac): Set indicator.
72248         * lib/string.in.h (memchr): Declare replacement.
72249         * modules/string (Makefile.am): Trigger replacement.
72250         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
72251         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
72252         bugs.
72253         * doc/posix-functions/memchr.texi (memchr): Document the bug.
72254         * modules/getpagesize (License): Relax license.
72256 2009-06-11  Bruno Haible  <bruno@clisp.org>
72258         * lib/idpriv.h: Add more references.
72260 2009-06-08  Bruno Haible  <bruno@clisp.org>
72262         Tests for module 'idpriv-droptemp'.
72263         * modules/idpriv-droptemp-tests: New file.
72264         * tests/test-idpriv-droptemp.sh: New file.
72265         * tests/test-idpriv-droptemp.su.sh: New file.
72266         * tests/test-idpriv-droptemp.c: New file.
72268         New module 'idpriv-droptemp'.
72269         * lib/idpriv-droptemp.c: New file.
72270         * modules/idpriv-droptemp: New file.
72272 2009-06-08  Bruno Haible  <bruno@clisp.org>
72274         Tests for module 'idpriv-drop'.
72275         * modules/idpriv-drop-tests: New file.
72276         * tests/test-idpriv-drop.sh: New file.
72277         * tests/test-idpriv-drop.su.sh: New file.
72278         * tests/test-idpriv-drop.c: New file.
72280         New module 'idpriv-drop'.
72281         * lib/idpriv.h: New file.
72282         * lib-idpriv-drop.c: New file.
72283         * m4/idpriv.m4: New file.
72284         * modules/idpriv-drop: New file.
72286 2009-06-08  Bruno Haible  <bruno@clisp.org>
72288         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
72289         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
72290         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
72291         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
72292         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
72293         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
72294         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
72296 2009-06-08  Eric Blake  <ebb9@byu.net>
72298         test-strstr: use memory fence, when possible
72299         * tests/test-strstr.c (main): Use memory fence, in order to be
72300         more likely to trigger Debian bug 521737.
72301         * modules/strstr-tests (Files): Pull in additional files.
72303         memchr: no longer obsolete, for wider field testing
72304         * modules/memchr (Status, Notice): Delete, this module is no
72305         longer obsolete.
72306         * modules/vasnprintf (Depends-on): Add memchr.
72308 2009-06-07  Jim Meyering  <meyering@redhat.com>
72310         hash: declare some functions with the warn_unused_result attribute
72311         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
72313 2009-06-07  Bruno Haible  <bruno@clisp.org>
72315         * tests/test-alignof.c: Don't test int64_t if it does not exist.
72316         Reported by Eric Blake.
72318 2009-06-06  Eric Blake  <ebb9@byu.net>
72320         test-alignof: fix typo with long double
72321         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
72322         compiler error.
72324 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
72326         Escape non-texinfo { and }s.
72327         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
72328         markup error.
72330 2009-06-04  Jim Meyering  <meyering@redhat.com>
72332         gitlog-to-changelog: don't infloop on an empty commit log
72333         * build-aux/gitlog-to-changelog: Warn about an empty log message.
72334         Reported by Boris Petersen <transacid@centerim.org>.
72336 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
72338         version-etc: extend for packagers
72339         Add three new configure options, intended for packagers:
72340           --with-packager="packager name"
72341           --with-packager-version="packager-specific version"
72342           --with-packager-bug-reports="packager bug reporting"
72343         An example with coreutils:
72344           $ ./configure \
72345             --with-packager=Gentoo \
72346             --with-packager-bug-report=http://bugs.gentoo.org/ \
72347             --with-packager-version="patchset 1.6"
72348           $ ./src/ls --version | head -n2
72349           ls (GNU coreutils) 7.1-dirty
72350           Packaged by Gentoo (patchset 1.6)
72351         Note that the bug reporting info via --help doesn't show up because
72352         coreutils uses its own custom emit_bug_reporting_address() implementation
72353         in src/system.h.  If it didn't, it'd look like:
72354           $ ./src/ls --help | tail -n4
72355           Report bugs to <bug-coreutils@gnu.org>.
72356           Report Gentoo bugs to <http://bugs.gentoo.org/>.
72357           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
72358           General help using GNU software: <http://www.gnu.org/gethelp/>.
72359         * lib/version-etc.c: Print new information, if provided.
72360         * m4/version-etc.m4: New file.
72361         * modules/version-etc (Files): Add m4/version-etc.m4.
72362         (configure.ac): Add gl_VERSION_ETC.
72364 2009-05-31  Bruno Haible  <bruno@clisp.org>
72366         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
72367         and 'int64_t'.
72368         * modules/alignof-tests (Dependencies): Add stdint.
72369         Reported by Eric Blake.
72371 2009-05-31  Bruno Haible  <bruno@clisp.org>
72373         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
72374         restriction due to compiler bugs.
72375         Reported by Eric Blake.
72377 2009-05-31  Simon Josefsson  <simon@josefsson.org>
72378             Bruno Haible  <bruno@clisp.org>
72380         Fix test-alignof failure.
72381         * lib/alignof.h (alignof_slot): New macro.
72382         (alignof_type): New macro, with the same semantics as the previous
72383         'alignof'.
72384         (alignof): Alias to alignof_slot.
72385         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
72386         check that the results are usable as constant expressions.
72388 2009-05-31  Bruno Haible  <bruno@clisp.org>
72390         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
72391         * tests/test-memchr.c (main): Check that memchr does not read past the
72392         first occurrence of the byte.
72393         * tests/test-strstr.c (main): Update comment.
72394         Suggested by Eric Blake.
72396 2009-05-30  Bruno Haible  <bruno@clisp.org>
72398         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
72399         detail how to use dumpbin.
72400         Reported by David Byron <dbyron@dbyron.com>.
72402 2009-06-02  Simon Josefsson  <simon@josefsson.org>
72404         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
72406 2009-06-02  Simon Josefsson  <simon@josefsson.org>
72408         * m4/manywarnings.m4: Add GCC 4.4 warnings.
72410 2009-05-28  Bruno Haible  <bruno@clisp.org>
72412         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
72413         build-aux/ files.
72415 2009-05-28  Simon Josefsson  <simon@josefsson.org>
72417         * gnulib-tool (func_import): Transform license on build-aux/ files too.
72419 2009-05-27  Simon Josefsson  <simon@josefsson.org>
72421         * gnulib-tool (sed_transform_main_lib_file)
72422         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
72423         regexps.
72425 2009-05-26  Simon Josefsson  <simon@josefsson.org>
72427         * tests/test-strstr.c: Add another self-test.
72428         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
72429         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
72431 2009-05-23  Bruno Haible  <bruno@clisp.org>
72433         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
72434         change.
72436 2009-05-21  Bruno Haible  <bruno@clisp.org>
72438         Simplify use of mode_t varargs.
72439         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
72440         uses 'mode_t' or 'int'.
72441         * lib/openat.c (openat): Likewise.
72442         * lib/open-safer.c (open_safer): Likewise.
72443         * m4/mode_t.m4: New file.
72444         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
72445         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
72446         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
72447         * modules/open (Files): Add m4/mode_t.m4.
72448         * modules/openat (Files): Likewise.
72449         * modules/fcntl-safer (Files): Likewise.
72450         Suggested by Eric Blake.
72452 2009-05-21  Pádraig Brady  <P@draigbrady.com>
72454         * doc/glibc-functions/fallocate.texi: New file.
72455         * doc/gnulib.texi: Include it.
72457 2009-05-21  Eric Blake  <ebb9@byu.net>
72458             Bruno Haible  <bruno@clisp.org>
72460         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
72461         invocations.
72462         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
72464 2009-05-21  Eric Blake  <ebb9@byu.net>
72465             Bruno Haible  <bruno@clisp.org>
72467         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
72468         include_next. Fix of 2008-11-20 commit.
72469         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
72470         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
72471         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
72472         NEXT_MATH_H.
72473         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
72474         instead of NEXT_MATH_H.
72476 2009-05-21  Bruno Haible  <bruno@clisp.org>
72478         Avoid redefinition warnings for SIZE_MAX.
72479         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
72480         Reported by Simon Josefsson.
72482 2009-05-21  Bruno Haible  <bruno@clisp.org>
72484         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
72485         AC_CACHE_VAL.
72487 2009-05-20  Bruno Haible  <bruno@clisp.org>
72489         Make zeroptr.h work on mingw.
72490         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
72491         mprotect.
72492         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
72493         * modules/memchr2-tests (configure.ac): Likewise.
72494         * modules/memcmp-tests (configure.ac): Likewise.
72495         * modules/memmem-tests (configure.ac): Likewise.
72496         * modules/memrchr-tests (configure.ac): Likewise.
72497         Reported by Simon Josefsson.
72499 2009-05-20  Simon Josefsson  <simon@josefsson.org>
72501         * tests/test-glob.c: Include string.h for strcmp prototype.
72503 2009-05-20  Simon Josefsson  <simon@josefsson.org>
72505         * modules/getdelim (Depends-on): Add explicit stdint, although it
72506         was implicitly already pulled in via realloc-posix.
72507         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
72509 2009-05-20  Simon Josefsson  <simon@josefsson.org>
72511         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
72512         G. Christensen" <tgc@jupiterrise.com>.
72513         * m4/sys_socket_h.m4: Check for sa_family_t.
72514         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
72515         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
72516         * tests/test-sys_socket.c: Check that sa_family_t works.
72518 2009-05-18  Eric Blake  <ebb9@byu.net>
72520         maint.mk: allow gnulib_dir in VPATH build
72521         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
72523 2009-05-15  Jim Meyering  <meyering@redhat.com>
72525         maint.mk: Give gnulib_dir a default definition.
72526         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
72527         Thus, most packages no longer need to specify this variable in cfg.mk
72529 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
72531         rename.m4: fix typos that would make non-mingw cross-configure fail
72532         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
72534 2009-05-13  Eric Blake  <ebb9@byu.net>
72536         mmap-anon: avoid out-of-order autoconf expansion
72537         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
72538         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
72539         * modules/memchr-tests (Depends-on): Add extensions.
72540         * modules/memchr2-tests (Depends-on): Add extensions.
72541         * modules/memcmp-tests (Depends-on): Add extensions.
72542         * modules/memmem-tests (Depends-on): Add extensions.
72543         * modules/memrchr-tests (Depends-on): Add extensions.
72545 2009-05-13  Bruno Haible  <bruno@clisp.org>
72547         Make some tests ISO C 99 compliant.
72548         * tests/zerosize-ptr.h: New file.
72549         * tests/test-memchr.c: Include zerosize-ptr.h.
72550         (main): Use a zero-size object pointer instead of NULL.
72551         * tests/test-memchr2.c: Include zerosize-ptr.h.
72552         (main): Use a zero-size object pointer instead of NULL.
72553         * tests/test-memcmp.c: Include zerosize-ptr.h.
72554         (main): Use a zero-size object pointer instead of NULL.
72555         * tests/test-memmem.c: Include zerosize-ptr.h.
72556         (main): Use a zero-size object pointer instead of NULL.
72557         * tests/test-memrchr.c: Include zerosize-ptr.h.
72558         (main): Use a zero-size object pointer instead of NULL.
72559         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
72560         m4/mmap-anon.m4.
72561         (Depends-on): Add getpagesize.
72562         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
72563         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
72564         m4/mmap-anon.m4.
72565         (Depends-on): Add getpagesize.
72566         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
72567         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
72568         m4/mmap-anon.m4.
72569         (Depends-on): Add getpagesize.
72570         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
72571         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
72572         m4/mmap-anon.m4.
72573         (Depends-on): Add getpagesize.
72574         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
72575         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
72576         m4/mmap-anon.m4.
72577         (Depends-on): Add getpagesize.
72578         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
72580 2009-05-12  Bruno Haible  <bruno@clisp.org>
72582         Tests for module 'alignof'.
72583         * modules/alignof-tests: New file.
72584         * tests/test-alignof.c: New file.
72586 2009-05-12  Bruno Haible  <bruno@clisp.org>
72588         Fix alignof macro.
72589         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
72590         vendor compilers that are always correct.
72592 2009-05-12  Bruno Haible  <bruno@clisp.org>
72594         Make the MAP_ANONYMOUS detection work on HP-UX 11.
72595         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
72596         not whether its fully works.
72598 2009-05-12  Bruno Haible  <bruno@clisp.org>
72600         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
72602 2009-05-12  Jim Meyering  <meyering@redhat.com>
72604         * top/maint.mk: Adjust backslash alignment.
72606 2009-05-11  Simon Josefsson  <simon@josefsson.org>
72608         * top/maint.mk: Make $(srcdir)/build-aux configurable.
72610 2009-05-11  Eric Blake  <ebb9@byu.net>
72612         argp: avoid undefined behavior
72613         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
72614         macros.
72616 2009-05-08  Simon Josefsson  <simon@josefsson.org>
72618         * tests/test-vc-list-files-git.sh: Do git config of user.email and
72619         user.name to prevent git commit from complaining.
72621 2009-05-10  Bruno Haible  <bruno@clisp.org>
72623         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
72624         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
72625         it rewrites every file name only once.
72626         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
72628 2009-05-08  Bruno Haible  <bruno@clisp.org>
72630         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
72631         instead of 'max'.
72633 2009-05-08  Simon Josefsson  <simon@josefsson.org>
72635         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
72636         sockaddr_storage test.
72638 2009-05-07  Simon Josefsson  <simon@josefsson.org>
72640         * modules/sys_socket (Makefile.am): Substitute
72641         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
72642         * m4/sys_socket_h.m4: Check for sockaddr_storage.
72643         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
72644         * tests/test-sys_socket.c: Check sockaddr_storage.
72646 2009-05-08  Bruno Haible  <bruno@clisp.org>
72648         New module 'alignof'.
72649         * lib/alignof.h: New file.
72650         * modules/alignof: New file.
72652 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
72653             Bruno Haible  <bruno@clisp.org>
72655         Fix test-file-has-acl on FreeBSD.
72656         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
72657         mask is implicitly added.
72658         * tests/test-file-has-acl.c: Include <signal.h>.
72659         (main): Terminate the test after 5 seconds.
72660         * modules/acl-tests (configure.ac): Check for alarm function.
72662 2009-05-04  Bruno Haible  <bruno@clisp.org>
72664         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
72665         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
72666         * modules/errno (configure.ac): Drop AC_REQUIRE.
72667         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
72668         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
72670 2009-05-04  Simon Josefsson  <simon@josefsson.org>
72672         * modules/glob-tests: New module.
72673         * tests/test-glob.c: Add.
72675 2009-05-04  Simon Josefsson  <simon@josefsson.org>
72677         * modules/fnmatch-tests: New module.
72678         * tests/test-fnmatch.c: Add.
72680 2009-05-04  Eric Blake  <ebb9@byu.net>
72682         maint: make the new no-submodule-changes rule VPATH-safe
72683         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
72685 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
72686             Bruno Haible  <bruno@clisp.org>
72688         acl: Fix infinite loop on FreeBSD.
72689         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
72690         of return value from acl_get_entry.
72691         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
72692         Likewise.
72694 2009-05-03  Bruno Haible  <bruno@clisp.org>
72696         * lib/acl-internal.h (acl_entries): Clarify return value.
72697         * lib/acl_entries.c (acl_entries): Likewise.
72699 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
72701         Bug fix in acl module.
72702         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
72704 2009-05-03  Bruno Haible  <bruno@clisp.org>
72706         Create gperf-generated file in the source dir, not in the build dir.
72707         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
72708         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
72709         * modules/unicase/locale-language (unicase/locale-languages.h):
72710         Likewise.
72711         * modules/unicase/special-casing (unicase/special-casing-table.h):
72712         Likewise.
72713         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
72714         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
72715         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
72716         Reported by Ralf Wildenhues.
72718 2009-05-03  Bruno Haible  <bruno@clisp.org>
72720         * modules/fnmatch (Description, configure.ac): Taken from
72721         fnmatch-posix.
72722         * modules/fnmatch-posix: Turn into a symbolic reference to the
72723         'fnmatch' module, and deprecate.
72724         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
72726 2009-05-03  Bruno Haible  <bruno@clisp.org>
72728         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
72729         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
72730         Reported by Ralf Wildenhues.
72732 2009-05-04  Simon Josefsson  <simon@josefsson.org>
72734         * m4/fnmatch.m4: Fix fnmatch re-define.
72736 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
72738         priv-set: new module and tests; adapt write-any-file
72739         * lib/priv-set.c: New file.
72740         * lib/priv-set.h: New file.
72741         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
72742         * lib/write-any-file.c: Simplify by using priv-set module.
72743         * m4/priv-set.m4: New file.
72744         * modules/priv-set: New file.
72745         * modules/unlinkdir: Add dependency on priv-set module.
72746         * modules/write-any-file: Likewise.
72748         Tests for module 'priv-set'.
72749         * modules/priv-set-tests: New file.
72750         * tests/test-priv-set.c: New file.
72752 2009-05-03  Jim Meyering  <meyering@redhat.com>
72753             Bruno Haible  <bruno@clisp.org>
72755         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
72756         use the converted UTF-8 variant of the name instead.
72758 2009-05-03  Jim Meyering  <meyering@redhat.com>
72760         tests: tighten some getdate tests
72761         * tests/test-getdate.c (main): Tighten tests: require equality,
72762         not just greater than.  Set TZ envvar to UTC0.
72764 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
72766         getdate: correctly interpret "next monday" when run on a Monday
72767         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
72768         that e.g., "next tues" (when run on a tuesday) results in a date
72769         that is one week in the future, and not today's date.
72770         I.e., add a week when the wday is the same as the current one.
72771         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
72772         and earlier by Martin Bernreuther and Jan Minář.
72773         * tests/test-getdate.c (main): Check that "next DAY" is always in
72774         the future and that "last DAY" is always in the past.
72776 2009-05-02  Jim Meyering  <meyering@redhat.com>
72778         build: ensure that a release build fails when a submodule is unclean
72779         * top/maint.mk (no-submodule-changes): New rule.
72780         (alpha beta major): Depend on it.
72782 2009-05-02  Bruno Haible  <bruno@clisp.org>
72784         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
72785         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
72786         shell variable gl_fnmatch_required to detect which variant is
72787         requested.
72788         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
72789         gl_FUNC_FNMATCH_POSIX.
72790         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
72791         exclude fnmatch-posix.
72793 2009-05-02  Bruno Haible  <bruno@clisp.org>
72795         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
72796         * modules/mbsrtowcs (License): Change to LGPLv2+.
72797         * modules/strnlen1 (License): Likewise.
72798         Reported by Simon Josefsson.
72800 2009-05-02  Bruno Haible  <bruno@clisp.org>
72802         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
72803         "cross".
72804         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
72805         gnulib-tool was called with option --source-base=lib.
72807 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72809         Use automake *-local hooks without commands, for extensibility.
72810         * modules/localcharset (Makefile.am): Rename install-exec-local
72811         rule to install-exec-localcharset, and make it a prerequisite of
72812         install-exec-local.  Likewise, rename the uninstall-local rule to
72813         uninstall-localcharset, and make it a prerequisite of the former.
72815 2009-05-01  Bruno Haible  <bruno@clisp.org>
72817         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
72818         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
72819         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
72820         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
72821         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
72822         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
72823         m4/locale-zh.m4, m4/codeset.m4.
72825         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
72826         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
72827         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
72828         m4/locale-zh.m4.
72830         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
72831         REPLACE_WCRTOMB if mbstate_t must be replaced.
72832         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
72833         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
72835 2009-05-01  Bruno Haible  <bruno@clisp.org>
72837         Avoid compiler warnings when redefining macros defined by <libintl.h>.
72838         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
72839         dngettext, dcngettext, textdomain, bindtextdomain,
72840         bind_textdomain_codeset): Undefine before redefining.
72842 2009-04-30  Bruno Haible  <bruno@clisp.org>
72844         Fix bug introduced on 2009-04-25.
72845         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
72846         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
72847         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
72848         is defined.
72849         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
72850         is defined.
72851         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
72852         is defined.
72853         Reported by Elbert_Pol <elbert.pol@gmail.com>.
72855 2009-04-28  Bruno Haible  <bruno@clisp.org>
72857         Comment tweaks.
72858         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
72859         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
72860         * lib/unicase.h (u*_casexfrm): Likewise.
72861         Reported by Paolo Bonzini.
72863 2009-04-28  Bruno Haible  <bruno@clisp.org>
72865         Fix a compilation error.
72866         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
72867         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
72868         Reported by Jim Meyering.
72870 2009-04-27  Bruno Haible  <bruno@clisp.org>
72872         New module 'libunistring'.
72873         * modules/libunistring: New file.
72874         * m4/libunistring.m4: New file.
72875         * MODULES.html.sh (Unicode string functions): Add it.
72877 2009-04-27  Eric Blake  <ebb9@byu.net>
72879         maint.mk: allow package-specific header to provide <config.h>
72880         * top/maint.mk (sc_require_config_h): New variable.
72881         (sc_require_config_h, sc_require_config_h_first): Use it.
72883 2009-04-27  Simon Josefsson  <simon@josefsson.org>
72885         * top/maint.mk (sc_avoid_if_before_free): Except
72886         useless-if-before-free script.
72888 2009-04-27  Eric Blake  <ebb9@byu.net>
72890         maintainer-makefile: depend on all required helper scripts
72891         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
72892         useless-if-before-free.
72893         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
72894         version, rather than assuming gnulib checkout is available.
72895         Reported by Simen Josefsson.
72897 2009-04-26  Bruno Haible  <bruno@clisp.org>
72899         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
72900         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
72901         "../" or "..".
72903 2009-04-26  Bruno Haible  <bruno@clisp.org>
72905         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
72906         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
72907         AC_LIB_HAVE_LINKFLAGS.
72909 2009-04-26  Bruno Haible  <bruno@clisp.org>
72911         Simplify calling convention of u*_conv_from_encoding.
72912         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
72913         u32_conv_from_encoding): Expect a resultbuf argument and return the
72914         result directly as a pointer.
72915         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
72916         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
72917         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
72918         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
72919         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
72920         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
72921         Update.
72922         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
72923         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
72924         * lib/vasnprintf.c (VASNPRINTF): Update.
72925         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
72926         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
72927         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
72928         * NEWS: Mention the change.
72930 2009-04-26  Bruno Haible  <bruno@clisp.org>
72932         Simplify calling convention of u*_conv_to_encoding.
72933         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
72934         u32_conv_to_encoding): Expect a resultbuf argument and return the
72935         result directly as a pointer.
72936         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
72937         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
72938         freeing scaled_offsets if mem_iconveha failed.
72939         * lib/unicase/u-casexfrm.h (FUNC): Update.
72940         * lib/uninorm/u-normxfrm.h (FUNC): Update.
72941         * lib/vasnprintf.c (VASNPRINTF): Update.
72942         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
72943         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
72944         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
72945         * NEWS: Mention the change.
72947 2009-04-26  Bruno Haible  <bruno@clisp.org>
72949         Avoid test failures on AIX and OSF/1.
72950         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
72951         malloc(0).
72952         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
72953         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
72954         Likewise.
72955         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
72956         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
72957         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
72958         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
72959         * doc/posix-functions/malloc.texi: Document the portability problem
72960         related to malloc(0).
72962 2009-04-26  Bruno Haible  <bruno@clisp.org>
72964         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
72965         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
72966         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
72968 2009-04-25  Bruno Haible  <bruno@clisp.org>
72970         Avoid link error when creating a namespace clean library.
72971         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
72972         as macro with arguments if already defined as an alias.
72973         * lib/signbitf.c (gl_signbitf): Don't undefine.
72974         * lib/signbitd.c (gl_signbitd): Don't undefine.
72975         * lib/signbitl.c (gl_signbitl): Don't undefine.
72977 2009-04-25  Jim Meyering  <meyering@redhat.com>
72979         vc-list-files: fix another quoting bug
72980         * build-aux/vc-list-files: Avoid sed backslash expansion
72981         of pathological directory names.
72983 2009-04-25  Eric Blake  <ebb9@byu.net>
72985         vc-list-files: fix shell quoting error
72986         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
72987         timestamp.
72989 2009-04-25  Jim Meyering  <meyering@redhat.com>
72991         vc-list-files: restore lost functionality with subdir argument
72992         * build-aux/vc-list-files: When given a non-"." sub-directory
72993         argument, substitute the $dir/ prefix back onto each resulting name.
72994         Otherwise, coreutils' root_tests check would fail.
72996 2009-04-24  Eric Blake  <ebb9@byu.net>
72998         vc-list-files: ignore git symlinks
72999         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
73000         than ls-files, to ignore git symlinks.
73002         maint.mk: import improvements from m4
73003         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
73004         (move_if_change): Delete unused macro.
73005         (news-date-check, vc-diff-check): Support VPATH builds.
73006         (announcement): Likewise.  Split --bootstrap-tools list...
73007         (boostrap-tools): ...into separate list, which can be overridden
73008         in cfg.mk.
73009         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
73010         requiring dependency on useless-if-before-free module.
73011         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
73012         Support VPATH builds.
73014 2009-04-24  Jim Meyering  <meyering@redhat.com>
73016         maint.mk: remove coreutils-specific rules and variables
73017         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
73018         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
73019         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
73021         maint.mk: remove obsolete rule
73022         * top/maint.mk (rel-check): Remove rule.
73023         (WGET, WGETFLAGS): Remove now-unused variables.
73025 2009-04-24  Simon Josefsson  <simon@josefsson.org>
73027         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
73028         consistency.
73030         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
73031         '$(PATH_SEPARATOR)' instead of ':'.
73033 2009-04-24  Simon Josefsson  <simon@josefsson.org>
73035         * lib/getopt1.c (main): Use 'const' for static array.
73037 2009-04-24  Simon Josefsson  <simon@josefsson.org>
73039         * top/maint.mk: Sync with coreutils.
73040         * NEWS: Explain incompatibilities.
73042 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73043             Bruno Haible  <bruno@clisp.org>
73045         Fix cross-compilation results.
73046         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
73047         statement, as third argument of AC_TRY_RUN.
73048         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
73049         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
73050         Likewise.
73051         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
73052         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
73053         Likewise.
73054         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
73055         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
73056         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
73058 2009-04-20  Bruno Haible  <bruno@clisp.org>
73060         Avoid test failure on mingw.
73061         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
73063 2009-04-20  Bruno Haible  <bruno@clisp.org>
73065         Avoid compilation error on mingw.
73066         * modules/localename-tests (Depends-on): Add locale.
73068 2009-04-19  Bruno Haible  <bruno@clisp.org>
73070         Support for building a shared library on Windows platforms.
73071         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
73072         (main): Test the presence of UNINORM_NFC here.
73073         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
73074         (main): Test the presence of UNINORM_NFD here.
73075         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
73076         (main): Test the presence of UNINORM_NFKC here.
73077         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
73078         (main): Test the presence of UNINORM_NFKD here.
73080 2009-04-19  Bruno Haible  <bruno@clisp.org>
73082         Avoid a compiler warning.
73083         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
73084         Change type of variable 'sequence'.
73086 2009-04-19  Bruno Haible  <bruno@clisp.org>
73088         * modules/configmake (Makefile.am): When the contents of configmake.h
73089         does not change, arrange to preserve its modification time.
73091 2009-04-17  Simon Josefsson  <simon@josefsson.org>
73093         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
73094         gettext domain.
73096 2009-04-16  Jim Meyering  <meyering@redhat.com>
73098         useless-if-before-free: improve conversion code
73099         * build-aux/useless-if-before-free: Adjust code-in-comment to match
73100         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
73102 2009-04-14  Bruno Haible  <bruno@clisp.org>
73104         * modules/fcntl (Depends-on): Add extensions.
73105         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
73107 2009-04-12  Ben Pfaff  <blp@gnu.org>
73109         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
73110         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
73112 2009-03-20  Ben Pfaff  <blp@gnu.org>
73114         Make rename replace existing destinations on Windows.
73115         * m4/rename.m4: Add test for Mingw.
73116         * lib/rename.c: Add rename replacement that uses MoveFileEx with
73117         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
73118         * doc/posix-functions/rename.texi: Document.
73120 2009-04-10  Bruno Haible  <bruno@clisp.org>
73122         New include file "iconveh.h".
73123         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
73124         * lib/striconveh.h: Include it.
73125         (enum iconv_ilseq_handler): Remove definition.
73126         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
73127         striconveh.h.
73128         * lib/striconveha.c: Include striconveh.h.
73129         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
73130         * modules/striconveh (Files): Add lib/iconveh.h.
73131         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
73132         lib/striconveh.h.
73134 2009-04-10  Bruno Haible  <bruno@clisp.org>
73136         * lib/uniconv.h: Update comment.
73138 2009-04-10  Bruno Haible  <bruno@clisp.org>
73140         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
73141         always.
73142         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
73143         * lib/unistr/u16-mbtouc-aux.c: Likewise.
73144         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
73145         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
73146         "unistring-notinline.h", so that the function gets defined always.
73147         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
73148         * lib/unistr/u8-uctomb.c: Likewise.
73149         * lib/unistr/u16-mbtouc.c: Likewise.
73150         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
73151         * lib/unistr/u16-uctomb.c: Likewise.
73152         * lib/unistr/u32-mbtouc.c: Likewise.
73153         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
73154         * lib/unistr/u32-uctomb.c: Likewise.
73156 2009-04-10  Bruno Haible  <bruno@clisp.org>
73158         Mark 'utime' obsolete.
73159         * modules/utime (Status, Notice): New sections.
73160         Suggested by Jim Meyering.
73162         Fix cross-compile guess for utime test.
73163         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
73164         autoconf.
73165         * doc/posix-functions/utime.texi: Give more precisions.
73166         Reported by Jan <ipif@ymail.com>.
73168 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
73170         filevercmp: correct today's change
73171         * lib/filevercmp.c: Also handle coreutils' test inputs.
73172         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
73174         Fix regression in 'filevercmp' module. Thanks Sven Joachim
73175         for reporting it.
73176         * lib/filevercmp.c: Special handle for "", "." and "..".
73177         * tests/test-filevercmp.c: Enlarge the set suite.
73179 2009-04-07  Jim Meyering  <meyering@redhat.com>
73181         useless-if-before-free: show how to remove braced useless free, too
73182         * build-aux/useless-if-before-free: still only in a comment, though.
73184 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
73186         maint.mk: import changes to syntax-check macros from coreutils
73187         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
73188         Use them in the relevant macros.
73190 2009-04-06  Bruno Haible  <bruno@clisp.org>
73192         Fix unportable use of bit-fields.
73193         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
73194         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
73195         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
73197 2009-04-06  Bruno Haible  <bruno@clisp.org>
73199         Avoid test failures on AIX and OSF/1.
73200         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
73201         that malloc(0) = NULL.
73202         * tests/unicase/test-u8-tolower.c (check): Likewise.
73203         * tests/unicase/test-u8-totitle.c (check): Likewise.
73204         * tests/unicase/test-u8-toupper.c (check): Likewise.
73205         * tests/unicase/test-u16-casefold.c (check): Likewise.
73206         * tests/unicase/test-u16-tolower.c (check): Likewise.
73207         * tests/unicase/test-u16-totitle.c (check): Likewise.
73208         * tests/unicase/test-u16-toupper.c (check): Likewise.
73209         * tests/unicase/test-u32-casefold.c (check): Likewise.
73210         * tests/unicase/test-u32-tolower.c (check): Likewise.
73211         * tests/unicase/test-u32-totitle.c (check): Likewise.
73212         * tests/unicase/test-u32-toupper.c (check): Likewise.
73213         * tests/uninorm/test-u8-nfc.c (check): Likewise.
73214         * tests/uninorm/test-u8-nfd.c (check): Likewise.
73215         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
73216         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
73217         * tests/uninorm/test-u16-nfc.c (check): Likewise.
73218         * tests/uninorm/test-u16-nfd.c (check): Likewise.
73219         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
73220         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
73221         * tests/uninorm/test-u32-nfc.c (check): Likewise.
73222         * tests/uninorm/test-u32-nfd.c (check): Likewise.
73223         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
73224         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
73226 2009-04-05  Bruno Haible  <bruno@clisp.org>
73228         Work around an autoconf limitation.
73229         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
73230         comment line if it would be longer than 3 KB.
73232 2009-04-05  Bruno Haible  <bruno@clisp.org>
73234         Avoid test failure with libiconv-1.13.
73235         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
73236         of the expected test results.
73238 2009-04-05  Bruno Haible  <bruno@clisp.org>
73240         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
73241         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
73242         that it should be installed.
73244 2009-04-05  Bruno Haible  <bruno@clisp.org>
73246         * gnulib-tool: New option --copy-file.
73247         (func_usage): Document it.
73248         (func_dest_tmpfilename): Moved out of func_import.
73249         (func_add_file, func_update_file): New functions, extracted from
73250         func_import.
73251         (func_import): Update.
73253 2009-04-05  Karl Berry  <karl@gnu.org>
73255         * README: prominently mention gnulib-tool.
73256         Rearrange sections so getting the code is near the top.
73258 2009-04-05  Bruno Haible  <bruno@clisp.org>
73260         * lib/unicase.h: Mention u*_cmp2.
73261         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
73262         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
73263         * lib/unicase/ulc-casecmp.c: Likewise.
73264         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
73265         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
73266         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
73267         unistr/u8-cmp.
73268         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
73269         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
73270         unistr/u16-cmp.
73271         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
73272         unistr/u32-cmp.
73274         * lib/uninorm.h: Mention u*_cmp2.
73275         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
73276         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
73277         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
73278         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
73279         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
73280         unistr/u8-cmp.
73281         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
73282         unistr/u16-cmp.
73283         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
73284         unistr/u32-cmp.
73286         New module 'unistr/u32-cmp2'.
73287         * lib/unistr/u32-cmp2.c: New file.
73288         * modules/unistr/u32-cmp2: New file.
73290         New module 'unistr/u16-cmp2'.
73291         * lib/unistr/u16-cmp2.c: New file.
73292         * modules/unistr/u16-cmp2: New file.
73294         New module 'unistr/u8-cmp2'.
73295         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
73296         * lib/unistr/u8-cmp2.c: New file.
73297         * lib/unistr/u-cmp2.h: New file.
73298         * modules/unistr/u8-cmp2: New file.
73300 2009-04-05  Bruno Haible  <bruno@clisp.org>
73302         * lib/unictype.h (uc_property_is_valid): New macro.
73303         * tests/unictype/test-pr_byname.c (main): Use it.
73305         * lib/unistr.h: Doc fixes.
73306         * lib/uniconv.h: Doc fixes.
73307         * lib/unictype.h: Doc fixes.
73309 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
73311         Port coreutils 7.2 to Solaris 8.
73313         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
73314         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
73315         for Solaris 8.  This is a bit of a hack, as it means it's the
73316         caller's responsibility to add -lnsl if needed, but most likely it
73317         won't be needed since only getaddrinfo uses this and getaddrinfo
73318         isn't needed on Solaris 8.
73320         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
73321         problem to Solaris 8 encountered with coreutils 7.2, which
73322         resulted in a message "fnmatch.c:292: warning: passing argument 4
73323         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
73324         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
73326 2009-04-03  Simon Josefsson  <simon@josefsson.org>
73328         * m4/ld-version-script.m4: Add FIXME comment.
73330 2009-04-02  Simon Josefsson  <simon@josefsson.org>
73332         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
73333         SOVERSION variable.
73335 2009-04-02  Bruno Haible  <bruno@clisp.org>
73337         * Makefile (info, html, dvi, pdf): Combine the rules.
73338         Suggested by Jim Meyering.
73340 2009-04-01  Bruno Haible  <bruno@clisp.org>
73342         * Makefile (info, html, dvi, pdf): New targets.
73343         Reported by Reuben Thomas <rrt@sc3d.org>.
73345 2009-04-01  Bruno Haible  <bruno@clisp.org>
73347         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
73348         can be put into PATH.
73349         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
73351 2009-04-01  Bruno Haible  <bruno@clisp.org>
73353         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
73355 2009-04-01  Bruno Haible  <bruno@clisp.org>
73357         Rename module 'visibility'.
73358         * modules/lib-symbol-visibility: Renamed from modules/visibility.
73359         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
73360         * doc/gnulib.texi: Update.
73361         * MODULES.html.sh (Misc): Update.
73362         * NEWS: Mention the change.
73364 2009-04-01  Simon Josefsson  <simon@josefsson.org>
73366         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
73367         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
73368         Eric Blake <ebb9@byu.net> for review.
73369         * MODULES.html.sh: Add lib-msvc-compat.
73370         * doc/gnulib.texi: Link to new section.
73371         * m4/ld-output-def.m4: New file.
73372         * doc/ld-output-def.texi: New file.
73374 2009-04-01  Simon Josefsson  <simon@josefsson.org>
73376         Rename ld-version-script to lib-symbol-versions.  Suggested by
73377         Bruno Haible <bruno@clisp.org>.
73378         * modules/ld-version-script: Renamed to lib-symbol-versions.
73379         * doc/ld-version-script.texi: Fix module name.
73380         * MODULES.html.sh: Add lib-symbol-versions.
73382 2009-03-31  Simon Josefsson  <simon@josefsson.org>
73384         * modules/u64-tests: New file.
73385         * tests/test-u64.c: New file.
73387 2009-03-04  Simon Josefsson  <simon@josefsson.org>
73389         * MODULES.html.sh: Mention u64.
73390         * modules/u64: New module.
73391         * modules/crypto/sha512: Depend on u64 module instead of providing
73392         u64.h.
73394 2009-03-27  Eric Blake  <ebb9@byu.net>
73396         test-strerror: make debugging EAI_SYSTEM easier
73397         * modules/getaddrinfo-tests (Depends-on): Add strerror.
73398         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
73399         failure was EAI_SYSTEM.
73401 2009-03-25  Bruno Haible  <bruno@clisp.org>
73403         Fix a problem with --enable-relocatable on Solaris 7.
73404         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
73405         since 2008-02-24.
73407 2009-03-25  Eric Blake  <ebb9@byu.net>
73409         test-sockets: avoid gcc warning
73410         * tests/test-sockets.c (main): Silence compiler warning.
73412 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
73414         New modules nproc, pthread, contributed by Glen Lenker.
73416         * MODULES.html.sh: Add pthread, nproc.
73417         * lib/nproc.c: New file.
73418         * lib/nproc.h: New file.
73419         * lib/pthread.in.h: New file.
73420         * m4/pthread.m4: New file.
73421         * modules/nproc: New file.
73422         * modules/pthread: New file.
73424 2009-03-24  Simon Josefsson  <simon@josefsson.org>
73426         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
73427         New variable.
73429 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
73431         filevercmp: handle simple~ and numbered.~3~ backup suffixes
73432         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
73433         * tests/test-filevercmp.c: Add tests for backup suffixes.
73435 2009-03-24  Simon Josefsson  <simon@josefsson.org>
73437         * modules/stdlib (Depends-on): Add stdint, needed when defining
73438         struct random_data on, for example, HP-UX 10.20.  Reported by
73439         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73441 2009-03-24  Simon Josefsson  <simon@josefsson.org>
73443         * lib/readline.c (readline): Call fflush on stdout after printing
73444         prompt.
73446 2009-03-20  Bruno Haible  <bruno@clisp.org>
73448         Remove dependency from 'close' module to -lws2_32 on native Windows.
73449         * lib/close-hook.h: New file.
73450         * lib/close-hook.c: New file.
73451         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
73452         w32sock.h.
73453         (_gl_close_fd_maybe_socket): Remove function.
73454         (rpl_close): Invoke execute_all_close_hooks instead of
73455         _gl_close_fd_maybe_socket.
73456         * lib/sockets.c: Include close-hook.h, w32sock.h.
73457         (close_fd_maybe_socket): New function, essentially from lib/close.c.
73458         (close_sockets_hook): New variable.
73459         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
73460         (gl_sockets_cleanup): Unregister it.
73461         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
73462         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
73463         * modules/close-hook: New file.
73464         * modules/close (Files): Remove lib/w32sock.h.
73465         (Depends-on): Add close-hook.
73466         (Link): Remove section.
73467         * modules/sockets (Files): Add lib/w32sock.h.
73468         (Depends-on): Add close-hook.
73469         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
73470         invocation.
73471         * NEWS: Mention that LIB_CLOSE is gone.
73473 2009-03-23  Eric Blake  <ebb9@byu.net>
73475         signal-tests: test previous patch
73476         * tests/test-signal.c: New file.
73477         * modules/signal-tests: Likewise.
73479         signal.h: always support 'volatile sig_atomic_t'
73480         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
73481         (gl_SIGNAL_H_DEFAULTS): Add a default.
73482         * modules/signal (Makefile.am): Substitute if needed.
73483         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
73484         users can blindly add volatile.
73485         * doc/posix-headers/signal.texi (signal.h): Document it.
73486         Reported by Matthew Woehlke.
73488 2009-03-23  Jim Meyering  <meyering@redhat.com>
73490         pathmax: PATH_MAX: use pathconf only when available
73491         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
73492         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
73493         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
73494         This avoids a link failure in a PSP cross-compilation environment
73495         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
73497         * lib/vasnprintf.c (divide): Fix typo in comment.
73499 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73501         * gnulib-tool (func_filter_filelist): Fix comment.
73503 2009-03-20  Bruno Haible  <bruno@clisp.org>
73505         Make sockets.h self-contained.
73506         * lib/sockets.c: Include sockets.h first.
73507         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
73509 2009-03-19  Eric Blake  <ebb9@byu.net>
73511         doc: mention more functions added in cygwin 1.7.0
73512         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
73513         addition.
73514         * doc/posix-functions/log2f.texi: Likewise.
73516 2009-03-19  Jim Meyering  <meyering@redhat.com>
73518         fsusage: avoid syntax error due to statement-before-declaration
73519         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
73520         after all declarations.  Reported by Matthew Woehlke in
73521         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
73523 2009-03-18  Eric Blake  <ebb9@byu.net>
73525         build-aux/compile: sync from automake
73526         * build-aux/compile: New file, from automake.
73527         * config/srclist.txt: Mention build-aux/compile.
73529 2009-03-17  Bruno Haible  <bruno@clisp.org>
73531         * lib/git-merge-changelog.c: Fix typo in comment.
73532         Reported by Reuben Thomas <rrt@sc3d.org>.
73534 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
73536         * m4/regex.m4: update and improve help for
73537         --without-included-regex.
73539 2009-03-17  Simon Josefsson  <simon@josefsson.org>
73541         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
73542         failure on missing include files.
73544 2009-03-17  Eric Blake  <ebb9@byu.net>
73546         doc: mention more functions added in cygwin 1.7.0
73547         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
73548         addition.
73549         * doc/posix-functions/fwscanf.texi: Likewise.
73550         * doc/posix-functions/swprintf.texi: Likewise.
73551         * doc/posix-functions/swscanf.texi: Likewise.
73552         * doc/posix-functions/vfwprintf.texi: Likewise.
73553         * doc/posix-functions/vfwscanf.texi: Likewise.
73554         * doc/posix-functions/vswprintf.texi: Likewise.
73555         * doc/posix-functions/vswscanf.texi: Likewise.
73556         * doc/posix-functions/vwprintf.texi: Likewise.
73557         * doc/posix-functions/vwscanf.texi: Likewise.
73558         * doc/posix-functions/wcscasecmp.texi: Likewise.
73559         * doc/posix-functions/wcsdup.texi: Likewise.
73560         * doc/posix-functions/wcsftime.texi: Likewise.
73561         * doc/posix-functions/wcsncasecmp.texi: Likewise.
73562         * doc/posix-functions/wprintf.texi: Likewise.
73563         * doc/posix-functions/wscanf.texi: Likewise.
73564         * doc/glibc-functions/gethostbyname2.texi: Likewise.
73566 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73568         maint.mk: really add $(AM_MAKEFLAGS)
73569         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
73570         was inadvertently omitted in the last commit.
73571         Spotted by Bruno Haible.
73573         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
73574         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
73575         $(AM_MAKEFLAGS)' rather than plain `make'.
73577         gnulib-tool: execute $MAKE not make
73578         * gnulib-tool: Default $MAKE to 'make'.
73579         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
73580         than make.  Initialize $MAKE in the do-autobuild script.
73582         gnulib-tool: use $MAKE not make in generated files
73583         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
73584         make, in generated files.  Initialize $MAKE in the do-autobuild
73585         script.
73587         * top/GNUmakefile (_have-git-version-gen): Fix typo.
73589         GNUmakefile: disable parallelism only for multiple, recursive targets
73590         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
73591         additions in the Makefile.
73592         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
73593         by Automake.
73594         (.NOTPARALLEL): Only disable parallel builds if multiple targets
73595         are listed on the command line and at least one of them is
73596         listed in $(ALL_RECURSIVE_TARGETS).
73598 2009-03-14  Bruno Haible  <bruno@clisp.org>
73600         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
73601         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
73602         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
73603         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
73604         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
73605         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
73606         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
73607         unistr/u8-uctomb.
73608         * modules/unistr/u8-strchr (Depends-on): Likewise.
73609         * modules/unistr/u8-strrchr (Depends-on): Likewise.
73610         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
73611         unistr/u16-uctomb.
73612         * modules/unistr/u16-strchr (Depends-on): Likewise.
73613         * modules/unistr/u16-strrchr (Depends-on): Likewise.
73615 2009-03-12  Bruno Haible  <bruno@clisp.org>
73617         Work around select() bug on Interix 3.5.
73618         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
73619         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
73620         * m4/select.m4: New file.
73621         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
73622         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
73623         * modules/select (Files): Add m4/select.m4.
73624         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
73625         * modules/nanosleep (Depends-on): Add select.
73626         * modules/poll (Depends-on): Likewise.
73627         * doc/posix-functions/select.texi: Mention the Interix bug.
73628         Reported by Markus Duft <mduft@gentoo.org>.
73630         * lib/select.c: Renamed from lib/winsock-select.c.
73631         * modules/select (Files): Add lib/select.c, remove
73632         lib/winsock-select.c.
73633         (configure.ac): Update.
73635 2009-03-12  Jim Meyering  <meyering@redhat.com>
73637         avoid gcc warnings about unused macro definitions
73638         * lib/readtokens.c (STREQ): Remove unused definition.
73639         * lib/xmalloc.c (SIZE_MAX): Likewise.
73640         * lib/openat-die.c (N_): Likewise.
73641         * lib/mountlist.c (SIZE_MAX): Remove definition.
73642         Instead, include <stdint.h>.
73643         * lib/readutmp.c: Likewise.
73644         * modules/readutmp (Depends-on): Add stdint.
73645         * modules/mountlist (Depends-on): Add stdint.
73646         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
73648 2009-03-10  Bruno Haible  <bruno@clisp.org>
73650         Tests for module 'mbmemcasecoll'.
73651         * modules/mbmemcasecoll-tests: New file.
73652         * tests/test-mbmemcasecoll1.sh: New file.
73653         * tests/test-mbmemcasecoll2.sh: New file.
73654         * tests/test-mbmemcasecoll3.sh: New file.
73655         * tests/test-mbmemcasecoll.c: New file.
73657         New module 'mbmemcasecoll'.
73658         * lib/mbmemcasecoll.h: New file.
73659         * lib/mbmemcasecoll.c: New file.
73660         * modules/mbmemcasecoll: New file.
73662         * tests/test-mbmemcasecmp.h: New file, extracted from
73663         tests/test-mbmemcasecmp.c.
73664         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
73665         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
73666         (main): Update.
73667         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
73669 2009-03-09  Bruno Haible  <bruno@clisp.org>
73671         Tests for module 'mbmemcasecmp'.
73672         * modules/mbmemcasecmp-tests: New file.
73673         * tests/test-mbmemcasecmp1.sh: New file.
73674         * tests/test-mbmemcasecmp2.sh: New file.
73675         * tests/test-mbmemcasecmp3.sh: New file.
73676         * tests/test-mbmemcasecmp.c: New file.
73678         New module 'mbmemcasecmp'.
73679         * lib/mbmemcasecmp.h: New file.
73680         * lib/mbmemcasecmp.c: New file.
73681         * modules/mbmemcasecmp: New file.
73683 2009-03-09  Bruno Haible  <bruno@clisp.org>
73685         Tests for module 'unicase/ulc-casecoll'.
73686         * modules/unicase/ulc-casecoll-tests: New file.
73687         * tests/unicase/test-ulc-casecoll1.sh: New file.
73688         * tests/unicase/test-ulc-casecoll2.sh: New file.
73689         * tests/unicase/test-ulc-casecoll.c: New file.
73691         New module 'unicase/ulc-casecoll'.
73692         * lib/unicase.h (ulc_casecoll): New declaration.
73693         * lib/unicase/ulc-casecoll.c: New file.
73694         * modules/unicase/ulc-casecoll: New file.
73696         New module 'unicase/ulc-casexfrm'.
73697         * lib/unicase.h (ulc_casexfrm): New declaration.
73698         * lib/unicase/ulc-casexfrm.c: New file.
73699         * modules/unicase/ulc-casexfrm: New file.
73701 2009-03-09  Bruno Haible  <bruno@clisp.org>
73703         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
73704         invocations.
73706         * m4/mbscasecmp.m4: Remove file.
73707         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
73708         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
73710         * m4/mbscasestr.m4: Remove file.
73711         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
73712         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
73714         * m4/mbschr.m4: Remove file.
73715         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
73716         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
73718         * m4/mbscspn.m4: Remove file.
73719         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
73720         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
73722         * m4/mbslen.m4: Remove file.
73723         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
73724         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
73726         * m4/mbsncasecmp.m4: Remove file.
73727         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
73728         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
73730         * m4/mbsnlen.m4: Remove file.
73731         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
73732         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
73734         * m4/mbspbrk.m4: Remove file.
73735         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
73736         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
73738         * m4/mbspcasecmp.m4: Remove file.
73739         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
73740         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
73742         * m4/mbsrchr.m4: Remove file.
73743         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
73744         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
73746         * m4/mbssep.m4: Remove file.
73747         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
73748         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
73750         * m4/mbsspn.m4: Remove file.
73751         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
73752         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
73754         * m4/mbsstr.m4: Remove file.
73755         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
73756         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
73758         * m4/mbstok_r.m4: Remove file.
73759         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
73760         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
73762         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
73764         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
73765         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
73767         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
73769 2009-03-08  Bruno Haible  <bruno@clisp.org>
73771         Tests for module 'unicase/ulc-casecmp'.
73772         * modules/unicase/ulc-casecmp-tests: New file.
73773         * tests/unicase/test-ulc-casecmp1.sh: New file.
73774         * tests/unicase/test-ulc-casecmp2.sh: New file.
73775         * tests/unicase/test-ulc-casecmp.c: New file.
73777         New module 'unicase/ulc-casecmp'.
73778         * lib/unicase.h (ulc_casecmp): New declaration.
73779         * lib/unicase/ulc-casecmp.c: New file.
73780         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
73781         'const SRC_UNIT *'.
73782         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
73783         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
73784         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
73785         * modules/unicase/ulc-casecmp: New file.
73787         Tests for module 'unicase/u32-is-cased'.
73788         * modules/unicase/u32-is-cased-tests: New file.
73789         * tests/unicase/test-u32-is-cased.c: New file.
73791         Tests for module 'unicase/u16-is-cased'.
73792         * modules/unicase/u16-is-cased-tests: New file.
73793         * tests/unicase/test-u16-is-cased.c: New file.
73795         Tests for module 'unicase/u8-is-cased'.
73796         * modules/unicase/u8-is-cased-tests: New file.
73797         * tests/unicase/test-u8-is-cased.c: New file.
73798         * tests/unicase/test-is-cased.h: New file.
73800         New module 'unicase/u32-is-cased'.
73801         * lib/unicase/u32-is-cased.c: New file.
73802         * modules/unicase/u32-is-cased: New file.
73804         New module 'unicase/u16-is-cased'.
73805         * lib/unicase/u16-is-cased.c: New file.
73806         * modules/unicase/u16-is-cased: New file.
73808         New module 'unicase/u8-is-cased'.
73809         * lib/unicase/u8-is-cased.c: New file.
73810         * lib/unicase/u-is-cased.h: New file.
73811         * modules/unicase/u8-is-cased: New file.
73813         Tests for module 'unicase/u32-is-casefolded'.
73814         * modules/unicase/u32-is-casefolded-tests: New file.
73815         * tests/unicase/test-u32-is-casefolded.c: New file.
73817         Tests for module 'unicase/u16-is-casefolded'.
73818         * modules/unicase/u16-is-casefolded-tests: New file.
73819         * tests/unicase/test-u16-is-casefolded.c: New file.
73821         Tests for module 'unicase/u8-is-casefolded'.
73822         * modules/unicase/u8-is-casefolded-tests: New file.
73823         * tests/unicase/test-u8-is-casefolded.c: New file.
73824         * tests/unicase/test-is-casefolded.h: New file.
73826         New module 'unicase/u32-is-casefolded'.
73827         * lib/unicase/u32-is-casefolded.c: New file.
73828         * modules/unicase/u32-is-casefolded: New file.
73830         New module 'unicase/u16-is-casefolded'.
73831         * lib/unicase/u16-is-casefolded.c: New file.
73832         * modules/unicase/u16-is-casefolded: New file.
73834         New module 'unicase/u8-is-casefolded'.
73835         * lib/unicase/u8-is-casefolded.c: New file.
73836         * modules/unicase/u8-is-casefolded: New file.
73838         Tests for module 'unicase/u32-is-titlecase'.
73839         * modules/unicase/u32-is-titlecase-tests: New file.
73840         * tests/unicase/test-u32-is-titlecase.c: New file.
73842         Tests for module 'unicase/u16-is-titlecase'.
73843         * modules/unicase/u16-is-titlecase-tests: New file.
73844         * tests/unicase/test-u16-is-titlecase.c: New file.
73846         Tests for module 'unicase/u8-is-titlecase'.
73847         * modules/unicase/u8-is-titlecase-tests: New file.
73848         * tests/unicase/test-u8-is-titlecase.c: New file.
73849         * tests/unicase/test-is-titlecase.h: New file.
73851         New module 'unicase/u32-is-titlecase'.
73852         * lib/unicase/u32-is-titlecase.c: New file.
73853         * modules/unicase/u32-is-titlecase: New file.
73855         New module 'unicase/u16-is-titlecase'.
73856         * lib/unicase/u16-is-titlecase.c: New file.
73857         * modules/unicase/u16-is-titlecase: New file.
73859         New module 'unicase/u8-is-titlecase'.
73860         * lib/unicase/u8-is-titlecase.c: New file.
73861         * modules/unicase/u8-is-titlecase: New file.
73863         Tests for module 'unicase/u32-is-lowercase'.
73864         * modules/unicase/u32-is-lowercase-tests: New file.
73865         * tests/unicase/test-u32-is-lowercase.c: New file.
73867         Tests for module 'unicase/u16-is-lowercase'.
73868         * modules/unicase/u16-is-lowercase-tests: New file.
73869         * tests/unicase/test-u16-is-lowercase.c: New file.
73871         Tests for module 'unicase/u8-is-lowercase'.
73872         * modules/unicase/u8-is-lowercase-tests: New file.
73873         * tests/unicase/test-u8-is-lowercase.c: New file.
73874         * tests/unicase/test-is-lowercase.h: New file.
73876         New module 'unicase/u32-is-lowercase'.
73877         * lib/unicase/u32-is-lowercase.c: New file.
73878         * modules/unicase/u32-is-lowercase: New file.
73880         New module 'unicase/u16-is-lowercase'.
73881         * lib/unicase/u16-is-lowercase.c: New file.
73882         * modules/unicase/u16-is-lowercase: New file.
73884         New module 'unicase/u8-is-lowercase'.
73885         * lib/unicase/u8-is-lowercase.c: New file.
73886         * modules/unicase/u8-is-lowercase: New file.
73888         Tests for module 'unicase/u32-is-uppercase'.
73889         * modules/unicase/u32-is-uppercase-tests: New file.
73890         * tests/unicase/test-u32-is-uppercase.c: New file.
73892         Tests for module 'unicase/u16-is-uppercase'.
73893         * modules/unicase/u16-is-uppercase-tests: New file.
73894         * tests/unicase/test-u16-is-uppercase.c: New file.
73896         Tests for module 'unicase/u8-is-uppercase'.
73897         * modules/unicase/u8-is-uppercase-tests: New file.
73898         * tests/unicase/test-u8-is-uppercase.c: New file.
73899         * tests/unicase/test-is-uppercase.h: New file.
73901         New module 'unicase/u32-is-uppercase'.
73902         * lib/unicase/u32-is-uppercase.c: New file.
73903         * modules/unicase/u32-is-uppercase: New file.
73905         New module 'unicase/u16-is-uppercase'.
73906         * lib/unicase/u16-is-uppercase.c: New file.
73907         * modules/unicase/u16-is-uppercase: New file.
73909         New module 'unicase/u8-is-uppercase'.
73910         * lib/unicase/u8-is-uppercase.c: New file.
73911         * modules/unicase/u8-is-uppercase: New file.
73913         New module 'unicase/u32-is-invariant'.
73914         * lib/unicase/u32-is-invariant.c: New file.
73915         * modules/unicase/u32-is-invariant: New file.
73917         New module 'unicase/u16-is-invariant'.
73918         * lib/unicase/u16-is-invariant.c: New file.
73919         * modules/unicase/u16-is-invariant: New file.
73921         New module 'unicase/u8-is-invariant'.
73922         * lib/unicase/u8-is-invariant.c: New file.
73923         * lib/unicase/invariant.h: New file.
73924         * lib/unicase/u-is-invariant.h: New file.
73925         * modules/unicase/u8-is-invariant: New file.
73927         Tests for module 'unicase/u32-casecoll'.
73928         * modules/unicase/u32-casecoll-tests: New file.
73929         * tests/unicase/test-u32-casecoll.c: New file.
73931         Tests for module 'unicase/u16-casecoll'.
73932         * modules/unicase/u16-casecoll-tests: New file.
73933         * tests/unicase/test-u16-casecoll.c: New file.
73935         Tests for module 'unicase/u8-casecoll'.
73936         * modules/unicase/u8-casecoll-tests: New file.
73937         * tests/unicase/test-u8-casecoll.c: New file.
73939         New module 'unicase/u32-casecoll'.
73940         * lib/unicase/u32-casecoll.c: New file.
73941         * modules/unicase/u32-casecoll: New file.
73943         New module 'unicase/u16-casecoll'.
73944         * lib/unicase/u16-casecoll.c: New file.
73945         * modules/unicase/u16-casecoll: New file.
73947         New module 'unicase/u8-casecoll'.
73948         * lib/unicase/u8-casecoll.c: New file.
73949         * lib/unicase/u-casecoll.h: New file.
73950         * modules/unicase/u8-casecoll: New file.
73952         New module 'unicase/u32-casexfrm'.
73953         * lib/unicase/u32-casexfrm.c: New file.
73954         * modules/unicase/u32-casexfrm: New file.
73956         New module 'unicase/u16-casexfrm'.
73957         * lib/unicase/u16-casexfrm.c: New file.
73958         * modules/unicase/u16-casexfrm: New file.
73960         New module 'unicase/u8-casexfrm'.
73961         * lib/unicase/u8-casexfrm.c: New file.
73962         * lib/unicase/u-casexfrm.h: New file.
73963         * modules/unicase/u8-casexfrm: New file.
73965         Tests for module 'unicase/u32-casecmp'.
73966         * modules/unicase/u32-casecmp-tests: New file.
73967         * tests/unicase/test-u32-casecmp.c: New file.
73969         Tests for module 'unicase/u16-casecmp'.
73970         * modules/unicase/u16-casecmp-tests: New file.
73971         * tests/unicase/test-u16-casecmp.c: New file.
73973         Tests for module 'unicase/u8-casecmp'.
73974         * modules/unicase/u8-casecmp-tests: New file.
73975         * tests/unicase/test-u8-casecmp.c: New file.
73976         * tests/unicase/test-casecmp.h: New file.
73978         New module 'unicase/u32-casecmp'.
73979         * lib/unicase/u32-casecmp.c: New file.
73980         * modules/unicase/u32-casecmp: New file.
73982         New module 'unicase/u16-casecmp'.
73983         * lib/unicase/u16-casecmp.c: New file.
73984         * modules/unicase/u16-casecmp: New file.
73986         New module 'unicase/u8-casecmp'.
73987         * lib/unicase/u8-casecmp.c: New file.
73988         * lib/unicase/u-casecmp.h: New file.
73989         * modules/unicase/u8-casecmp: New file.
73991         Tests for module 'unicase/u32-casefold'.
73992         * modules/unicase/u32-casefold-tests: New file.
73993         * tests/unicase/test-u32-casefold.c: New file.
73995         Tests for module 'unicase/u16-casefold'.
73996         * modules/unicase/u16-casefold-tests: New file.
73997         * tests/unicase/test-u16-casefold.c: New file.
73999         Tests for module 'unicase/u8-casefold'.
74000         * modules/unicase/u8-casefold-tests: New file.
74001         * tests/unicase/test-u8-casefold.c: New file.
74003         New module 'unicase/u32-casefold'.
74004         * lib/unicase/u32-casefold.c: New file.
74005         * modules/unicase/u32-casefold: New file.
74007         New module 'unicase/u16-casefold'.
74008         * lib/unicase/u16-casefold.c: New file.
74009         * modules/unicase/u16-casefold: New file.
74011         New module 'unicase/u8-casefold'.
74012         * lib/unicase/u8-casefold.c: New file.
74013         * lib/unicase/u-casefold.h: New file.
74014         * modules/unicase/u8-casefold: New file.
74016         New module 'unicase/tocasefold'.
74017         * lib/unicase/casefold.h: New file.
74018         * lib/unicase/tocasefold.c: New file.
74019         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
74020         * modules/unicase/tocasefold: New file.
74022         Tests for module 'unicase/u32-totitle'.
74023         * modules/unicase/u32-totitle-tests: New file.
74024         * tests/unicase/test-u32-totitle.c: New file.
74026         Tests for module 'unicase/u16-totitle'.
74027         * modules/unicase/u16-totitle-tests: New file.
74028         * tests/unicase/test-u16-totitle.c: New file.
74030         Tests for module 'unicase/u8-totitle'.
74031         * modules/unicase/u8-totitle-tests: New file.
74032         * tests/unicase/test-u8-totitle.c: New file.
74034         New module 'unicase/u32-totitle'.
74035         * lib/unicase/u32-totitle.c: New file.
74036         * modules/unicase/u32-totitle: New file.
74038         New module 'unicase/u16-totitle'.
74039         * lib/unicase/u16-totitle.c: New file.
74040         * modules/unicase/u16-totitle: New file.
74042         New module 'unicase/u8-totitle'.
74043         * lib/unicase/u8-totitle.c: New file.
74044         * lib/unicase/u-totitle.h: New file.
74045         * modules/unicase/u8-totitle: New file.
74047         Tests for module 'unicase/u32-tolower'.
74048         * modules/unicase/u32-tolower-tests: New file.
74049         * tests/unicase/test-u32-tolower.c: New file.
74051         Tests for module 'unicase/u16-tolower'.
74052         * modules/unicase/u16-tolower-tests: New file.
74053         * tests/unicase/test-u16-tolower.c: New file.
74055         Tests for module 'unicase/u8-tolower'.
74056         * modules/unicase/u8-tolower-tests: New file.
74057         * tests/unicase/test-u8-tolower.c: New file.
74059         New module 'unicase/u32-tolower'.
74060         * lib/unicase/u32-tolower.c: New file.
74061         * modules/unicase/u32-tolower: New file.
74063         New module 'unicase/u16-tolower'.
74064         * lib/unicase/u16-tolower.c: New file.
74065         * modules/unicase/u16-tolower: New file.
74067         New module 'unicase/u8-tolower'.
74068         * lib/unicase/u8-tolower.c: New file.
74069         * modules/unicase/u8-tolower: New file.
74071         Tests for module 'unicase/u32-toupper'.
74072         * modules/unicase/u32-toupper-tests: New file.
74073         * tests/unicase/test-u32-toupper.c: New file.
74075         Tests for module 'unicase/u16-toupper'.
74076         * modules/unicase/u16-toupper-tests: New file.
74077         * tests/unicase/test-u16-toupper.c: New file.
74079         Tests for module 'unicase/u8-toupper'.
74080         * modules/unicase/u8-toupper-tests: New file.
74081         * tests/unicase/test-u8-toupper.c: New file.
74083         New module 'unicase/u32-toupper'.
74084         * lib/unicase/u32-toupper.c: New file.
74085         * modules/unicase/u32-toupper: New file.
74087         New module 'unicase/u16-toupper'.
74088         * lib/unicase/u16-toupper.c: New file.
74089         * modules/unicase/u16-toupper: New file.
74091         New module 'unicase/u8-toupper'.
74092         * lib/unicase/u8-toupper.c: New file.
74093         * modules/unicase/u8-toupper: New file.
74095         New module 'unicase/u32-casemap'.
74096         * lib/unicase/u32-casemap.c: New file.
74097         * modules/unicase/u32-casemap: New file.
74099         New module 'unicase/u16-casemap'.
74100         * lib/unicase/u16-casemap.c: New file.
74101         * modules/unicase/u16-casemap: New file.
74103         New module 'unicase/u8-casemap'.
74104         * lib/unicase/unicasemap.h: New file.
74105         * lib/unicase/u8-casemap.c: New file.
74106         * lib/unicase/u-casemap.h: New file.
74107         * modules/unicase/u8-casemap: New file.
74109         New module 'unicase/special-casing'.
74110         * lib/unicase/special-casing.h: New file.
74111         * lib/unicase/special-casing.c: New file.
74112         * lib/unicase/special-casing-table.gperf: New file, generated by
74113         gen-uni-tables.c.
74114         * modules/unicase/special-casing: New file.
74116         Tests for module 'unicase/locale-language'.
74117         * modules/unicase/locale-language-tests: New file.
74118         * tests/unicase/test-locale-language.sh: New file.
74119         * tests/unicase/test-locale-language.c: New file.
74121         New module 'unicase/locale-language'.
74122         * lib/unicase/locale-language.c: New file.
74123         * lib/unicase/locale-languages.gperf: New file.
74124         * modules/unicase/locale-language: New file.
74126         Generate more tables for case conversion and case folding.
74127         * lib/gen-uni-tables.c (SCC_*): New enum items.
74128         (struct special_casing_rule): New type.
74129         (casing_rules, num_casing_rules, allocated_casing_rules): New
74130         variables.
74131         (add_casing_rule, fill_casing_rules): New functions.
74132         (struct casefold_rule): New type.
74133         (casefolding_rules, num_casefolding_rules,
74134         allocated_casefolding_rules): New variables.
74135         (fill_casefolding_rules): New function.
74136         (unicode_casefold): New variable.
74137         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
74138         sort_casing_rules, output_casing_rules): New functions.
74139         (main): Accept to more arguments: SpecialCasing.txt and
74140         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
74141         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
74142         Output mapping for casefolding.
74144         * lib/unicase.h: Include stdbool.h, uninorm.h.
74145         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
74146         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
74147         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
74148         arguments.
74149         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
74150         resultp arguments.
74151         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
74152         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
74153         resultp arguments.
74154         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
74155         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
74156         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
74157         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
74158         declarations.
74159         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
74161 2009-03-08  Bruno Haible  <bruno@clisp.org>
74163         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
74164         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
74165         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
74166         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
74168 2009-03-07  Bruno Haible  <bruno@clisp.org>
74170         Adjust u*_normcmp, u*_normcoll API.
74171         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
74172         u16_normcoll, u32_normcoll): Change failure conventions.
74173         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
74174         errno and return -1.
74175         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
74177 2009-03-07  Bruno Haible  <bruno@clisp.org>
74179         Tests for module 'uninorm/u32-normcoll'.
74180         * modules/uninorm/u32-normcoll-tests: New file.
74181         * tests/uninorm/test-u32-normcoll.c: New file.
74183         Tests for module 'uninorm/u16-normcoll'.
74184         * modules/uninorm/u16-normcoll-tests: New file.
74185         * tests/uninorm/test-u16-normcoll.c: New file.
74187         Tests for module 'uninorm/u8-normcoll'.
74188         * modules/uninorm/u8-normcoll-tests: New file.
74189         * tests/uninorm/test-u8-normcoll.c: New file.
74191 2009-03-07  Bruno Haible  <bruno@clisp.org>
74193         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
74194         tests/uninorm/test-u32-normcmp.c.
74195         * tests/uninorm/test-u32-normcmp.c: Include it.
74196         (test_nonascii): New function, extracted from main. Add some more
74197         tests.
74198         (main): Invoke test_ascii and test_nonascii.
74199         * modules/uninorm/u32-normcmp-tests (Files): Add
74200         tests/uninorm/test-u32-normcmp.h.
74201         (Depends-on): Remove uninorm/u32-normcmp.
74203         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
74204         tests/uninorm/test-u16-normcmp.c.
74205         * tests/uninorm/test-u16-normcmp.c: Include it.
74206         (test_nonascii): New function, extracted from main. Add some more
74207         tests.
74208         (main): Invoke test_ascii and test_nonascii.
74209         * modules/uninorm/u16-normcmp-tests (Files): Add
74210         tests/uninorm/test-u16-normcmp.h.
74211         (Depends-on): Remove uninorm/u16-normcmp.
74213         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
74214         tests/uninorm/test-u8-normcmp.c.
74215         * tests/uninorm/test-u8-normcmp.c: Include it.
74216         (test_nonascii): New function, extracted from main. Add some more
74217         tests.
74218         (main): Invoke test_ascii and test_nonascii.
74219         * modules/uninorm/u8-normcmp-tests (Files): Add
74220         tests/uninorm/test-u8-normcmp.h.
74221         (Depends-on): Remove uninorm/u8-normcmp.
74223 2009-03-07  Bruno Haible  <bruno@clisp.org>
74225         New module 'uninorm/u32-normcoll'.
74226         * lib/uninorm/u32-normcoll.c: New file.
74227         * modules/uninorm/u32-normcoll: New file.
74229         New module 'uninorm/u16-normcoll'.
74230         * lib/uninorm/u16-normcoll.c: New file.
74231         * modules/uninorm/u16-normcoll: New file.
74233         New module 'uninorm/u8-normcoll'.
74234         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
74235         declarations.
74236         * lib/uninorm/u8-normcoll.c: New file.
74237         * lib/uninorm/u-normcoll.h: New file.
74238         * modules/uninorm/u8-normcoll: New file.
74240         New module 'uninorm/u32-normxfrm'.
74241         * lib/uninorm/u32-normxfrm.c: New file.
74242         * modules/uninorm/u32-normxfrm: New file.
74244         New module 'uninorm/u16-normxfrm'.
74245         * lib/uninorm/u16-normxfrm.c: New file.
74246         * modules/uninorm/u16-normxfrm: New file.
74248         New module 'uninorm/u8-normxfrm'.
74249         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
74250         declarations.
74251         * lib/uninorm/u8-normxfrm.c: New file.
74252         * lib/uninorm/u-normxfrm.h: New file.
74253         * modules/uninorm/u8-normxfrm: New file.
74255 2009-03-07  Bruno Haible  <bruno@clisp.org>
74257         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
74258         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
74259         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
74261 2009-03-07  Bruno Haible  <bruno@clisp.org>
74263         New module 'memxfrm'.
74264         * lib/memxfrm.h: New file.
74265         * lib/memxfrm.c: New file.
74266         * modules/memxfrm: New file.
74268 2009-03-07  Bruno Haible  <bruno@clisp.org>
74270         New module 'memcmp2'.
74271         * lib/memcmp2.h: New file.
74272         * lib/memcmp2.c: New file.
74273         * modules/memcmp2: New file.
74275 2009-03-07  Bruno Haible  <bruno@clisp.org>
74277         Tests for module 'uninorm/decomposing-form'.
74278         * modules/uninorm/decomposing-form-tests: New file.
74279         * tests/uninorm/test-decomposing-form.c: New file.
74281         New module 'uninorm/decomposing-form'.
74282         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
74283         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
74284         Add 'decomposing_variant' field.
74285         * lib/uninorm/decomposing-form.c: New file.
74286         * lib/uninorm/nfc.c (uninorm_nfc): Update.
74287         * lib/uninorm/nfd.c (uninorm_nfd): Update.
74288         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
74289         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
74290         * modules/uninorm/decomposing-form: New file.
74291         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
74292         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
74294 2009-03-07  Bruno Haible  <bruno@clisp.org>
74296         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
74297         strings.
74299 2009-03-06  Bruno Haible  <bruno@clisp.org>
74301         Tests for module 'uninorm/u32-normcmp'.
74302         * tests/uninorm/test-u32-normcmp.c: New file.
74303         * modules/uninorm/u32-normcmp-tests: New file.
74305         Tests for module 'uninorm/u16-normcmp'.
74306         * tests/uninorm/test-u16-normcmp.c: New file.
74307         * modules/uninorm/u16-normcmp-tests: New file.
74309         Tests for module 'uninorm/u8-normcmp'.
74310         * tests/uninorm/test-u8-normcmp.c: New file.
74311         * modules/uninorm/u8-normcmp-tests: New file.
74313         New module 'uninorm/u32-normcmp'.
74314         * lib/uninorm/u32-normcmp.c: New file.
74315         * modules/uninorm/u32-normcmp: New file.
74317         New module 'uninorm/u16-normcmp'.
74318         * lib/uninorm/u16-normcmp.c: New file.
74319         * modules/uninorm/u16-normcmp: New file.
74321         New module 'uninorm/u8-normcmp'.
74322         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
74323         declarations.
74324         * lib/uninorm/u8-normcmp.c: New file.
74325         * lib/uninorm/u-normcmp.h: New file.
74326         * modules/uninorm/u8-normcmp: New file.
74328 2009-03-06  Bruno Haible  <bruno@clisp.org>
74330         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
74331         Reported by Eric Blake.
74333 2009-03-06  Eric Blake  <ebb9@byu.net>
74334             Bruno Haible  <bruno@clisp.org>
74336         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
74337         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
74338         condition.
74339         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
74340         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
74341         condition.
74342         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
74344 2009-03-06  Eric Blake  <ebb9@byu.net>
74346         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
74347         to avoid compiler warnings.
74348         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
74350 2009-03-05  Bruno Haible  <bruno@clisp.org>
74352         * tests/test-ftell.c (main): Disable test beyond end of file on
74353         FreeMiNT.
74354         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
74356 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
74358         * lib/filevercmp.c: Move hidden files up in ordering.
74359         * tests/test-filevercmp.c: Add tests for hidden files.
74361 2009-03-04  Bruno Haible  <bruno@clisp.org>
74363         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
74364         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
74365         AM_CFLAGS.
74366         Reported by Simon Josefsson.
74368 2009-03-03  Bruno Haible  <bruno@clisp.org>
74370         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
74371         Reported by Simon Josefsson.
74373         * doc/ld-version-script.texi: Update node reference.
74375 2009-03-03  Bruno Haible  <bruno@clisp.org>
74377         * modules/visibility (License): Change to 'unlimited'.
74378         Suggested by Simon Josefsson.
74380 2009-03-03  Jim Meyering  <meyering@redhat.com>
74382         unlinkdir: cannot_unlink_dir may modify process state
74383         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
74384         it's neither thread-safe nor appropriate for use in a library.
74386 2009-03-03  Eric Blake  <ebb9@byu.net>
74388         test-closein: silence test under Darwin
74389         * tests/test-closein.sh: Ignore stderr from cat, since we don't
74390         care if it dies from EPIPE or EBADF.
74392 2009-03-03  Bruno Haible  <bruno@clisp.org>
74394         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
74395         earlier.
74396         * doc/visibility.texi: Fix @node and @section.
74398 2009-03-03  Simon Josefsson  <simon@josefsson.org>
74400         * doc/gnulib.texi: Link to sections for ld version script and
74401         visibility.
74402         * doc/visibility.texi: Add @node and @section.
74403         * modules/ld-version-script: New module.
74404         * m4/ld-version-script.m4: New file.
74405         * doc/ld-version-script.texi: New file.
74407 2009-03-02  David Lutterkort  <lutter@redhat.com>
74409         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
74410         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
74412 2009-03-02  Bruno Haible  <bruno@clisp.org>
74414         * doc/visibility.texi: Mention libtool's -export-symbols option.
74416 2009-03-02  Jim Meyering  <meyering@redhat.com>
74418         announce-gen: new option: --no-print-checksums
74419         * build-aux/announce-gen (usage): Describe it.
74420         (print_checksums): Print a newline here, not in the [*] footnote.
74421         (main): Honor it.
74423 2009-03-01  Bruno Haible  <bruno@clisp.org>
74425         Use socklen_t in the native Windows replacements prototypes.
74426         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
74427         instead of 'int'.
74428         * lib/getsockopt.c (rpl_getsockopt): Likewise.
74429         * lib/setsockopt.c (rpl_setsockopt): Likewise.
74430         * modules/getsockopt (Depends-on): Add socklen.
74431         * modules/setsockopt (Depends-on): Add socklen.
74433 2009-03-01  Bruno Haible  <bruno@clisp.org>
74435         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
74436         least 4.2.
74438 2009-03-01  Eric Blake  <ebb9@byu.net>
74439             Bruno Haible  <bruno@clisp.org>
74441         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
74442         error messages.
74443         * lib/wait-process.c (wait_subprocess): Omit error message about
74444         deadly signal sent to the child of termsigp != NULL.
74446 2009-03-01  Eric Blake  <ebb9@byu.net>
74448         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
74450 2009-03-01  Bruno Haible  <bruno@clisp.org>
74452         Avoid a gcc warning.
74453         * tests/test-sched.c (b): Make global.
74454         Reported by Eric Blake.
74456 2009-01-19  Martin Lambers  <marlam@marlam.de>
74458         Provide POSIX semantics for socket timeout options on W32.
74459         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
74460         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
74461         * modules/setsockopt: Depend on sys_time module for struct timeval.
74462         * modules/getsockopt: Depend on sys_time module for struct timeval.
74464 2009-03-01  Simon Josefsson  <simon@josefsson.org>
74466         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
74467         __USE_GNU, for consistency with netdb.in.h.
74468         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
74470 2009-03-01  Bruno Haible  <bruno@clisp.org>
74472         More support for FreeMiNT.
74473         * lib/fseeko.c (rpl_fseeko): Complete last commit.
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/fpurge.c (fpurge): Correct last commit.
74480         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
74482 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74484         Fix unportable awk script in vc-list-files.
74485         * build-aux/vc-list-files: In the replacement awk script, use
74486         substr with a second argument of 1, not zero.
74487         Report by Simon Josefsson.
74489 2009-02-28  Bruno Haible  <bruno@clisp.org>
74491         More support for FreeMiNT.
74492         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
74493         to FreeMiNT today.
74494         * lib/fwriting.c (fwriting): Likewise.
74495         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
74497 2009-02-28  Bruno Haible  <bruno@clisp.org>
74499         * tests/test-freadseek.c (main): Disable test beyond end of file on
74500         FreeMiNT.
74501         * tests/test-ftello.c (main): Likewise.
74502         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
74504 2009-02-28  Bruno Haible  <bruno@clisp.org>
74506         Add tentative support for FreeMiNT.
74507         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
74508         * lib/fpurge.c (fpurge): Likewise.
74509         * lib/freadable.c (freadable): Likewise.
74510         * lib/freading.c (freading): Likewise.
74511         * lib/freadptr.c (freadptr): Likewise.
74512         * lib/freadseek.c (freadptrinc): Likewise.
74513         * lib/fseeko.c (rpl_fseeko): Likewise.
74514         * lib/fseterr.c (fseterr): Likewise.
74515         * lib/fwritable.c (fwritable): Likewise.
74516         * lib/fwriting.c (fwriting): Likewise.
74517         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
74518         Hourihane.
74519         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
74521 2009-02-28  Bruno Haible  <bruno@clisp.org>
74523         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
74524         SIGCHLD.
74525         Reported by Jim Meyering.
74527 2009-02-28  Bruno Haible  <bruno@clisp.org>
74529         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
74530         Mention the results of these tests on various platforms.
74531         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
74532         order.
74533         * doc/posix-functions/printf.texi: Likewise.
74534         * doc/posix-functions/snprintf.texi: Likewise.
74535         * doc/posix-functions/sprintf.texi: Likewise.
74536         * doc/posix-functions/vfprintf.texi: Likewise.
74537         * doc/posix-functions/vprintf.texi: Likewise.
74538         * doc/posix-functions/vsnprintf.texi: Likewise.
74539         * doc/posix-functions/vsprintf.texi: Likewise.
74540         * doc/glibc-functions/obstack_printf.texi: Likewise.
74541         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
74543 2009-02-28  Bruno Haible  <bruno@clisp.org>
74545         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
74546         Reported by Loïc Minier <lool@dooz.org>.
74548 2009-02-27  Bruno Haible  <bruno@clisp.org>
74550         * gnulib-tool (func_import): Make the sed expression used to create the
74551         sed script for updating the .gitignore file POSIX compliant.
74552         Reported by Eric Blake.
74554 2009-02-27  Bruno Haible  <bruno@clisp.org>
74556         * gnulib-tool (sed): Don't alias as "sed --posix".
74557         Reported by Eric Blake.
74559 2009-02-27  Bruno Haible  <bruno@clisp.org>
74561         Avoid test link errors.
74562         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
74563         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
74564         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
74565         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
74566         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
74568 2009-02-27  Bruno Haible  <bruno@clisp.org>
74570         Avoid spurious "(cached)" in configure output.
74571         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
74572         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
74573         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
74574         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
74575         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
74576         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
74577         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
74578         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
74579         Reported by Eric Blake.
74581 2009-02-27  Eric Blake  <ebb9@byu.net>
74583         printf: fix regression in previous patch
74584         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
74586 2009-02-27  Bruno Haible  <bruno@clisp.org>
74588         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
74589         value.
74590         * lib/stdint.in.h: Likewise.
74591         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
74593 2009-02-27  Eric Blake  <ebb9@byu.net>
74595         doc: mention more functions added in cygwin 1.7.0
74596         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
74597         addition.
74598         * doc/posix-functions/open_wmemstream.texi: Likewise.
74599         * doc/posix-functions/wcsnlen.texi: Likewise.
74600         * doc/posix-functions/wcsnrtombs.texi: Likewise.
74601         * doc/posix-functions/wcstod.texi: Likewise.
74602         * doc/posix-functions/wcstof.texi: Likewise.
74603         * doc/posix-functions/wcstoimax.texi: Likewise.
74604         * doc/posix-functions/wcstok.texi: Likewise.
74605         * doc/posix-functions/wcstoumax.texi: Likewise.
74607         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
74608         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
74609         * doc/posix-functions/fprintf.texi: Update.
74610         * doc/posix-functions/printf.texi: Update.
74611         * doc/posix-functions/snprintf.texi: Update.
74612         * doc/posix-functions/sprintf.texi: Update.
74613         * doc/posix-functions/vfprintf.texi: Update.
74614         * doc/posix-functions/vprintf.texi: Update.
74615         * doc/posix-functions/vsnprintf.texi: Update.
74616         * doc/posix-functions/vsprintf.texi: Update.
74617         * doc/glibc-functions/obstack_printf.texi: Update.
74618         * doc/glibc-functions/obstack_vprintf.texi: Update.
74620 2009-02-26  Eric Blake  <ebb9@byu.net>
74622         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
74623         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
74624         compilation bug by using runtime conversion.
74625         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
74626         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
74627         * modules/ceill-tests (Files): Use nan.h.
74628         * modules/floorl-tests (Files): Likewise.
74629         * modules/frexpl-tests (Files): Likewise.
74630         * modules/isnanl-tests (Files): Likewise.
74631         * modules/ldexpl-tests (Files): Likewise.
74632         * modules/roundl-tests (Files): Likewise.
74633         * modules/truncl-tests (Files): Likewise.
74634         * tests/test-ceill.c (main): Use a working NaN.
74635         * tests/test-floorl.c (main): Likewise.
74636         * tests/test-frexpl.c (main): Likewise.
74637         * tests/test-isnan.c (test_long_double): Likewise.
74638         * tests/test-isnanl.h (main): Likewise.
74639         * tests/test-ldexpl.h (main): Likewise.
74640         * tests/test-roundl.h (main): Likewise.
74641         * tests/test-truncl.h (main): Likewise.
74642         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
74644 2009-02-26  Eric Blake  <ebb9@byu.net>
74645             Bruno Haible  <bruno@clisp.org>
74647         Work around a *printf bug with %ls on Solaris.
74648         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
74649         precision is specified, sprintf stops converting the wide string
74650         argument when the number of bytes that have been produced by this
74651         conversion equals or exceeds the precision.
74652         * doc/posix-functions/fprintf.texi: Update.
74653         * doc/posix-functions/printf.texi: Update.
74654         * doc/posix-functions/snprintf.texi: Update.
74655         * doc/posix-functions/sprintf.texi: Update.
74656         * doc/posix-functions/vfprintf.texi: Update.
74657         * doc/posix-functions/vprintf.texi: Update.
74658         * doc/posix-functions/vsnprintf.texi: Update.
74659         * doc/posix-functions/vsprintf.texi: Update.
74660         * doc/glibc-functions/obstack_printf.texi: Update.
74661         * doc/glibc-functions/obstack_vprintf.texi: Update.
74663 2009-02-26  Eric Blake  <ebb9@byu.net>
74665         stdlib: favor compiler check of random.h
74666         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
74667         to avoid an ObjC random.h installed by Swarm.
74669 2009-02-26  Bruno Haible  <bruno@clisp.org>
74671         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
74672         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
74673         Reported by Gary V. Vaughan <gary@gnu.org>.
74675 2009-02-26  Bruno Haible  <bruno@clisp.org>
74677         Fix *printf behaviour regarding the %ls directive.
74678         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
74679         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
74680         NEED_PRINTF_DIRECTIVE_LS.
74681         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
74682         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
74683         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
74684         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
74685         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
74686         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
74687         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
74688         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
74689         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
74690         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
74691         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
74692         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
74693         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
74694         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
74695         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
74696         * doc/posix-functions/fprintf.texi: Update.
74697         * doc/posix-functions/printf.texi: Update.
74698         * doc/posix-functions/snprintf.texi: Update.
74699         * doc/posix-functions/sprintf.texi: Update.
74700         * doc/posix-functions/vfprintf.texi: Update.
74701         * doc/posix-functions/vprintf.texi: Update.
74702         * doc/posix-functions/vsnprintf.texi: Update.
74703         * doc/posix-functions/vsprintf.texi: Update.
74704         * doc/glibc-functions/obstack_printf.texi: Update.
74705         * doc/glibc-functions/obstack_vprintf.texi: Update.
74706         Reported by Eric Blake.
74708 2009-02-25  Bruno Haible  <bruno@clisp.org>
74710         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
74711         with known value.
74712         Reported by Gary V. Vaughan <gary@gnu.org>.
74714 2009-02-25  Bruno Haible  <bruno@clisp.org>
74716         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
74717         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
74718         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
74719         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
74720         Reported by Gary V. Vaughan <gary@gnu.org>.
74722 2009-02-25  Bruno Haible  <bruno@clisp.org>
74724         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
74725         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
74726         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
74727         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
74728         Reported by Gary V. Vaughan <gary@gnu.org>.
74730 2009-02-25  Eric Blake  <ebb9@byu.net>
74732         tests: skip fseek/ftell tests if ungetc is broken
74733         * m4/ungetc.m4: New file.
74734         * modules/fseek-tests: Split test, so ungetc dependency is
74735         separate from rest of test.
74736         * modules/fseeko-tests: Likewise.
74737         * modules/ftell-tests: Likewise.
74738         * modules/ftello-tests: Likewise.
74739         * tests/test-fseek.c (main): Isolate ungetc dependency.
74740         * tests/test-fseeko.c (main): Likewise.
74741         * tests/test-ftell.c (main): Likewise.
74742         * tests/test-ftello.c (main): Likewise.
74743         * tests/test-fseek2.sh: New file.
74744         * tests/test-fseeko2.sh: Likewise.
74745         * tests/test-ftell2.sh: Likewise.
74746         * tests/test-ftello2.sh: Likewise.
74748 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
74750         test-getaddrinfo: fix usage of skip return code 77
74751         * tests/test-gettaddrinfo.c: Return skip code 77 only
74752         for first occurrence of skip (4x77 is not 77)
74754 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
74756         strtod: avoid C99 decl-after-statement
74757         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
74759 2009-02-24  Eric Blake  <ebb9@byu.net>
74761         strtod: detect HP-UX 11.31 bug
74762         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
74763         Reported by Gary V. Vaughan.
74765 2009-02-23  Bruno Haible  <bruno@clisp.org>
74767         Fix invalid read past end of memory block.
74768         * lib/vasnprintf.c (DCHAR_SET): Define.
74769         (local_wcslen): Define only when needed.
74770         (local_strnlen, local_wcsnlen): New functions.
74771         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
74772         directives that involve a conversion ourselves.
74773         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
74774         wcsnlen, mbrtowc, wcrtomb.
74775         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
74776         * tests/test-vasprintf-posix.c (test_function): Likewise.
74777         * tests/test-snprintf-posix.h (test_function): Likewise.
74778         * tests/test-sprintf-posix.h (test_function): Likewise.
74779         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74781 2009-02-22  Bruno Haible  <bruno@clisp.org>
74783         Implement new clarified decomposition of Hangul syllables.
74784         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
74785         of type LTV, return only a pairwise decomposition.
74786         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
74787         Likewise.
74788         * tests/uninorm/test-decomposition.c (main): Updated expected result.
74789         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
74790         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
74792 2009-02-22  Bruno Haible  <bruno@clisp.org>
74794         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
74795         zero-length results and shrink excess allocated memory.
74796         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
74797         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
74798         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
74799         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
74800         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
74801         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
74802         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
74803         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
74804         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
74805         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
74806         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
74807         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
74809 2009-02-21  Bruno Haible  <bruno@clisp.org>
74811         * doc/gnulib.texi: Include safe-alloc.texi earlier.
74812         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
74813         spaces after a period. Put a space between a macro name and its
74814         argument list. Trivial rewordings.
74815         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
74816         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
74817         (main): Return 0 explicitly.
74819 2009-02-21  Bruno Haible  <bruno@clisp.org>
74821         Tests for module 'uninorm/filter'.
74822         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
74823         * modules/uninorm/filter-tests: New file.
74825         New module 'uninorm/filter'.
74826         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
74827         uninorm_filter_flush, uninorm_filter_free): New declarations.
74828         * lib/uninorm/uninorm-filter.c: New file.
74829         * modules/uninorm/filter: New file.
74831 2009-02-21  Bruno Haible  <bruno@clisp.org>
74833         Tests for module 'uninorm/nfkc'.
74834         * tests/uninorm/test-nfkc.c: New file.
74835         * tests/uninorm/test-u8-nfkc.c: New file.
74836         * tests/uninorm/test-u16-nfkc.c: New file.
74837         * tests/uninorm/test-u32-nfkc.c: New file.
74838         * tests/uninorm/test-u32-nfkc-big.sh: New file.
74839         * tests/uninorm/test-u32-nfkc-big.c: New file.
74840         * modules/uninorm/nfkc-tests: New file.
74842         New module 'uninorm/nfkc'.
74843         * lib/uninorm/nfkc.c: New file.
74844         * modules/uninorm/nfkc: New file.
74846         Tests for module 'uninorm/nfkd'.
74847         * tests/uninorm/test-nfkd.c: New file.
74848         * tests/uninorm/test-u8-nfkd.c: New file.
74849         * tests/uninorm/test-u16-nfkd.c: New file.
74850         * tests/uninorm/test-u32-nfkd.c: New file.
74851         * tests/uninorm/test-u32-nfkd-big.sh: New file.
74852         * tests/uninorm/test-u32-nfkd-big.c: New file.
74853         * modules/uninorm/nfkd-tests: New file.
74855         New module 'uninorm/nfkd'.
74856         * lib/uninorm/nfkd.c: New file.
74857         * modules/uninorm/nfkd: New file.
74859         Tests for module 'uninorm/nfc'.
74860         * tests/uninorm/test-nfc.c: New file.
74861         * tests/uninorm/test-u8-nfc.c: New file.
74862         * tests/uninorm/test-u16-nfc.c: New file.
74863         * tests/uninorm/test-u32-nfc.c: New file.
74864         * tests/uninorm/test-u32-nfc-big.sh: New file.
74865         * tests/uninorm/test-u32-nfc-big.c: New file.
74866         * modules/uninorm/nfc-tests: New file.
74868         New module 'uninorm/nfc'.
74869         * lib/uninorm/nfc.c: New file.
74870         * modules/uninorm/nfc: New file.
74872         Tests for module 'uninorm/nfd'.
74873         * tests/uninorm/test-nfd.c: New file.
74874         * tests/uninorm/test-u8-nfd.c: New file.
74875         * tests/uninorm/test-u16-nfd.c: New file.
74876         * tests/uninorm/test-u32-nfd.c: New file.
74877         * tests/uninorm/test-u32-nfd-big.sh: New file.
74878         * tests/uninorm/test-u32-nfd-big.c: New file.
74879         * tests/uninorm/test-u32-normalize-big.h: New file.
74880         * tests/uninorm/test-u32-normalize-big.c: New file.
74881         * tests/uninorm/NormalizationTest.txt: New file, created from
74882         Unicode 5.1.0 NormalizationTest.txt.
74883         * modules/uninorm/nfd-tests: New file.
74885         New module 'uninorm/nfd'.
74886         * lib/uninorm/nfd.c: New file.
74887         * modules/uninorm/nfd: New file.
74889         New module 'uninorm/u32-normalize'.
74890         * lib/uninorm/u32-normalize.c: New file.
74891         * modules/uninorm/u32-normalize: New file.
74893         New module 'uninorm/u16-normalize'.
74894         * lib/uninorm/u16-normalize.c: New file.
74895         * modules/uninorm/u16-normalize: New file.
74897         New module 'uninorm/u8-normalize'.
74898         * lib/uninorm/u8-normalize.c: New file.
74899         * lib/uninorm/normalize-internal.h: New file.
74900         * lib/uninorm/u-normalize-internal.h: New file.
74901         * modules/uninorm/u8-normalize: New file.
74903         New module 'uninorm/decompose-internal'.
74904         * lib/uninorm/decompose-internal.c: New file.
74905         * modules/uninorm/decompose-internal: New file.
74907         Tests for module 'uninorm/composition'.
74908         * tests/uninorm/test-composition.c: New file.
74909         * modules/uninorm/composition-tests: New file.
74911         New module 'uninorm/composition'.
74912         * lib/uninorm/composition.c: New file.
74913         * lib/uninorm/composition-table.gperf: New file, generated by
74914         gen-uni-tables.
74915         * modules/uninorm/composition: New file.
74917         Tests for module 'uninorm/compat-decomposition'.
74918         * tests/uninorm/test-compat-decomposition.c: New file.
74919         * modules/uninorm/compat-decomposition-tests: New file.
74921         New module 'uninorm/compat-decomposition'.
74922         * lib/uninorm/decompose-internal.h: New file.
74923         * lib/uninorm/compat-decomposition.c: New file.
74924         * modules/uninorm/compat-decomposition: New file.
74926         Tests for module 'uninorm/canonical-decomposition'.
74927         * tests/uninorm/test-canonical-decomposition.c: New file.
74928         * modules/uninorm/canonical-decomposition-tests: New file.
74930         New module 'uninorm/canonical-decomposition'.
74931         * lib/uninorm/canonical-decomposition.c: New file.
74932         * modules/uninorm/canonical-decomposition: New file.
74934         Tests for module 'uninorm/decomposition'.
74935         * tests/uninorm/test-decomposition.c: New file.
74936         * modules/uninorm/decomposition-tests: New file.
74938         New module 'uninorm/decomposition'.
74939         * lib/uninorm/decomposition.c: New file.
74940         * modules/uninorm/decomposition: New file.
74942         New module 'uninorm/decomposition-table'.
74943         * lib/uninorm/decomposition-table.h: New file.
74944         * lib/uninorm/decomposition-table.c: New file.
74945         * lib/uninorm/decomposition-table1.h: New file, generated by
74946         gen-uni-tables.
74947         * lib/uninorm/decomposition-table2.h: New file, generated by
74948         gen-uni-tables.
74949         * modules/uninorm/decomposition-table: New file.
74951         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
74952         (UC_DECOMP_*): New enumeration items.
74953         (get_decomposition): New function.
74954         (struct decomp_table): New type.
74955         (output_decomposition, output_decomposition_tables): New functions.
74956         (unicode_composition_exclusions): New variable.
74957         (fill_composition_exclusions, debug_output_composition_tables): New
74958         functions.
74959         (main): Accept one more argument. Invoke fill_composition_exclusions.
74960         Output decomposition and composition tables.
74962         New module 'uninorm/base'.
74963         * lib/uninorm.h: New file.
74964         * lib/unictype.h: Update comment.
74965         * modules/uninorm/base: New file.
74967 2009-02-21  David Lutterkort  <lutter@redhat.com>
74969         Tests for module 'safe-alloc'.
74970         * tests/test-safe-alloc.c: New file.
74971         * modules/safe-alloc-tests: New file.
74973         New module 'safe-alloc'.
74974         * lib/safe-alloc.h: New file.
74975         * lib/safe-alloc.c: New file.
74976         * m4/safe-alloc.m4: New file.
74977         * modules/safe-alloc: New file.
74978         * doc/safe-alloc.texi: New file.
74979         * doc/gnulib.texi: Include it.
74980         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
74981         safe-alloc.
74983 2009-02-18  Bruno Haible  <bruno@clisp.org>
74985         Fix link error on non-glibc systems.
74986         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
74987         variable.
74988         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
74990 2009-02-18  Jim Meyering  <meyering@redhat.com>
74992         fts: avoid used-uninitialized error due to recent change
74993         * lib/fts.c (fts_read): Guard uses of the new member,
74994         parent->fts_n_dirs_remaining, since it's not relevant for
74995         the parent of a directory specified on the command-line.
74997 2009-02-17  James Youngman  <jay@gnu.org>
74998             Bruno Haible  <bruno@clisp.org>
75000         * m4/include_next.m4: Reformulate comment.
75002 2009-02-16  Jim Meyering  <meyering@redhat.com>
75004         fts: add #if guards so that the fts_lgpl module still builds
75005         * lib/fts.c: Guard just-added hash-table-using parts with
75006         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
75007         Reported by Simon Josefsson.
75009 2009-02-15  Bruno Haible  <bruno@clisp.org>
75011         * modules/array-mergesort-tests: New file.
75012         * tests/test-array-mergesort.c: New file.
75014         New module 'array-mergesort'.
75015         * modules/array-mergesort: New file.
75016         * lib/array-mergesort.h: New file.
75018 2009-02-15  Bruno Haible  <bruno@clisp.org>
75020         Fix 2009-02-07 commit.
75021         * lib/gen-uni-tables.c (output_predicate, output_category,
75022         output_combclass, output_bidi_category, output_decimal_digit,
75023         output_digit, output_numeric, output_mirror, output_scripts,
75024         output_ident_category, output_simple_mapping): Fix format directives.
75025         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
75027 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
75029         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
75030         fixes are available from IBM.
75032 2009-02-13  Jim Meyering  <meyering@redhat.com>
75034         fts: arrange not to stat non-directories in more cases
75035         This makes GNU find (when it doesn't need to stat each file)
75036         *much* more efficient at traversing reiserfs file systems.
75037         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
75038         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
75039         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
75040         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
75041         (leaf_optimization_applies): New function.
75042         (LCO_hash, LCO_compare): New helper functions.
75043         (link_count_optimize_ok): New function.
75044         (fts_stat): Initialize new member (if dir).
75045         (fts_read): Decrement parent's fts_n_dirs_remaining count if
75046         we've just stat'ed a directory.  Skip the stat call when possible.
75047         ---
75048         Note this AFS-related exchange:
75049         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
75050         and note find's pioctl call in find/fstype.c.
75051         But that is necessary only if you want to enable the
75052         optimization for AFS, and for now, I don't.
75054         fts: move a function definition "up" (no semantic change)
75055         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
75056         "up" to precede upcoming use of a related function.
75058 2009-02-11  Jim Meyering  <meyering@redhat.com>
75060         fts: correct internal computation of nlinks (optimization-related)
75061         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
75062         whether the current entry is a directory, so don't test it.
75064 2009-02-10  Bruno Haible  <bruno@clisp.org>
75066         Tests for module 'uniwbrk/ulc-wordbreaks'.
75067         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
75068         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
75069         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
75071         Tests for module 'uniwbrk/u32-wordbreaks'.
75072         * modules/uniwbrk/u32-wordbreaks-tests: New file.
75073         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
75075         Tests for module 'uniwbrk/u16-wordbreaks'.
75076         * modules/uniwbrk/u16-wordbreaks-tests: New file.
75077         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
75079         Tests for module 'uniwbrk/u8-wordbreaks'.
75080         * modules/uniwbrk/u8-wordbreaks-tests: New file.
75081         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
75083 2009-02-10  Bruno Haible  <bruno@clisp.org>
75085         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
75086         property.
75087         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
75088         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
75089         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
75091 2009-02-10  Simon Josefsson  <simon@josefsson.org>
75093         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
75094         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
75096 2009-02-10  Bruno Haible  <bruno@clisp.org>
75098         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
75099         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
75100         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
75101         * lib/unilbrk/u8-possible-linebreaks.c: Update.
75102         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
75103         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
75105 2009-02-09  Simon Josefsson  <simon@josefsson.org>
75107         * lib/sockets.h (gl_fd_to_handle): New function.
75109         * tests/test-sockets.c: Call gl_fd_to_handle.
75111 2009-02-09  Bruno Haible  <bruno@clisp.org>
75113         * doc/havelib.texi: Document the conventions on bi-arch systems.
75115 2009-02-08  Bruno Haible  <bruno@clisp.org>
75117         Document the AC_LIB_LINKFLAGS macro.
75118         * doc/havelib.texi: New file, mostly written on 2005-05-24.
75119         * doc/gnulib.texi: Include it.
75121 2009-02-08  Bruno Haible  <bruno@clisp.org>
75123         Fix wrong order of sections, compared to TOC.
75124         * doc/gnulib.texi: Include relocatable-maint.texi after the
75125         "Regular expressions" node, not before.
75127 2009-02-08  Bruno Haible  <bruno@clisp.org>
75129         Tests for module 'unicase/totitle'.
75130         * modules/unicase/totitle-tests: New file.
75132         Tests for module 'unicase/tolower'.
75133         * modules/unicase/tolower-tests: New file.
75135         Tests for module 'unicase/toupper'.
75136         * modules/unicase/toupper-tests: New file.
75137         * tests/unicase/test-mapping-part1.h: New file.
75138         * tests/unicase/test-mapping-part2.h: New file.
75140         New module 'unicase/totitle'.
75141         * modules/unicase/totitle: New file.
75142         * lib/unicase/totitle.c: New file.
75144         New module 'unicase/tolower'.
75145         * modules/unicase/tolower: New file.
75146         * lib/unicase/tolower.c: New file.
75148         New module 'unicase/toupper'.
75149         * modules/unicase/toupper: New file.
75150         * lib/unicase/toupper.c: New file.
75151         * lib/unicase/simple-mapping.h: New file.
75153         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
75154         (mapping_table): New structure.
75155         (output_simple_mapping): New function.
75156         (main): Invoke output_simple_mapping_test and output_simple_mapping.
75157         * modules/gen-uni-tables (Description): Update.
75158         * lib/unicase/toupper.h: New file, automatically generated by
75159         gen-uni-tables.
75160         * lib/unicase/tolower.h: New file, automatically generated by
75161         gen-uni-tables.
75162         * lib/unicase/totitle.h: New file, automatically generated by
75163         gen-uni-tables.
75164         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
75165         gen-uni-tables.
75166         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
75167         gen-uni-tables.
75168         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
75169         gen-uni-tables.
75171         New module 'unicase/base'.
75172         * modules/unicase/base: New file.
75173         * lib/unicase.h: New file.
75175 2009-02-08  Bruno Haible  <bruno@clisp.org>
75177         New module 'uniwbrk/ulc-wordbreaks'.
75178         * modules/uniwbrk/ulc-wordbreaks: New file.
75179         * lib/uniwbrk/ulc-wordbreaks.c: New file.
75181         New module 'uniwbrk/u32-wordbreaks'.
75182         * modules/uniwbrk/u32-wordbreaks: New file.
75183         * lib/uniwbrk/u32-wordbreaks.c: New file.
75185         New module 'uniwbrk/u16-wordbreaks'.
75186         * modules/uniwbrk/u16-wordbreaks: New file.
75187         * lib/uniwbrk/u16-wordbreaks.c: New file.
75189         New module 'uniwbrk/u8-wordbreaks'.
75190         * modules/uniwbrk/u8-wordbreaks: New file.
75191         * lib/uniwbrk/u8-wordbreaks.c: New file.
75192         * lib/uniwbrk/u-wordbreaks.h: New file.
75194         New module 'uniwbrk/table'.
75195         * modules/uniwbrk/table: New file.
75196         * lib/uniwbrk/wbrktable.h: New file.
75197         * lib/uniwbrk/wbrktable.c: New file.
75199         New module 'uniwbrk/wordbreak-property'.
75200         * modules/uniwbrk/wordbreak-property: New file.
75201         * lib/uniwbrk/wordbreak-property.c: New file.
75203         * lib/gen-uni-tables.c (WBP_*): New enum items.
75204         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
75205         (unicode_org_wbp): New variable.
75206         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
75207         New functions.
75208         (wbp_table): New structure.
75209         (output_wbp, output_wbrk_tables): New functions.
75210         (main): Accept additional argument. Invoke fill_org_wbp,
75211         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
75212         output_wbrk_tables.
75213         * modules/gen-uni-tables (Description): Update.
75214         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
75215         gen-uni-tables.
75217         New module 'uniwbrk/base'.
75218         * modules/uniwbrk/base: New file.
75219         * lib/uniwbrk.h: New file.
75221 2009-02-08  Bruno Haible  <bruno@clisp.org>
75223         Update to Unicode 5.1.0.
75224         * lib/gen-uni-tables.c (is_property_alphabetic): Include
75225         U+2185..U+2188.
75226         (is_property_default_ignorable_code_point): Don't include characters
75227         of category Cc or Cs and not-a-characters.
75228         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
75229         U+0D79, U+109E, U+109F, U+A60C.
75230         * lib/unictype/bidi_of.h: Regenerated.
75231         * lib/unictype/blocks.h: Regenerated.
75232         * lib/unictype/categ_C.h: Regenerated.
75233         * lib/unictype/categ_Cf.h: Regenerated.
75234         * lib/unictype/categ_Cn.h: Regenerated.
75235         * lib/unictype/categ_L.h: Regenerated.
75236         * lib/unictype/categ_Ll.h: Regenerated.
75237         * lib/unictype/categ_Lm.h: Regenerated.
75238         * lib/unictype/categ_Lo.h: Regenerated.
75239         * lib/unictype/categ_Lu.h: Regenerated.
75240         * lib/unictype/categ_M.h: Regenerated.
75241         * lib/unictype/categ_Mc.h: Regenerated.
75242         * lib/unictype/categ_Me.h: Regenerated.
75243         * lib/unictype/categ_Mn.h: Regenerated.
75244         * lib/unictype/categ_N.h: Regenerated.
75245         * lib/unictype/categ_Nd.h: Regenerated.
75246         * lib/unictype/categ_Nl.h: Regenerated.
75247         * lib/unictype/categ_No.h: Regenerated.
75248         * lib/unictype/categ_P.h: Regenerated.
75249         * lib/unictype/categ_Pd.h: Regenerated.
75250         * lib/unictype/categ_Pe.h: Regenerated.
75251         * lib/unictype/categ_Pf.h: Regenerated.
75252         * lib/unictype/categ_Pi.h: Regenerated.
75253         * lib/unictype/categ_Po.h: Regenerated.
75254         * lib/unictype/categ_Ps.h: Regenerated.
75255         * lib/unictype/categ_S.h: Regenerated.
75256         * lib/unictype/categ_Sk.h: Regenerated.
75257         * lib/unictype/categ_Sm.h: Regenerated.
75258         * lib/unictype/categ_So.h: Regenerated.
75259         * lib/unictype/categ_of.h: Regenerated.
75260         * lib/unictype/combining.h: Regenerated.
75261         * lib/unictype/ctype_alnum.h: Regenerated.
75262         * lib/unictype/ctype_alpha.h: Regenerated.
75263         * lib/unictype/ctype_graph.h: Regenerated.
75264         * lib/unictype/ctype_lower.h: Regenerated.
75265         * lib/unictype/ctype_print.h: Regenerated.
75266         * lib/unictype/ctype_punct.h: Regenerated.
75267         * lib/unictype/ctype_upper.h: Regenerated.
75268         * lib/unictype/decdigit.h: Regenerated.
75269         * lib/unictype/digit.h: Regenerated.
75270         * lib/unictype/mirror.h: Regenerated.
75271         * lib/unictype/numeric.h: Regenerated.
75272         * lib/unictype/pr_alphabetic.h: Regenerated.
75273         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
75274         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
75275         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
75276         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
75277         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
75278         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
75279         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
75280         * lib/unictype/pr_combining.h: Regenerated.
75281         * lib/unictype/pr_dash.h: Regenerated.
75282         * lib/unictype/pr_decimal_digit.h: Regenerated.
75283         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
75284         * lib/unictype/pr_deprecated.h: Regenerated.
75285         * lib/unictype/pr_diacritic.h: Regenerated.
75286         * lib/unictype/pr_extender.h: Regenerated.
75287         * lib/unictype/pr_format_control.h: Regenerated.
75288         * lib/unictype/pr_grapheme_base.h: Regenerated.
75289         * lib/unictype/pr_grapheme_extend.h: Regenerated.
75290         * lib/unictype/pr_grapheme_link.h: Regenerated.
75291         * lib/unictype/pr_id_continue.h: Regenerated.
75292         * lib/unictype/pr_id_start.h: Regenerated.
75293         * lib/unictype/pr_ideographic.h: Regenerated.
75294         * lib/unictype/pr_ignorable_control.h: Regenerated.
75295         * lib/unictype/pr_lowercase.h: Regenerated.
75296         * lib/unictype/pr_math.h: Regenerated.
75297         * lib/unictype/pr_numeric.h: Regenerated.
75298         * lib/unictype/pr_other_alphabetic.h: Regenerated.
75299         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
75300         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
75301         * lib/unictype/pr_other_id_continue.h: Regenerated.
75302         * lib/unictype/pr_other_lowercase.h: Regenerated.
75303         * lib/unictype/pr_other_math.h: Regenerated.
75304         * lib/unictype/pr_punctuation.h: Regenerated.
75305         * lib/unictype/pr_sentence_terminal.h: Regenerated.
75306         * lib/unictype/pr_soft_dotted.h: Regenerated.
75307         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
75308         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
75309         * lib/unictype/pr_unified_ideograph.h: Regenerated.
75310         * lib/unictype/pr_uppercase.h: Regenerated.
75311         * lib/unictype/pr_xid_continue.h: Regenerated.
75312         * lib/unictype/pr_xid_start.h: Regenerated.
75313         * lib/unictype/pr_zero_width.h: Regenerated.
75314         * lib/unictype/scripts.h: Regenerated.
75315         * lib/unictype/scripts_byname.gperf: Regenerated.
75316         * lib/unictype/sy_java_ident.h: Regenerated.
75317         * lib/unilbrk/lbrkprop1.h: Regenerated.
75318         * lib/unilbrk/lbrkprop2.h: Regenerated.
75319         * tests/unictype/test-categ_C.c: Regenerated.
75320         * tests/unictype/test-categ_Cf.c: Regenerated.
75321         * tests/unictype/test-categ_Cn.c: Regenerated.
75322         * tests/unictype/test-categ_L.c: Regenerated.
75323         * tests/unictype/test-categ_Ll.c: Regenerated.
75324         * tests/unictype/test-categ_Lm.c: Regenerated.
75325         * tests/unictype/test-categ_Lo.c: Regenerated.
75326         * tests/unictype/test-categ_Lu.c: Regenerated.
75327         * tests/unictype/test-categ_M.c: Regenerated.
75328         * tests/unictype/test-categ_Mc.c: Regenerated.
75329         * tests/unictype/test-categ_Me.c: Regenerated.
75330         * tests/unictype/test-categ_Mn.c: Regenerated.
75331         * tests/unictype/test-categ_N.c: Regenerated.
75332         * tests/unictype/test-categ_Nd.c: Regenerated.
75333         * tests/unictype/test-categ_Nl.c: Regenerated.
75334         * tests/unictype/test-categ_No.c: Regenerated.
75335         * tests/unictype/test-categ_P.c: Regenerated.
75336         * tests/unictype/test-categ_Pd.c: Regenerated.
75337         * tests/unictype/test-categ_Pe.c: Regenerated.
75338         * tests/unictype/test-categ_Pf.c: Regenerated.
75339         * tests/unictype/test-categ_Pi.c: Regenerated.
75340         * tests/unictype/test-categ_Po.c: Regenerated.
75341         * tests/unictype/test-categ_Ps.c: Regenerated.
75342         * tests/unictype/test-categ_S.c: Regenerated.
75343         * tests/unictype/test-categ_Sk.c: Regenerated.
75344         * tests/unictype/test-categ_Sm.c: Regenerated.
75345         * tests/unictype/test-categ_So.c: Regenerated.
75346         * tests/unictype/test-ctype_alnum.c: Regenerated.
75347         * tests/unictype/test-ctype_alpha.c: Regenerated.
75348         * tests/unictype/test-ctype_graph.c: Regenerated.
75349         * tests/unictype/test-ctype_lower.c: Regenerated.
75350         * tests/unictype/test-ctype_print.c: Regenerated.
75351         * tests/unictype/test-ctype_punct.c: Regenerated.
75352         * tests/unictype/test-ctype_upper.c: Regenerated.
75353         * tests/unictype/test-decdigit.h: Regenerated.
75354         * tests/unictype/test-digit.h: Regenerated.
75355         * tests/unictype/test-numeric.h: Regenerated.
75356         * tests/unictype/test-pr_alphabetic.c: Regenerated.
75357         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
75358         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
75359         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
75360         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
75361         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
75362         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
75363         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
75364         * tests/unictype/test-pr_combining.c: Regenerated.
75365         * tests/unictype/test-pr_dash.c: Regenerated.
75366         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
75367         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
75368         * tests/unictype/test-pr_deprecated.c: Regenerated.
75369         * tests/unictype/test-pr_diacritic.c: Regenerated.
75370         * tests/unictype/test-pr_extender.c: Regenerated.
75371         * tests/unictype/test-pr_format_control.c: Regenerated.
75372         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
75373         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
75374         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
75375         * tests/unictype/test-pr_id_continue.c: Regenerated.
75376         * tests/unictype/test-pr_id_start.c: Regenerated.
75377         * tests/unictype/test-pr_ideographic.c: Regenerated.
75378         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
75379         * tests/unictype/test-pr_lowercase.c: Regenerated.
75380         * tests/unictype/test-pr_math.c: Regenerated.
75381         * tests/unictype/test-pr_numeric.c: Regenerated.
75382         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
75383         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
75384         Regenerated.
75385         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
75386         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
75387         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
75388         * tests/unictype/test-pr_other_math.c: Regenerated.
75389         * tests/unictype/test-pr_punctuation.c: Regenerated.
75390         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
75391         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
75392         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
75393         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
75394         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
75395         * tests/unictype/test-pr_uppercase.c: Regenerated.
75396         * tests/unictype/test-pr_xid_continue.c: Regenerated.
75397         * tests/unictype/test-pr_xid_start.c: Regenerated.
75398         * tests/unictype/test-pr_zero_width.c: Regenerated.
75400         Update to Unicode 5.1.0.
75401         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
75402         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
75403         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
75404         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
75405         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
75406         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
75407         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
75408         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
75409         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
75410         (nonspacing_table_ind): Update.
75411         * tests/uniwidth/test-uc_width2.sh: Update expected result.
75413         Update to Unicode 5.1.0.
75414         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
75415         code transform.
75416         * lib/uniname/uniname.c (unicode_character_name,
75417         unicode_name_character): Add the range 0x1Fxxx to the code transform.
75418         * lib/uniname/uninames.h: Regenerated.
75419         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
75421 2009-02-07  Bruno Haible  <bruno@clisp.org>
75423         Merge gen-ctype and gen-lbrk into a single program.
75424         * lib/gen-uni-tables.c: New file, incorporating
75425         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
75426         Add directory prefixes to the names of the generated files.
75427         * lib/unictype/gen-ctype.c: Remove file.
75428         * lib/unilbrk/gen-lbrk.c: Remove file.
75429         * modules/gen-uni-tables: New file.
75430         * modules/unictype/gen-ctype: Remove file.
75431         * modules/unilbrk/gen-lbrk: Remove file.
75433 2009-02-07  Bruno Haible  <bruno@clisp.org>
75435         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
75437         New module 'unistr/u32-strcoll'.
75438         * modules/unistr/u32-strcoll: New file.
75439         * lib/unistr/u32-strcoll.c: New file.
75441         New module 'unistr/u16-strcoll'.
75442         * modules/unistr/u16-strcoll: New file.
75443         * lib/unistr/u16-strcoll.c: New file.
75445         New module 'unistr/u8-strcoll'.
75446         * modules/unistr/u8-strcoll: New file.
75447         * lib/unistr/u8-strcoll.c: New file.
75448         * lib/unistr/u-strcoll.h: New file.
75450 2009-02-07  Bruno Haible  <bruno@clisp.org>
75452         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
75453         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
75454         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
75455         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
75456         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
75457         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
75459 2009-02-07  Bruno Haible  <bruno@clisp.org>
75461         Make 64-bit clean.
75462         * lib/unictype/gen-ctype.c (output_predicate, output_category,
75463         output_combclass, output_bidi_category, output_decimal_digit,
75464         output_digit, output_numeric, output_mirror, output_scripts,
75465         output_ident_category): Use proper width specifier in format strings.
75467 2009-02-07  Bruno Haible  <bruno@clisp.org>
75469         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
75470         failure behaviour.
75472 2009-02-07  Jim Meyering  <meyering@redhat.com>
75474         regex: avoid compilation failure with upcoming gcc-4.4
75475         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
75476         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
75477         "... error: integer overflow in preprocessor expression".
75479 2009-02-05  Ben Pfaff  <blp@gnu.org>
75481         Fix link errors on Windows when close module is used.
75482         * modules/close: Add $(LIB_CLOSE) to Link section.
75483         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
75484         $(LIB_CLOSE) on Windows.
75486 2009-02-05  Jim Meyering  <meyering@redhat.com>
75488         still avoid unused-parameter warnings, but do it cleanly
75489         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
75490         (get_fs_usage): Cast to void instead.
75491         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
75492         (dev_from_mount_options, read_file_system_list): Cast to void.
75493         Prompted by Bruno Haible.
75495 2009-02-04  Jim Meyering  <meyering@redhat.com>
75497         fsusage.c: correct copyright year
75498         * lib/fsusage.c: Reflect year in which the change is pushed into
75500         avoid misc. warnings
75501         * lib/fsusage.c (UNUSED_PARAM): Define.
75502         (get_fs_usage): Mark parameter "disk" as unused.
75503         * lib/getugroups.c (getgrent): Use "void" in prototype.
75504         * lib/mountlist.c: Mark unused parameters.
75505         (read_file_system_list): Declare a local with "const".
75506         * lib/nanosleep.c (getnow): Declare static.
75507         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
75509         dirfd: set errno upon failure
75510         * lib/dirfd.c: Include <errno.h>.
75511         Set errno to ENOTSUP when returning -1.
75512         * modules/dirfd (Depends-on): Add errno.
75513         Suggested by John Kodis <kodis@comcast.net>.
75515 2009-02-01  Bruno Haible  <bruno@clisp.org>
75517         Don't assume sizeof (long) >= sizeof (void *).
75518         * lib/memcmp.c: Include stdint.h.
75519         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
75520         srcp2 to 'const byte *'.
75521         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
75522         types to uintptr_t.
75523         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
75524         * modules/memcmp (Depends-on): Add stdint.
75525         Reported by Ozkan Sezer <sezeroz@gmail.com>.
75527 2009-01-30  Eric Blake  <ebb9@byu.net>
75529         fix more require-before-expand issues
75530         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
75531         expand, AC_PROG_AWK.
75532         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
75534 2009-01-28  Eric Blake  <ebb9@byu.net>
75536         version-etc: use consistent URL formatting
75537         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
75538         Improve formatting.  Use fputs for string without %.
75540 2009-01-28  Jim Meyering  <meyering@redhat.com>
75542         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
75543         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
75544         "underquoted definition of NAME" from autoconf-2.59.
75546 2009-01-28  Bruno Haible  <bruno@clisp.org>
75548         * doc/gnulib.texi: Add "Obsolete modules" to index.
75550 2009-01-28  Jim Meyering  <meyering@redhat.com>
75552         useless-if-before-free: recognize more variants
75553         * build-aux/useless-if-before-free: Also recognize e.g.,
75554         if (NULL != p) free (p);
75556 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
75558         test-getaddrinfo: skip (don't fail) this test when there's no network
75559         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
75560         on the presumption that it means you lack network access.
75562 2009-01-26  Jim Meyering  <meyering@redhat.com>
75564         fflush: avoid warnings on modern systems
75565         * lib/fflush.c (rpl_fflush): Move declarations of locals,
75566         pos and result, into scopes where they're used.
75568 2009-01-26  Eric Blake  <ebb9@byu.net>
75570         Silence warning reintroduced by recent extensions patch.
75571         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
75572         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
75573         autoconf.
75575         Backport improved autoconf semantics of AC_DEFUN_ONCE.
75576         * m4/00gnulib.m4: New file.
75577         * gnulib-tool (func_get_filelist): Always use it.
75578         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
75579         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
75581 2009-01-25  Bruno Haible  <bruno@clisp.org>
75583         Make test-quotearg work on MacOS X and AIX.
75584         * tests/test-quotearg.sh: New file.
75585         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
75586         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
75587         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
75588         include <libintl.h>.
75589         (fake_locale): Remove variable.
75590         (gettext, dgettext, dcgettext): Remove functions.
75591         (main): Instead of setting a fake locale, set a real locale. Call
75592         textdomain and bindtextdomain.
75593         * modules/quotearg-tests (Files): Add the new files.
75594         (Depends-on): Add gettext, setenv, unsetenv.
75595         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
75596         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
75597         Augment TESTS_ENVIRONMENT.
75599 2009-01-25  Bruno Haible  <bruno@clisp.org>
75601         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
75602         fr_FR.ISO8859-1 locale on MacOS X.
75603         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
75604         ja_JP.eucJP locale on MacOS X.
75605         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
75606         zh_CN.GB18030 locale on MacOS X.
75608 2009-01-25  Bruno Haible  <bruno@clisp.org>
75610         Avoid link errors on MacOS X 10.3.
75611         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
75612         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
75614 2009-01-25  Bruno Haible  <bruno@clisp.org>
75616         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
75617         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
75618         * modules/pipe (Files): Remove m4/posix_spawn.m4.
75619         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
75620         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
75621         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
75622         posix_spawnattr_init, posix_spawnattr_setsigmask,
75623         posix_spawnattr_setflags, posix_spawnattr_destroy.
75625         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
75626         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
75627         * modules/execute (Files): Remove m4/posix_spawn.m4.
75628         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
75629         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
75630         posix_spawnattr_init, posix_spawnattr_setsigmask,
75631         posix_spawnattr_setflags, posix_spawnattr_destroy.
75633 2009-01-25  Bruno Haible  <bruno@clisp.org>
75635         * lib/glthread/threadlib.c: Include <stdlib.h>.
75637 2009-01-25  Bruno Haible  <bruno@clisp.org>
75639         * lib/glthread/threadlib.c (dummy): New declaration.
75641 2009-01-25  Bruno Haible  <bruno@clisp.org>
75643         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
75644         multibyte characters also for the GB18030 encoding. Don't crash when
75645         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
75647 2009-01-25  Bruno Haible  <bruno@clisp.org>
75649         Avoid redefining 'struct random_data' on OSF/1 5.1.
75650         * lib/stdlib.in.h: Include <random.h> if it exists.
75651         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
75652         HAVE_RANDOM_H. Include <random.h> when testing whether
75653         'struct random_data' exists.
75654         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
75656 2009-01-25  Bruno Haible  <bruno@clisp.org>
75658         Don't install charset.alias on MacOS X >= 10.3.
75659         * lib/localcharset.c (DARWIN7): New macro.
75660         (get_charset_aliases): Hardcode the result for Darwin7.
75661         * modules/localcharset (install-exec-local): Don't install
75662         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
75664 2009-01-25  Bruno Haible  <bruno@clisp.org>
75666         Don't install charset.alias on mingw and Cygwin.
75667         * modules/localcharset (install-exec-local): Don't install
75668         charset.alias on mingw and Cygwin, if the file does not yet exist.
75669         The result for these platforms is hardcoded in localcharset.c.
75671 2009-01-25  Bruno Haible  <bruno@clisp.org>
75673         Make it possible again to use AC_GNU_SOURCE together with gnulib.
75674         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
75675         before requiring AC_USE_SYSTEM_EXTENSIONS.
75677 2009-01-25  Jim Meyering  <meyering@redhat.com>
75679         c-strtod: avoid warnings
75680         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
75681         "assignment discards qualifiers from pointer target type" warnings.
75683 2009-01-24  Bruno Haible  <bruno@clisp.org>
75685         Add support for non-UTF-8 locales on MacOS X.
75686         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
75687         canonical encodings. For Darwin 7 and newer, don't map traditional
75688         encodings to UTF-8.
75689         Reported by Vincent Lefevre <vincent@vinc17.org>
75690         at <http://savannah.gnu.org/bugs/?25235>.
75692 2009-01-24  Bruno Haible  <bruno@clisp.org>
75694         * doc/gnulib.texi (Obsolete modules): New section.
75695         Reported by Mike Frysinger <vapier@gentoo.org>.
75697 2009-01-24  Bruno Haible  <bruno@clisp.org>
75699         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
75700         (%.dvi): New rule.
75702 2009-01-24  Bruno Haible  <bruno@clisp.org>
75704         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
75705         Reported by Eric Blake.
75707 2009-01-24  Bruno Haible  <bruno@clisp.org>
75709         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
75710         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
75711         Reported by Gary V. Vaughan <gary@gnu.org>.
75713 2009-01-24  Bruno Haible  <bruno@clisp.org>
75715         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
75717 2009-01-23  Bruno Haible  <bruno@clisp.org>
75719         Make c-strtod, c-strtold usable in libraries.
75720         * lib/c-strtod.c: Include string.h instead of xalloc.h.
75721         (C_STRTOD): Call strdup instead of xstrdup.
75722         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
75723         * modules/c-strtold (Depends-on): Likewise.
75724         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
75725         * NEWS: Mention the change.
75726         Reported by Michael Gold <mgold@ncf.ca>.
75728 2009-01-23  Jim Meyering  <meyering@redhat.com>
75730         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
75731         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
75732         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
75734 2009-01-23  Simon Josefsson  <simon@josefsson.org>
75736         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
75737         GNU CoreUtils.
75738         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
75739         * modules/version-etc (Description): Update.
75741 2009-01-22  Bruno Haible  <bruno@clisp.org>
75743         Cache the C locale object.
75744         * lib/c-strtod.c (c_locale_cache): New variable.
75745         (c_locale): New function.
75746         (C_STRTOD): Use it, and don't call freelocale.
75747         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
75748         Suggested by Paolo Bonzini.
75750 2009-01-21  Bruno Haible  <bruno@clisp.org>
75752         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
75753         conditions other than overflow.
75755 2009-01-21  Bruno Haible  <bruno@clisp.org>
75757         * lib/c-strtod.c: Include errno.h.
75758         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
75759         value from STRTOD_L and STRTOD.
75761 2009-01-21  Bruno Haible  <bruno@clisp.org>
75762         and Jim Meyering  <meyering@redhat.com>
75764         nanosleep: skip configure test (fail it) for apple universal builds
75765         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
75766         universal builds, assume that nanosleep does not work.
75767         * modules/nanosleep (Depends-on): Add multiarch.
75769         mktime: skip configure test (fail it) for apple universal builds
75770         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
75771         universal builds, assume that mktime does not work.
75772         * modules/mktime (Depends-on): Add multiarch.
75774 2009-01-21  Eric Blake  <ebb9@byu.net>
75776         multiarch: avoid expand-before-require warning
75777         * modules/multiarch (configure.ac): Require, rather than expand,
75778         gl_MULTIARCH.
75779         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
75780         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
75781         enforce that all clients require it.  Partial reversion of
75782         2008-12-29 patch.
75784         error: avoid expand-before-require warning
75785         * modules/errno (configure.ac): Require, rather than expand,
75786         gl_HEADER_ERRNO_H.
75787         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
75788         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
75789         enforce that all clients require it.
75791         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
75792         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
75793         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
75794         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
75796 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
75798         Revert:
75799         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
75801         regex: do not depend on obsolete modules.
75802         * modules/regex: Remove memcmp and memmove.
75804 2009-01-20  Bruno Haible  <bruno@clisp.org>
75806         Make the 'link' module link on Windows NT 4.
75807         * lib/link.c (_WIN32_WINNT): Don't define.
75808         (CreateHardLinkFuncType): New type.
75809         (CreateHardLinkFunc, initialized): New variables.
75810         (initialize): New function.
75811         (link): Invoke CreateHardLink indirectly through the function pointer.
75813 2009-01-20  Bruno Haible  <bruno@clisp.org>
75815         Fix compilation failure on mingw.
75816         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
75818 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
75820         * doc/c-strtod.texi: Mention a couple of restrictions.
75822 2009-01-20  Jim Meyering  <meyering@redhat.com>
75824         gettimeofday: move more declarations out of functions
75825         * lib/gettimeofday.c: Move extern declarations of tzset and
75826         gmtime out of containing functions.  Prompted by Bruno Haible.
75828 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
75830         regex: do not depend on obsolete modules.
75831         * modules/regex: Remove memcmp and memmove.
75833 2009-01-19  Bruno Haible  <bruno@clisp.org>
75835         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
75836         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
75837         gl_BIGENDIAN, not AC_C_BIGENDIAN.
75838         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
75839         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
75841 2009-01-19  Bruno Haible  <bruno@clisp.org>
75843         * tests/test-link.c: Include <errno.h>.
75844         (main): Exit with code 77 when a hard link cannot be created due to
75845         the file system.
75846         * tests/test-link.sh: Skip test when a hard link cannot be created due
75847         to the file system.
75848         Suggested by Eric Blake.
75850 2009-01-19  Martin Lambers  <marlam@marlam.de>
75852         * modules/link-tests: New file.
75853         * tests/test-link.sh: New file.
75854         * tests/test-link.c: New file.
75856 2009-01-19  Eric Blake  <ebb9@byu.net>
75858         doc: mention another function added in cygwin 1.7.0
75859         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
75860         Another new function in cygwin 1.7.
75862 2009-01-19  Bruno Haible  <bruno@clisp.org>
75864         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
75865         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
75866         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
75867         gl_BIGENDIAN, not AC_C_BIGENDIAN.
75868         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
75869         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
75870         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
75871         * m4/md4.m4 (gl_MD4): Likewise.
75872         * m4/md5.m4 (gl_MD5): Likewise.
75873         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
75874         * m4/sha1.m4 (gl_SHA1): Likewise.
75875         * m4/sha256.m4 (gl_SHA256): Likewise.
75876         * m4/sha512.m4 (gl_SHA512): Likewise.
75878 2009-01-19  Bruno Haible  <bruno@clisp.org>
75880         * modules/uniname/uniname-tests (Depends-on): Add progname.
75881         * tests/uniname/test-uninames.c: Include progname.h.
75882         (main): Call set_program_name.
75884         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
75885         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
75886         (main): Call set_program_name.
75888         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
75889         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
75890         (main): Call set_program_name.
75892         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
75893         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
75894         (main): Call set_program_name.
75896         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
75897         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
75898         (main): Call set_program_name.
75900         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
75901         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
75902         (main): Call set_program_name.
75904         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
75905         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
75906         (main): Call set_program_name.
75908         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
75909         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
75910         (main): Call set_program_name.
75912         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
75913         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
75914         (main): Call set_program_name.
75916 2009-01-19  Eric Blake  <ebb9@byu.net>
75918         test-unistd: test previous patch
75919         * tests/test-unistd.c: Test *_FILENO macros.
75921         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
75922         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
75923         Guarantee a definition.
75924         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
75925         * modules/unistd-safer (Depends-on): Add dependency on unistd.
75926         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
75927         * lib/dup-safer.c (STDERR_FILENO): Likewise.
75928         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
75929         Likewise.
75930         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
75931         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
75932         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
75933         Likewise.
75934         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
75935         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
75936         (STDERR_FILENO): Likewise.
75937         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
75938         (STDERR_FILENO): Likewise.
75939         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
75940         (STDERR_FILENO): Likewise.
75941         Reported by Elbert Pol.
75943 2009-01-19  Eric Blake  <ebb9@byu.net>
75945         doc: mention more functions added in cygwin 1.7.0
75946         * doc/posix-functions/abort.texi (abort): Update wording related
75947         to cygwin.
75948         * doc/posix-functions/daylight.texi (daylight): Likewise.
75949         * doc/posix-functions/optarg.texi (optarg): Likewise.
75950         * doc/posix-functions/optarg.texi (opterr): Likewise.
75951         * doc/posix-functions/optarg.texi (optind): Likewise.
75952         * doc/posix-functions/optarg.texi (optopt): Likewise.
75953         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
75954         worked in 1.5.x, and was withdrawn in 1.7.
75955         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
75956         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
75957         cygwin versions.
75958         * doc/posix-functions/perror.texi (perror): Likewise.
75959         * doc/posix-functions/printf.texi (printf): Likewise.
75960         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
75961         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
75962         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
75963         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
75964         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
75965         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
75966         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
75967         Likewise.
75968         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
75969         Likewise.
75970         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
75971         this function.
75972         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
75973         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
75974         Likewise.
75975         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
75976         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
75977         * doc/posix-functions/confstr.texi (confstr): Likewise.
75978         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
75979         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
75980         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
75981         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
75982         * doc/posix-functions/fputws.texi (fputws): Likewise.
75983         * doc/posix-functions/fwide.texi (fwide): Likewise.
75984         * doc/posix-functions/getwc.texi (getwc): Likewise.
75985         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
75986         * doc/posix-functions/putwc.texi (putwc): Likewise.
75987         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
75988         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
75989         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
75990         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
75991         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
75992         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
75993         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
75994         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
75995         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
75996         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
75997         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
75999 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
76001         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
76002         * lib/ioctl.c: Include <sys/ioctl.h>.
76004 2009-01-19  Simon Josefsson  <simon@josefsson.org>
76006         * modules/getdate-tests (Depends-on): Add progname.
76007         * tests/test-getdate.c: Use progname module, to avoid link errors
76008         on non-glibc systems.
76010 2009-01-18  Simon Josefsson  <simon@josefsson.org>
76012         * modules/filenamecat-tests (Depends-on): Add progname.
76013         * modules/fstrcmp-tests (Depends-on): Likewise.
76015         * tests/test-filenamecat.c: Use progname module, to avoid link
76016         errors on non-glibc systems.
76017         * tests/test-fstrcmp.c: Likewise.
76019 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
76021         gettimeofday: avoid warning: nested extern declaration of 'localtime'
76022         * lib/gettimeofday.c: Move extern declaration out of function.
76024 2009-01-18  Bruno Haible  <bruno@clisp.org>
76026         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
76027         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
76028         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
76030 2009-01-18  Bruno Haible  <bruno@clisp.org>
76032         * lib/strftime.c (MEMPCPY): Remove unused macro.
76033         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
76035 2009-01-18  Martin Lambers  <marlam@marlam.de>
76037         New module 'link'.
76038         * lib/unistd.in.h (link): New declaration.
76039         * lib/link.c: New file.
76040         * m4/link.m4: New file.
76041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
76042         HAVE_LINK.
76043         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
76044         * modules/link: New file.
76045         * doc/posix-functions/link.texi: Mention the new module.
76047 2009-01-18  Bruno Haible  <bruno@clisp.org>
76049         * tests/test-avltree_list.c (main): Call set_program_name.
76050         * tests/test-avltree_oset.c (main): Likewise.
76051         * tests/test-obstack-printf.c: Include progname.h.
76052         (main): Call set_program_name.
76053         * tests/test-quotearg.c: Include progname.h.
76054         (main): Call set_program_name.
76055         * tests/test-xmemdup0.c: Include progname.h.
76056         (main): Call set_program_name.
76058 2009-01-18  Bruno Haible  <bruno@clisp.org>
76060         New module 'alphasort'.
76061         * lib/dirent.in.h (alphasort): New declaration.
76062         * lib/alphasort.c: New file, from glibc with modifications.
76063         * m4/alphasort.m4: New file.
76064         * modules/alphasort: New file.
76065         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
76066         HAVE_ALPHASORT.
76067         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
76068         HAVE_ALPHASORT.
76069         * doc/posix-functions/alphasort.texi: Mention the new module and the
76070         portability problems.
76072 2009-01-18  Bruno Haible  <bruno@clisp.org>
76074         New module 'scandir'.
76075         * lib/dirent.in.h (scandir): New declaration.
76076         * lib/scandir.c: New file, from glibc with modifications.
76077         * m4/scandir.m4: New file.
76078         * modules/scandir: New file.
76079         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
76080         HAVE_SCANDIR.
76081         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
76082         HAVE_SCANDIR.
76083         * doc/posix-functions/scandir.texi: Mention the new module and the
76084         portability problems.
76086 2009-01-17  Bruno Haible  <bruno@clisp.org>
76088         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
76089         Update documentation.
76090         (func_remove_suffix): Escape all dots in the suffix. Update
76091         documentation.
76092         (func_filter_filelist): Update documentation.
76093         Reported by Ralf Wildenhues.
76095 2009-01-17  Bruno Haible  <bruno@clisp.org>
76097         * modules/dprintf-posix-tests: New file.
76098         * tests/test-dprintf-posix.sh: New file.
76099         * tests/test-dprintf-posix.c: New file.
76101         New modules 'dprintf', 'dprintf-posix'.
76102         * lib/stdio.in.h (dprintf): New declaration.
76103         * lib/dprintf.c: New file.
76104         * m4/dprintf.m4: New file.
76105         * m4/dprintf-posix.m4: New file.
76106         * modules/dprintf: New file.
76107         * modules/dprintf-posix: New file.
76108         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
76109         HAVE_DPRINTF, REPLACE_DPRINTF.
76110         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
76111         HAVE_DPRINTF, REPLACE_DPRINTF.
76112         * doc/posix-functions/dprintf.texi: Mention the new modules.
76114 2009-01-17  Bruno Haible  <bruno@clisp.org>
76116         * modules/vdprintf-posix-tests: New file.
76117         * tests/test-vdprintf-posix.sh: New file.
76118         * tests/test-vdprintf-posix.c: New file.
76120         New modules 'vdprintf', 'vdprintf-posix'.
76121         * lib/stdio.in.h (vdprintf): New declaration.
76122         * lib/vdprintf.c: New file.
76123         * m4/vdprintf.m4: New file.
76124         * m4/vdprintf-posix.m4: New file.
76125         * modules/vdprintf: New file.
76126         * modules/vdprintf-posix: New file.
76127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
76128         HAVE_VDPRINTF, REPLACE_VDPRINTF.
76129         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
76130         HAVE_VDPRINTF, REPLACE_VDPRINTF.
76131         * doc/posix-functions/vdprintf.texi: Mention the new modules.
76133 2009-01-17  Bruno Haible  <bruno@clisp.org>
76135         Fix replacement of fopen on mingw.
76136         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
76137         mingw.
76139 2009-01-17  Bruno Haible  <bruno@clisp.org>
76141         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
76142         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
76144 2009-01-17  Bruno Haible  <bruno@clisp.org>
76146         Avoid test-fflush2.sh failure on mingw.
76147         * tests/test-fflush2.c: Include binary-io.h.
76148         (main): Put standard input into binary mode.
76149         * modules/fflush-tests (Depends-on): Add binary-io.
76151 2009-01-17  Bruno Haible  <bruno@clisp.org>
76153         * lib/wchar.in.h: In another particular situation, include only the
76154         system's <wchar.h> file.
76155         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
76156         Reported by Albert Chin-A-Young <china@thewrittenword.com>
76157         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
76159 2009-01-17  Bruno Haible  <bruno@clisp.org>
76161         Support for stripping executables in --enable-relocatable.
76162         * build-aux/install-reloc: Expect one more argument, or an environment
76163         variable RELOC_STRIP_PROG. If set, strip the destination program and
76164         its wrapper.
76165         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
76166         RELOC_STRIP_PROG.
76167         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
76168         to set RELOCATABLE_STRIP.
76169         * NEWS: Mention the new Makefile requirement.
76171 2009-01-17  Bruno Haible  <bruno@clisp.org>
76173         * build-aux/install-reloc: Remove debugging information left over by
76174         C compiler on MacOS X.
76176 2009-01-17  Bruno Haible  <bruno@clisp.org>
76178         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
76179         * lib/progreloc.c (find_executable): Fix type of pointer passed to
76180         _NSGetExecutablePath.
76182 2009-01-16  Jim Meyering  <meyering@redhat.com>
76184         strerror: avoid warnings about discarding "const"
76185         * lib/strerror.c (rpl_strerror): Instead of returning a const
76186         string from each and every "case", use a variable, and add a single
76187         cast after the switch.
76189 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
76191         * lib/arpa_inet.in.h: Add extern "C" block for C++.
76193 2009-01-16  Bruno Haible  <bruno@clisp.org>
76195         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
76196         array initializer syntax that also works in C++ mode.
76197         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
76199 2009-01-16  Jim Meyering  <meyering@redhat.com>
76201         poll: suppress a warning
76202         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
76203         to ignore "...unsigned expression < 0 is always false" warnings.
76205 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
76207         poll: remove declarations of unused variables
76208         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
76209         sockbuf and optlen.
76211 2009-01-15  Bruno Haible  <bruno@clisp.org>
76213         Make fflush-after-ungetc POSIX compliant on BSD systems.
76214         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
76215         (clear_ungetc_buffer): Implement also for other systems.
76216         (rpl_fflush): On glibc systems, invoke
76217         clear_ungetc_buffer_preserving_position. Otherwise, invoke
76218         clear_ungetc_buffer after fetching the stream's position, not before.
76220 2009-01-15  Bruno Haible  <bruno@clisp.org>
76222         Make fflush-after-ungetc POSIX compliant on glibc systems.
76223         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
76224         after ungetc.
76225         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
76226         (rpl_fflush): On glibc systems, simply call the system's fflush
76227         function after clearing the ungetc buffer.
76228         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
76229         Instead, lseek only to the end of file, then use the system's fseeko
76230         for the rest. On glibc systems, reset the EOF indicator bit.
76232 2009-01-15  Jim Meyering  <meyering@redhat.com>
76234         openmp.m4: revert quote-adding change, for portability to older autoconf
76235         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
76236         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
76237         Simon Josefsson noticed the problem when using autoconf-2.61.
76239 2009-01-15  Bruno Haible  <bruno@clisp.org>
76241         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
76242         * tests/test-fflush2.c (ASSERT): Always fail.
76243         (main): Add two tests for fflush() after ungetc(), taking into account
76244         the Austin Group's clarification.
76245         Suggested by Eric Blake.
76247 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
76249         mktime.m4: remove K&R-style function prototypes
76250         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
76251         for the Sun C++ compiler.
76253 2009-01-14  Bruno Haible  <bruno@clisp.org>
76255         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
76256         while including <wchar.h>.
76257         * lib/wchar.in.h: In two particular situations on HP-UX, include only
76258         the system's <wchar.h> file.
76259         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
76261 2009-01-14  Bruno Haible  <bruno@clisp.org>
76263         * m4/csharp.m4: Don't mention gettext on the serial number line.
76264         * m4/csharpexec.m4: Likewise.
76265         * m4/eaccess.m4: Likewise.
76266         * m4/javaexec.m4: Likewise.
76267         * m4/sig_atomic_t.m4: Likewise.
76268         * m4/tmpdir.m4: Likewise.
76269         * m4/intldir.m4: Bump gettext version.
76270         * m4/lib-ld.m4: Likewise.
76272 2009-01-14  Bruno Haible  <bruno@clisp.org>
76274         * lib/progname.c (set_program_name): Add more comments.
76275         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
76277 2009-01-14  Simon Josefsson  <simon@josefsson.org>
76279         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
76280         were sys/stat.h does not define it.
76282 2009-01-14  Jim Meyering  <meyering@redhat.com>
76284         many *.m4 files: improve m4 quoting
76285         99% of this change was performed by running the following commands:
76286         git ls-files | grep '\.m4$' | xargs perl -pi \
76287           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
76288           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
76289           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
76290           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
76291         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
76292         The remainder were to add Copyright dates, increment serial numbers,
76293         undo some changes in comments, exclude m4/intl.m4, and add quotes
76294         around the "1" in ",1" where the unusual spacing prohibited the
76295         above regexps from doing the job.  For more details, see
76296         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
76297         * m4/acl.m4: Modified.
76298         * m4/afs.m4: Likewise.
76299         * m4/alloca.m4: Likewise.
76300         * m4/argp.m4: Likewise.
76301         * m4/argz.m4: Likewise.
76302         * m4/atexit.m4: Likewise.
76303         * m4/bison-i18n.m4: Likewise.
76304         * m4/bison.m4: Likewise.
76305         * m4/byteswap.m4: Likewise.
76306         * m4/c-stack.m4: Likewise.
76307         * m4/c-strtod.m4: Likewise.
76308         * m4/calloc.m4: Likewise.
76309         * m4/canonicalize-lgpl.m4: Likewise.
76310         * m4/chown.m4: Likewise.
76311         * m4/clock_time.m4: Likewise.
76312         * m4/codeset.m4: Likewise.
76313         * m4/copy-file.m4: Likewise.
76314         * m4/csharp.m4: Likewise.
76315         * m4/csharpcomp.m4: Likewise.
76316         * m4/csharpexec.m4: Likewise.
76317         * m4/d-ino.m4: Likewise.
76318         * m4/d-type.m4: Likewise.
76319         * m4/dirfd.m4: Likewise.
76320         * m4/double-slash-root.m4: Likewise.
76321         * m4/eaccess.m4: Likewise.
76322         * m4/eealloc.m4: Likewise.
76323         * m4/environ.m4: Likewise.
76324         * m4/errno_h.m4: Likewise.
76325         * m4/euidaccess.m4: Likewise.
76326         * m4/execute.m4: Likewise.
76327         * m4/fatal-signal.m4: Likewise.
76328         * m4/fchdir.m4: Likewise.
76329         * m4/fcntl_h.m4: Likewise.
76330         * m4/fileblocks.m4: Likewise.
76331         * m4/filenamecat.m4: Likewise.
76332         * m4/findprog.m4: Likewise.
76333         * m4/flexmember.m4: Likewise.
76334         * m4/fnmatch.m4: Likewise.
76335         * m4/fopen.m4: Likewise.
76336         * m4/fpending.m4: Likewise.
76337         * m4/fprintf-posix.m4: Likewise.
76338         * m4/free.m4: Likewise.
76339         * m4/frexp.m4: Likewise.
76340         * m4/frexpl.m4: Likewise.
76341         * m4/fsusage.m4: Likewise.
76342         * m4/ftruncate.m4: Likewise.
76343         * m4/gc-camellia.m4: Likewise.
76344         * m4/gc-random.m4: Likewise.
76345         * m4/gc.m4: Likewise.
76346         * m4/getaddrinfo.m4: Likewise.
76347         * m4/getcwd-abort-bug.m4: Likewise.
76348         * m4/getcwd-path-max.m4: Likewise.
76349         * m4/getdate.m4: Likewise.
76350         * m4/getdomainname.m4: Likewise.
76351         * m4/getgroups.m4: Likewise.
76352         * m4/gethostname.m4: Likewise.
76353         * m4/gethrxtime.m4: Likewise.
76354         * m4/getline.m4: Likewise.
76355         * m4/getloadavg.m4: Likewise.
76356         * m4/getndelim2.m4: Likewise.
76357         * m4/getpass.m4: Likewise.
76358         * m4/gettext.m4: Likewise.
76359         * m4/gettime.m4: Likewise.
76360         * m4/gettimeofday.m4: Likewise.
76361         * m4/gnulib-common.m4: Likewise.
76362         * m4/group-member.m4: Likewise.
76363         * m4/host-os.m4: Likewise.
76364         * m4/iconv.m4: Likewise.
76365         * m4/iconv_open.m4: Likewise.
76366         * m4/inet_ntop.m4: Likewise.
76367         * m4/inet_pton.m4: Likewise.
76368         * m4/inline.m4: Likewise.
76369         * m4/intldir.m4: Likewise.
76370         * m4/intlmacosx.m4: Likewise.
76371         * m4/intmax.m4: Likewise.
76372         * m4/intmax_t.m4: Likewise.
76373         * m4/inttypes.m4: Likewise.
76374         * m4/inttypes_h.m4: Likewise.
76375         * m4/inttypes-pri.m4: Likewise.
76376         * m4/isapipe.m4: Likewise.
76377         * m4/isnand.m4: Likewise.
76378         * m4/isnanf.m4: Likewise.
76379         * m4/isnanl.m4: Likewise.
76380         * m4/javacomp.m4: Likewise.
76381         * m4/javaexec.m4: Likewise.
76382         * m4/jm-winsz1.m4: Likewise.
76383         * m4/jm-winsz2.m4: Likewise.
76384         * m4/lchown.m4: Likewise.
76385         * m4/lcmessage.m4: Likewise.
76386         * m4/ldexpl.m4: Likewise.
76387         * m4/lib-ld.m4: Likewise.
76388         * m4/lib-link.m4: Likewise.
76389         * m4/libsigsegv.m4: Likewise.
76390         * m4/link-follow.m4: Likewise.
76391         * m4/localcharset.m4: Likewise.
76392         * m4/locale-fr.m4: Likewise.
76393         * m4/locale-ja.m4: Likewise.
76394         * m4/locale-tr.m4: Likewise.
76395         * m4/locale-zh.m4: Likewise.
76396         * m4/lock.m4: Likewise.
76397         * m4/longlong.m4: Likewise.
76398         * m4/ls-mntd-fs.m4: Likewise.
76399         * m4/lstat.m4: Likewise.
76400         * m4/malloc.m4: Likewise.
76401         * m4/mathl.m4: Likewise.
76402         * m4/mbrtowc.m4: Likewise.
76403         * m4/mbstate_t.m4: Likewise.
76404         * m4/mbswidth.m4: Likewise.
76405         * m4/memchr.m4: Likewise.
76406         * m4/memcmp.m4: Likewise.
76407         * m4/memcpy.m4: Likewise.
76408         * m4/memmem.m4: Likewise.
76409         * m4/memmove.m4: Likewise.
76410         * m4/mempcpy.m4: Likewise.
76411         * m4/memrchr.m4: Likewise.
76412         * m4/memset.m4: Likewise.
76413         * m4/minmax.m4: Likewise.
76414         * m4/mkdir-slash.m4: Likewise.
76415         * m4/mkdtemp.m4: Likewise.
76416         * m4/mktime.m4: Likewise.
76417         * m4/mmap-anon.m4: Likewise.
76418         * m4/mountlist.m4: Likewise.
76419         * m4/nanosleep.m4: Likewise.
76420         * m4/nls.m4: Likewise.
76421         * m4/nocrash.m4: Likewise.
76422         * m4/open.m4: Likewise.
76423         * m4/openat.m4: Likewise.
76424         * m4/openmp.m4: Likewise.
76425         * m4/pathmax.m4: Likewise.
76426         * m4/perl.m4: Likewise.
76427         * m4/physmem.m4: Likewise.
76428         * m4/pipe.m4: Likewise.
76429         * m4/po.m4: Likewise.
76430         * m4/poll.m4: Likewise.
76431         * m4/posixtm.m4: Likewise.
76432         * m4/posixver.m4: Likewise.
76433         * m4/printf-frexp.m4: Likewise.
76434         * m4/printf-frexpl.m4: Likewise.
76435         * m4/printf-posix.m4: Likewise.
76436         * m4/printf-posix-rpl.m4: Likewise.
76437         * m4/printf.m4: Likewise.
76438         * m4/progtest.m4: Likewise.
76439         * m4/putenv.m4: Likewise.
76440         * m4/readline.m4: Likewise.
76441         * m4/readlink.m4: Likewise.
76442         * m4/readutmp.m4: Likewise.
76443         * m4/realloc.m4: Likewise.
76444         * m4/regex.m4: Likewise.
76445         * m4/relocatable.m4: Likewise.
76446         * m4/relocatable-lib.m4: Likewise.
76447         * m4/rename-dest-slash.m4: Likewise.
76448         * m4/rename.m4: Likewise.
76449         * m4/rmdir-errno.m4: Likewise.
76450         * m4/rmdir.m4: Likewise.
76451         * m4/roundf.m4: Likewise.
76452         * m4/roundl.m4: Likewise.
76453         * m4/rpmatch.m4: Likewise.
76454         * m4/save-cwd.m4: Likewise.
76455         * m4/selinux-selinux-h.m4: Likewise.
76456         * m4/setenv.m4: Likewise.
76457         * m4/settime.m4: Likewise.
76458         * m4/sig2str.m4: Likewise.
76459         * m4/sig_atomic_t.m4: Likewise.
76460         * m4/signalblocking.m4: Likewise.
76461         * m4/signbit.m4: Likewise.
76462         * m4/sigpipe.m4: Likewise.
76463         * m4/sockets.m4: Likewise.
76464         * m4/sockpfaf.m4: Likewise.
76465         * m4/st_dm_mode.m4: Likewise.
76466         * m4/stat-time.m4: Likewise.
76467         * m4/stdbool.m4: Likewise.
76468         * m4/stdint.m4: Likewise.
76469         * m4/stdint_h.m4: Likewise.
76470         * m4/stpcpy.m4: Likewise.
76471         * m4/stpncpy.m4: Likewise.
76472         * m4/strcase.m4: Likewise.
76473         * m4/strchrnul.m4: Likewise.
76474         * m4/strcspn.m4: Likewise.
76475         * m4/strdup.m4: Likewise.
76476         * m4/strftime.m4: Likewise.
76477         * m4/strndup.m4: Likewise.
76478         * m4/strnlen.m4: Likewise.
76479         * m4/strpbrk.m4: Likewise.
76480         * m4/strptime.m4: Likewise.
76481         * m4/strsep.m4: Likewise.
76482         * m4/strtod.m4: Likewise.
76483         * m4/strtoimax.m4: Likewise.
76484         * m4/strtok_r.m4: Likewise.
76485         * m4/strtol.m4: Likewise.
76486         * m4/strtoll.m4: Likewise.
76487         * m4/strtoul.m4: Likewise.
76488         * m4/strtoull.m4: Likewise.
76489         * m4/strtoumax.m4: Likewise.
76490         * m4/strverscmp.m4: Likewise.
76491         * m4/threadlib.m4: Likewise.
76492         * m4/timegm.m4: Likewise.
76493         * m4/tm_gmtoff.m4: Likewise.
76494         * m4/tmpdir.m4: Likewise.
76495         * m4/tmpfile.m4: Likewise.
76496         * m4/tzset.m4: Likewise.
76497         * m4/uintmax_t.m4: Likewise.
76498         * m4/unlinkdir.m4: Likewise.
76499         * m4/unlocked-io.m4: Likewise.
76500         * m4/uptime.m4: Likewise.
76501         * m4/userspec.m4: Likewise.
76502         * m4/utimbuf.m4: Likewise.
76503         * m4/utime.m4: Likewise.
76504         * m4/utimes-null.m4: Likewise.
76505         * m4/utimes.m4: Likewise.
76506         * m4/vararrays.m4: Likewise.
76507         * m4/vasnprintf.m4: Likewise.
76508         * m4/vfprintf-posix.m4: Likewise.
76509         * m4/vprintf-posix.m4: Likewise.
76510         * m4/wait-process.m4: Likewise.
76511         * m4/wchar_t.m4: Likewise.
76512         * m4/wint_t.m4: Likewise.
76513         * m4/write-any-file.m4: Likewise.
76514         * m4/yield.m4: Likewise.
76516 2009-01-13  Bruno Haible  <bruno@clisp.org>
76518         Avoid test-copy-file.sh failures when ACL support insufficient.
76519         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
76520         TESTS_ENVIRONMENT.
76521         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
76522         Reported by Jim Meyering.
76524 2009-01-13  Bruno Haible  <bruno@clisp.org>
76526         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
76527         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
76528         * modules/unistdio/u8-printf-parse (Files): Likewise.
76529         * modules/unistdio/u32-printf-parse (Files): Likewise.
76530         * modules/unistdio/ulc-printf-parse (Files): Likewise.
76532 2009-01-13  Simon Josefsson  <simon@josefsson.org>
76534         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
76535         and m4/inttypes_h.m4 too.
76537 2009-01-12  Eric Blake  <ebb9@byu.net>
76539         tests: IRIX 6.2 cc can't compile -0.0 into .data
76540         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
76541         rather than at compile-time.
76542         * tests/test-floorl.c (minus_zero): Likewise.
76543         * tests/test-frexpl.c (minus_zero): Likewise.
76544         * tests/test-isnan.c (minus_zerol): Likewise.
76545         * tests/test-isnanl.h (minus_zero): Likewise.
76546         * tests/test-ldexpl.c (minus_zero): Likewise.
76547         * tests/test-roundl.c (minus_zero): Likewise.
76548         * tests/test-signbit.c (minus_zerol): Likewise.
76549         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
76550         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
76551         * tests/test-truncl.c (minus_zero): Likewise.
76552         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
76553         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
76554         Reported by Tom G. Christensen and Nelson H. F. Beebe.
76556 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
76558         regex: fix glibc bug 9697
76559         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
76560         handling.
76562 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
76564         regex: fix glibc bug 697
76565         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
76566         being NULL also if there are no backreferences.
76568 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
76570         regex: merge glibc changes
76571         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
76572         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
76573         re_string_skip_chars, re_string_reconstruct): Likewise.
76574         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
76576 2009-01-07  Jim Meyering  <meyering@redhat.com>
76578         poll: filter through cppi
76579         * lib/poll.c: Indent cpp directives to reflect nesting.
76581 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
76583         poll: don't return uninitialized
76584         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
76586 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
76588         avoid compile failure on AIX 6.1
76589         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
76590         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
76592 2009-01-04  Jim Meyering  <meyering@redhat.com>
76594         remove duplicate inclusion of <stdio.h>
76595         * tests/test-fprintf-posix.c: Likewise.
76596         * tests/test-printf-posix.c: Likewise.
76597         * tests/test-snprintf-posix.c: Likewise.
76598         * tests/test-sprintf-posix.c: Likewise.
76599         * tests/test-vasprintf-posix.c: Likewise.
76600         * tests/test-vfprintf-posix.c: Likewise.
76601         * tests/test-vprintf-posix.c: Likewise.
76602         * tests/test-vsnprintf-posix.c: Likewise.
76603         * tests/test-vsprintf-posix.c: Likewise.
76605 2009-01-03  Jim Meyering  <meyering@redhat.com>
76607         gnulib-tool: fix sed-based filtering
76608         * gnulib-tool (func_filter_filelist): Remove extra backslash
76609         in sed_fff_filter definition.
76611 2009-01-02  Jim Meyering  <meyering@redhat.com>
76613         strftime: avoid compilation failure on Solaris 2.6
76614         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
76615         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
76616         Don't #define mbrlen or mbsinit, since now they're guaranteed to
76617         be available.  Reported by Tom G. Christensen.  Details in
76618         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
76620 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76621             Bruno Haible  <bruno@clisp.org>
76623         Speed up gnulib-tool by doing more string processing through shell
76624         built-ins.
76625         * gnulib-tool (fast_func_append): New variable.
76626         (func_remove_prefix, func_remove_suffix): New functions.
76627         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
76628         (func_filter_filelist): New function.
76629         (func_get_dependencies): Use func_remove_suffix instead of sed.
76630         (func_get_automake_snippet): Use func_filter_filelist instead of a
76631         subshell and sed invocation.
76633 2009-01-01  Bruno Haible  <bruno@clisp.org>
76635         Fix a security bug.
76636         * gnulib-tool (func_import, import, update): Don't allow the characters
76637         '"', '$', '`', '\' in macro arguments that become part of commands that
76638         are evaluated.
76640 2009-01-01  Bruno Haible  <bruno@clisp.org>
76642         * gnulib-tool (func_reset_sigpipe): Add more comments.
76644 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76646         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
76647         func_emit_tests_Makefile_am, func_import): Abort loops early if we
76648         already know the answer.
76650 2009-01-01  Jim Meyering  <meyering@redhat.com>
76652         * lib/version-etc.c (version_etc_va): Update copyright year.
76654 2008-12-30  Bruno Haible  <bruno@clisp.org>
76656         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
76657         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
76658         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
76660 2008-12-29  Eric Blake  <ebb9@byu.net>
76662         multiarch: avoid autoconf AC_REQUIRE bug
76663         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
76664         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
76665         2.63 and older.
76666         Reported by Bruno Haible, and analyzed in
76667         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
76669 2008-12-29  Bruno Haible  <bruno@clisp.org>
76671         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
76672         files in subdirectories correctly.
76673         Reported by Ralf Wildenhues.
76675 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76677         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
76678         rather than 'join FILE -', for Solaris join.
76680 2008-12-29  Bruno Haible  <bruno@clisp.org>
76682         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
76683         quoting.
76684         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
76685         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
76686         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
76687         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
76688         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
76689         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
76690         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
76691         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
76692         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
76693         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
76694         * m4/nls.m4 (AM_NLS): Likewise.
76695         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
76696         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
76697         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
76698         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
76699         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
76700         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
76701         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
76702         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
76703         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
76704         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
76705         * m4/xsize.m4 (gl_XSIZE): Likewise.
76706         Suggested by Jim Meyering.
76708 2008-11-17  Bruce Korb  <bkorb@gnu.org>
76710         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
76711         * lib/parse-duration.c: use a switch instead of cascading if's.
76713 2008-12-29  Eric Blake  <ebb9@byu.net>
76715         wchar.h: supply WEOF on Irix 5.3
76716         * lib/wchar.in.h (wint_t): Also supply WEOF.
76717         * lib/wctype.in.h (wint_t): Likewise.
76718         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
76719         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
76720         Reported by Tom G. Christensen.
76722 2008-12-26  Bruno Haible  <bruno@clisp.org>
76724         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
76725         i486, i586, i686.
76727 2008-12-26  Bruno Haible  <bruno@clisp.org>
76729         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
76731 2008-12-26  Bruno Haible  <bruno@clisp.org>
76733         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
76734         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
76735         not __STDC_CONSTANT_MACROS.
76736         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
76738 2008-12-25  Bruno Haible  <bruno@clisp.org>
76740         Add support for universal builds to vasnprintf.
76741         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
76742         universal builds, guess no.
76743         * modules/vasnprintf-posix (Depends-on): Add multiarch.
76744         * modules/vasprintf-posix (Depends-on): Likewise.
76745         * modules/fprintf-posix (Depends-on): Likewise.
76746         * modules/vfprintf-posix (Depends-on): Likewise.
76747         * modules/snprintf-posix (Depends-on): Likewise.
76748         * modules/vsnprintf-posix (Depends-on): Likewise.
76749         * modules/sprintf-posix (Depends-on): Likewise.
76750         * modules/vsprintf-posix (Depends-on): Likewise.
76751         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
76752         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
76753         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
76754         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
76755         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
76756         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
76757         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
76759         Add support for universal builds to <inttypes.h>.
76760         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
76761         _SCNu64_PREFIX): In Apple
76762         universal builds, define directly, using _LP64.
76763         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
76764         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
76765         * modules/inttypes (Depends-on): Add multiarch.
76766         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
76768         Add support for universal builds to <stdint.h>.
76769         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
76770         universal builds, define directly, using _LP64.
76771         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
76772         Apple universal builds, don't test for the size and suffix of ptrdiff_t
76773         and size_t.
76774         * modules/stdint (Depends-on): Add multiarch.
76775         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
76777         New module 'multiarch'.
76778         * modules/multiarch: New file.
76779         * m4/multiarch.m4: New file.
76781 2008-12-25  Bruno Haible  <bruno@clisp.org>
76783         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
76785 2008-12-25  Bruno Haible  <bruno@clisp.org>
76787         * modules/btowc (License): Relicense under LGPLv2+.
76788         * modules/mbsinit (License): Likewise.
76789         * modules/mbrtowc (License): Likewise.
76790         * modules/wcrtomb (License): Likewise.
76791         * modules/streq (License): Likewise.
76792         Reported by David Lutterkort <lutter@redhat.com>.
76794 2008-12-23  Bruno Haible  <bruno@clisp.org>
76796         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
76798 2008-12-23  Bruno Haible  <bruno@clisp.org>
76800         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
76801         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
76802         GETADDRINFO_LIB, not in LIBS.
76803         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
76804         * modules/canon-host (Link): Likewise.
76805         * NEWS: Mention the change.
76806         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
76807         GETADDRINFO_LIB.
76809 2008-12-22  Bruno Haible  <bruno@clisp.org>
76811         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
76812         * doc/posix-functions/iswalpha_l.texi: Likewise.
76813         * doc/posix-functions/iswblank_l.texi: Likewise.
76814         * doc/posix-functions/iswcntrl_l.texi: Likewise.
76815         * doc/posix-functions/iswctype_l.texi: Likewise.
76816         * doc/posix-functions/iswdigit_l.texi: Likewise.
76817         * doc/posix-functions/iswgraph_l.texi: Likewise.
76818         * doc/posix-functions/iswlower_l.texi: Likewise.
76819         * doc/posix-functions/iswprint_l.texi: Likewise.
76820         * doc/posix-functions/iswpunct_l.texi: Likewise.
76821         * doc/posix-functions/iswspace_l.texi: Likewise.
76822         * doc/posix-functions/iswupper_l.texi: Likewise.
76823         * doc/posix-functions/iswxdigit_l.texi: Likewise.
76824         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
76825         * doc/posix-functions/open_wmemstream.texi: Likewise.
76826         * doc/posix-functions/swscanf.texi: Likewise.
76827         * doc/posix-functions/towctrans_l.texi: Likewise.
76828         * doc/posix-functions/towlower.texi: Likewise.
76829         * doc/posix-functions/towlower_l.texi: Likewise.
76830         * doc/posix-functions/towupper.texi: Likewise.
76831         * doc/posix-functions/towupper_l.texi: Likewise.
76832         * doc/posix-functions/vfwprintf.texi: Likewise.
76833         * doc/posix-functions/vfwscanf.texi: Likewise.
76834         * doc/posix-functions/vswscanf.texi: Likewise.
76835         * doc/posix-functions/vwprintf.texi: Likewise.
76836         * doc/posix-functions/vwscanf.texi: Likewise.
76837         * doc/posix-functions/wcpcpy.texi: Likewise.
76838         * doc/posix-functions/wcpncpy.texi: Likewise.
76839         * doc/posix-functions/wcscasecmp.texi: Likewise.
76840         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
76841         * doc/posix-functions/wcscoll_l.texi: Likewise.
76842         * doc/posix-functions/wcsdup.texi: Likewise.
76843         * doc/posix-functions/wcsncasecmp.texi: Likewise.
76844         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
76845         * doc/posix-functions/wcsnlen.texi: Likewise.
76846         * doc/posix-functions/wcsnrtombs.texi: Likewise.
76847         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
76848         * doc/posix-functions/wctrans_l.texi: Likewise.
76849         * doc/posix-functions/wctype_l.texi: Likewise.
76850         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
76851         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
76852         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
76853         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
76854         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
76855         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
76856         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
76857         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
76858         * doc/glibc-functions/wcschrnul.texi: Likewise.
76859         * doc/glibc-functions/wcsftime_l.texi: Likewise.
76860         * doc/glibc-functions/wcstod_l.texi: Likewise.
76861         * doc/glibc-functions/wcstof_l.texi: Likewise.
76862         * doc/glibc-functions/wcstol_l.texi: Likewise.
76863         * doc/glibc-functions/wcstold_l.texi: Likewise.
76864         * doc/glibc-functions/wcstoll_l.texi: Likewise.
76865         * doc/glibc-functions/wcstoq.texi: Likewise.
76866         * doc/glibc-functions/wcstoul_l.texi: Likewise.
76867         * doc/glibc-functions/wcstoull_l.texi: Likewise.
76868         * doc/glibc-functions/wcstouq.texi: Likewise.
76869         * doc/glibc-functions/wmempcpy.texi: Likewise.
76871 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
76872             Eric Blake  <ebb9@byu.net>
76873             Paolo Bonzini  <bonzini@gnu.org>
76874             Bruno Haible  <bruno@clisp.org>
76876         Make c-stack work on Haiku.
76877         * lib/c-stack.c (SA_ONSTACK): Define fallback.
76878         (c_stack_action): Use SA_ONSTACK flag.
76880 2008-12-22  Bruno Haible  <bruno@clisp.org>
76882         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
76884 2008-12-22  Bruno Haible  <bruno@clisp.org>
76886         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
76887         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
76888         being overridden.
76889         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
76890         New macros.
76891         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
76892         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
76893         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
76894         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
76896 2008-12-22  Bruno Haible  <bruno@clisp.org>
76898         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
76899         from test code.
76901 2008-12-22  Eric Blake  <ebb9@byu.net>
76903         Avoid gcc warnings on cygwin.
76904         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
76905         Avoid unused variable.
76906         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
76907         Likewise.
76909 2008-12-22  Bruno Haible  <bruno@clisp.org>
76911         Remove HAVE_MBRTOWC conditionals.
76912         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
76913         (mbscasecmp): Assume mbrtowc function.
76914         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
76915         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
76916         * lib/mbschr.c: Include mbuiter.h unconditionally.
76917         (mbschr): Assume mbrtowc function.
76918         * lib/mbscspn.c: Include mbuiter.h unconditionally.
76919         (mbscspn): Assume mbrtowc function.
76920         * lib/mbslen.c: Include mbuiter.h unconditionally.
76921         (mbslen): Assume mbrtowc function.
76922         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
76923         (mbsncasecmp): Assume mbrtowc function.
76924         * lib/mbsnlen.c: Include mbiter.h unconditionally.
76925         (mbsnlen): Assume mbrtowc function.
76926         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
76927         (mbspbrk): Assume mbrtowc function.
76928         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
76929         (mbspcasecmp): Assume mbrtowc function.
76930         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
76931         (mbsrchr): Assume mbrtowc function.
76932         * lib/mbssep.c: Include mbuiter.h unconditionally.
76933         (mbssep): Assume mbrtowc function.
76934         * lib/mbsspn.c: Include mbuiter.h unconditionally.
76935         (mbsspn): Assume mbrtowc function.
76936         * lib/mbsstr.c: Include mbuiter.h unconditionally.
76937         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
76938         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
76939         (mbstok_r): Assume mbrtowc function.
76940         * lib/propername.c: Include mbuiter.h unconditionally.
76941         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
76942         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
76943         (trim2): Assume mbrtowc function.
76944         * lib/mbswidth.c (mbsinit): Remove fallback definition.
76945         (mbsnwidth): Assume mbrtowc function.
76946         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
76947         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
76948         fallback definitions.
76949         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
76951 2008-12-22  Bruno Haible  <bruno@clisp.org>
76953         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
76955 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
76957         * modules/regex: Request emulations for the mb*/wc* functions we need.
76958         * m4/regex.m4: Don't look for those functions here.
76959         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
76961 2008-12-22  Bruno Haible  <bruno@clisp.org>
76963         * modules/fnmatch (Depends-on): Remove duplicated dependency.
76965 2008-12-21  Bruno Haible  <bruno@clisp.org>
76967         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
76968         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
76969         (Include): Remove conditionalization.
76970         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
76971         (Include): Remove conditionalization.
76972         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
76973         (Include): Remove conditionalization.
76974         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
76975         * m4/mbfile.m4 (gl_MBFILE): Likewise.
76976         * NEWS: Mention the change.
76977         Reported by Alan Hourihane <alanh@fairlite.co.uk>
76978         via Sergey Poznyakoff <gray@gnu.org.ua>.
76980 2008-12-21  Bruno Haible  <bruno@clisp.org>
76982         * MODULES.html.sh (Extended multibyte and wide character utilities
76983         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
76984         wcrtomb, wcsrtombs.
76985         (Support for systems lacking POSIX:2008): Add accept, bind, close,
76986         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
76987         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
76988         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
76990 2008-12-21  Bruno Haible  <bruno@clisp.org>
76992         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
76994 2008-12-21  Bruno Haible  <bruno@clisp.org>
76996         * modules/wcsnrtombs-tests: New file.
76997         * tests/test-wcsnrtombs1.sh: New file.
76998         * tests/test-wcsnrtombs2.sh: New file.
76999         * tests/test-wcsnrtombs3.sh: New file.
77000         * tests/test-wcsnrtombs4.sh: New file.
77001         * tests/test-wcsnrtombs.c: New file.
77003         New module 'wcsnrtombs'.
77004         * lib/wchar.in.h (wcsnrtombs): New declaration.
77005         * lib/wcsnrtombs.c: New file.
77006         * lib/wcsrtombs-state.c: New file.
77007         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
77008         (internal_state): Remove variable.
77009         * m4/wcsnrtombs.m4: New file.
77010         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
77011         compilation units.
77012         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
77013         HAVE_WCSNRTOMBS.
77014         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
77015         HAVE_WCSNRTOMBS.
77016         * modules/wcsnrtombs: New file.
77017         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
77018         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
77020 2008-12-21  Bruno Haible  <bruno@clisp.org>
77022         * modules/wcsrtombs-tests: New file.
77023         * tests/test-wcsrtombs1.sh: New file.
77024         * tests/test-wcsrtombs2.sh: New file.
77025         * tests/test-wcsrtombs3.sh: New file.
77026         * tests/test-wcsrtombs4.sh: New file.
77027         * tests/test-wcsrtombs.c: New file.
77029         New module 'wcsrtombs'.
77030         * lib/wchar.in.h (wcsrtombs): New declaration.
77031         * lib/wcsrtombs.c: New file.
77032         * m4/wcsrtombs.m4: New file.
77033         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
77034         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
77035         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
77036         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
77037         * modules/wcsrtombs: New file.
77038         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
77039         bugs.
77041 2008-12-21  Bruno Haible  <bruno@clisp.org>
77043         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
77044         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
77045         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
77046         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
77047         if not correct.
77048         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
77049         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
77050         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
77051         m4/locale-zh.m4, m4/codeset.m4.
77052         * doc/posix-functions/wcrtomb.texi: Document the bug.
77054 2008-12-21  Bruno Haible  <bruno@clisp.org>
77056         Work around a btowc() bug on IRIX 6.5.
77057         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
77058         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
77059         REPLACE_WTOBC if not.
77060         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
77061         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
77062         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
77064 2008-12-21  Bruno Haible  <bruno@clisp.org>
77066         * modules/wcrtomb-tests: New file.
77067         * tests/test-wcrtomb.sh: New file.
77068         * tests/test-wcrtomb.c: New file.
77070         New module 'wcrtomb'.
77071         * lib/wchar.in.h (wcrtomb): New declaration.
77072         * lib/wcrtomb.c: New file.
77073         * m4/wcrtomb.m4: New file.
77074         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
77075         HAVE_WCRTOMB.
77076         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
77077         HAVE_WCRTOMB.
77078         * modules/wcrtomb: New file.
77079         * doc/posix-functions/wcrtomb.texi: Mention the new module.
77081 2008-12-21  Bruno Haible  <bruno@clisp.org>
77083         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
77084         * modules/mbsrtowcs (Files): Likewise.
77085         * modules/wctob (Files): Likewise.
77086         * modules/c-strcase-tests (Files): Likewise.
77087         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
77088         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
77089         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
77090         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
77091         * modules/vasnprintf-posix-tests (Files): Likewise.
77093 2008-12-21  William Pursell  <bill.pursell@gmail.com>
77095         gitlog-to-changelog: pass all command-line arguments to git-log
77096         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
77097         it is sometimes convenient to filter the commits in various ways.
77098         gitlog-to-changelog only allows --since to specify a start date,
77099         but git-log itself supports many other filtering mechanisms.
77100         At the moment, I want to filter by branch name.  Rather than
77101         adding a --branch option to gitlog-to-changelog, it seems more
77102         flexible to simply pass all options directly to git-log and let
77103         git do the work.  Notice that this effectively makes --since a
77104         redundant option for gitlog-to-changelog, but removing it would
77105         require current usage to change since calls would then require
77106         an additional '--'.
77108 2008-12-21  Bruno Haible  <bruno@clisp.org>
77110         * modules/mbsnrtowcs-tests: New file.
77111         * tests/test-mbsnrtowcs1.sh: New file.
77112         * tests/test-mbsnrtowcs2.sh: New file.
77113         * tests/test-mbsnrtowcs3.sh: New file.
77114         * tests/test-mbsnrtowcs4.sh: New file.
77115         * tests/test-mbsnrtowcs.c: New file.
77117         New module 'mbsnrtowcs'.
77118         * lib/wchar.in.h (mbsnrtowcs): New declaration.
77119         * lib/mbsnrtowcs.c: New file.
77120         * lib/mbsrtowcs-state.c: New file.
77121         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
77122         (internal_state): Remove variable.
77123         * m4/mbsnrtowcs.m4: New file.
77124         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
77125         compilation units.
77126         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
77127         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
77128         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
77129         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
77130         * modules/mbsnrtowcs: New file.
77131         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
77132         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
77133         portability problem.
77135 2008-12-21  Bruno Haible  <bruno@clisp.org>
77137         Work around mbsrtowcs bug.
77138         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
77139         (gl_FUNC_MBSRTOWCS): Invoke it.
77140         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
77141         m4/locale-zh.m4.
77142         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
77144 2008-12-21  Bruno Haible  <bruno@clisp.org>
77146         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
77148 2008-12-21  Bruno Haible  <bruno@clisp.org>
77150         Update doc for AIX.
77151         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
77152         16-bit wchar_t type.
77153         * doc/posix-functions/btowc.texi: Likewise.
77154         * doc/posix-functions/fgetwc.texi: Likewise.
77155         * doc/posix-functions/fgetws.texi: Likewise.
77156         * doc/posix-functions/fputwc.texi: Likewise.
77157         * doc/posix-functions/fputws.texi: Likewise.
77158         * doc/posix-functions/fwide.texi: Likewise.
77159         * doc/posix-functions/fwprintf.texi: Likewise.
77160         * doc/posix-functions/fwscanf.texi: Likewise.
77161         * doc/posix-functions/getwchar.texi: Likewise.
77162         * doc/posix-functions/getwc.texi: Likewise.
77163         * doc/posix-functions/iswalnum.texi: Likewise.
77164         * doc/posix-functions/iswalpha.texi: Likewise.
77165         * doc/posix-functions/iswblank.texi: Likewise.
77166         * doc/posix-functions/iswcntrl.texi: Likewise.
77167         * doc/posix-functions/iswctype.texi: Likewise.
77168         * doc/posix-functions/iswdigit.texi: Likewise.
77169         * doc/posix-functions/iswgraph.texi: Likewise.
77170         * doc/posix-functions/iswlower.texi: Likewise.
77171         * doc/posix-functions/iswprint.texi: Likewise.
77172         * doc/posix-functions/iswpunct.texi: Likewise.
77173         * doc/posix-functions/iswspace.texi: Likewise.
77174         * doc/posix-functions/iswupper.texi: Likewise.
77175         * doc/posix-functions/iswxdigit.texi: Likewise.
77176         * doc/posix-functions/mbrtowc.texi: Likewise.
77177         * doc/posix-functions/mbsrtowcs.texi: Likewise.
77178         * doc/posix-functions/mbstowcs.texi: Likewise.
77179         * doc/posix-functions/mbtowc.texi: Likewise.
77180         * doc/posix-functions/putwchar.texi: Likewise.
77181         * doc/posix-functions/putwc.texi: Likewise.
77182         * doc/posix-functions/swprintf.texi: Likewise.
77183         * doc/posix-functions/tolower.texi: Likewise.
77184         * doc/posix-functions/toupper.texi: Likewise.
77185         * doc/posix-functions/towctrans.texi: Likewise.
77186         * doc/posix-functions/ungetwc.texi: Likewise.
77187         * doc/posix-functions/vswprintf.texi: Likewise.
77188         * doc/posix-functions/wcrtomb.texi: Likewise.
77189         * doc/posix-functions/wcscat.texi: Likewise.
77190         * doc/posix-functions/wcschr.texi: Likewise.
77191         * doc/posix-functions/wcscmp.texi: Likewise.
77192         * doc/posix-functions/wcscoll.texi: Likewise.
77193         * doc/posix-functions/wcscpy.texi: Likewise.
77194         * doc/posix-functions/wcscspn.texi: Likewise.
77195         * doc/posix-functions/wcsftime.texi: Likewise.
77196         * doc/posix-functions/wcslen.texi: Likewise.
77197         * doc/posix-functions/wcsncat.texi: Likewise.
77198         * doc/posix-functions/wcsncmp.texi: Likewise.
77199         * doc/posix-functions/wcsncpy.texi: Likewise.
77200         * doc/posix-functions/wcspbrk.texi: Likewise.
77201         * doc/posix-functions/wcsrchr.texi: Likewise.
77202         * doc/posix-functions/wcsrtombs.texi: Likewise.
77203         * doc/posix-functions/wcsspn.texi: Likewise.
77204         * doc/posix-functions/wcsstr.texi: Likewise.
77205         * doc/posix-functions/wcstod.texi: Likewise.
77206         * doc/posix-functions/wcstof.texi: Likewise.
77207         * doc/posix-functions/wcstoimax.texi: Likewise.
77208         * doc/posix-functions/wcstok.texi: Likewise.
77209         * doc/posix-functions/wcstold.texi: Likewise.
77210         * doc/posix-functions/wcstoll.texi: Likewise.
77211         * doc/posix-functions/wcstol.texi: Likewise.
77212         * doc/posix-functions/wcstombs.texi: Likewise.
77213         * doc/posix-functions/wcstoull.texi: Likewise.
77214         * doc/posix-functions/wcstoul.texi: Likewise.
77215         * doc/posix-functions/wcstoumax.texi: Likewise.
77216         * doc/posix-functions/wcswidth.texi: Likewise.
77217         * doc/posix-functions/wcsxfrm.texi: Likewise.
77218         * doc/posix-functions/wctob.texi: Likewise.
77219         * doc/posix-functions/wctomb.texi: Likewise.
77220         * doc/posix-functions/wctrans.texi: Likewise.
77221         * doc/posix-functions/wctype.texi: Likewise.
77222         * doc/posix-functions/wcwidth.texi: Likewise.
77223         * doc/posix-functions/wmemchr.texi: Likewise.
77224         * doc/posix-functions/wmemcmp.texi: Likewise.
77225         * doc/posix-functions/wmemcpy.texi: Likewise.
77226         * doc/posix-functions/wmemmove.texi: Likewise.
77227         * doc/posix-functions/wmemset.texi: Likewise.
77228         * doc/posix-functions/wprintf.texi: Likewise.
77229         * doc/posix-functions/wscanf.texi: Likewise.
77231 2008-12-21  Bruno Haible  <bruno@clisp.org>
77233         Update doc for HP-UX 11.11.
77234         * doc/posix-functions/btowc.texi: Clarify that the function is missing
77235         in HP-UX version 11.00, not in all versions of HP-UX 11.
77236         * doc/posix-functions/fwide.texi: Likewise.
77237         * doc/posix-functions/fwprintf.texi: Likewise.
77238         * doc/posix-functions/fwscanf.texi: Likewise.
77239         * doc/posix-functions/inet_ntop.texi: Likewise.
77240         * doc/posix-functions/inet_pton.texi: Likewise.
77241         * doc/posix-functions/mbrlen.texi: Likewise.
77242         * doc/posix-functions/mbrtowc.texi: Likewise.
77243         * doc/posix-functions/mbsinit.texi: Likewise.
77244         * doc/posix-functions/mbsrtowcs.texi: Likewise.
77245         * doc/posix-functions/swprintf.texi: Likewise.
77246         * doc/posix-functions/swscanf.texi: Likewise.
77247         * doc/posix-functions/towctrans.texi: Likewise.
77248         * doc/posix-functions/vfwprintf.texi: Likewise.
77249         * doc/posix-functions/vswprintf.texi: Likewise.
77250         * doc/posix-functions/vwprintf.texi: Likewise.
77251         * doc/posix-functions/wcrtomb.texi: Likewise.
77252         * doc/posix-functions/wcsrtombs.texi: Likewise.
77253         * doc/posix-functions/wcsstr.texi: Likewise.
77254         * doc/posix-functions/wctob.texi: Likewise.
77255         * doc/posix-functions/wctrans.texi: Likewise.
77256         * doc/posix-functions/wmemchr.texi: Likewise.
77257         * doc/posix-functions/wmemcmp.texi: Likewise.
77258         * doc/posix-functions/wmemcpy.texi: Likewise.
77259         * doc/posix-functions/wmemmove.texi: Likewise.
77260         * doc/posix-functions/wmemset.texi: Likewise.
77261         * doc/posix-functions/wprintf.texi: Likewise.
77262         * doc/posix-functions/wscanf.texi: Likewise.
77264 2008-12-21  Bruno Haible  <bruno@clisp.org>
77266         Work around a portability problem.
77267         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
77268         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
77270 2008-12-20  Bruno Haible  <bruno@clisp.org>
77272         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
77273         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
77274         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
77275         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
77276         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
77278         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
77279         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
77280         set.
77281         (GNULIB_defined_mbstate_t): New macro.
77282         (mbsinit): Redefine if REPLACE_MBSINIT is set.
77283         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
77284         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
77285         reuses the system's mbrtowc function but works around the bugs.
77286         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
77287         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
77288         macros.
77289         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
77290         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
77291         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
77292         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
77293         REPLACE_MBSINIT if mbsinit needs to be overridden.
77294         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
77295         REPLACE_MBSINIT, REPLACE_MBRTOWC.
77296         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
77297         REPLACE_MBSINIT, REPLACE_MBRTOWC.
77298         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
77299         m4/locale-zh.m4.
77300         (Depends): Add mbsinit.
77301         * modules/mbsinit (Depends): Add mbrtowc.
77302         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
77304 2008-12-20  Bruno Haible  <bruno@clisp.org>
77306         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
77307         so that there are no conversion errors on AIX.
77308         * tests/test-mbsrtowcs.c (main): LIkewise.
77310 2008-12-20  Bruno Haible  <bruno@clisp.org>
77312         Work around wctob bug on Solaris <= 9.
77313         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
77314         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
77315         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
77316         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
77317         * modules/wctob (Files): Add m4/locale-fr.m4.
77318         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
77320 2008-12-20  Bruno Haible  <bruno@clisp.org>
77322         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
77323         /dev/null.
77324         * tests/test-select-in.sh: Likewise.
77325         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77327 2008-12-20  Bruno Haible  <bruno@clisp.org>
77329         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
77330         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
77331         Cygwin 1.5.x.
77333 2008-12-20  Bruno Haible  <bruno@clisp.org>
77335         Ensure mbstate_t is defined on HP-UX 11.11.
77336         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
77337         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
77338         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
77339         AC_USE_SYSTEM_EXTENSIONS.
77340         * modules/fnmatch (Depends-on): Add extensions.
77341         * modules/mbrlen (Depends-on): Likewise.
77342         * modules/mbrtowc (Depends-on): Likewise.
77343         * modules/mbsinit (Depends-on): Likewise.
77344         * modules/mbsrtowcs (Depends-on): Likewise.
77345         * modules/mbswidth (Depends-on): Likewise.
77346         * modules/quotearg (Depends-on): Likewise.
77347         * modules/strftime (Depends-on): Likewise.
77349 2008-12-20  Bruno Haible  <bruno@clisp.org>
77351         Ensure wctob is declared on IRIX 6.5.
77352         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
77353         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
77354         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
77355         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
77356         of HAVE_WCTOB.
77357         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
77358         HAVE_WCTOB.
77359         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
77361 2008-12-19  Bruno Haible  <bruno@clisp.org>
77363         * modules/mbsrtowcs-tests: New file.
77364         * tests/test-mbsrtowcs1.sh: New file.
77365         * tests/test-mbsrtowcs2.sh: New file.
77366         * tests/test-mbsrtowcs3.sh: New file.
77367         * tests/test-mbsrtowcs4.sh: New file.
77368         * tests/test-mbsrtowcs.c: New file.
77370         New module 'mbsrtowcs'.
77371         * lib/wchar.in.h (mbsrtowcs): New declaration.
77372         * lib/mbsrtowcs.c: New file.
77373         * m4/mbsrtowcs.m4: New file.
77374         * modules/mbsrtowcs: New file.
77375         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
77376         HAVE_MBSRTOWCS.
77377         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
77378         HAVE_MBSRTOWCS.
77379         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
77381 2008-12-19  Bruno Haible  <bruno@clisp.org>
77383         New module 'mbrlen'.
77384         * lib/wchar.in.h (mbrlen): New declaration.
77385         * lib/mbrlen.c: New file.
77386         * m4/mbrlen.m4: New file.
77387         * modules/mbrlen: New file.
77388         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
77389         HAVE_MBRLEN.
77390         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
77391         HAVE_MBRLEN.
77392         * doc/posix-functions/mbrlen.texi: Document the new module.
77394 2008-12-19  Bruno Haible  <bruno@clisp.org>
77396         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
77397         * modules/mbrtowc (Depends-on): Add verify.
77398         Suggested by Paul Eggert.
77400 2008-12-18  Bruno Haible  <bruno@clisp.org>
77402         * modules/mbsinit-tests: New file.
77403         * tests/test-mbsinit.sh: New file.
77404         * tests/test-mbsinit.c: New file.
77406 2008-12-18  Bruno Haible  <bruno@clisp.org>
77408         * modules/mbrtowc-tests: New file.
77409         * tests/test-mbrtowc1.sh: New file.
77410         * tests/test-mbrtowc2.sh: New file.
77411         * tests/test-mbrtowc3.sh: New file.
77412         * tests/test-mbrtowc4.sh: New file.
77413         * tests/test-mbrtowc.c: New file.
77415         New module 'mbrtowc'.
77416         * lib/wchar.in.h (mbstate_t): Override when the system does not have
77417         mbsinit and mbrtowc.
77418         (mbrtowc): New declaration.
77419         * lib/mbrtowc.c: New file.
77420         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
77421         * modules/mbrtowc: New file.
77422         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
77423         HAVE_MBRTOWC.
77424         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
77425         HAVE_MBRTOWC.
77426         * doc/posix-functions/mbrtowc.texi: Document the new module.
77428 2008-12-18  Bruno Haible  <bruno@clisp.org>
77430         New module 'wctob'.
77431         * lib/wchar.in.h (wctob): New declaration.
77432         * lib/wctob.c: New file.
77433         * m4/wctob.m4: New file.
77434         * modules/wctob: New file.
77435         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
77436         HAVE_WCTOB.
77437         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
77438         * doc/posix-functions/wctob.texi: Document the new module.
77440 2008-12-18  Bruno Haible  <bruno@clisp.org>
77442         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
77443         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
77445 2008-12-18  Simon Josefsson  <simon@josefsson.org>
77447         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
77448         G. Christensen" <tgc@jupiterrise.com>.
77450         * lib/flock.c: Need to include errno.h.  Reported by "Tom
77451         G. Christensen" <tgc@jupiterrise.com>.
77453         * lib/flock.c: Need to include string.h.  Reported by "Tom
77454         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
77455         <ebb9@byu.net>.
77457 2008-12-18  Bruno Haible  <bruno@clisp.org>
77459         * m4/locale-ja.m4: New file, from GNU gettext.
77461 2008-12-17  Bruno Haible  <bruno@clisp.org>
77463         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
77464         Suggested by Eric Blake.
77466 2008-12-17  Bruno Haible  <bruno@clisp.org>
77468         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
77470 2008-12-17  Bruno Haible  <bruno@clisp.org>
77472         * lib/mbsinit.c: Include verify.h. Verify an assumption.
77473         * modules/mbsinit (Depends-on): Add verify.
77474         Suggested by Paul Eggert.
77476 2008-12-17  Bruno Haible  <bruno@clisp.org>
77478         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
77479         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
77480         gl_FUNC_MBRTOWC.
77481         * m4/mbiter.m4 (gl_MBITER): LIkewise.
77482         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
77483         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
77484         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
77485         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
77486         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
77487         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
77488         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
77489         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
77490         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
77491         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
77492         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
77493         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
77494         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
77495         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
77496         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
77497         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
77498         * modules/trim (configure.ac): Likewise.
77500 2008-12-17  Bruno Haible  <bruno@clisp.org>
77502         * modules/btowc-tests: New file.
77503         * tests/test-btowc1.sh: New file.
77504         * tests/test-btowc2.sh: New file.
77505         * tests/test-btowc.c: New file.
77507         New module 'btowc'.
77508         * lib/wchar.in.h (btowc): New declaration.
77509         * lib/btowc.c: New file.
77510         * m4/btowc.m4: New file.
77511         * modules/btowc: New file.
77512         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
77513         HAVE_BTOWC.
77514         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
77515         * doc/posix-functions/btowc.texi: Document the new module.
77517 2008-12-17  Bruno Haible  <bruno@clisp.org>
77519         New module 'mbsinit'.
77520         * lib/wchar.in.h (mbsinit): New declaration.
77521         * lib/mbsinit.c: New file.
77522         * m4/mbsinit.m4: New file.
77523         * modules/mbsinit: New file.
77524         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
77525         HAVE_MBSINIT.
77526         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
77527         HAVE_MBSINIT.
77528         * doc/posix-functions/mbsinit.texi: Document the new module.
77530 2008-12-16  Bruno Haible  <bruno@clisp.org>
77532         * lib/unistd.in.h: Add comment.
77533         * tests/test-environ.c: Don't include <stdlib.h>.
77535 2008-12-16  Bruno Haible  <bruno@clisp.org>
77537         * lib/parse-duration.h (parse_duration): Document return value
77538         convention.
77539         * lib/parse-duration.c: Include specification header first. Add
77540         comments.
77541         (_): Remove macro.
77542         (parse_year_month_day, parse_hour_minute_second): Move side effects
77543         outside of strchr call.
77544         (parse_non_iso8601): Move side effects outside of isspace call.
77545         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
77546         call.
77548 2008-12-16  Bruno Haible  <bruno@clisp.org>
77550         * tests/test-parse-duration.sh: Produce no output when the test
77551         succeeds.
77553 2008-12-16  Bruno Haible  <bruno@clisp.org>
77555         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
77556         expressions.
77558 2008-12-15  Bruno Haible  <bruno@clisp.org>
77560         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
77561         * doc/glibc-functions/flistxattr.texi: Likewise.
77562         * doc/glibc-functions/fopencookie.texi: Likewise.
77563         * doc/glibc-functions/fremovexattr.texi: Likewise.
77564         * doc/glibc-functions/fsetxattr.texi: Likewise.
77565         * doc/glibc-functions/getxattr.texi: Likewise.
77566         * doc/glibc-functions/lgetxattr.texi: Likewise.
77567         * doc/glibc-functions/listxattr.texi: Likewise.
77568         * doc/glibc-functions/llistxattr.texi: Likewise.
77569         * doc/glibc-functions/lremovexattr.texi: Likewise.
77570         * doc/glibc-functions/lsetxattr.texi: Likewise.
77571         * doc/glibc-functions/removexattr.texi: Likewise.
77572         * doc/glibc-functions/setxattr.texi: Likewise.
77573         * doc/posix-functions/open_memstream.texi: Likewise.
77575 2008-12-15  Eric Blake  <ebb9@byu.net>
77577         Update doc for cygwin 1.7.
77578         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
77579         functions.
77580         * doc/posix-functions/fchmodat.texi: Likewise.
77581         * doc/posix-functions/fchownat.texi: Likewise.
77582         * doc/posix-functions/fdopendir.texi: Likewise.
77583         * doc/posix-functions/fmemopen.texi: Likewise.
77584         * doc/posix-functions/freeaddrinfo.texi: Likewise.
77585         * doc/posix-functions/fstatat.texi: Likewise.
77586         * doc/posix-functions/futimens.texi: Likewise.
77587         * doc/posix-functions/gai_strerror.texi: Likewise.
77588         * doc/posix-functions/getaddrinfo.texi: Likewise.
77589         * doc/posix-functions/getnameinfo.texi: Likewise.
77590         * doc/posix-functions/if_freenameindex.texi: Likewise.
77591         * doc/posix-functions/if_indextoname.texi: Likewise.
77592         * doc/posix-functions/if_nameindex.texi: Likewise.
77593         * doc/posix-functions/if_nametoindex.texi: Likewise.
77594         * doc/posix-functions/insque.texi: Likewise.
77595         * doc/posix-functions/linkat.texi: Likewise.
77596         * doc/posix-functions/llrint.texi: Likewise.
77597         * doc/posix-functions/llrintf.texi: Likewise.
77598         * doc/posix-functions/llrintl.texi: Likewise.
77599         * doc/posix-functions/lockf.texi: Likewise.
77600         * doc/posix-functions/lrintl.texi: Likewise.
77601         * doc/posix-functions/mkdirat.texi: Likewise.
77602         * doc/posix-functions/mkfifoat.texi: Likewise.
77603         * doc/posix-functions/mknodat.texi: Likewise.
77604         * doc/posix-functions/mq_close.texi: Likewise.
77605         * doc/posix-functions/mq_getattr.texi: Likewise.
77606         * doc/posix-functions/mq_notify.texi: Likewise.
77607         * doc/posix-functions/mq_open.texi: Likewise.
77608         * doc/posix-functions/mq_receive.texi: Likewise.
77609         * doc/posix-functions/mq_send.texi: Likewise.
77610         * doc/posix-functions/mq_setattr.texi: Likewise.
77611         * doc/posix-functions/mq_timedreceive.texi: Likewise.
77612         * doc/posix-functions/mq_timedsend.texi: Likewise.
77613         * doc/posix-functions/mq_unlink.texi: Likewise.
77614         * doc/posix-functions/open_memstream.texi: Likewise.
77615         * doc/posix-functions/openat.texi: Likewise.
77616         * doc/posix-functions/posix_fadvise.texi: Likewise.
77617         * doc/posix-functions/posix_fallocate.texi: Likewise.
77618         * doc/posix-functions/posix_madvise.texi: Likewise.
77619         * doc/posix-functions/posix_memalign.texi: Likewise.
77620         * doc/posix-functions/posix_openpt.texi: Likewise.
77621         * doc/posix-functions/readlinkat.texi: Likewise.
77622         * doc/posix-functions/remque.texi: Likewise.
77623         * doc/posix-functions/renameat.texi: Likewise.
77624         * doc/posix-functions/rintl.texi: Likewise.
77625         * doc/posix-functions/sem_unlink.texi: Likewise.
77626         * doc/posix-functions/shm_open.texi: Likewise.
77627         * doc/posix-functions/shm_unlink.texi: Likewise.
77628         * doc/posix-functions/signgam.texi: Likewise.
77629         * doc/posix-functions/sigset.texi: Likewise.
77630         * doc/posix-functions/stpcpy.texi: Likewise.
77631         * doc/posix-functions/stpncpy.texi: Likewise.
77632         * doc/posix-functions/strerror.texi: Likewise.
77633         * doc/posix-functions/strtod.texi: Likewise.
77634         * doc/posix-functions/symlinkat.texi: Likewise.
77635         * doc/posix-functions/unlinkat.texi: Likewise.
77636         * doc/posix-functions/utimensat.texi: Likewise.
77637         * doc/glibc-functions/bindresvport.texi: Likewise.
77638         * doc/glibc-functions/dn_expand.texi: Likewise.
77639         * doc/glibc-functions/exp10.texi: Likewise.
77640         * doc/glibc-functions/exp10f.texi: Likewise.
77641         * doc/glibc-functions/fgetxattr.texi: Likewise.
77642         * doc/glibc-functions/flistxattr.texi: Likewise.
77643         * doc/glibc-functions/fopencookie.texi: Likewise.
77644         * doc/glibc-functions/freeifaddrs.texi: Likewise.
77645         * doc/glibc-functions/fremovexattr.texi: Likewise.
77646         * doc/glibc-functions/fsetxattr.texi: Likewise.
77647         * doc/glibc-functions/getifaddrs.texi: Likewise.
77648         * doc/glibc-functions/getxattr.texi: Likewise.
77649         * doc/glibc-functions/lgetxattr.texi: Likewise.
77650         * doc/glibc-functions/listxattr.texi: Likewise.
77651         * doc/glibc-functions/llistxattr.texi: Likewise.
77652         * doc/glibc-functions/lremovexattr.texi: Likewise.
77653         * doc/glibc-functions/lsetxattr.texi: Likewise.
77654         * doc/glibc-functions/pow10.texi: Likewise.
77655         * doc/glibc-functions/pow10f.texi: Likewise.
77656         * doc/glibc-functions/rcmd_af.texi: Likewise.
77657         * doc/glibc-functions/removexattr.texi: Likewise.
77658         * doc/glibc-functions/res_init.texi: Likewise.
77659         * doc/glibc-functions/res_mkquery.texi: Likewise.
77660         * doc/glibc-functions/res_query.texi: Likewise.
77661         * doc/glibc-functions/res_querydomain.texi: Likewise.
77662         * doc/glibc-functions/res_send.texi: Likewise.
77663         * doc/glibc-functions/rresvport_af.texi: Likewise.
77664         * doc/glibc-functions/setxattr.texi: Likewise.
77665         * doc/glibc-functions/strcasestr.texi: Likewise.
77667 2008-12-15  Bruno Haible  <bruno@clisp.org>
77669         Fix compilation error on OSF/1 4.0.
77670         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
77671         <sys/time.h>, simply delegate to the system header.
77672         Reported by Daniel Richard G. <oss@teragram.com>.
77674 2008-12-15  Bruno Haible  <bruno@clisp.org>
77676         * doc/posix-functions/openat.texi: Mention the 'openat' module.
77677         * doc/posix-functions/fchmodat.texi: Likewise.
77678         * doc/posix-functions/fchownat.texi: Likewise.
77679         * doc/posix-functions/fdopendir.texi: Likewise.
77680         * doc/posix-functions/fstatat.texi: Likewise.
77681         * doc/posix-functions/mkdirat.texi: Likewise.
77682         * doc/posix-functions/unlinkat.texi: Likewise.
77684 2008-12-14  Bruno Haible  <bruno@clisp.org>
77686         Update doc for POSIX:2008.
77687         * doc/posix-functions/faccessat.texi: New file.
77688         * doc/posix-functions/fchmodat.texi: New file.
77689         * doc/posix-functions/fchownat.texi: New file.
77690         * doc/posix-functions/fdopendir.texi: New file.
77691         * doc/posix-functions/fstatat.texi: New file.
77692         * doc/posix-functions/futimens.texi: New file.
77693         * doc/posix-functions/linkat.texi: New file.
77694         * doc/posix-functions/mkdirat.texi: New file.
77695         * doc/posix-functions/mkfifoat.texi: New file.
77696         * doc/posix-functions/mknodat.texi: New file.
77697         * doc/posix-functions/open_wmemstream.texi: New file.
77698         * doc/posix-functions/openat.texi: New file.
77699         * doc/posix-functions/psiginfo.texi: New file.
77700         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
77701         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
77702         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
77703         * doc/posix-functions/readlinkat.texi: New file.
77704         * doc/posix-functions/renameat.texi: New file.
77705         * doc/posix-functions/strerror_l.texi: New file.
77706         * doc/posix-functions/symlinkat.texi: New file.
77707         * doc/posix-functions/unlinkat.texi: New file.
77708         * doc/posix-functions/utimensat.texi: New file.
77709         * doc/gnulib.texi (Function Substitutes): Add these subsections.
77711 2008-12-14  Bruno Haible  <bruno@clisp.org>
77713         Update doc for POSIX:2008.
77714         * doc/posix-functions/alphasort.texi: Renamed from
77715         doc/glibc-functions/alphasort.texi.
77716         * doc/posix-functions/dirfd.texi: Renamed from
77717         doc/glibc-functions/dirfd.texi.
77718         * doc/posix-functions/dprintf.texi: Renamed from
77719         doc/glibc-functions/dprintf.texi.
77720         * doc/posix-functions/duplocale.texi: Renamed from
77721         doc/glibc-functions/duplocale.texi.
77722         * doc/posix-functions/fexecve.texi: Renamed from
77723         doc/glibc-functions/fexecve.texi.
77724         * doc/posix-functions/fmemopen.texi: Renamed from
77725         doc/glibc-functions/fmemopen.texi.
77726         * doc/posix-functions/freelocale.texi: Renamed from
77727         doc/glibc-functions/freelocale.texi.
77728         * doc/posix-functions/getdate_err.texi: Renamed from
77729         doc/glibc-functions/getdate_err.texi.
77730         * doc/posix-functions/isalnum_l.texi: Renamed from
77731         doc/glibc-functions/isalnum_l.texi.
77732         * doc/posix-functions/isalpha_l.texi: Renamed from
77733         doc/glibc-functions/isalpha_l.texi.
77734         * doc/posix-functions/isblank_l.texi: Renamed from
77735         doc/glibc-functions/isblank_l.texi.
77736         * doc/posix-functions/iscntrl_l.texi: Renamed from
77737         doc/glibc-functions/iscntrl_l.texi.
77738         * doc/posix-functions/isdigit_l.texi: Renamed from
77739         doc/glibc-functions/isdigit_l.texi.
77740         * doc/posix-functions/isgraph_l.texi: Renamed from
77741         doc/glibc-functions/isgraph_l.texi.
77742         * doc/posix-functions/islower_l.texi: Renamed from
77743         doc/glibc-functions/islower_l.texi.
77744         * doc/posix-functions/isprint_l.texi: Renamed from
77745         doc/glibc-functions/isprint_l.texi.
77746         * doc/posix-functions/ispunct_l.texi: Renamed from
77747         doc/glibc-functions/ispunct_l.texi.
77748         * doc/posix-functions/isspace_l.texi: Renamed from
77749         doc/glibc-functions/isspace_l.texi.
77750         * doc/posix-functions/isupper_l.texi: Renamed from
77751         doc/glibc-functions/isupper_l.texi.
77752         * doc/posix-functions/iswalnum_l.texi: Renamed from
77753         doc/glibc-functions/iswalnum_l.texi.
77754         * doc/posix-functions/iswalpha_l.texi: Renamed from
77755         doc/glibc-functions/iswalpha_l.texi.
77756         * doc/posix-functions/iswblank_l.texi: Renamed from
77757         doc/glibc-functions/iswblank_l.texi.
77758         * doc/posix-functions/iswcntrl_l.texi: Renamed from
77759         doc/glibc-functions/iswcntrl_l.texi.
77760         * doc/posix-functions/iswctype_l.texi: Renamed from
77761         doc/glibc-functions/iswctype_l.texi.
77762         * doc/posix-functions/iswdigit_l.texi: Renamed from
77763         doc/glibc-functions/iswdigit_l.texi.
77764         * doc/posix-functions/iswgraph_l.texi: Renamed from
77765         doc/glibc-functions/iswgraph_l.texi.
77766         * doc/posix-functions/iswlower_l.texi: Renamed from
77767         doc/glibc-functions/iswlower_l.texi.
77768         * doc/posix-functions/iswprint_l.texi: Renamed from
77769         doc/glibc-functions/iswprint_l.texi.
77770         * doc/posix-functions/iswpunct_l.texi: Renamed from
77771         doc/glibc-functions/iswpunct_l.texi.
77772         * doc/posix-functions/iswspace_l.texi: Renamed from
77773         doc/glibc-functions/iswspace_l.texi.
77774         * doc/posix-functions/iswupper_l.texi: Renamed from
77775         doc/glibc-functions/iswupper_l.texi.
77776         * doc/posix-functions/iswxdigit_l.texi: Renamed from
77777         doc/glibc-functions/iswxdigit_l.texi.
77778         * doc/posix-functions/isxdigit_l.texi: Renamed from
77779         doc/glibc-functions/isxdigit_l.texi.
77780         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
77781         doc/glibc-functions/mbsnrtowcs.texi.
77782         * doc/posix-functions/mkdtemp.texi: Renamed from
77783         doc/glibc-functions/mkdtemp.texi.
77784         * doc/posix-functions/newlocale.texi: Renamed from
77785         doc/glibc-functions/newlocale.texi.
77786         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
77787         doc/glibc-functions/nl_langinfo_l.texi.
77788         * doc/posix-functions/open_memstream.texi: Renamed from
77789         doc/glibc-functions/open_memstream.texi.
77790         * doc/posix-functions/opterr.texi: Renamed from
77791         doc/glibc-functions/opterr.texi.
77792         * doc/posix-functions/optind.texi: Renamed from
77793         doc/glibc-functions/optind.texi.
77794         * doc/posix-functions/optopt.texi: Renamed from
77795         doc/glibc-functions/optopt.texi.
77796         * doc/posix-functions/psignal.texi: Renamed from
77797         doc/glibc-functions/psignal.texi.
77798         * doc/posix-functions/scandir.texi: Renamed from
77799         doc/glibc-functions/scandir.texi.
77800         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
77801         doc/glibc-functions/sched_get_priority_min.texi.
77802         * doc/posix-functions/signgam.texi: Renamed from
77803         doc/glibc-functions/signgam.texi.
77804         * doc/posix-functions/stpcpy.texi: Renamed from
77805         doc/glibc-functions/stpcpy.texi.
77806         * doc/posix-functions/stpncpy.texi: Renamed from
77807         doc/glibc-functions/stpncpy.texi.
77808         * doc/posix-functions/strcasecmp_l.texi: Renamed from
77809         doc/glibc-functions/strcasecmp_l.texi.
77810         * doc/posix-functions/strcoll_l.texi: Renamed from
77811         doc/glibc-functions/strcoll_l.texi.
77812         * doc/posix-functions/strfmon_l.texi: Renamed from
77813         doc/glibc-functions/strfmon_l.texi.
77814         * doc/posix-functions/strftime_l.texi: Renamed from
77815         doc/glibc-functions/strftime_l.texi.
77816         * doc/posix-functions/strncasecmp_l.texi: Renamed from
77817         doc/glibc-functions/strncasecmp_l.texi.
77818         * doc/posix-functions/strndup.texi: Renamed from
77819         doc/glibc-functions/strndup.texi.
77820         * doc/posix-functions/strnlen.texi: Renamed from
77821         doc/glibc-functions/strnlen.texi.
77822         * doc/posix-functions/strsignal.texi: Renamed from
77823         doc/glibc-functions/strsignal.texi.
77824         * doc/posix-functions/strxfrm_l.texi: Renamed from
77825         doc/glibc-functions/strxfrm_l.texi.
77826         * doc/posix-functions/timer_gettime.texi: Renamed from
77827         doc/glibc-functions/timer_gettime.texi.
77828         * doc/posix-functions/tolower_l.texi: Renamed from
77829         doc/glibc-functions/tolower_l.texi.
77830         * doc/posix-functions/toupper_l.texi: Renamed from
77831         doc/glibc-functions/toupper_l.texi.
77832         * doc/posix-functions/towctrans_l.texi: Renamed from
77833         doc/glibc-functions/towctrans_l.texi.
77834         * doc/posix-functions/towlower_l.texi: Renamed from
77835         doc/glibc-functions/towlower_l.texi.
77836         * doc/posix-functions/towupper_l.texi: Renamed from
77837         doc/glibc-functions/towupper_l.texi.
77838         * doc/posix-functions/uselocale.texi: Renamed from
77839         doc/glibc-functions/uselocale.texi.
77840         * doc/posix-functions/vdprintf.texi: Renamed from
77841         doc/glibc-functions/vdprintf.texi.
77842         * doc/posix-functions/wcpcpy.texi:
77843         Renamed from doc/glibc-functions/wcpcpy.texi.
77844         * doc/posix-functions/wcpncpy.texi: Renamed from
77845         doc/glibc-functions/wcpncpy.texi.
77846         * doc/posix-functions/wcscasecmp.texi: Renamed from
77847         doc/glibc-functions/wcscasecmp.texi.
77848         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
77849         doc/glibc-functions/wcscasecmp_l.texi.
77850         * doc/posix-functions/wcscoll_l.texi: Renamed from
77851         doc/glibc-functions/wcscoll_l.texi.
77852         * doc/posix-functions/wcsdup.texi: Renamed from
77853         doc/glibc-functions/wcsdup.texi.
77854         * doc/posix-functions/wcsncasecmp.texi: Renamed from
77855         doc/glibc-functions/wcsncasecmp.texi.
77856         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
77857         doc/glibc-functions/wcsncasecmp_l.texi.
77858         * doc/posix-functions/wcsnlen.texi: Renamed from
77859         doc/glibc-functions/wcsnlen.texi.
77860         * doc/posix-functions/wcsnrtombs.texi: Renamed from
77861         doc/glibc-functions/wcsnrtombs.texi.
77862         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
77863         doc/glibc-functions/wcsxfrm_l.texi.
77864         * doc/posix-functions/wctrans_l.texi: Renamed from
77865         doc/glibc-functions/wctrans_l.texi.
77866         * doc/posix-functions/wctype_l.texi: Renamed from
77867         doc/glibc-functions/wctype_l.texi.
77868         * doc/gnulib.texi (Function Substitutes): Add these subsections.
77869         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
77870         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
77871         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
77872         these subsections.
77873         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
77874         Remove sections.
77876 2008-12-14  Bruno Haible  <bruno@clisp.org>
77878         Update doc for POSIX:2008.
77879         * doc/posix-functions/*.texi: Update URL of POSIX specification.
77881 2008-12-14  Bruno Haible  <bruno@clisp.org>
77883         Update doc for POSIX:2008.
77884         * doc/pastposix-functions/bcmp.texi: Renamed from
77885         doc/posix-functions/bcmp.texi.
77886         * doc/pastposix-functions/bcopy.texi: Renamed from
77887         doc/posix-functions/bcopy.texi.
77888         * doc/pastposix-functions/bsd_signal.texi: Renamed from
77889         doc/posix-functions/bsd_signal.texi.
77890         * doc/pastposix-functions/bzero.texi: Renamed from
77891         doc/posix-functions/bzero.texi.
77892         * doc/pastposix-functions/ecvt.texi: Renamed from
77893         doc/posix-functions/ecvt.texi.
77894         * doc/pastposix-functions/fcvt.texi: Renamed from
77895         doc/posix-functions/fcvt.texi.
77896         * doc/pastposix-functions/ftime.texi: Renamed from
77897         doc/posix-functions/ftime.texi.
77898         * doc/pastposix-functions/gcvt.texi: Renamed from
77899         doc/posix-functions/gcvt.texi.
77900         * doc/pastposix-functions/getcontext.texi: Renamed from
77901         doc/posix-functions/getcontext.texi.
77902         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
77903         doc/posix-functions/gethostbyaddr.texi.
77904         * doc/pastposix-functions/gethostbyname.texi: Renamed from
77905         doc/posix-functions/gethostbyname.texi.
77906         * doc/pastposix-functions/getwd.texi: Renamed from
77907         doc/posix-functions/getwd.texi.
77908         * doc/pastposix-functions/h_errno.texi: Renamed from
77909         doc/posix-functions/h_errno.texi.
77910         * doc/pastposix-functions/index.texi: Renamed from
77911         doc/posix-functions/index.texi.
77912         * doc/pastposix-functions/makecontext.texi: Renamed from
77913         doc/posix-functions/makecontext.texi.
77914         * doc/pastposix-functions/mktemp.texi: Renamed from
77915         doc/posix-functions/mktemp.texi.
77916         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
77917         doc/posix-functions/pthread_attr_getstackaddr.texi.
77918         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
77919         doc/posix-functions/pthread_attr_setstackaddr.texi.
77920         * doc/pastposix-functions/rindex.texi: Renamed from
77921         doc/posix-functions/rindex.texi.
77922         * doc/pastposix-functions/scalb.texi: Renamed from
77923         doc/posix-functions/scalb.texi.
77924         * doc/pastposix-functions/setcontext.texi: Renamed from
77925         doc/posix-functions/setcontext.texi.
77926         * doc/pastposix-functions/swapcontext.texi: Renamed from
77927         doc/posix-functions/swapcontext.texi.
77928         * doc/pastposix-functions/ualarm.texi: Renamed from
77929         doc/posix-functions/ualarm.texi.
77930         * doc/pastposix-functions/usleep.texi: Renamed from
77931         doc/posix-functions/usleep.texi.
77932         * doc/pastposix-functions/vfork.texi: Renamed from
77933         doc/posix-functions/vfork.texi.
77934         * doc/pastposix-functions/wcswcs.texi: Renamed from
77935         doc/posix-functions/wcswcs.texi.
77936         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
77937         (Function Substitutes): Update.
77939 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77941         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
77942         m4/strerror.m4.
77944 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77945             Bruno Haible  <bruno@clisp.org>
77947         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
77949 2008-12-13  Bruno Haible  <bruno@clisp.org>
77951         * modules/strtoull (Depends-on): Remove unistd.
77953 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77955         * modules/strtoull (Depends-on): Add stdlib.
77957 2008-12-11  Simon Josefsson  <simon@josefsson.org>
77959         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
77961 2008-12-10  Jim Meyering  <meyering@redhat.com>
77963         gl_ASSERT: don't say assertions are disabled when they're not
77964         * m4/assert.m4 (gl_ASSERT): Do not make configure report
77965         "checking whether to enable assertions... no", when they are in
77966         fact enabled.  This is solely a bug in the output of configure.
77967         In spite of saying "no", NDEBUG was not defined in that case.
77968         Also, as noted by Eric Blake, leave assertions enabled upon
77969         --enable-assert=INVALID.
77971 2008-12-10  Bruno Haible  <bruno@clisp.org>
77973         Change MODULES.html to refer to POSIX:2008 where possible.
77974         * MODULES.html.sh (POSIX2008_URL): New variable.
77975         (posix_headers): Remove sys/timeb, ucontext.
77976         (posix2001_headers): New variable.
77977         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
77978         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
77979         index, makecontext, mktemp, pthread_attr_getstackaddr,
77980         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
77981         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
77982         (posix2001_functions): New variable.
77983         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
77984         otherwise.
77986 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77988         add missing include to parse-duration.c
77989         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
77990         * modules/parse-duration (Depends-on): Add xalloc.
77992         fix sed script reading maint.mk
77993         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
77994         (syntax-check-rules): Use it.
77996 2008-12-09  Bruno Haible  <bruno@clisp.org>
77998         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
77999         MacOS X 10.4/PowerPC.
78000         Reported by Simon Josefsson.
78002 2008-12-08  Jim Meyering  <meyering@redhat.com>
78004         work around mingw's lack of some S_IF definitions
78005         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
78006         Reported by Simon Josefsson.
78008 2008-12-08  Bruno Haible  <bruno@clisp.org>
78010         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
78011         applied to variables. Needed on MacOS X 10.4/PowerPC.
78012         Reported by Simon Josefsson.
78014 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
78015         and Eric Blake  <ebb9@byu.net>
78017         assert: honor --enable-assert
78018         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
78019         order to honor --enable-assert, rather than treating it as a
78020         synonym for --disable-assert.
78022 2008-12-08  Jim Meyering  <meyering@redhat.com>
78024         * lib/posixtm.c: Remove now-useless declaration of mktime.
78026         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
78028 2008-12-07  Bruno Haible  <bruno@clisp.org>
78030         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
78031         test_once): Mark functions as static.
78032         * tests/test-tls.c (test_tls): Likewise.
78034 2008-12-07  Bruno Haible  <bruno@clisp.org>
78036         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
78037         iconv_register_autodetect.
78039 2008-12-07  Jim Meyering  <meyering@redhat.com>
78041         posixtm.c: avoid a warning
78042         * lib/posixtm.c (posixtime): Don't initialize tm0.
78043         It's no longer needed to placate gcc4's -Wuninitialized,
78044         and the attempt to placate would elicit a new warning.
78046         unicodeio.c: mark unused parameters
78047         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
78048         (fallback_failure_callback): Likewise.
78050 2008-12-07  Bruno Haible  <bruno@clisp.org>
78052         * gnulib-tool (func_create_testdir): When building the tests
78053         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
78054         Reported by Simon Josefsson.
78056 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78058         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
78060 2008-12-06  Bruno Haible  <bruno@clisp.org>
78062         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
78063         Suggested by Eric Blake.
78065 2008-12-06  Bruno Haible  <bruno@clisp.org>
78067         Fix a c-stack test failure on MacOS X.
78068         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
78069         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
78070         handler for SIGBUS as well.
78071         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
78072         install a signal handler for SIGBUS as well.
78073         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
78075 2008-12-06  Bruno Haible  <bruno@clisp.org>
78077         Advocacy documentation.
78078         * doc/gnulib-intro.texi (Benefits): New section.
78079         * doc/gnulib.texi: Update.
78081 2008-12-06  Bruno Haible  <bruno@clisp.org>
78083         Document the 'manywarnings' module.
78084         * doc/manywarnings.texi: New file.
78085         * doc/gnulib.texi: Include it.
78087 2008-12-05  Eric Blake  <ebb9@byu.net>
78089         tests: silence some gcc warnings
78090         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
78091         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
78092         type mismatches.
78094 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78095             Bruno Haible  <bruno@clisp.org>
78097         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
78099 2008-11-29  Jim Meyering  <meyering@redhat.com>
78101         unicodeio.c: mark unused parameters
78102         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
78103         (fallback_failure_callback): Likewise.
78105         fts: fix a thinko
78106         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
78107         (set_stat_type): Return S_IF*-valued "type" directly.
78108         Prompted by James Youngman's spotting a related bug.
78109         Confirmed by further testing through find.
78111         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
78112         * lib/fts.c (D_TYPE): Define.
78113         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
78114         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
78115         (s_ifmt_shift_bits): New function.
78116         (set_stat_type): New function.
78117         (fts_build): When not calling fts_stat, call set_stat_type
78118         to propagate dirent.d_type info to fts_read caller.
78119         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
78120         fts_statp->st_mode type information may be valid.
78122 2008-11-28  Simon Josefsson  <simon@josefsson.org>
78124         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
78125         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
78126         <sds@gnu.org>.
78128 2008-11-20  Bruno Haible  <bruno@clisp.org>
78130         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
78131         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
78132         INCLUDE_NEXT.
78133         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
78134         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
78135         * modules/math (Makefile.am): Substitute
78136         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
78137         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
78139 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
78140             Bruno Haible  <bruno@clisp.org>
78142         * lib/stdint.in.h: Define all type macros so that their expansion is
78143         a single typedef'ed token. Fixes a compilation failure in Boost which
78144         does "using ::int8_t;".
78146 2008-11-18  Simon Josefsson  <simon@josefsson.org>
78148         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
78149         gl_MANYWARN_ALL_GCC.
78150         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
78151         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
78152         * modules/manywarnings: New file.
78153         * MODULES.html.sh: Mention manywarnings module.
78155 2008-11-18  Bruno Haible  <bruno@clisp.org>
78157         * doc/gnulib-tool.texi (Unit tests): New section.
78159 2008-11-18  Simon Josefsson  <simon@josefsson.org>
78161         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
78162         paths like 'lib/po/foo.po'.
78164 2008-11-17  Simon Josefsson  <simon@josefsson.org>
78166         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
78167         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
78169 2008-11-17  Simon Josefsson  <simon@josefsson.org>
78171         * m4/warnings.m4: Use CPPFLAGS to really check whether the
78172         parameter works.
78174 2008-11-17  Simon Josefsson  <simon@josefsson.org>
78176         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
78178 2008-11-17  Bruce Korb  <bkorb@gnu.org>
78180         * modules/parse-duration-tests: New file.
78181         * tests/test-parse-duration.sh: New file.
78182         * tests/test-parse-duration.c: New file.
78184         New module 'parse-duration'.
78185         * lib/parse-duration.h: New file.
78186         * lib/parse-duration.c: New file.
78187         * modules/parse-duration: New file.
78189 2008-11-17  Bruno Haible  <bruno@clisp.org>
78191         * tests/test-select-out.sh: Comment out the first pipe test.
78192         Reported by Simon Josefsson.
78194 2008-11-17  Bruno Haible  <bruno@clisp.org>
78196         * modules/getaddrinfo (Depends-on): Add servent, hostent.
78197         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
78198         gl_HOSTENT.
78200 2008-11-17  Bruno Haible  <bruno@clisp.org>
78202         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
78203         -lnetwork and -lnet. Needed for Haiku and BeOS.
78205 2008-11-16  Bruno Haible  <bruno@clisp.org>
78207         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
78209 2008-11-16  Bruno Haible  <bruno@clisp.org>
78211         Avoid test failure on Haiku.
78212         * tests/test-fsync.c: Include <errno.h>.
78213         (main): Don't require that fsync (0) fails.
78215 2008-11-15  Bruno Haible  <bruno@clisp.org>
78217         New module 'hostent'.
78218         * modules/hostent: New file.
78219         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
78221 2008-11-15  Bruno Haible  <bruno@clisp.org>
78223         New module 'servent'.
78224         * modules/servent: New file.
78225         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
78227 2008-11-15  Bruno Haible  <bruno@clisp.org>
78229         Avoid generating same test program with two different rules.
78230         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
78231         test-frexp to test-frexp-nolibm.
78232         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
78233         test-frexpl to test-frexpl-nolibm.
78235 2008-11-15  Bruno Haible  <bruno@clisp.org>
78237         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
78238         $(FREXPL_LIBM).
78240 2008-11-15  Bruno Haible  <bruno@clisp.org>
78242         * lib/netdb.in.h: Activate the definitions also when the system's
78243         <netdb.h> has 'struct addrinfo'.
78244         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
78245         EAI_OVERFLOW or AI_NUMERICSERV.
78246         * doc/posix-headers/netdb.texi: Document the problem.
78248 2008-11-15  Bruno Haible  <bruno@clisp.org>
78250         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
78252         Make the 'sched' module work on platforms where <sched.h> exists but
78253         is incomplete (such as Haiku).
78254         * lib/sched.in.h; Include the system's <sched.h> if it exists.
78255         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
78256         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
78257         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
78258         HAVE_STRUCT_SCHED_PARAM.
78259         * modules/sched (Depends-on): Add include_next.
78260         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
78261         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
78262         * doc/posix-headers/sched.texi: Document the issue.
78264 2008-11-13  Jim Meyering  <meyering@redhat.com>
78266         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
78267         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
78268         test would fail due to the difference in the Report bugs to ...
78269         line.  The expected address is empty, "<>", while the actual
78270         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
78272 2008-11-12  Bruno Haible  <bruno@clisp.org>
78274         lstat: don't compile lstat.c on systems lacking lstat
78275         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
78276         which don't have lstat; this is handled by lib/sys_stat.in.h already.
78277         Reported by Daniel P. Berrange via Jim Meyering.
78279 2008-11-12  Jim Meyering  <meyering@redhat.com>
78281         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
78283 2008-11-12  Simon Josefsson  <simon@josefsson.org>
78285         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
78286         instead.
78288 2008-11-12  Bruno Haible  <bruno@clisp.org>
78290         * lib/unicodeio.c: Include unistr.h.
78291         (utf8_wctomb): Remove function.
78292         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
78294 2008-11-12  Simon Josefsson  <simon@josefsson.org>
78296         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
78297         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
78298         <bruno@clisp.org>.
78299         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
78301 2008-11-12  Simon Josefsson  <simon@josefsson.org>
78303         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
78304         * doc/gnulib.texi: Add section for warnings.
78306 2008-11-11  Bruno Haible  <bruno@clisp.org>
78308         * lib/sockets.h: Add a comment.
78310 2008-11-11  Karl Berry  <karl@gnu.org>
78312         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
78314 2008-11-11  Eric Blake  <ebb9@byu.net>
78316         fdl.texi: avoid git symlinks
78317         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
78319 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
78321         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
78323 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
78325         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
78326         (gl_WARN_ADD): Substitute $2 if literal.
78328 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
78330         * m4/warning.m4: Remove.
78332 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
78334         * m4/warnings.m4: Almost complete rewrite. :-)
78336 2008-11-10  Simon Josefsson  <simon@josefsson.org>
78338         * modules/warnings: New module.
78339         * m4/warnings.m4: New file.
78340         * MODULES.html.sh: Mention warnings module.
78341         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
78342         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78344 2008-11-10  Eric Blake  <ebb9@byu.net>
78346         fdl.texi: make a symlink to the latest version
78347         * doc/standards.texi: Revert today's earlier change.
78348         * doc/fdl-1.2.texi: Rename from old fdl.texi...
78349         * doc/fdl.texi: ...and replace this with a symlink to the newer
78350         fdl-1.3.texi.
78352 2008-11-10  Bruno Haible  <bruno@clisp.org>
78354         * tests/test-select-fd.c (main): Accept the result file name as fourth
78355         argument.
78356         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
78357         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
78359 2008-11-10  Bruno Haible  <bruno@clisp.org>
78361         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
78362         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
78363         as autoconf-substituted macros.
78364         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
78365         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
78366         gl_NETDB_H_DEFAULTS. Set these variables.
78367         * modules/netdb (Makefile.am): Substitute these variables.
78369 2008-11-10  Eric Blake  <ebb9@byu.net>
78371         standards.texi: include correct file for FDL 1.3
78372         * doc/standards.texi (GNU Free Documentation License): Change
78373         include file to pull in FDL 1.3, not 1.2.
78375         fdl.texi: revert accidental change to license
78376         * doc/fdl.texi: This is FDL 1.2, not 1.3.
78378 2008-11-10  Bruno Haible  <bruno@clisp.org>
78380         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
78381         cross-compiling guesses also when the native compile gives no result.
78383 2008-11-10  Bruno Haible  <bruno@clisp.org>
78385         * lib/spawni.c (__spawni): Force variable into the stack.
78387 2008-11-10  Bruno Haible  <bruno@clisp.org>
78389         Add support for Haiku.
78390         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
78391         glibc and BeOS, but also on Haiku.
78392         * lib/fpurge.c (fpurge): Likewise.
78393         * lib/freadable.c (freadable): Likewise.
78394         * lib/freadahead.c (freadahead): Likewise.
78395         * lib/freading.c (freading): Likewise.
78396         * lib/freadptr.c (freadptr): Likewise.
78397         * lib/freadseek.c (freadptrinc): Likewise.
78398         * lib/fseeko.c (rpl_fseeko): Likewise.
78399         * lib/fseterr.c (fseterr): Likewise.
78400         * lib/fwritable.c (fwritable): Likewise.
78401         * lib/fwriting.c (fwriting): Likewise.
78402         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
78404 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
78406         * lib/config.charset: Treat Haiku like BeOS.
78408 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
78410         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
78411         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
78413 2008-11-08  Bruno Haible  <bruno@clisp.org>
78415         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
78416         AC_CACHE_CHECK.
78418 2008-11-08  Bruno Haible  <bruno@clisp.org>
78420         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
78422 2008-11-08  Bruno Haible  <bruno@clisp.org>
78424         * tests/test-select-fd.c: New file.
78425         * tests/test-select-in.sh: New file.
78426         * tests/test-select-out.sh: New file.
78427         * tests/test-select-stdin.c: New file.
78428         * modules/select-tests (Files): Add the new files.
78429         (Depends-on): Add gettimeofday.
78430         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
78431         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
78432         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
78434 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
78435             Bruno Haible  <bruno@clisp.org>
78437         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
78439 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
78441         * build-aux/pmccabe2html: Added support for C++ source files.
78443 2008-11-05  Ben Pfaff  <blp@gnu.org>
78445         Fix lib/close.c build on Windows.
78446         * modules/close (Files): Add lib/w32sock.h.
78448 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
78450         Accept Bison's NEWS format.
78451         * build-aux/announce-gen (print_news_deltas): Tweak
78452         $re_prefix.
78454 2008-11-04  Bruno Haible  <bruno@clisp.org>
78456         * modules/random_r (Maintainer): Add glibc.
78458 2008-11-04  Simon Josefsson  <simon@josefsson.org>
78460         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
78461         by karl@freefriends.org (Karl Berry).
78462         * doc/alloca.texi: Likewise.
78463         * doc/c-ctype.texi: Likewise.
78464         * doc/c-strcase.texi: Likewise.
78465         * doc/c-strcaseeq.texi: Likewise.
78466         * doc/c-strcasestr.texi: Likewise.
78467         * doc/c-strstr.texi: Likewise.
78468         * doc/c-strtod.texi: Likewise.
78469         * doc/c-strtold.texi: Likewise.
78470         * doc/ctime.texi: Likewise.
78471         * doc/error.texi: Likewise.
78472         * doc/fdl.texi: Likewise.
78473         * doc/gcd.texi: Likewise.
78474         * doc/getdate.texi: Likewise.
78475         * doc/gnulib-intro.texi: Likewise.
78476         * doc/gnulib-tool.texi: Likewise.
78477         * doc/gnulib.texi: Likewise.
78478         * doc/inet_ntoa.texi: Likewise.
78479         * doc/maintain.texi: Likewise.
78480         * doc/make-stds.texi: Likewise.
78481         * doc/quote.texi: Likewise.
78482         * doc/regexprops-generic.texi: Likewise.
78483         * doc/standards.texi: Likewise.
78484         * doc/verify.texi: Likewise.
78485         * doc/visibility.texi: Likewise.
78486         * doc/gnulib.texi (GNU Free Documentation License): Include
78487         fdl-1.3.texi instead of fdl.texi.
78489 2008-11-04  Simon Josefsson  <simon@josefsson.org>
78491         * doc/fdl-1.3.texi: New file, from
78492         <http://www.gnu.org/licenses/fdl-1.3.texi>.
78493         * modules/fdl-1.3: Add.
78494         * MODULES.html.sh: Add fdl-1.3.
78496 2008-11-03  Bruno Haible  <bruno@clisp.org>
78498         Make determination of absolute name of header file work with AIX xlc.
78499         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
78500         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
78501         preprocessing.
78502         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
78503         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
78505 2008-11-03  Simon Josefsson  <simon@josefsson.org>
78507         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
78508         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
78509         <ludo@gnu.org>.
78511 2008-11-02  Bruno Haible  <bruno@clisp.org>
78513         Mark 'strpbrk' obsolete.
78514         * modules/strpbrk (Status, Notice): New sections.
78515         * modules/strtok_r (Depends-on): Add strpbrk.
78517 2008-11-02  Bruno Haible  <bruno@clisp.org>
78519         Mark 'strdup' obsolete.
78520         * modules/strdup (Status, Notice): New sections.
78521         * modules/findprog (Depends-on): Add strdup.
78522         * modules/getaddrinfo (Depends-on): Likewise.
78523         * modules/localename (Depends-on): Likewise.
78524         * modules/relocatable-lib (Depends-on): Likewise.
78525         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
78526         * modules/relocatable-prog (Depends-on): Likewise.
78527         * modules/trim (Depends-on): Likewise.
78528         * modules/unictype/gen-ctype (Depends-on): Likewise.
78529         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
78531 2008-11-02  Bruno Haible  <bruno@clisp.org>
78533         Mark 'strcspn' obsolete.
78534         * modules/strcspn (Status, Notice): New sections.
78536 2008-11-02  Bruno Haible  <bruno@clisp.org>
78538         Mark 'rmdir' obsolete.
78539         * modules/rmdir (Status, Notice): New sections.
78540         * modules/clean-temp (Depends-on): Add rmdir.
78541         * modules/openat (Depends-on): Likewise.
78543 2008-11-02  Bruno Haible  <bruno@clisp.org>
78545         Mark 'raise' obsolete.
78546         * modules/raise (Status, Notice): New sections.
78547         (Include): Specify <signal.h>.
78548         * modules/stdio (Depends-on): Add raise.
78549         * modules/write (Depends-on): Likewise.
78551 2008-11-02  Bruno Haible  <bruno@clisp.org>
78553         Mark 'memset' obsolete.
78554         * modules/memset (Status, Notice): New sections.
78556 2008-11-02  Bruno Haible  <bruno@clisp.org>
78558         Mark 'memmove' obsolete.
78559         * modules/memmove (Status, Notice): New sections.
78560         * modules/argp (Depends-on): Add memmove.
78561         * modules/argz (Depends-on): Likewise.
78562         * modules/canonicalize (Depends-on): Likewise.
78563         * modules/canonicalize-lgpl (Depends-on): Likewise.
78564         * modules/fts (Depends-on): Likewise.
78565         * modules/getcwd (Depends-on): Likewise.
78566         * modules/human (Depends-on): Likewise.
78567         * modules/regex (Depends-on): Likewise.
78568         * modules/striconveh (Depends-on): Likewise.
78569         * modules/trim (Depends-on): Likewise.
78570         * modules/unistr/u8-move (Depends-on): Likewise.
78571         * modules/unistr/u16-move (Depends-on): Likewise.
78572         * modules/unistr/u32-move (Depends-on): Likewise.
78574 2008-11-02  Bruno Haible  <bruno@clisp.org>
78576         Mark 'memcpy' obsolete.
78577         * modules/memcpy (Status, Notice): New sections.
78579 2008-11-02  Bruno Haible  <bruno@clisp.org>
78581         Mark 'memcmp' obsolete.
78582         * modules/memcmp (Status, Notice): New sections.
78583         * modules/argmatch (Depends-on): Add memchr.
78584         * modules/backupfile (Depends-on): Likewise.
78585         * modules/c-strcasestr (Depends-on): Likewise.
78586         * modules/crypto/des (Depends-on): Likewise.
78587         * modules/csharpcomp (Depends-on): Likewise.
78588         * modules/fnmatch (Depends-on): Likewise.
78589         * modules/git-merge-changelog (Depends-on): Likewise.
78590         * modules/isnand (Depends-on): Likewise.
78591         * modules/isnand-nolibm (Depends-on): Likewise.
78592         * modules/isnanf (Depends-on): Likewise.
78593         * modules/isnanf-nolibm (Depends-on): Likewise.
78594         * modules/isnanl (Depends-on): Likewise.
78595         * modules/isnanl-nolibm (Depends-on): Likewise.
78596         * modules/mbchar (Depends-on): Likewise.
78597         * modules/memcoll (Depends-on): Likewise.
78598         * modules/quotearg (Depends-on): Likewise.
78599         * modules/regex (Depends-on): Likewise.
78600         * modules/relocatable-prog (Depends-on): Likewise.
78601         * modules/same (Depends-on): Likewise.
78602         * modules/signbit (Depends-on): Likewise.
78603         * modules/strcasestr-simple (Depends-on): Likewise.
78604         * modules/unictype/gen-ctype (Depends-on): Likewise.
78605         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
78606         * modules/uniname/uniname (Depends-on): Likewise.
78607         * modules/unistr/u8-cmp (Depends-on): Likewise.
78609 2008-11-02  Bruno Haible  <bruno@clisp.org>
78611         Mark 'memchr' obsolete.
78612         * modules/memchr (Status, Notice): New sections.
78613         * modules/argp (Depends-on): Add memchr.
78614         * modules/base64 (Depends-on): Likewise.
78615         * modules/c-strcasestr (Depends-on): Likewise.
78616         * modules/chdir-long (Depends-on): Likewise.
78617         * modules/fnmatch (Depends-on): Likewise.
78618         * modules/getsubopt (Depends-on): Likewise.
78619         * modules/git-merge-changelog (Depends-on): Likewise.
78620         * modules/glob (Depends-on): Likewise.
78621         * modules/strcasestr-simple (Depends-on): Likewise.
78622         * modules/strnlen (Depends-on): Likewise.
78624 2008-11-02  Bruno Haible  <bruno@clisp.org>
78626         Mark 'atexit' obsolete.
78627         * modules/atexit (Status, Notice): New sections.
78628         * modules/chdir-long (Depends-on): Add atexit.
78629         * modules/wait-process (Depends-on): Likewise.
78631 2008-11-02  Bruno Haible  <bruno@clisp.org>
78633         * gnulib-tool: New option --with-obsolete.
78634         (func_usage): Document it.
78635         (func_modules_transitive_closure): Drop obsolete dependencies if
78636         incobsolete is not true.
78637         (func_import): Read and save the incobsolete variable to the cache.
78639 2008-11-02  Bruno Haible  <bruno@clisp.org>
78641         * modules/TEMPLATE-EXTENDED: New field 'Status'.
78642         * gnulib-tool: New option --extract-status.
78643         (func_usage): Document it.
78644         (sed_extract_prog): Recognize it.
78645         (func_get_status): New function.
78647 2008-10-30  Simon Josefsson  <simon@josefsson.org>
78649         * modules/sockets (License): Change from LGPL to LGPLv2+.
78651 2008-10-28  Simon Josefsson  <simon@josefsson.org>
78653         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
78655 2008-10-28  Simon Josefsson  <simon@josefsson.org>
78657         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78658         Mention times and sys_times.
78659         * modules/sys_times, modules/sys_times-tests: New modules.
78660         * modules/times, modules/times-tests: Likewise
78661         * m4/sys_times_h.m4: New file.
78662         * lib/sys_times.in.h: Likewise
78663         * lib/times.c: Likewise.
78664         * tests/test-sys_times.c: Likewise.
78665         * tests/test-times.c: Likewise.
78666         * doc/posix-headers/sys_times.texi: Update.
78667         * doc/posix-functions/times.texi: Update.
78669 2008-10-28  Jim Meyering  <meyering@redhat.com>
78671         * modules/tempname (Depends-on): Add lstat.
78673         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
78675 2008-10-28  Simon Josefsson  <simon@josefsson.org>
78677         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
78678         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
78679         using idiom used elsewhere in gnulib.
78681 2008-10-27  Jim Meyering  <meyering@redhat.com>
78683         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
78685 2008-10-27  Simon Josefsson  <simon@josefsson.org>
78687         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
78688         TESTS_ENVIRONMENT, for shell scripts that needs to call built
78689         programs.
78690         * tests/test-argp-2.sh: Use $EXEEXT when needed.
78692 2008-10-27  Simon Josefsson  <simon@josefsson.org>
78694         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
78696 2008-10-27  Bruno Haible  <bruno@clisp.org>
78698         * tests/test-lstat.c: Include <stdio.h>.
78700 2008-10-27  Simon Josefsson  <simon@josefsson.org>
78702         * modules/lstat-tests: New module.
78703         * tests/test-lstat.c: New file.
78705 2008-10-26  Jim Meyering  <meyering@redhat.com>
78707         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
78709 2008-10-26  Simon Josefsson  <simon@josefsson.org>
78710             Bruno Haible  <bruno@clisp.org>
78712         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
78713         * modules/configmake (Include): Add a note that the include must come
78714         after all system headers.
78715         * lib/javaversion.c: Include configmake.h after all other includes.
78717 2008-10-26  Bruno Haible  <bruno@clisp.org>
78719         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
78720         HAVE_STRUCT_RANDOM_DATA to 1.
78721         (gl_STDLIB_H): Simplify.
78723 2008-10-26  Simon Josefsson  <simon@josefsson.org>
78725         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
78726         substitute HAVE_STRUCT_RANDOM_DATA.
78727         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
78728         random_data.
78729         * modules/stdlib (Makefile.am): Substitute
78730         HAVE_STRUCT_RANDOM_DATA.
78732 2008-10-26  Simon Josefsson  <simon@josefsson.org>
78734         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
78735         * doc/gnulib-intro.texi (Copyright): Likewise.
78737 2008-10-26  Simon Josefsson  <simon@josefsson.org>
78739         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
78740         findings.
78742 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
78743             Bruno Haible  <bruno@clisp.org>
78745         * lib/unistd.in.h: Include <winsock2.h>.
78746         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
78747         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
78748         Provide dummy declarations.
78749         (gethostname): Override.
78750         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
78751         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
78752         gl_PREREQ_SYS_H_WINSOCK2.
78753         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
78754         * doc/posix-functions/gethostname.texi: More details.
78756 2008-10-25  Bruno Haible  <bruno@clisp.org>
78758         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
78759         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
78760         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
78762         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
78763         here ...
78764         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
78765         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
78766         gl_UNISTD_H_DEFAULTS.
78768 2008-10-25  Eric Blake  <ebb9@byu.net>
78770         signbit: avoid spurious compiler failure
78771         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
78772         declarations inside function.
78774 2008-10-24  Simon Josefsson  <simon@josefsson.org>
78775             Bruno Haible  <bruno@clisp.org>
78777         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
78778         * modules/random_r (Depends-on): Add stdint.
78780 2008-10-24  Bruno Haible  <bruno@clisp.org>
78782         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
78783         Eggert.
78784         * modules/strerror (License): Likewise.
78786 2008-10-24  Jim Meyering  <meyering@redhat.com>
78788         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
78789         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
78791 2008-10-24  Eric Blake  <ebb9@byu.net>
78793         getgroups: fix compilation when getgroups is available
78794         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
78795         but with <config.h> override of getgroups disabled.
78797 2008-10-24  Simon Josefsson  <simon@josefsson.org>
78799         * doc/gnulib.texi (Header files): Add note about C++ problems.
78800         Explained by Bruno Haible <bruno@clisp.org>.
78802 2008-10-23  Bruno Haible  <bruno@clisp.org>
78804         Define a dummy SA_NODEFER macro on Interix.
78805         * lib/signal.in.h (SA_NODEFER): Define fallback.
78806         Reported by Aleksey Cheusov <cheusov@tut.by> via
78807         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
78809 2008-10-23  Bruno Haible  <bruno@clisp.org>
78811         * modules/freadahead (License): Change to LGPLv2+.
78812         Suggested by Simon Josefsson.
78814 2008-10-23  Jim Meyering  <meyering@redhat.com>
78816         random_r: new module
78817         * modules/random_r: New file.
78818         * m4/random_r.m4: New file.
78819         * lib/random_r.c: New file, from glibc.
78820         * modules/random_r-tests: New file.
78821         * tests/test-random_r.c: New file.
78822         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
78823          Declare.
78824         (RAND_MAX): Define.
78825         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
78826         * modules/stdlib: Substitute them, too.
78827         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
78828         * doc/glibc-functions/initstate_r.texi: Mention the new module.
78829         * doc/glibc-functions/random_r.texi: Likewise.
78830         * doc/glibc-functions/setstate_r.texi: Likewise.
78831         * doc/glibc-functions/srandom_r.texi: Likewise.
78832         * config/srclist.txt: Mention it.
78834 2008-10-23  David Lutterkort  <lutter@redhat.com>
78836         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
78837         link requirement
78839 2008-10-23  Jim Meyering  <meyering@redhat.com>
78841         selinux-h: mark parameters of stub functions as intentionally unused
78842         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
78843         * lib/se-context.in.h: Likewise.
78845 2008-10-22  Simon Josefsson  <simon@josefsson.org>
78847         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
78849 2008-10-22  Simon Josefsson  <simon@josefsson.org>
78851         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
78853 2008-10-22  Eric Blake  <ebb9@byu.net>
78855         glthread/thread: avoid compiler warning
78856         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
78857         Add unreachable abort to silence compiler.
78859 2008-10-22  Eric Blake  <ebb9@byu.net>
78861         netdb: also supply struct addrinfo for cygwin 1.5.x
78862         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
78863         older cygwin.
78864         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
78865         cygwin.
78866         * doc/posix-headers/netdb.texi (netdb.h): Document this.
78868 2008-10-22  Bruno Haible  <bruno@clisp.org>
78870         * users.txt: Update entry about pspp.
78872 2008-10-21  Bruno Haible  <bruno@clisp.org>
78874         Simplification.
78875         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
78876         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
78878         Simplification.
78879         * lib/ioctl.c (ioctl): Don't undefine.
78880         * lib/socket.c (socket): Don't undefine.
78882         Remove unused module indicator macros.
78883         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
78884         GNULIB_$1 as a C macro.
78886         * doc/posix-functions/close.texi: Undo last change.
78887         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
78888         Windows platforms.
78890 2008-10-21  Bruno Haible  <bruno@clisp.org>
78892         Add gethostname() declaration to <unistd.h>.
78893         * lib/unistd.in.h (gethostname): New declaration.
78894         * lib/gethostname.c: Include <unistd.h>.
78895         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
78896         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
78897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
78898         and HAVE_GETHOSTNAME.
78899         * modules/gethostname (Depends-on): Add unistd.
78900         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
78901         (Include): Specify <unistd.h>.
78902         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
78903         HAVE_GETHOSTNAME.
78904         * tests/test-gethostname.c: Include <unistd.h> first.
78906 2008-10-21  Bruno Haible  <bruno@clisp.org>
78908         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
78909         * modules/select-tests (Depends-on): Likewise.
78910         Reported by Simon Josefsson.
78912 2008-10-21  Simon Josefsson  <simon@josefsson.org>
78914         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
78915         * lib/accept.c: New file, based on winsock.c.
78916         * lib/bind.c: New file, based on winsock.c.
78917         * lib/connect.c: New file, based on winsock.c.
78918         * lib/getpeername.c: New file, based on winsock.c.
78919         * lib/getsockname.c: New file, based on winsock.c.
78920         * lib/getsockopt.c: New file, based on winsock.c.
78921         * lib/ioctl.c: New file, based on winsock.c.
78922         * lib/listen.c: New file, based on winsock.c.
78923         * lib/recv.c: New file, based on winsock.c.
78924         * lib/recvfrom.c: New file, based on winsock.c.
78925         * lib/send.c: New file, based on winsock.c.
78926         * lib/sendto.c: New file, based on winsock.c.
78927         * lib/setsockopt.c: New file, based on winsock.c.
78928         * lib/shutdown.c: New file, based on winsock.c.
78929         * lib/socket.c: New file, based on winsock.c.
78930         * lib/w32sock.h: New file, based on winsock.c.
78931         * lib/winsock.c: Remove file.
78932         * modules/accept: Likewise.
78933         * modules/bind: Likewise.
78934         * modules/connect: Likewise.
78935         * modules/getpeername: Likewise.
78936         * modules/getsockname: Likewise.
78937         * modules/getsockopt: Likewise.
78938         * modules/ioctl: Likewise.
78939         * modules/listen: Likewise.
78940         * modules/recv: Likewise.
78941         * modules/recvfrom: Likewise.
78942         * modules/send: Likewise.
78943         * modules/sendto: Likewise.
78944         * modules/setsockopt: Likewise.
78945         * modules/shutdown: Likewise.
78946         * modules/socket: Use socket.c instead of winsock.c.
78947         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
78948         * doc/posix-functions/accept.texi: Doc fix.
78949         * doc/posix-functions/bind.texi: Doc fix.
78950         * doc/posix-functions/close.texi: Doc fix.
78951         * doc/posix-functions/connect.texi: Doc fix.
78952         * doc/posix-functions/getpeername.texi: Doc fix.
78953         * doc/posix-functions/getsockname.texi: Doc fix.
78954         * doc/posix-functions/getsockopt.texi: Doc fix.
78955         * doc/posix-functions/ioctl.texi: Doc fix.
78956         * doc/posix-functions/listen.texi: Doc fix.
78957         * doc/posix-functions/recv.texi: Doc fix.
78958         * doc/posix-functions/recvfrom.texi: Doc fix.
78959         * doc/posix-functions/send.texi: Doc fix.
78960         * doc/posix-functions/sendto.texi: Doc fix.
78961         * doc/posix-functions/setsockopt.texi: Doc fix.
78962         * doc/posix-functions/shutdown.texi: Doc fix.
78963         * doc/posix-functions/socket.texi: Doc fix.
78965 2008-10-20  Bruno Haible  <bruno@clisp.org>
78967         Take into account the role of SIGABRT_COMPAT on Windows 2008.
78968         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
78969         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
78970         as an alias for SIGABRT.
78971         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
78972         (sigaction): Map it to SIGABRT.
78973         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
78975 2008-10-20  Bruno Haible  <bruno@clisp.org>
78977         * lib/fts.c: Don't include lstat.h.
78978         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
78980         Move the lstat() declaration to <sys/stat.h>.
78981         * lib/lstat.h: Remove file.
78982         * lib/sys_stat.in.h: Add special invocation convention.
78983         (lstat): New declaration.
78984         * lib/lstat.c (orig_lstat): New function.
78985         (rpl_lstat): Use orig_lstat instead of lstat.
78986         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
78987         AC_C_INLINE. Set REPLACE_LSTAT.
78988         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
78989         and REPLACE_LSTAT.
78990         * modules/lstat (Files): Remove lib/lstat.h.
78991         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
78992         (Include): Specify <sys/stat.h> instead of lstat.h.
78993         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
78994         REPLACE_LSTAT.
78995         * NEWS: Mention the change.
78997 2008-10-20  Bruno Haible  <bruno@clisp.org>
78999         * modules/posix_spawn-tests: New file.
79000         * tests/test-posix_spawn3.c: New file.
79002 2008-10-20  Bruno Haible  <bruno@clisp.org>
79004         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
79005         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
79006         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
79007         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
79008         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
79010 2008-10-20  Bruno Haible  <bruno@clisp.org>
79012         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
79013         of posix_spawn on AIX 5.3.
79015 2008-10-20  Bruno Haible  <bruno@clisp.org>
79017         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
79019 2008-10-20  Bruno Haible  <bruno@clisp.org>
79021         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
79022         of AC_LANG_PROGRAM.
79024 2008-10-20  Simon Josefsson  <simon@josefsson.org>
79026         * lib/netdb.in.h: Don't define GNU specific constants until they
79027         are supported or needed.  Reported by Bruno Haible
79028         <bruno@clisp.org>.
79030 2008-10-20  Simon Josefsson  <simon@josefsson.org>
79032         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
79034 2008-10-20  Simon Josefsson  <simon@josefsson.org>
79036         * lib/getaddrinfo.h: Remove file.
79037         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
79038         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
79039         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
79040         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
79041         * modules/netdb: Substitute GNULIB_GETADDRINFO.
79042         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
79043         * tests/test-getaddrinfo.c: Likewise.
79044         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
79045         * NEWS: Mention change.
79047 2008-10-19  Bruno Haible  <bruno@clisp.org>
79049         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
79051 2008-10-19  Bruno Haible  <bruno@clisp.org>
79053         * lib/wait-process.c: Include simply <sys/wait.h>.
79054         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
79055         WIFSTOPPED): Remove fallback definitions.
79056         * modules/wait-process (Depends-on): Add sys_wait.
79058         New module 'sys_wait'.
79059         * modules/sys_wait: New file.
79060         * lib/sys_wait.in.h: New file, partially copied from
79061         lib/wait-process.c.
79062         * m4/sys_wait_h.m4: New file.
79063         * doc/posix-headers/sys_wait.texi: Mention the new module.
79065 2008-10-19  Bruno Haible  <bruno@clisp.org>
79067         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
79069 2008-10-19  Bruno Haible  <bruno@clisp.org>
79071         Assume that waitpid() fills an 'int' status, not a 'union wait'.
79072         * lib/wait-process.c (WAIT_T): Remove type.
79073         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
79074         (wait_subprocess): Update.
79076 2008-10-19  Bruno Haible  <bruno@clisp.org>
79078         New module 'atoll'.
79079         * modules/atoll: New file.
79080         * lib/stdlib.in.h (atoll): New declaration.
79081         * lib/atoll.c: New file, from glibc with modifications.
79082         * m4/atoll.m4: New file.
79083         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
79084         HAVE_ATOLL.
79085         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
79086         * doc/posix-functions/atoll.texi: Mention the new module.
79088 2008-10-19  Bruno Haible  <bruno@clisp.org>
79090         Add strtoull() declaration to <stdlib.h>.
79091         * lib/stdlib.in.h (strtoull): New declaration.
79092         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
79093         Set HAVE_STRTOULL.
79094         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
79095         HAVE_STRTOULL.
79096         * modules/strtoull (Depends-on): Add stdlib.
79097         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
79098         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
79099         HAVE_STRTOULL.
79101 2008-10-19  Bruno Haible  <bruno@clisp.org>
79103         Add strtoll() declaration to <stdlib.h>.
79104         * lib/stdlib.in.h (strtoll): New declaration.
79105         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
79106         Set HAVE_STRTOLL.
79107         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
79108         HAVE_STRTOLL.
79109         * modules/strtoll (Depends-on): Add stdlib.
79110         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
79111         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
79113 2008-10-19  Bruno Haible  <bruno@clisp.org>
79115         * modules/bcopy (Depends-on): Add strings.
79116         (Include): Specify <strings.h>.
79118 2008-10-19  Bruno Haible  <bruno@clisp.org>
79120         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
79122 2008-10-19  Bruno Haible  <bruno@clisp.org>
79124         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
79125         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
79126         mingw.
79128 2008-10-19  Bruno Haible  <bruno@clisp.org>
79130         * lib/atanl.c: Don't include isnanl.h.
79131         * lib/cosl.c: Likewise.
79132         * lib/ldexpl.c: Likewise.
79133         * lib/logl.c: Likewise.
79134         * lib/sinl.c: Likewise.
79135         * lib/sqrtl.c: Likewise.
79136         * lib/tanl.c: Likewise.
79138         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
79139         * lib/isnanf.h: Remove file.
79140         * lib/isnand.h: Remove file.
79141         * lib/isnanl.h: Remove file.
79142         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
79143         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
79144         macros.
79145         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
79146         HAVE_ISNANF, don't define it as a C macro.
79147         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
79148         HAVE_ISNAND, don't define it as a C macro.
79149         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
79150         HAVE_ISNANL, don't define it as a C macro.
79151         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
79152         HAVE_ISNAN[FDL].
79153         * modules/isnanf (Files): Remove lib/isnanf.h.
79154         (Depends-on): Add math.
79155         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
79156         (Include): Specify <math.h> instead of isnanf.h.
79157         * modules/isnand (Files): Remove lib/isnand.h.
79158         (Depends-on): Add math.
79159         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
79160         (Include): Specify <math.h> instead of isnand.h.
79161         * modules/isnanl (Files): Remove lib/isnanl.h.
79162         (Depends-on): Add math.
79163         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
79164         (Include): Specify <math.h> instead of isnanl.h.
79165         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
79166         HAVE_ISNAN[FDL].
79167         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
79168         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
79169         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
79170         * NEWS: Mention the change.
79172 2008-10-18  Bruno Haible  <bruno@clisp.org>
79174         Add getusershell(), setusershell(), endusershell() declarations to
79175         <unistd.h>.
79176         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
79177         declarations.
79178         * lib/getusershell.c: Include unistd.h.
79179         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
79180         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
79181         HAVE_GETUSERSHELL.
79182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
79183         and HAVE_GETUSERSHELL.
79184         * modules/getusershell (Depends-on): Add unistd, extensions.
79185         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
79186         (Include): Specify <unistd.h>.
79187         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
79188         HAVE_GETUSERSHELL.
79190 2008-10-18  Bruno Haible  <bruno@clisp.org>
79192         Add a getloadavg() declaration to <stdlib.h>.
79193         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
79194         getloadavg declaration.
79195         (getloadavg): New declaration.
79196         * lib/getloadavg.c: Include <stdlib.h> first.
79197         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
79198         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
79199         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
79200         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
79201         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
79202         * modules/getloadavg (Depends-on): Add stdlib, extensions.
79203         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
79204         (Include): Specify <stdlib.h>.
79205         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
79206         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
79208 2008-10-18  Bruno Haible  <bruno@clisp.org>
79210         * lib/dirchownmod.c: Don't include lchmod.h.
79212         Move the lchmod() declaration to <sys/stat.h>.
79213         * lib/lchmod.h: Remove file.
79214         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
79215         (lchmod): New declaration, moved here from lib/lchown.h.
79216         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
79217         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
79218         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
79219         and HAVE_LCHMOD.
79220         * modules/lchmod (Files): Remove lib/lchmod.h.
79221         (Depends-on): Add sys_stat, extensions.
79222         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
79223         (Include): Specify <sys/stat.h> instead of lchmod.h.
79224         * modules/sys_stat (Depends-on): Add link-warning.
79225         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
79226         definition of GL_LINK_WARNING.
79227         * NEWS: Mention the change.
79229 2008-10-18  Bruno Haible  <bruno@clisp.org>
79231         * lib/fchdir.c: Don't include dirfd.h.
79232         * lib/fts.c: Likewise.
79233         * lib/getcwd.c: Likewise.
79234         * lib/glob.c: Likewise.
79236         Move the dirfd() declaration to <dirent.h>.
79237         * lib/dirfd.h: Remove file.
79238         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
79239         (dirfd): New declaration.
79240         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
79241         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
79242         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
79243         HAVE_DECL_DIRFD.
79244         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
79245         HAVE_DECL_DIRFD.
79246         * modules/dirfd (Files): Remove lib/dirfd.h.
79247         (Depends-on): Add dirent, extensions.
79248         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
79249         (Include): Specify <dirent.h> instead of dirfd.h.
79250         * modules/dirent (Depends-on): Add link-warning.
79251         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
79252         definition of GL_LINK_WARNING.
79253         * NEWS: Mention the change.
79255 2008-10-18  Bruno Haible  <bruno@clisp.org>
79257         Move the euidaccess() declaration to <unistd.h>.
79258         * lib/euidaccess.h: Remove file.
79259         * lib/unistd.in.h (euidaccess): New declaration.
79260         * lib/euidaccess.c: Don't include euidaccess.h.
79261         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
79262         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
79263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
79264         and HAVE_EUIDACCESS.
79265         * modules/euidaccess (Files): Remove lib/euidaccess.h.
79266         (Depends-on): Add unistd.
79267         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
79268         (Include): Specify <unistd.h> instead of euidaccess.h.
79269         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
79270         HAVE_EUIDACCESS.
79271         * NEWS: Mention the change.
79273 2008-10-18  Bruno Haible  <bruno@clisp.org>
79275         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
79277         Move the getdomainname() declaration to <unistd.h>.
79278         * lib/getdomainname.h: Remove file.
79279         * lib/unistd.in.h (getdomainname): New declaration.
79280         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
79281         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
79282         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
79283         HAVE_GETDOMAINNAME.
79284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
79285         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
79286         * modules/getdomainname (Files): Remove lib/getdomainname.h.
79287         (Depends-on): Add unistd, extensions.
79288         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
79289         (Includes): Specify <unistd.h> instead of getdomainname.h.
79290         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
79291         HAVE_GETDOMAINNAME.
79292         * NEWS: Mention the change.
79294 2008-10-18  Bruno Haible  <bruno@clisp.org>
79296         * modules/dirent: New file.
79297         * m4/dirent_h.m4: New file.
79298         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
79299         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
79300         * modules/fchdir (Files): Remove lib/dirent.in.h.
79301         (Depends-on): Add dirent.
79302         (Makefile.am): Move rules to modules/dirent.
79303         * doc/posix-headers/dirent.texi: Mention the new module.
79305 2008-10-18  Bruno Haible  <bruno@clisp.org>
79307         Avoid -Wunused-parameter warnings in public gnulib header files.
79308         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
79309         macro.
79310         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
79312 2008-10-18  Bruno Haible  <bruno@clisp.org>
79314         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
79315         * doc/glibc-functions/error.texi: Mention the module 'error'.
79316         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
79317         * doc/glibc-functions/getdomainname.texi: Mention the module
79318         'getdomainname'.
79319         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
79320         * doc/glibc-functions/getpagesize.texi: Mention the module
79321         'getpagesize'.
79322         * doc/glibc-functions/getusershell.texi: Mention the module
79323         'getusershell'.
79324         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
79325         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
79326         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
79327         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
79328         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
79329         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
79330         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
79331         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
79332         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
79333         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
79334         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
79335         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
79336         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
79337         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
79339 2008-10-17  Bruno Haible  <bruno@clisp.org>
79341         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
79342         HP-UX and IRIX, use -0.0L.
79343         * tests/test-ceill.c (minus_zero): Likewise.
79344         * tests/test-floorl.c (minus_zero): Likewise.
79345         * tests/test-frexpl.c (minus_zero): Likewise.
79346         * tests/test-isnan.c (minus_zerol): Likewise.
79347         * tests/test-isnanl.h (minus_zero): Likewise.
79348         * tests/test-ldexpl.c (minus_zero): Likewise.
79349         * tests/test-roundl.c (minus_zero): Likewise.
79350         * tests/test-signbit.c (minus_zerol): Likewise.
79351         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
79352         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
79353         * tests/test-truncl.c (minus_zero): Likewise.
79354         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
79355         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
79356         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
79357         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
79359 2008-10-17  Bruno Haible  <bruno@clisp.org>
79361         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
79362         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
79363         that it gets activated only for gcc >= 3.0.
79364         * lib/dirent.in.h: Likewise.
79365         * lib/errno.in.h: Likewise.
79366         * lib/fcntl.in.h: Likewise.
79367         * lib/float.in.h: Likewise.
79368         * lib/iconv.in.h: Likewise.
79369         * lib/inttypes.in.h: Likewise.
79370         * lib/locale.in.h: Likewise.
79371         * lib/math.in.h: Likewise.
79372         * lib/netdb.in.h: Likewise.
79373         * lib/netinet_in.in.h: Likewise.
79374         * lib/search.in.h: Likewise.
79375         * lib/signal.in.h: Likewise.
79376         * lib/spawn.in.h: Likewise.
79377         * lib/stdarg.in.h: Likewise.
79378         * lib/stdint.in.h: Likewise.
79379         * lib/stdio.in.h: Likewise.
79380         * lib/stdlib.in.h: Likewise.
79381         * lib/string.in.h: Likewise.
79382         * lib/strings.in.h: Likewise.
79383         * lib/sys_file.in.h: Likewise.
79384         * lib/sys_ioctl.in.h: Likewise.
79385         * lib/sys_select.in.h: Likewise.
79386         * lib/sys_socket.in.h: Likewise.
79387         * lib/sys_stat.in.h: Likewise.
79388         * lib/sys_time.in.h: Likewise.
79389         * lib/sysexits.in.h: Likewise.
79390         * lib/time.in.h: Likewise.
79391         * lib/unistd.in.h: Likewise.
79392         * lib/wchar.in.h: Likewise.
79393         * lib/wctype.in.h: Likewise.
79394         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79396 2008-10-17  Jim Meyering  <meyering@redhat.com>
79398         ignore-value: don't depend on inline module
79399         * modules/ignore-value (Depends-on): Remove 'inline'.
79400         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
79401         Suggestion from Bruno Haible.
79403 2008-10-17  Bruno Haible  <bruno@clisp.org>
79405         New implementation of condition variables for Win32.
79406         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
79407         (gl_linked_waitqueue_t): New type.
79408         (gl_cond_t): Use it.
79409         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
79410         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
79411         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
79412         (glthread_cond_init_func, glthread_cond_wait_func,
79413         glthread_cond_timedwait_func, glthread_cond_signal_func,
79414         glthread_cond_broadcast_func, glthread_cond_destroy_func):
79415         Reimplemented on the basis of gl_linked_waitqueue_t.
79416         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
79417         gl_waitqueue_t.
79418         (gl_rwlock_t): Update.
79419         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
79421 2008-10-17  Simon Josefsson  <simon@josefsson.org>
79423         * modules/recvfrom (Depends-on): Add dependency on getpeername.
79424         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
79426 2008-10-17  Jim Meyering  <meyering@redhat.com>
79428         ignore-value: new module
79429         * modules/ignore-value: New file.
79430         * lib/ignore-value.h: New file.
79431         * MODULES.html.sh (Compiler warning management): New section,
79432         just for this module.  More to come.
79434 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
79436         open-safer.c: avoid 'signed and unsigned in conditional...' warning
79437         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
79438         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
79440 2008-10-16  Jim Meyering  <meyering@redhat.com>
79442         openat-die.c: avoid 'no previous prototype' warning
79443         * lib/openat-die.c: Include "openat.h".
79444         Reported by Reuben Thomas <rrt@sc3d.org>.
79446 2008-10-16  Simon Josefsson  <simon@josefsson.org>
79448         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
79449         * lib/netdb.in.h: Fix typo.
79450         Reported by Bruno Haible  <bruno@clisp.org>
79452         * lib/netdb.in.h: Include sys/socket.h for platforms without
79453         netdb.h, to get structures like hostent on MinGW.
79454         * modules/netdb (Depends-on): Add sys_socket.
79456 2008-10-15  Simon Josefsson  <simon@josefsson.org>
79458         * modules/netdb, modules/netdb-tests: New file.
79459         * m4/netdb_h.m4: New file.
79460         * lib/netdb.in.h: Add, currently just an empty file pending
79461         definitions.
79462         * tests/test-netdb.c: New file.
79463         * doc/posix-headers/netdb.texi: Mention that we replace it if
79464         needed.
79465         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79466         netdb.
79468 2008-10-15  Simon Josefsson  <simon@josefsson.org>
79470         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
79471         with code.
79473 2008-10-13  Bruno Haible  <bruno@clisp.org>
79475         * lib/glthread/cond.c (glthread_cond_wait_func,
79476         glthread_cond_timedwait_func): Add a comment.
79478 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79480         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
79481         * tests/test-select.c: Likewise,
79483 2008-10-13  Bruno Haible  <bruno@clisp.org>
79485         * lib/glthread/cond.c (glthread_cond_wait_func,
79486         glthread_cond_timedwait_func): Fix variable name.
79487         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
79489 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
79491         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
79492         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
79493         struct sockaddr.sa_len.
79494         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
79496 2008-10-13  Simon Josefsson  <simon@josefsson.org>
79498         * build-aux/pmccabe2html: Add css and css_url parameters.
79500 2008-10-12  Bruno Haible  <bruno@clisp.org>
79502         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
79503         calling aclx_get.
79504         Reported by Rainer Tammer <tammer@tammer.net>.
79506 2008-10-12  Bruno Haible  <bruno@clisp.org>
79508         Use msvcrt aware primitives for creation/termination of Win32 threads.
79509         * lib/glthread/thread.c: Include <process.h>.
79510         (glthread_create_func): Use _beginthreadex instead of CreateThread.
79511         (wrapper_func): Update signature.
79512         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
79514 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79515             Bruno Haible  <bruno@clisp.org>
79517         Provide a Win32 implementation of the 'cond' module.
79518         * lib/glthread/cond.h [USE_WIN32]: New implementation.
79519         * lib/glthread/cond.c (glthread_cond_init_func,
79520         glthread_cond_wait_func, glthread_cond_timedwait_func,
79521         glthread_cond_signal_func, glthread_cond_broadcast_func,
79522         glthread_cond_destroy_func) [USE_WIN32]: New functions.
79523         * modules/cond (Dependencies): Add gettimeofday.
79525 2008-10-11  Bruno Haible  <bruno@clisp.org>
79527         Make sleep work on older versions of mingw.
79528         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
79529         only whether it exists.
79530         * doc/posix-functions/sleep.texi: Mention the problem with older
79531         versions of mingw.
79533 2008-10-11  Bruno Haible  <bruno@clisp.org>
79535         New module 'shutdown'.
79536         * modules/shutdown: New file.
79537         * lib/sys_socket.in.h (shutdown): New declaration.
79538         * lib/winsock.c (shutdown): New function.
79539         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
79540         GNULIB_SHUTDOWN.
79541         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
79542         * doc/posix-functions/shutdown.texi: Document the new module.
79544 2008-10-11  Jim Meyering  <meyering@redhat.com>
79546         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
79548 2008-10-11  Bruno Haible  <bruno@clisp.org>
79550         New module 'fclose'.
79551         * modules/fclose: New file.
79552         * lib/stdio.in.h (fclose): New declaration.
79553         * lib/fclose.c: New file.
79554         * m4/fclose.m4: New file.
79555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
79556         REPLACE_FCLOSE.
79557         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
79558         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
79559         REPLACE_FCLOSE.
79560         * modules/close (Depends-on): fclose.
79561         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
79563 2008-10-11  Bruno Haible  <bruno@clisp.org>
79565         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
79566         set errno and don't call _close.
79568 2008-10-10  Bruno Haible  <bruno@clisp.org>
79570         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
79571         ACL, not afterwards. Fixes test failure on Cygwin.
79573 2008-10-09  Ben Pfaff  <blp@gnu.org>
79575         * build-aux/announce-gen: Fix gnulib version related part of usage
79576         message.  Die with a useful error message if no tarballs are
79577         found.
79579 2008-10-10  Jim Meyering  <meyering@redhat.com>
79581         bootstrap: use git's --depth=N option only if it's supported
79582         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
79583         recognize the --depth option.  Reported by Pádraig Brady.
79585 2008-10-09  Bruno Haible  <bruno@clisp.org>
79587         New module 'ioctl'.
79588         * modules/ioctl: New file.
79589         * lib/sys_socket.in.h (ioctl): Remove declaration.
79590         * lib/winsock.c: Include <sys/ioctl.h>.
79591         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
79592         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
79593         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
79594         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
79595         * doc/posix-functions/ioctl.texi: Mention the new module.
79597 2008-10-09  Bruno Haible  <bruno@clisp.org>
79599         New module 'sys_ioctl'.
79600         * lib/sys_ioctl.in.h: New file.
79601         * m4/sys_ioctl_h.m4: New file.
79602         * modules/sys_ioctl: New file.
79603         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
79605 2008-10-09  Bruno Haible  <bruno@clisp.org>
79607         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
79608         * lib/winsock.c: Include <stdarg.h>.
79609         (rpl_ioctl): Change to second argument 'int' and then varargs.
79611 2008-10-09  Bruno Haible  <bruno@clisp.org>
79613         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
79614         when the sys_socket module is present and the system has <winsock2.h>.
79616 2008-10-09  Bruno Haible  <bruno@clisp.org>
79618         * doc/posix-functions/close.texi: Mention module 'close' instead of
79619         module 'sys_socket'.
79621 2008-10-09  Bruno Haible  <bruno@clisp.org>
79623         * doc/glibc-headers/sys_ioctl.texi: New file.
79624         * doc/gnulib.texi: Include it.
79626 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
79627             Bruno Haible  <bruno@clisp.org>
79629         Combine the two replacements of 'close'.
79630         * lib/sys_socket.in.h (close): Define to a reminder to include
79631         <unistd.h>.
79632         (_gl_close_fd_maybe_socket): New declaration.
79633         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
79634         * lib/winsock.c (close): Remove undefinition.
79635         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
79636         needed for the gnulib module 'close'.
79637         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
79638         define to an error symbol or to a warning, if suitable.
79639         * lib/close.c: Include <sys/socket.h>.
79640         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
79641         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
79642         UNISTD_H_HAVE_WINSOCK2_H.
79643         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
79644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
79645         UNISTD_H_HAVE_WINSOCK2_H.
79646         * modules/sys_socket (Files): Add m4/unistd_h.m4.
79647         (configure.ac): Set a module indicator.
79648         (Makefile.am): Substitute GNULIB_CLOSE.
79649         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
79650         * modules/poll-tests (Depends-on): Add close.
79651         * modules/select-tests (Depends-on): Likewise.
79653 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
79654             Bruno Haible  <bruno@clisp.org>
79656         New module 'close'.
79657         * modules/close: New file.
79658         * lib/unistd.in.h (close): Move declaration out of the
79659         FCHDIR_REPLACEMENT scope.
79660         (_gl_unregister_fd): New declaration.
79661         * lib/close.c: New file.
79662         * lib/fchdir.c (rpl_close): Remove function.
79663         * m4/close.m4: New file.
79664         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
79665         close.
79666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
79667         REPLACE_CLOSE.
79668         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
79669         REPLACE_CLOSE.
79670         * modules/fchdir (Depends-on): Add close.
79672 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
79673             Bruno Haible  <bruno@clisp.org>
79675         * lib/fcntl.in.h (open): Simplify conditionals.
79676         (_gl_register_fd): New declaration.
79677         * lib/fchdir.c (rpl_open): Remove function.
79678         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
79679         also.
79680         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
79681         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
79682         open.
79684 2008-10-09  Jim Meyering  <meyering@redhat.com>
79686         GNUmakefile: use the more name-space-friendly "_version"
79687         * top/GNUmakefile (_dummy): Update.
79688         (_version): Rename from "version".
79690 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
79691             Bruno Haible  <bruno@clisp.org>
79693         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
79694         rpl_close.
79695         (_gl_register_fd): New function, extracted from rpl_open.
79696         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
79697         (rpl_open, rpl_opendir): Use _gl_register_fd.
79699 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
79701         Fix organization of 'open' replacement.
79702         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
79703         (gl_FUNC_OPEN): Use it.
79704         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
79706 2008-10-08  Bruno Haible  <bruno@clisp.org>
79708         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
79710 2008-10-08  Simon Josefsson  <simon@josefsson.org>
79712         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
79713         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
79714         listen).
79716 2008-10-08  Eric Blake  <ebb9@byu.net>
79718         GNUmakefile: add 'make version' target
79719         * top/GNUmakefile (_curr-ver): Split version update rules...
79720         (version): ...into a target.
79722 2008-10-07  Bruno Haible  <bruno@clisp.org>
79724         Use a more portable replacement expression for -0.0L.
79725         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
79726         instead of -0.0L. Fix m4 quotation.
79728         * tests/test-signbit.c: Include <float.h>.
79729         (minus_zero): New variable.
79730         (test_signbitl): Use minus_zero instead of -zero.
79731         * modules/signbit-tests (Depends-on): Add float.
79733         * tests/test-ceill.c: Include <float.h>.
79734         (zero): Remove variable.
79735         (minus_zero): New variable.
79736         (main): Use minus_zero instead of -zero.
79737         * modules/ceill-tests (Depends-on): Add float.
79739         * tests/test-floorl.c: Include <float.h>.
79740         (zero): Remove variable.
79741         (minus_zero): New variable.
79742         (main): Use minus_zero instead of -zero.
79743         * modules/floorl-tests (Depends-on): Add float.
79745         * tests/test-roundl.c: Include <float.h>.
79746         (zero): Remove variable.
79747         (minus_zero): New variable.
79748         (main): Use minus_zero instead of -zero.
79749         * modules/roundl-tests (Depends-on): Add float.
79751         * tests/test-truncl.c: Include <float.h>.
79752         (zero): Remove variable.
79753         (minus_zero): New variable.
79754         (main): Use minus_zero instead of -zero.
79755         * modules/truncl-tests (Depends-on): Add float.
79757         * tests/test-frexpl.c (zero): Remove variable.
79758         (minus_zero): New variable.
79759         (main): Use minus_zero instead of -zero.
79760         * modules/frexpl-tests (Depends-on): Add float.
79762         * tests/test-isnan.c (zerol): Remove variable.
79763         (minus_zerol): New variable.
79764         (test_long_double): Use minus_zerol instead of -zerol.
79765         * modules/isnan-tests (Depends-on): Add float.
79767         * tests/test-isnanl.h (zero): Remove variable.
79768         (minus_zero): New variable.
79769         (main): Use minus_zero instead of -zero.
79770         * modules/isnanl-nolibm-tests (Depends-on): Add float.
79771         * modules/isnanl-tests (Depends-on): Add float.
79773         * tests/test-ldexpl.c (zero): Remove variable.
79774         (minus_zero): New variable.
79775         (main): Use minus_zero instead of -zero.
79776         * modules/ldexpl-tests (Depends-on): Add float.
79778         * tests/test-snprintf-posix.h (zerol): Remove variable.
79779         (minus_zerol): New variable.
79780         (test_function): Use minus_zerol instead of -zerol.
79781         * modules/snprintf-posix-tests (Depends-on): Add float.
79782         * modules/vsnprintf-posix-tests (Depends-on): Add float.
79784         * tests/test-sprintf-posix.h (zerol): Remove variable.
79785         (minus_zerol): New variable.
79786         (test_function): Use minus_zerol instead of -zerol.
79787         * modules/sprintf-posix-tests (Depends-on): Add float.
79788         * modules/vsprintf-posix-tests (Depends-on): Add float.
79790         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
79791         (minus_zerol): New variable.
79792         (test_function): Use minus_zerol instead of -zerol.
79793         * modules/vasnprintf-posix-tests (Depends-on): Add float.
79795         * tests/test-vasprintf-posix.c (zerol): Remove variable.
79796         (minus_zerol): New variable.
79797         (test_function): Use minus_zerol instead of -zerol.
79798         * modules/vasprintf-posix-tests (Depends-on): Add float.
79800 2008-10-07  Simon Josefsson  <simon@josefsson.org>
79802         * MODULES.html.sh (Support for building documentation): Mention
79803         pmccabe2html.  Sort entries.
79805         Add pmccabe2html module, from gnupdf.
79806         * build-aux/pmccabe.css: New file.
79807         * build-aux/pmccabe2html: New file.
79808         * m4/pmccabe2html.m4: New file.
79809         * modules/pmccabe2html: New file.
79811 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
79813         flock: new module
79814         * MODULES.html.sh: Add to list of modules.
79815         * lib/flock.c: flock implementation for Windows and Unix systems
79816         which have fcntl.
79817         * doc/glibc-functions/flock.texi: Update documentation.
79818         * lib/sys_file.in.h: <sys/file.h> header file.
79819         * m4/flock.m4: M4 macros.
79820         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
79821         * modules/flock: flock module.
79822         * modules/flock-tests: flock tests module.
79823         * modules/sys_file: sys/file.h module.
79824         * tests/test-flock.c: test suite for flock.
79826 2008-10-06  Jim Meyering  <meyering@redhat.com>
79828         bootstrap: check for LT_INIT more portably still ;-)
79829         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
79830         Spotted by Bruno Haible.
79832 2008-10-06  Eric Blake  <ebb9@byu.net>
79834         test-signbit: avoid tripping Irix cc bug on -0.0L
79835         * tests/test-signbit.c (minus_zerol): Delete, and replace with
79836         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
79837         entire testsuite consistent and avoids an Irix 6.2 bug.
79839 2008-10-05  Bruno Haible  <bruno@clisp.org>
79840             Jim Meyering  <jim@meyering.net>
79842         Add an option for ignoring EPIPE during close_stdout.
79843         * lib/closeout.h: Include <stdbool.h>.
79844         (close_stdout_set_ignore_EPIPE): New declaration.
79845         * lib/closeout.c: Include <stdbool.h>.
79846         (ignore_EPIPE): New variable.
79847         (close_stdout_set_ignore_EPIPE): New function.
79848         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
79849         * lib/close-stream.c (close_stream): Mention the possible EPIPE
79850         failure.
79851         * modules/closeout (Depends-on): Add stdbool.
79853 2008-10-05  Bruno Haible  <bruno@clisp.org>
79855         * modules/accept: New file.
79856         * modules/bind: New file.
79857         * modules/connect: New file.
79858         * modules/getpeername: New file.
79859         * modules/getsockname: New file.
79860         * modules/getsockopt: New file.
79861         * modules/listen: New file.
79862         * modules/recv: New file.
79863         * modules/recvfrom: New file.
79864         * modules/send: New file.
79865         * modules/sendto: New file.
79866         * modules/setsockopt: New file.
79867         * modules/socket: New file.
79868         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
79869         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
79870         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
79871         the particular module is requested. Add a link warning when the
79872         particular module is not requested.
79873         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
79874         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
79875         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
79876         the particular module is requested.
79877         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
79878         gl_SYS_SOCKET_H_DEFAULTS): New macros.
79879         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
79880         * modules/sys_socket (Depends-on): Add link-warning.
79881         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
79882         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
79883         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
79884         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
79885         GL_LINK_WARNING.
79886         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
79887         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
79888         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
79889         * doc/posix-functions/getpeername.texi: Mention the new module
79890         'getpeername'.
79891         * doc/posix-functions/getsockname.texi: Mention the new module
79892         'getsockname'.
79893         * doc/posix-functions/getsockopt.texi: Mention the new module
79894         'getsockopt'.
79895         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
79896         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
79897         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
79898         * doc/posix-functions/send.texi: Mention the new module 'send'.
79899         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
79900         * doc/posix-functions/setsockopt.texi: Mention the new module
79901         'setsockopt'.
79902         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
79903         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
79904         listen, connect, accept.
79905         * modules/select-tests (Depends-on): Likewise.
79907 2008-10-05  Bruno Haible  <bruno@clisp.org>
79909         * lib/winsock.c (strerror): Remove unused #undef.
79910         (rpl_close): Remove unused local variable.
79912         * modules/sys_socket (Depends-on); Add errno.
79914 2008-10-05  Bruno Haible  <bruno@clisp.org>
79916         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
79917         (select): Add a link warning when the 'select' module is not used.
79918         * modules/sys_select (Depends-on): Add link-warning.
79919         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
79920         Suggested by Paolo Bonzini.
79922 2008-10-05  Jim Meyering  <meyering@redhat.com>
79924         bootstrap: check for LT_INIT more portably
79925         * build-aux/bootstrap: Avoid using grep -E, since it's not
79926         portable enough.  Suggestion from Bruno Haible.
79928 2008-10-05  Bruno Haible  <bruno@clisp.org>
79930         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
79931         as being fixed by gnulib.
79933 2008-10-05  Bruno Haible  <bruno@clisp.org>
79935         * modules/select-tests: New file, mostly copied from
79936         modules/sys_select-tests.
79937         * tests/test-select.c: New file, mostly copied from
79938         tests/test-sys_select.c.
79939         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
79940         * modules/sys_select-tests (Depends-on): Remove all dependencies.
79941         (Makefile.am): Remove test_sys_select_LDADD.
79943         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
79944         to an undefined symbol, for an error message.
79945         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
79946         (gl_SYS_SELECT_H_DEFAULTS): New macro.
79947         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
79948         winsock-select.c here.
79949         * modules/sys_select (Files): Remove lib/winsock-select.c.
79950         (Depends-on): Remove alloca.
79951         (Makefile.am): Substitute GNULIB_SELECT.
79952         * modules/select: New file.
79953         * doc/posix-functions/select.texi: Update.
79955 2008-10-05  Bruno Haible  <bruno@clisp.org>
79957         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
79958         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
79959         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
79960         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
79961         getdtablesize.
79962         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
79963         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
79965 2008-10-05  Bruno Haible  <bruno@clisp.org>
79967         * modules/getdtablesize-tests: New file.
79968         * tests/test-getdtablesize.c: New file.
79970         New module 'getdtablesize'.
79971         * lib/unistd.in.h (getdtablesize): New declaration.
79972         * lib/getdtablesize.c: New file.
79973         * m4/getdtablesize.m4: New file.
79974         * modules/getdtablesize: New file.
79975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
79976         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
79977         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
79978         HAVE_GETDTABLESIZE.
79979         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
79981 2008-10-05  Bruno Haible  <bruno@clisp.org>
79983         * modules/sched (Makefile.am): Fix typo.
79984         Reported by Simon Josefsson.
79986 2008-10-05  Jim Meyering  <meyering@redhat.com>
79988         bootstrap: check for LT_INIT, too
79989         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
79990         are deprecated.  Suggestion from Ralf Wildenhues.
79992 2008-10-05  Bruno Haible  <bruno@clisp.org>
79994         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
79995         overriding them by ours.
79996         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
79998 2008-10-05  Jim Meyering  <meyering@redhat.com>
80000         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
80001         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
80002         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
80004 2008-10-04  Bruno Haible  <bruno@clisp.org>
80006         * modules/dup2 (License): Change to LGPLv2+.
80007         * modules/sleep (License): Likewise.
80008         * modules/perror (License): Likewise.
80009         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
80010         Blake.
80011         * modules/signal (License): Likewise.
80012         * modules/sigprocmask (License): Likewise.
80013         * modules/raise (License): Change to LGPLv2+, with approval by Jim
80014         Meyering.
80016 2008-10-04  Bruno Haible  <bruno@clisp.org>
80018         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
80019         Reported by Rainer Tammer <tammer@tammer.net>.
80021 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
80022             Bruno Haible  <bruno@clisp.org>
80024         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
80025         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
80026         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
80028 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
80030         filevercmp: new module
80031         * lib/filevercmp.h: New function filevercmp comparing version strings.
80032         * lib/filevercmp.c: Implementation of filevercmp function.
80033         * modules/filevercmp: Module metadata.
80034         * tests/test-filevercmp.c: Unit test for new module.
80035         * modules/filevercmp-tests: Unit test metadata.
80036         * MODULES.html.sh: Add filevercmp module.
80038 2008-10-03  Bruno Haible  <bruno@clisp.org>
80040         * lib/c-ctype.h: Add comment.
80041         Reported by Jim Meyering.
80043 2008-10-02  Bruno Haible  <bruno@clisp.org>
80045         * modules/posix_spawn-internal (Depends-on): Add 'open'.
80047 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
80049         * build-aux/bootstrap: Allow renaming bootstrap, and change the
80050         name of bootstrap.conf accordingly.
80052 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
80054         * build-aux/bootstrap: Install git-merge-changelog configuration
80055         items into .gitconfig if needed.
80057 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
80059         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
80060         git repository, and initialize/update it accordingly.
80062 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
80064         * modules/fsync-tests: New file.
80065         * tests/test-fsync.c: New file.
80067         New module 'fsync'.
80068         * lib/fsync.c: New file.
80069         * m4/fsync.m4: New file.
80070         * modules/fsync: New file.
80071         * lib/unistd.in.h (fsync): New declaration.
80072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
80073         GNULIB_FSYNC and HAVE_FSYNC.
80074         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
80075         * MODULES.html.sh (posix_functions): Add fsync.
80076         * doc/posix-functions/fsync.texi: Mention the new module.
80078 2008-10-02  Jim Meyering  <meyering@redhat.com>
80080         fts.c: sync with similar code from coreutils' remove.c
80081         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
80082         Guard also with "#if defined __linux__", since for now at least,
80083         this code is Linux-kernel-specific.
80085 2008-10-02  Jim Meyering  <meyering@redhat.com>
80087         fts: bug fixes
80088         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
80089         Include <sys/vfs.h>, not <sys/statfs.h>.
80091         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
80092         Include <sys/vfs.h>, not <sys/statfs.h>.
80094 2008-10-01  Bruno Haible  <bruno@clisp.org>
80096         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
80097         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
80098         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
80099         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
80100         * doc/posix-functions/posix_spawnp.texi: Likewise.
80101         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
80102         whether posix_spawn actually works.
80103         * m4/pipe.m4 (gl_PIPE): Likewise.
80104         * modules/execute (Files): Add m4/posix_spawn.m4.
80105         * modules/pipe (Files): Add m4/posix_spawn.m4.
80106         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
80108 2008-10-01  Jim Meyering  <meyering@redhat.com>
80110         remove trailing spaces
80111         * NEWS: Likewise.
80112         * lib/poll.c (poll): Likewise.
80113         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
80114         * lib/winsock.c (rpl_close): Likewise.
80115         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
80116         * modules/yield: Likewise.
80117         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
80118         * tests/test-sys_select.c (connect_to_socket): Likewise.
80120         fts.c: adjust a new interface to be more generally useful
80121         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
80122         (fts_build): Adjust caller.
80124 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80126         * modules/cond-tests: New file.
80127         * tests/test-cond.c: New file.
80129 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80130             Bruno Haible  <bruno@clisp.org>
80132         * modules/cond (Dependencies): Add errno, time.
80133         * lib/glthread/cond.h: Include <time.h>.
80134         (gl_cond_define, gl_cond_define_initialized): Use the same definition
80135         across platforms.
80137 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80138             Bruno Haible  <bruno@clisp.org>
80140         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
80142 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80143             Bruno Haible  <bruno@clisp.org>
80145         * modules/tls-tests (Depends-on): Add thread, yield.
80146         (configure.ac): Remove all checks.
80147         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
80148         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
80149         gl_thread_self): Remove definitions. Include glthread/thread.h and
80150         glthread/yield.h instead.
80151         (test_tls): Pass an additional NULL argument to gl_thread_join.
80153 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80154             Bruno Haible  <bruno@clisp.org>
80156         * modules/lock-tests (Depends-on): Add thread, yield.
80157         (configure.ac): Remove all checks.
80158         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
80159         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
80160         gl_thread_self): Remove definitions. Include glthread/thread.h and
80161         glthread/yield.h instead.
80162         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
80163         additional NULL argument to gl_thread_join.
80165 2008-09-30  Bruno Haible  <bruno@clisp.org>
80167         Fix the Win32 implementation of the 'thread' module.
80168         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
80169         pointer type.
80170         (gl_thread_self): Invoke gl_thread_self_func.
80171         (gl_thread_self_func): New declaration.
80172         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
80173         (do_init_self_key, init_self_key): New functions.
80174         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
80175         Remove some fields.
80176         (running_threads, running_lock): Remove variables.
80177         (get_current_thread_handle): New function.
80178         (gl_thread_self_func, wrapper_func, glthread_create_func,
80179         glthread_join_func, gl_thread_exit_func): Largely rewritten and
80180         simplified.
80182 2008-09-30  Bruno Haible  <bruno@clisp.org>
80184         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
80185         files.
80187 2008-09-30  Jim Meyering  <meyering@redhat.com>
80189         fts.m4: correct the test for statfs.f_type
80190         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
80191         when checking for statfs.f_type.
80193 2008-09-15  Simon Josefsson  <simon@josefsson.org>
80195         tests: avoid some compiler warnings
80196         * tests/test-memchr.c (main): Pass NULL indirectly.
80197         * tests/test-getdate.c (main): Remove unused variable 'ret'.
80199 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
80201         getdate.y: disallow countable dayshifts like "4 yesterday ago"
80202         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
80203         exactly specified dayshifts.
80204         (dayshift): New rule.
80205         (rel): Add dayshift.
80206         (relative_time_table) [tomorrow, yesterday, today, now]:
80207         Use tDAY_SHIFT in place of tDAY_UNIT.
80208         * tests/test-getdate.c: Add tests for now-disallowed countable
80209         dayshifts, e.g., "4 yesterday ago".
80211 2008-09-29  Bruno Haible  <bruno@clisp.org>
80213         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
80214         * tests/test-posix_spawn1.in.sh: Renamed from
80215         tests/test-posix_spawn.in.sh.
80216         * tests/test-posix_spawn2.c: New file.
80217         * tests/test-posix_spawn2.in.sh: New file.
80218         * modules/posix_spawnp-tests (Files): Update.
80219         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
80221 2008-09-29  Bruno Haible  <bruno@clisp.org>
80223         Propagate effects of putenv/setenv/unsetenv to child processes.
80224         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
80225         * lib/pipe.c (create_pipe): Likewise.
80227 2008-09-29  Bruno Haible  <bruno@clisp.org>
80229         Enable use of shell scripts as executables in mingw.
80230         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
80231         run the program as a shell script.
80232         * lib/pipe.c (create_pipe): Likewise.
80233         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
80234         resulting array.
80236 2008-09-29  Eric Blake  <ebb9@byu.net>
80238         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
80240 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
80242         * doc/posix-functions/accept.texi: Update mingw problems.
80243         * doc/posix-functions/bind.texi: Update mingw problems.
80244         * doc/posix-functions/close.texi: Update mingw problems.
80245         * doc/posix-functions/connect.texi: Update mingw problems.
80246         * doc/posix-functions/getpeername.texi: Update mingw problems.
80247         * doc/posix-functions/getsockname.texi: Update mingw problems.
80248         * doc/posix-functions/getsockopt.texi: Update mingw problems.
80249         * doc/posix-functions/ioctl.texi: Update mingw problems.
80250         * doc/posix-functions/listen.texi: Update mingw problems.
80251         * doc/posix-functions/recv.texi: Update mingw problems.
80252         * doc/posix-functions/recvfrom.texi: Update mingw problems.
80253         * doc/posix-functions/select.texi: Update mingw problems.
80254         * doc/posix-functions/send.texi: Update mingw problems.
80255         * doc/posix-functions/sendto.texi: Update mingw problems.
80256         * doc/posix-functions/setsockopt.texi: Update mingw problems.
80257         * doc/posix-functions/socket.texi: Update mingw problems.
80259 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
80260             Bruno Haible  <bruno@clisp.org>
80262         * lib/sys_select.in.h: Include sys/time.h.
80263         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
80264         * modules/sys_select: Depend on sys_time.
80265         * tests/test-sys_select.c: Test that sys/select.h defines struct
80266         timeval fully.
80268 2008-09-29  Bruno Haible  <bruno@clisp.org>
80270         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
80271         * lib/sys_select.in.h: Likewise.
80273 2008-09-29  Bruno Haible  <bruno@clisp.org>
80275         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
80277 2008-09-29  Bruno Haible  <bruno@clisp.org>
80279         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
80280         Set LIBSOCKET instead of augmenting LIBS.
80281         * modules/sockets (Link): New section.
80282         * modules/sockets-tests (test_sockets_LDADD): New variable.
80283         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
80284         * modules/poll-tests (test_poll_LDADD): New variable.
80285         * NEWS: Document the change.
80287 2008-09-29  Bruno Haible  <bruno@clisp.org>
80289         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
80290         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
80291         ARPA_INET_H directly.
80292         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
80294 2008-09-28  Bruno Haible  <bruno@clisp.org>
80296         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
80297         from gl_HEADER_SYS_SOCKET.
80298         (gl_HEADER_SYS_SOCKET): Invoke it.
80299         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
80301 2008-09-28  Bruno Haible  <bruno@clisp.org>
80303         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
80304         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
80305         Needed on OSF/1 4.0.
80307 2008-09-28  Bruno Haible  <bruno@clisp.org>
80309         Override open more carefully.
80310         * lib/open.c (orig_open): New function.
80311         (rpl_open): Use orig_open instead of open.
80312         * lib/fcntl.in.h: Add special invocation convention.
80313         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
80314         (gl_FUNC_OPEN): Invoke it.
80316         Override freopen more carefully.
80317         * lib/freopen.c (orig_freopen): New function.
80318         (rpl_freopen): Use orig_freopen instead of freopen.
80319         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
80320         (gl_FUNC_FREOPEN): Invoke it.
80322         Override fopen more carefully.
80323         * lib/fopen.c (orig_fopen): New function.
80324         (rpl_fopen): Use orig_fopen instead of fopen.
80325         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
80326         (gl_FUNC_FOPEN): Invoke it.
80327         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
80329 2008-09-28  Bruno Haible  <bruno@clisp.org>
80331         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
80332         SIGPIPE.
80334 2008-09-28  Bruno Haible  <bruno@clisp.org>
80336         * tests/test-sigaction.c (handler, main): Disable the check whether
80337         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
80338         glibc systems with LinuxThreads.
80340 2008-09-28  Bruno Haible  <bruno@clisp.org>
80342         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
80344         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
80345         with AIX xlc.
80346         * lib/fcntl.in.h (open): Likewise.
80347         Reported by Rainer Tammer <tammer@tammer.net>.
80349 2008-09-28  Bruno Haible  <bruno@clisp.org>
80351         * modules/posix_spawnp-tests: New file.
80352         * tests/test-posix_spawn.c: New file.
80353         * tests/test-posix_spawn.in.sh: New file.
80355         New module 'posix_spawnp'.
80356         * modules/posix_spawnp: New file.
80357         * lib/spawnp.c: New file, from GNU libc with modifications.
80358         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
80360         New module 'posix_spawn'.
80361         * modules/posix_spawn: New file.
80362         * lib/spawn.c: New file, from GNU libc with modifications.
80363         * doc/posix-functions/posix_spawn.texi: Mention the new module.
80365         New module 'posix_spawnattr_destroy'.
80366         * modules/posix_spawnattr_destroy: New file.
80367         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
80368         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
80369         module.
80371         New module 'posix_spawnattr_setsigmask'.
80372         * modules/posix_spawnattr_setsigmask: New file.
80373         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
80374         modifications.
80375         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
80376         new module.
80378         New module 'posix_spawnattr_getsigmask'.
80379         * modules/posix_spawnattr_getsigmask: New file.
80380         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
80381         modifications.
80382         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
80383         new module.
80385         New module 'posix_spawnattr_setsigdefault'.
80386         * modules/posix_spawnattr_setsigdefault: New file.
80387         * lib/spawnattr_setdefault.c: New file, from GNU libc with
80388         modifications.
80389         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
80390         new module.
80392         New module 'posix_spawnattr_getsigdefault'.
80393         * modules/posix_spawnattr_getsigdefault: New file.
80394         * lib/spawnattr_getdefault.c: New file, from GNU libc with
80395         modifications.
80396         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
80397         new module.
80399         New module 'posix_spawnattr_setschedpolicy'.
80400         * modules/posix_spawnattr_setschedpolicy: New file.
80401         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
80402         modifications.
80403         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
80404         new module.
80406         New module 'posix_spawnattr_getschedpolicy'.
80407         * modules/posix_spawnattr_getschedpolicy: New file.
80408         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
80409         modifications.
80410         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
80411         new module.
80413         New module 'posix_spawnattr_setschedparam'.
80414         * modules/posix_spawnattr_setschedparam: New file.
80415         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
80416         modifications.
80417         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
80418         new module.
80420         New module 'posix_spawnattr_getschedparam'.
80421         * modules/posix_spawnattr_getschedparam: New file.
80422         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
80423         modifications.
80424         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
80425         new module.
80427         New module 'posix_spawnattr_setpgroup'.
80428         * modules/posix_spawnattr_setpgroup: New file.
80429         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
80430         modifications.
80431         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
80432         module.
80434         New module 'posix_spawnattr_getpgroup'.
80435         * modules/posix_spawnattr_getpgroup: New file.
80436         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
80437         modifications.
80438         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
80439         module.
80441         New module 'posix_spawnattr_setflags'.
80442         * modules/posix_spawnattr_setflags: New file.
80443         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
80444         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
80445         module.
80447         New module 'posix_spawnattr_getflags'.
80448         * modules/posix_spawnattr_getflags: New file.
80449         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
80450         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
80451         module.
80453         New module 'posix_spawnattr_init'.
80454         * modules/posix_spawnattr_init: New file.
80455         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
80456         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
80457         module.
80459         New module 'posix_spawn_file_actions_destroy'.
80460         * modules/posix_spawn_file_actions_destroy: New file.
80461         * lib/spawn_faction_destroy.c: New file, from GNU libc with
80462         modifications.
80463         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
80464         the new module.
80466         New module 'posix_spawn_file_actions_addopen'.
80467         * modules/posix_spawn_file_actions_addopen: New file.
80468         * lib/spawn_faction_addopen.c: New file, from GNU libc with
80469         modifications.
80470         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
80471         the new module.
80473         New module 'posix_spawn_file_actions_adddup2'.
80474         * modules/posix_spawn_file_actions_adddup2: New file.
80475         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
80476         modifications.
80477         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
80478         the new module.
80480         New module 'posix_spawn_file_actions_addclose'.
80481         * modules/posix_spawn_file_actions_addclose: New file.
80482         * lib/spawn_faction_addclose.c: New file, from GNU libc with
80483         modifications.
80484         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
80485         the new module.
80487         New module 'posix_spawn_file_actions_init'.
80488         * modules/posix_spawn_file_actions_init: New file.
80489         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
80490         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
80491         new module.
80493         New module 'posix_spawn-internal'.
80494         * modules/posix_spawn-internal: New file.
80495         * lib/spawn_int.h: New file, from GNU libc with modifications.
80496         * lib/spawni.c: New file, from GNU libc with modifications.
80497         * m4/posix_spawn.m4: New file.
80499         New module 'spawn'.
80500         * modules/spawn: New file.
80501         * lib/spawn.in.h: New file, from GNU libc with modifications.
80502         * m4/spawn_h.m4: New file.
80503         * doc/posix-headers/spawn.texi: Mention the new module.
80505 2008-09-28  Bruno Haible  <bruno@clisp.org>
80507         * modules/sched-tests: New file.
80508         * tests/test-sched.c: New file.
80510         New module 'sched'.
80511         * modules/sched: New file.
80512         * lib/sched.in.h: New file.
80513         * m4/sched_h.m4: New file.
80514         * doc/posix-headers/sched.texi: Mention the new module.
80516 2008-09-27  Eric Blake  <ebb9@byu.net>
80518         Fix previous patch, and tweak references to $0.
80519         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
80520         (func_version, func_gnulib_dir): Don't call this program
80521         gnulib-tool.
80522         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
80523         with using $0 in function.
80524         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
80525         (func_fatal_error): Reuse the name the user invoked us with.
80527 2008-09-27  Bruno Haible  <bruno@clisp.org>
80529         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
80530         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
80531         (gl_ICONV_H): Not here.
80532         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
80533         instead of assigning ICONV_H directly.
80535         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
80536         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
80537         WCHAR_H directly.
80539 2008-09-27  Bruno Haible  <bruno@clisp.org>
80541         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
80542         * modules/arpa_inet (Depends-on): Add link-warning.
80543         (Makefile.am): Insert the definition of GL_LINK-WARNING.
80544         * modules/unistd (Makefile.am): Likewise.
80546 2008-09-26  Bruno Haible  <bruno@clisp.org>
80548         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
80549         variables.
80550         (func_version): Essentially copied from gnulib-tool.
80551         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
80552         func_readlink): Copied from gnulib-tool.
80554 2008-09-26  Bruno Haible  <bruno@clisp.org>
80556         * gnulib-tool (func_version): Change directory to $gnulib_dir before
80557         invoking git-version-gen.
80559 2008-09-26  Bruno Haible  <bruno@clisp.org>
80561         * posix-modules: Update to directory names changed on 2008-01-19.
80562         Remove commas in output before splitting into words. No more need to
80563         avoid 'ftruncate' since 2007-02-19.
80565 2008-09-26  Bruno Haible  <bruno@clisp.org>
80567         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
80569 2008-09-26  Bruno Haible  <bruno@clisp.org>
80571         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
80572         * modules/fwriteerror (Depends-on): Add errno.
80574 2008-09-26  Bruno Haible  <bruno@clisp.org>
80576         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
80577         * tests/test-vc-list-files-cvs.sh: Likewise.
80579 2008-09-26  Bruno Haible  <bruno@clisp.org>
80581         * doc/posix-headers/sys_resource.texi: Reorder items.
80583 2008-09-26  Jim Meyering  <meyering@redhat.com>
80585         fts: tweak inode comparison function
80586         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
80587         inode numbers, as documented.
80589         fts: sort dirent entries on inode number before traversing
80590         This avoids a quadratic, seek-related performance penalty when
80591         operating on a directory containing many entries (measurable at 10k;
80592         3.5 hours at 2 million entries with a cold cache) on certain types
80593         of file systems, including ext3 and ext4, but not tmpfs.
80594         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
80595         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
80596         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
80597         (fs_handles_readdir_ordered_dirents_efficiently): New function.
80598         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
80599         (fts_build): Set the stat.st_ino member from D_INO.
80600         If it is likely to be useful, sort dirent entries on inode number.
80602         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
80603         and the struct statfs.f_type member.
80604         * modules/fts (Depends-on): Add d-ino.
80606 2008-09-26  Bruno Haible  <bruno@clisp.org>
80608         * modules/sigpipe-die (Depends-on): Add sigpipe.
80610         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
80611         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
80612         and GNULIB_STDIO_H_SIGPIPE are set.
80613         * lib/stdio-write.c: New file.
80614         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
80615         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
80616         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
80617         REPLACE_STDIO_WRITE_FUNCS.
80618         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
80619         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
80620         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
80621         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
80622         * modules/stdio (Files): Add lib/stdio-write.c.
80623         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
80624         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
80625         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
80626         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
80627         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
80628         REPLACE_FPRINTF_POSIX.
80629         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
80630         REPLACE_PRINTF_POSIX.
80631         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
80632         REPLACE_VFPRINTF_POSIX.
80633         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
80634         REPLACE_VPRINTF_POSIX.
80635         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
80636         SIGPIPE issue.
80637         * doc/posix-functions/fputc.texi: Likewise.
80638         * doc/posix-functions/fputs.texi: Likewise.
80639         * doc/posix-functions/fwrite.texi: Likewise.
80640         * doc/posix-functions/printf.texi: Likewise.
80641         * doc/posix-functions/putc.texi: Likewise.
80642         * doc/posix-functions/putchar.texi: Likewise.
80643         * doc/posix-functions/puts.texi: Likewise.
80644         * doc/posix-functions/vfprintf.texi: Likewise.
80645         * doc/posix-functions/vprintf.texi: Likewise.
80647         * modules/safe-write (Depends-on): Add write.
80649         * modules/sigpipe-tests: New file.
80650         * tests/test-sigpipe.c: New file.
80651         * tests/test-sigpipe.sh: New file.
80653         * modules/write: New file.
80654         * lib/unistd.in.h: Include <sys/types.h>.
80655         (write): New declaration.
80656         * lib/write.c: New file.
80657         * m4/write.m4: New file.
80658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
80659         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
80660         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
80661         GNULIB_WRITE, REPLACE_WRITE.
80662         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
80663         and the SIGPIPE issue.
80665         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
80666         (raise): New declaration.
80667         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
80668         (ext_signal): New function.
80669         (rpl_raise): New function.
80670         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
80671         GNULIB_SIGNAL_H_SIGPIPE.
80672         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
80673         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
80675         * modules/sigpipe: New file.
80676         * m4/sigpipe.m4: New file.
80678 2008-09-25  Derek Price  <derek@ximbiot.com>
80679             Bruno Haible  <bruno@clisp.org>
80681         * gnulib-tool (func_import): Report all license incompatibilities, not
80682         just the first one.
80684 2008-09-25  Bruno Haible  <bruno@clisp.org>
80686         * gnulib-tool (func_import): When computing the edits, consider not
80687         only the Makefile.ams that exist but also those that will be generated.
80689 2008-09-25  Simon Josefsson  <simon@josefsson.org>
80691         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
80692         fixes gnulib-tool --test warning about duplicate dependency.
80694 2008-09-25  Bruno Haible  <bruno@clisp.org>
80696         * gnulib-tool: Don't ask the user to perform edits in the generated
80697         Makefile.ams.
80698         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
80699         apply to the Makefile.am being generated.
80700         (func_emit_tests_Makefile_am): Execute edits that apply to the
80701         Makefile.am being generated.
80702         (func_import): Setup list of Makefile.am edits before emitting the
80703         Makefile.ams, not at the end.
80704         (func_create_testdir): Update.
80705         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80707 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80709         * gnulib-tool (func_import): Store the --tests-base option in the
80710         comment in gnulib-cache.m4.
80712 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
80714         * NEWS: Document increased portability that sys_select now provides.
80716         * lib/sys_select.in.h: Install select wrapper.
80717         * lib/sys_socket.in.h: Use more descriptive name when there is no
80718         select wrapper.
80719         * lib/winsock-select.c: New.
80720         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
80721         Require gl_HEADER_SYS_SOCKET.
80722         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
80723         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
80724         * tests/test-sys_select.c: Add functional tests.
80726 2008-09-24  Eric Blake  <ebb9@byu.net>
80728         open, fopen: close fd leak in last patch
80729         * lib/open.c (rpl_open): Close fd before returning error.
80730         * lib/fopen.c (rpl_fopen): Close fd before returning error.
80731         * doc/posix-functions/open.texi (open): Document that Irix also
80732         has the bug.
80733         * doc/posix-functions/fopen.texi (fopen): Likewise.
80734         Reported by Paolo Bonzini.
80736 2008-09-24  Bruno Haible  <bruno@clisp.org>
80738         Ensure that a filename ending in a slash cannot be used to access a
80739         non-directory.
80740         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
80741         to check whether it's really a directory.
80742         * lib/fopen.c: Include fcntl.h, unistd.h.
80743         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
80744         and fdopen().
80745         * modules/fopen (Depends-on): Add unistd.
80746         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
80747         * tests/test-fopen.c (main): Likewise.
80748         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
80749         * doc/posix-functions/fopen.texi: Likewise.
80750         Reported by Eric Blake.
80752 2008-09-23  Eric Blake  <ebb9@byu.net>
80754         c-stack: avoid compiler optimizations when provoking overflow
80755         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
80756         recursion harder to optimize, to ensure a stack overflow occurs.
80757         * tests/test-c-stack.c (recurse): Likewise.
80758         Borrowed from libsigsegv.
80760         c-stack: work around Irix sigaltstack bug
80761         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
80762         whether sigaltstack uses wrong end of stack_t (copied in part from
80763         libsigsegv).
80764         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
80765         Irix bug, without requiring an over-allocation.
80766         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
80767         bug.
80769         fopen: document mingw bug on directories
80770         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
80771         not allowing a stream visiting a directory, even though reading
80772         from such a stream is not portable.
80774 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
80776         * lib/poll.c: Rewrite.
80777         * modules/poll: Depend on alloca.
80779 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
80781         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
80782         instead define prototypes for a full set of wrappers.  Ensure
80783         that Cygwin does not use the compatibility code, which is only
80784         for MinGW.
80785         * lib/winsock.c: New.
80786         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
80787         * modules/sys_socket: Add lib/winsock.c.
80789         * modules/poll-tests: Add errno and perror.
80790         * tests/test-poll.c: Use ioctl, not ioctlsocket.
80792 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
80794         * tests/test-poll.c: Downgrade minimum needed Winsock version.
80796 2008-09-23  Bruno Haible  <bruno@clisp.org>
80798         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
80799         * doc/glibc-functions/*: Likewise.
80801 2008-09-23  Simon Josefsson  <simon@josefsson.org>
80803         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
80804         success.
80806 2008-09-22  Eric Blake  <ebb9@byu.net>
80807             Bruno Haible  <bruno@clisp.org>
80809         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
80810         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
80811         supply %A but mishandle pseudo-NaN.
80812         Reported by Simon Josefsson.
80814 2008-09-21  Bruno Haible  <bruno@clisp.org>
80816         * tests/test-lock.c (main): Tweak skip message.
80817         * tests/test-tls.c (main): Likewise.
80819 2008-09-21  Bruno Haible  <bruno@clisp.org>
80821         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
80822         whether 'struct sigaction' has sa_sigaction here...
80823         (gl_PREREQ_SIG_HANDLER_H): ... not here.
80824         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
80826 2008-09-21  Bruno Haible  <bruno@clisp.org>
80828         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
80829         section.
80830         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
80831         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
80832         the new section.
80833         (Support for obsolete systems lacking POSIX:2001): New section.
80834         (String handling <string.h>): Move strdup to the new section.
80835         Suggested by Simon Josefsson and Paolo Bonzini.
80837 2008-09-21  Bruno Haible  <bruno@clisp.org>
80839         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
80840         exponents in %e and %g results on 'long double'. Needed for mingw's
80841         improved *printf functions.
80842         * tests/test-vasprintf-posix.c (test_function): Likewise.
80843         * tests/test-snprintf-posix.h (test_function): Likewise.
80844         * tests/test-sprintf-posix.h (test_function): Likewise.
80845         Reported by Eric Blake.
80847 2008-09-21  Bruno Haible  <bruno@clisp.org>
80849         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
80850         * tests/test-sprintf-posix.h (test_function): Likewise.
80852 2008-09-21  Bruno Haible  <bruno@clisp.org>
80854         * modules/getpass (Depends-on): Add strdup-posix.
80856         New module 'strdup-posix'.
80857         * modules/strdup-posix: New file.
80858         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
80859         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
80860         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
80861         REPLACE_STRDUP.
80862         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
80863         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
80864         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80865         strdup-posix.
80867         * modules/strdup (Depends-on): Remove malloc-posix.
80869 2008-09-20  Bruno Haible  <bruno@clisp.org>
80871         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
80872         Wildenhues.
80874 2008-09-20  Bruno Haible  <bruno@clisp.org>
80876         Ensure that wint_t gets defined on IRIX 5.3.
80877         * lib/wchar.in.h (wint_t): Define if not defined by the system.
80878         * lib/wctype.in.h (wint_t): Likewise.
80879         (__wctype_wint_t): Remove type.
80880         (isw*): Use wint_t instead of __wctype_wint_t.
80881         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
80882         * modules/wchar (Files): Add m4/wint_t.m4.
80883         (Makefile.am): Substitute HAVE_WINT_T.
80884         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
80885         * tests/test-wctype.c: Check that wint_t is defined.
80886         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
80887         * doc/posix-headers/wctype.texi: Likewise.
80888         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80890 2008-09-18  Bruno Haible  <bruno@clisp.org>
80892         * gnulib-tool (func_exit): Update comment.
80894 2008-09-18  Simon Josefsson  <simon@josefsson.org>
80896         * modules/getaddrinfo (Depends-on): Remove strdup, this module
80897         assumes strdup exists and does not depend on strdup to return
80898         ENOMEM on out of memory conditions.
80900 2008-09-18  Bruno Haible  <bruno@clisp.org>
80902         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
80903         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
80904         digits for the exponent.
80906 2008-09-18  Jim Meyering  <meyering@redhat.com>
80907             Bruno Haible  <bruno@clisp.org>
80909         * lib/vasnprintf.c (decimal_point_char): Define also if
80910         NEED_PRINTF_INFINITE_LONG_DOUBLE.
80912 2008-09-16  Bruno Haible  <bruno@clisp.org>
80913         and Eric Blake  <ebb9@byu.net>
80915         vasnprintf: support Irix 5.3
80916         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
80917         that mishandle long double infinity.
80918         Reported by Tom G. Christensen.
80920 2008-09-16  Bruno Haible  <bruno@clisp.org>
80922         * doc/glibc-functions/scandir.texi: Mention the function is missing on
80923         Solaris 9.
80924         * doc/glibc-functions/alphasort.texi: Likewise.
80925         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
80927 2008-09-16  Jim Meyering  <meyering@redhat.com>
80929         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
80930         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
80931         a umask modification leak out of a subshell.  Otherwise, the
80932         opensolaris /bin/sh would be accepted and thus cause unwarranted
80933         failures in the coreutils test suite.
80935 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
80937         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
80938         to succeed.
80940 2008-09-16  Jim Meyering  <meyering@redhat.com>
80942         avoid spurious test failure when library is built without ACL support
80943         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
80944         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
80945         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
80946         * tests/test-copy-acl.sh: Likewise.
80948 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80950         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
80951         based on character occurrence counts.
80953 2008-09-15  Eric Blake  <ebb9@byu.net>
80955         tests: avoid some compiler warnings
80956         * tests/test-memchr.c (main): Pass NULL indirectly.
80957         * tests/test-closein.c (main): Avoid unused variable.
80959 2008-09-15  Bruno Haible  <bruno@clisp.org>
80961         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
80962         are missing on OpenBSD 4.0 individually.
80963         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80965 2008-09-15  Bruno Haible  <bruno@clisp.org>
80967         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
80968         * doc/posix-functions/strerror.texi: Mention also Cygwin.
80969         * doc/posix-functions/perror.texi: Likewise.
80970         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
80971         is missing.
80972         Reported by Eric Blake.
80974         * lib/errno.in.h: Use replacement values >= 2000.
80975         Reported by Eric Blake.
80977 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80979         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
80980         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
80981         limit.
80982         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
80983         compareseq was aborted.
80985 2008-09-14  Bruno Haible  <bruno@clisp.org>
80987         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
80988         yvec_edit_count.
80989         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
80990         (fstrcmp_bounded): Simplify result computation accordingly.
80992 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80994         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
80995         (fstrcmp): Define in terms of fstrcmp_bounded.
80996         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
80997         lower_bound argument.
80998         Return quickly if the result is certainly < lower_bound.
80999         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
81001 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81003         * lib/diffseq.h (EARLY_ABORT): New macro.
81004         (compareseq): Change return type to bool. Return true when EARLY_ABORT
81005         evaluates to true.
81007 2008-09-14  Bruno Haible  <bruno@clisp.org>
81009         * modules/perror-tests: New file.
81010         * tests/test-perror.sh: New file.
81011         * tests/test-perror.c: New file.
81013         New module 'perror'.
81014         * lib/stdio.in.h (perror): New declaration.
81015         * lib/perror.c: New file.
81016         * m4/perror.m4: New file.
81017         * modules/perror: New file.
81018         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
81019         * doc/posix-functions/perror.texi: Mention the perror module.
81020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
81021         REPLACE_PERROR.
81022         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
81023         REPLACE_PERROR.
81025 2008-09-14  Bruno Haible  <bruno@clisp.org>
81027         * modules/stdio (Makefile.am): Reorder to match the order in
81028         lib/stdio.in.h.
81029         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
81031 2008-09-13  Bruno Haible  <bruno@clisp.org>
81033         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
81035 2008-09-13  Bruno Haible  <bruno@clisp.org>
81037         Extend strerror to cover the added errno values.
81038         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
81039         (rpl_strerror): Provide error messages for the added errno values and
81040         for the WSA* values.
81041         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
81042         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
81043         strerror.
81044         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
81045         * modules/strerror (Depends-on): Add errno.
81046         * doc/posix-functions/strerror.texi: Document the change.
81047         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
81048         and EOVERFLOW.
81050 2008-09-13  Bruno Haible  <bruno@clisp.org>
81052         * modules/EOVERFLOW: Remove file.
81053         * m4/eoverflow.m4: Remove file.
81054         * modules/EOVERFLOW-tests: Remove file.
81055         * tests/test-EOVERFLOW.c: Remove file.
81056         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
81057         * modules/ftell (Depends-on): Likewise.
81058         * modules/getdelim (Depends-on): Likewise.
81059         * modules/getugroups (Depends-on): Likewise.
81060         * modules/poll (Depends-on): Likewise.
81061         * modules/snprintf (Depends-on): Likewise.
81062         * modules/sprintf-posix (Depends-on): Likewise.
81063         * modules/vasnprintf (Depends-on): Likewise.
81064         * modules/vasprintf (Depends-on): Likewise.
81065         * modules/vfprintf-posix (Depends-on): Likewise.
81066         * modules/vsnprintf (Depends-on): Likewise.
81067         * modules/vsprintf-posix (Depends-on): Likewise.
81068         * modules/xvasprintf (Depends-on): Likewise.
81069         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
81070         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
81071         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
81072         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
81073         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
81074         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
81075         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
81076         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
81077         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
81078         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
81079         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
81080         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
81081         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
81082         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
81083         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
81084         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
81085         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
81086         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
81087         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
81088         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
81089         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
81090         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
81091         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
81092         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
81093         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
81094         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
81095         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
81096         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
81097         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
81098         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
81099         * MODULES.html.sh: Remove EOVERFLOW.
81100         * NEWS: Mention the change.
81102 2008-09-13  Bruno Haible  <bruno@clisp.org>
81104         * modules/errno-tests: New file.
81105         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
81107         * lib/errno.in.h: New file.
81108         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
81109         * modules/errno: New file.
81110         * doc/posix-headers/errno.texi: Update documentation.
81111         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
81113 2008-09-13  Bruno Haible  <bruno@clisp.org>
81115         * tests/test-poll.c: Use #if for native Windows, rather than testing
81116         __MSVCRT__.
81118 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81119             Bruno Haible  <bruno@clisp.org>
81121         * lib/glob.c: Don't include <pwd.h> on native Windows.
81122         (WINDOWS32): New macro.
81123         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
81125 2008-09-13  Bruno Haible  <bruno@clisp.org>
81127         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
81128         (ETIMEDOUT): Remove macro.
81129         (glthread_cond_timedwait_multithreaded): New declaration.
81130         (glthread_cond_timedwait): Use it.
81131         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
81132         (glthread_cond_timedwait_multithreaded): New function.
81134 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
81136         * modules/poll-tests: Do not check for io.h.
81137         * tests/test-poll.c: Check for __MSVCRT__ instead.
81139 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
81141         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
81142         * modules/poll-tests: Add inet_pton, stdbool, sockets.
81143         * tests/test-poll.c: Use them.  Use _pipe on Windows.
81145 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
81147         * modules/poll-tests: New.
81148         * tests/test-poll.c: New.
81150 2008-09-12  Eric Blake  <ebb9@byu.net>
81152         frexp: test for NetBSD failure on -0.0
81153         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
81154         not all, bugs from NetBSD 3.0 have been fixed.
81155         * doc/posix-functions/frexp.texi (frexp): Document bug.
81156         Reported by Thomas Klausner.
81158         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
81159         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
81160         literal -0.0.
81161         Reported by Jonathan C. Patschke <jp@centtech.com>.
81163 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81165         * lib/glthread/cond.h: Use dummy implementation also if
81166         USE_WIN32_THREADS.
81168 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81170         * modules/fnmatch-posix (License): Change to LGPLv2+.
81171         * modules/fnmatch-gnu (License): Likewise.
81173 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81175         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
81177 2008-09-11  Jim Meyering  <meyering@redhat.com>
81179         * users.txt: Add gtk-vnc.
81181 2008-09-08  Simon Josefsson  <simon@josefsson.org>
81183         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
81184         rotate amounts.
81186         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
81187         required for 16-bit and 8-bit rotates.
81188         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
81189         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
81190         UINT8_MAX instead of hard-coded constants.
81191         Suggested by Paul Eggert.
81193 2008-09-07  Bruno Haible  <bruno@clisp.org>
81195         * tests/test-striconveh.c (main): Check behaviour when converting from
81196         UTF-7.
81198         Make striconveh work better with stateful encodings.
81199         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
81200         that iconv does not increment the inptr when returning -1/EINVAL.
81202 2008-09-07  Bruno Haible  <bruno@clisp.org>
81204         * build-aux/config.rpath: Update according to libtool-2.2.6.
81205         * build-aux/config.libpath: Likewise.
81207 2008-09-06  Bruno Haible  <bruno@clisp.org>
81209         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
81210         * lib/freadptr.c (freadptr): Likewise.
81211         * lib/freadseek.c (freadptrinc): Likewise.
81212         Reported by Simon Josefsson.
81214 2008-09-06  Bruno Haible  <bruno@clisp.org>
81216         * modules/freadptr (License): Change to LGPLv2+.
81217         * modules/freadseek (License): Likewise.
81218         Suggested by Eric Blake.
81220         * modules/memchr2 (License): Change to LGPLv2+.
81221         Approved by Eric Blake.
81223 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81224             Bruno Haible  <bruno@clisp.org>
81226         Make gnulib-tool work with native 'sed' on AIX.
81227         * gnulib-tool (sed_noop): New variable.
81228         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
81229         func_add_or_update, func_create_testdir): Use it to initialize sed
81230         script variables.
81231         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
81233 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
81234             Bruno Haible  <bruno@clisp.org>
81236         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
81237         also works after #include directives.
81239 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
81241         getdate.y: reject an out-of-range timezone value
81242         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
81243         the range [-24...+24].  When specified with only one or two digits,
81244         * tests/test-getdate.c: Tests for the fix.
81245         * doc/getdate.texi: Document this change.
81247 2008-09-03  Bruno Haible  <bruno@clisp.org>
81249         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
81251 2008-09-02  Simon Josefsson  <simon@josefsson.org>
81253         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
81254         <bruce.korb@gmail.com> with ideas from Ben Pfaff
81255         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
81256         Blake <ebb9@byu.net>.
81258         * tests/test-bitrotate.c: Add more test vectors.
81260 2008-09-02  Eric Blake  <ebb9@byu.net>
81262         vasnprintf-posix: handle large precision via %.*d
81263         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
81264         when handling it ourselves.
81265         * tests/test-vasnprintf-posix.c (test_function): Add test.
81266         * tests/test-snprintf-posix.h (test_function): Likewise.
81267         * tests/test-sprintf-posix.h (test_function): Likewise.
81268         * tests/test-vasprintf-posix.c (test_function): Likewise.
81269         Reported by Alain Guibert.
81271 2008-09-01  Eric Blake  <ebb9@byu.net>
81273         c-stack: make configure-time check more robust
81274         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
81275         successful sigaction call.
81276         Reported by Tom G. Christensen.
81278 2008-09-01  Bruno Haible  <bruno@clisp.org>
81280         New module 'findprog-lgpl'.
81281         * modules/findprog-lgpl: New file.
81282         * lib/findprog-lgpl.c: New file.
81283         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
81284         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
81285         to decide whether to use strdup or xstrdup, concatenated_filename or
81286         xconcatenated_filename.
81288 2008-09-01  Bruno Haible  <bruno@clisp.org>
81290         Split module 'concat-filename' into 'concat-filename' (LGPL) and
81291         'xconcat-filename' (GPL).
81292         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
81293         (License): Change to LGPLv2+.
81294         * modules/xconcat-filename: New file.
81295         * lib/concat-filename.h (concatenated_filename): Change specification.
81296         (xconcatenated_filename): New declaration.
81297         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
81298         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
81299         memory situations.
81300         * lib/xconcat-filename.c: New file.
81301         * NEWS: Mention the change.
81302         * lib/findprog.c: Include concat-filename.h, not filename.h.
81303         (find_in_path): Use xconcatenated_filename instead of
81304         concatenated_filename.
81305         * lib/javacomp.c: Include concat-filename.h, not filename.h.
81306         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
81307         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
81308         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
81309         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
81310         instead of concatenated_filename.
81311         * lib/javaexec.c: Include concat-filename.h, not filename.h.
81312         (execute_java_class): Use xconcatenated_filename instead of
81313         concatenated_filename.
81314         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
81315         * modules/javacomp (Depends-on): Likewise.
81316         * modules/javaexec (Depends-on): Likewise.
81318 2008-09-01  Bruno Haible  <bruno@clisp.org>
81320         Split module 'filename' into 'filename' and 'concat-filename'.
81321         * modules/filename: Keep only lib/filename.h.
81322         (License): Change to LGPLv2+.
81323         * modules/concat-filename: New file, extracted from modules/filename.
81324         * lib/filename.h (concatenated_filename): Remove declaration.
81325         * lib/concat-filename.h: New file, extracted from lib/filename.h.
81326         * lib/concat-filename.c: Include concat-filename.h.
81327         * NEWS: Mention the change.
81329 2008-09-01  Simon Josefsson  <simon@josefsson.org>
81331         * lib/bitrotate.h (rotl8, rotr8): Add.
81333         * modules/bitrotate (configure.ac): Need
81334         AC_REQUIRE([AC_C_INLINE]).
81335         (Description): Mention stdint.h.  Reported by Bruno Haible
81336         <bruno@clisp.org>.
81338         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
81339         Paolo Bonzini <bonzini@gnu.org>.
81341 2008-08-31  Bruno Haible  <bruno@clisp.org>
81343         Assume Solaris specific bi-arch conventions on Solaris systems.
81344         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
81345         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
81346         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
81347         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
81348         like acl_libdirstem.
81349         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
81350         acl_libdirstem.
81351         * NEWS: Mention the change.
81352         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
81354 2008-08-31  Jim Meyering  <meyering@redhat.com>
81356         * lib/strftime.h: Add comments describing the two added arguments.
81358         remove duplicate #include directives
81359         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
81360         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
81362 2008-08-31  Bruno Haible  <bruno@clisp.org>
81364         New module 'sigpipe-die'.
81365         * modules/sigpipe-die: New file.
81366         * lib/sigpipe-die.h: New file.
81367         * lib/sigpipe-die.c: New file.
81368         * MODULES.html.sh (Signal handling): Add sigpipe-die.
81370 2008-08-31  Bruno Haible  <bruno@clisp.org>
81372         Don't override previously installed signal handlers.
81373         * lib/fatal-signal.c (saved_sigactions): New variable.
81374         (uninstall_handlers): Reset the signal to the saved handler, not
81375         to SIG_DFL (except when ignored).
81376         (install_handlers): Save the previous handlers.
81378 2008-08-30  Bruno Haible  <bruno@clisp.org>
81380         * gnulib-tool (func_reset_sigpipe): New function.
81381         (func_get_automake_snippet, func_modules_transitive_closure,
81382         func_import): Invoke it before a join command that reads from stdin,
81383         to avoid "echo: write error: Broken pipe" error messages on stderr.
81384         Reported by Sam Steingold <sds@gnu.org>.
81386 2008-08-30  Bruno Haible  <bruno@clisp.org>
81388         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
81389         Code copied from m4/open.m4.
81390         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
81391         access and the filename ends in a slash. Code copied from lib/open.c.
81392         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
81393         * tests/test-fopen.c (main): Check against bug with trailing slash.
81395 2008-08-29  Bruno Haible  <bruno@clisp.org>
81397         Avoid some "gcc -pedantic" warnings.
81398         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
81399         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
81400         * lib/dirent.in.h: Likewise.
81401         * lib/fcntl.in.h: Likewise.
81402         * lib/float.in.h: Likewise.
81403         * lib/iconv.in.h: Likewise.
81404         * lib/inttypes.in.h: Likewise.
81405         * lib/locale.in.h: Likewise.
81406         * lib/math.in.h: Likewise.
81407         * lib/netinet_in.in.h: Likewise.
81408         * lib/search.in.h: Likewise.
81409         * lib/signal.in.h: Likewise.
81410         * lib/stdarg.in.h: Likewise.
81411         * lib/stdint.in.h: Likewise.
81412         * lib/stdio.in.h: Likewise.
81413         * lib/stdlib.in.h: Likewise.
81414         * lib/string.in.h: Likewise.
81415         * lib/strings.in.h: Likewise.
81416         * lib/sys_select.in.h: Likewise.
81417         * lib/sys_socket.in.h: Likewise.
81418         * lib/sys_stat.in.h: Likewise.
81419         * lib/sys_time.in.h: Likewise.
81420         * lib/sysexits.in.h: Likewise.
81421         * lib/time.in.h: Likewise.
81422         * lib/unistd.in.h: Likewise.
81423         * lib/wchar.in.h: Likewise.
81424         * lib/wctype.in.h: Likewise.
81425         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
81426         * modules/fchdir (Makefile.am): Likewise.
81427         * modules/fcntl (Makefile.am): Likewise.
81428         * modules/float (Makefile.am): Likewise.
81429         * modules/iconv_open (Makefile.am): Likewise.
81430         * modules/inttypes (Makefile.am): Likewise.
81431         * modules/locale (Makefile.am): Likewise.
81432         * modules/math (Makefile.am): Likewise.
81433         * modules/netinet_in (Makefile.am): Likewise.
81434         * modules/search (Makefile.am): Likewise.
81435         * modules/signal (Makefile.am): Likewise.
81436         * modules/stdarg (Makefile.am): Likewise.
81437         * modules/stdint (Makefile.am): Likewise.
81438         * modules/stdio (Makefile.am): Likewise.
81439         * modules/stdlib (Makefile.am): Likewise.
81440         * modules/string (Makefile.am): Likewise.
81441         * modules/strings (Makefile.am): Likewise.
81442         * modules/sys_select (Makefile.am): Likewise.
81443         * modules/sys_socket (Makefile.am): Likewise.
81444         * modules/sys_stat (Makefile.am): Likewise.
81445         * modules/sys_time (Makefile.am): Likewise.
81446         * modules/sysexits (Makefile.am): Likewise.
81447         * modules/time (Makefile.am): Likewise.
81448         * modules/unistd (Makefile.am): Likewise.
81449         * modules/wchar (Makefile.am): Likewise.
81450         * modules/wctype (Makefile.am): Likewise.
81451         Reported by Reuben Thomas <rrt@sc3d.org>.
81453 2008-08-29  Bruno Haible  <bruno@clisp.org>
81455         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
81456         any more.
81458 2008-08-29  Simon Josefsson  <simon@josefsson.org>
81460         * MODULES.html.sh (Misc): Add bitrotate.
81462         * modules/bitrotate: New file.
81464         * lib/bitrotate.h: New file.
81466         * modules/bitrotate-tests: New file.
81468         * tests/test-bitrotate.c: New file.
81470         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
81471         on the bitrotate module.
81473         * lib/arctwo.c: Use new bitrotate module.
81475 2008-08-29  Jim Meyering  <meyering@redhat.com>
81477         bootstrap: merge changes from coreutils
81478         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
81479         of copied files.  Remove a kludge, now that this is fixed.
81480         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
81481         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
81482         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
81484 2008-08-29  Bruno Haible  <bruno@clisp.org>
81486         * MODULES.html.sh: Remove --cvs-urls option.
81488 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
81490         maint.mk: adjust to file name change
81491         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
81493 2008-08-28  Jim Meyering  <meyering@redhat.com>
81495         * modules/getndelim2 (License): Relicense to LGPLv2+.
81496         Approved by Richard Stallman for the version of 1995, and by
81497         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
81499 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
81501         * lib/getdelim.c (flockfile, funlockfile): Make all of them
81502         dummy if one is not available.  Do not touch them if
81503         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
81504         (getc_maybe_unlocked): New.
81505         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
81507 2008-08-26  Eric Blake  <ebb9@byu.net>
81509         doc/INSTALL: resync from autoconf
81510         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
81511         (INSTALL_PRELUDE): Delete; this is done more efficiently by
81512         moving...
81513         * install.texi [!autoconf]: ...here.  Resync from autoconf.
81514         * INSTALL: Regenerate.
81515         * INSTALL.ISO: New file.
81516         * INSTALL.UTF-8: Likewise.
81518 2008-08-26  Jim Meyering  <meyering@redhat.com>
81520         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
81521         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
81522         these definitions conditional, so that they may be overridden, too.
81524 2008-08-26  Bruno Haible  <bruno@clisp.org>
81526         Generate INSTALL file variants with prettier quotes.
81527         * doc/Makefile (INSTALL_PRELUDE): New macro.
81528         (INSTALL): Use it.
81529         (INSTALL.ISO, INSTALL.UTF-8): New rules.
81531 2008-08-26  Bruno Haible  <bruno@clisp.org>
81533         Run makeinfo in an English locale.
81534         * doc/Makefile (MAKEINFO): New variable.
81536 2008-08-26  Bruno Haible  <bruno@clisp.org>
81538         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
81539         Suggested by Eric Blake.
81541 2008-08-25  Bruno Haible  <bruno@clisp.org>
81543         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
81545 2008-08-25  Eric Blake  <ebb9@byu.net>
81547         c-stack: test that stack overflow can be caught
81548         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
81549         that platform allows handling stack overflow; at least OS/2 EMX
81550         has sigaltstack, but crashes before transferring control to
81551         handler on stack overflow.
81552         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
81553         check for HAVE_STACK_OVERFLOW_HANDLING.
81554         Reported by Elbert Pol.
81556 2008-08-25  Bruno Haible  <bruno@clisp.org>
81558         * doc/posix-functions/strftime.texi: Fix description of strftime
81559         module.
81561 2008-08-24  Bruno Haible  <bruno@clisp.org>
81563         * tests/uniwidth/test-uc_width2.c: New file.
81564         * tests/uniwidth/test-uc_width2.sh: New file.
81565         * modules/uniwidth/width-tests (Files): Add the new files.
81566         (TESTS): Add uniwidth/test-uc_width2.sh.
81567         (TESTS_ENVIRONMENT): New variable.
81568         (check_PROGRAMS): Add test-uc_width2.
81569         (test_uc_width2_SOURCES): New variable.
81571         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
81572         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
81573         not 0x00AB.
81574         Reported by Alexander V. Lukyanov <lav@netis.ru>.
81576 2008-08-22  Eric Blake  <ebb9@byu.net>
81578         test-lock, test-tls: mention why a test is skipped
81579         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
81580         skipped.
81581         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
81583         count-one-bits: relax license
81584         * modules/count-one-bits (License): Relicense to LGPLv2+.
81585         Suggested by Ludovic Courtès, approved by Ben Pfaff.
81587 2008-08-22  Andreas Schwab  <schwab@suse.de>
81589         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
81590         Remove spurious space in assignment.
81592 2008-08-21  Simon Josefsson  <simon@josefsson.org>
81594         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
81595         Paul Eggert <eggert@CS.UCLA.EDU>.
81597 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
81599         * modules/gettext: Add m4/threadlib.m4.
81601 2008-08-19  Eric Blake  <ebb9@byu.net>
81603         test-c-stack: fix compilation failure on FreeBSD 5.0
81604         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
81605         headers before <sys/resource.h>.
81606         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
81607         the bug.
81608         Reported by Nelson H. F. Beebe.
81610         strverscmp: migrate from "strverscmp.h" to <string.h>
81611         * modules/string (Makefile.am): Add new hooks.
81612         * modules/strverscmp (Files): Remove strverscmp.h.
81613         (Depends-on): Add string.
81614         (configure.ac): Add indicator.
81615         (Include): Mention new header.
81616         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
81617         defaults.
81618         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
81619         results.
81620         * lib/strverscmp.h: Delete.
81621         * lib/string.in.h (strverscmp): Provide declaration, when needed.
81622         * tests/test-strverscmp.c (includes): Adjust client.
81623         * lib/check-version.c (includes): Likewise.
81624         * NEWS: Document the change.
81626         strverscmp: add unit test
81627         * modules/strverscmp-tests: New file.
81628         * tests/test-strverscmp.c: Likewise.
81630 2008-08-19  Simon Josefsson  <simon@josefsson.org>
81632         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
81633         regarding Windows crypto stuff, from Mono.
81635 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
81637         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
81638         if present, for intel RND.  Return error on failures.
81640 2008-08-18  Ben Pfaff  <blp@gnu.org>
81642         gitlog-to-changelog: give better diagnostic for failed pipe-open
81643         * build-aux/gitlog-to-changelog: Improve error message: suggest
81644         that the version of Git may be too old.
81646 2008-08-18  Simon Josefsson  <simon@josefsson.org>
81648         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
81649         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
81651 2008-08-18  Bruno Haible  <bruno@clisp.org>
81653         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
81654         pthread_in_use().
81656 2008-08-18  Bruno Haible  <bruno@clisp.org>
81658         * lib/glthread/threadlib.c: Include <pthread.h>.
81660 2008-08-18  Bruno Haible  <bruno@clisp.org>
81662         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
81663         glthread_recursive_lock_* macros.
81664         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
81665         Fix syntax error.
81667 2008-08-18  Bruno Haible  <bruno@clisp.org>
81669         * lib/glthread/thread.c: Avoid forcing a context switch right after
81670         thread creation.
81672 2008-08-17  Bruno Haible  <bruno@clisp.org>
81674         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
81675         * lib/glthread/thread.h: Provide Win32 specific implementation.
81676         * modules/thread (Files): Add lib/glthread/thread.c.
81677         (Depends-on): Add lock.
81678         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
81680 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81682         New module 'yield'.
81683         * modules/yield: New file.
81684         * lib/glthread/yield.h: New file.
81685         * m4/yield.m4: New file.
81686         * MODULES.html.sh (Multithreading): Add yield.
81688 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81690         New module 'thread'.
81691         * modules/thread: New file.
81692         * lib/glthread/thread.h: New file.
81693         * m4/thread.m4: New file.
81694         * MODULES.html.sh (Multithreading): Add thread.
81696 2008-08-17  Bruno Haible  <bruno@clisp.org>
81698         * lib/glthread/lock.h: Include <stdlib.h> always.
81699         * lib/glthread/tls.h: Likewise.
81700         * lib/glthread/cond.h: Likewise.
81702 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81704         New module 'cond'.
81705         * modules/cond: New file.
81706         * lib/glthread/cond.h: New file.
81707         * lib/glthread/cond.c: New file.
81708         * m4/cond.m4: New file.
81709         * MODULES.html.sh (Multithreading): Add cond.
81711 2008-08-16  Eric Blake  <ebb9@byu.net>
81713         c-stack: fix regression on Irix 5.3 from 2008-06-21
81714         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
81715         sa_sigaction...
81716         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
81717         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
81718         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
81719         * modules/signal (Makefile.am): Use the value.
81720         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
81721         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
81722         * doc/posix-headers/signal.texi (signal.h): Document this
81723         portability issue.
81724         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
81725         Reported by Tom G. Christensen.
81727 2008-08-17  Bruno Haible  <bruno@clisp.org>
81729         New module 'threadlib'.
81730         * modules/threadlib: New file.
81731         * lib/glthread/threadlib.c: New file, extracted from
81732         lib/glthread/lock.c.
81733         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
81734         functions.
81735         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
81736         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
81737         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
81738         macros.
81739         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
81740         (gl_DISABLE_THREADS): Remove macro.
81741         * modules/lock (Files): Remove build-aux/config.rpath.
81742         (Depends-on): Remove havelib. Add threadlib.
81743         (configure.ac-early): Remove section.
81744         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
81745         * modules/tls (Depends-on): Remove lock. Add threadlib.
81746         (Link): New section, copied from threadlib.
81747         * MODULES.html.sh (Multithreading): Add threadlib.
81749 2008-08-14  Bruno Haible  <bruno@clisp.org>
81751         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
81752         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
81753         glthread_rwlock_unlock, glthread_rwlock_destroy,
81754         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
81755         glthread_recursive_lock_destroy): Define as macros always.
81756         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
81757         glthread_lock_lock.
81758         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
81759         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
81760         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
81761         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
81762         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
81763         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
81764         (glthread_recursive_lock_lock_func): Renamed from
81765         glthread_recursive_lock_lock.
81766         (glthread_recursive_lock_unlock_func): Renamed from
81767         glthread_recursive_lock_unlock.
81768         (glthread_recursive_lock_destroy_func): Renamed from
81769         glthread_recursive_lock_destroy.
81771 2008-08-14  Bruno Haible  <bruno@clisp.org>
81773         * lib/glthread/lock.h: Renamed from lib/lock.h.
81774         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
81775         * lib/glthread/tls.h: Renamed from lib/tls.h.
81776         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
81777         * lib/fstrcmp.c: Update includes.
81778         * lib/strsignal.c: Update includes.
81779         * modules/lock (Files, Makefile.am): Update.
81780         (Include): Change to "glthread/lock.h".
81781         * modules/tls (Files, Makefile.am): Update.
81782         (Include): Change to "glthread/tls.h".
81783         * tests/test-lock.c: Update includes.
81784         * tests/test-tls.c: Update includes.
81785         * NEWS: Mention the renamed header files.
81787 2008-08-11  Jim Meyering  <meyering@redhat.com>
81789         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
81791 2008-08-11  Eric Blake  <ebb9@byu.net>
81793         test-c-stack: avoid C99-ism
81794         * tests/test-c-stack.c (main): Fix whitespace, move declaration
81795         before statement.
81796         Reported by Alain Guibert.
81798 2008-08-10  Jim Meyering  <meyering@redhat.com>
81800         ensure that return value of uinttostr et al are not ignored
81801         * lib/inttostr.h (__GNUC_PREREQ): Define.
81802         (__attribute_warn_unused_result__): Define.
81803         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
81805 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
81807         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
81808         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
81810 2008-08-07  Jim Meyering  <meyering@redhat.com>
81812         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
81814         * modules/mkstemp (License): Relicense under LGPLv2+.
81815         * modules/tempname (License): Likewise.
81817 2008-08-06  Bruno Haible  <bruno@clisp.org>
81819         * lib/poll.c (poll): Further micro-optimization.
81821 2008-08-06  Jim Meyering  <meyering@redhat.com>
81823         inet_pton.c: use locale-independent tolower
81824         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
81825         (inet_pton6): Use c_tolower rather than tolower.
81826         * modules/inet_pton (Depends-on): Add c-ctype.
81828 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
81830         * lib/poll.c (poll): Avoid division when timeout is 0, cache
81831         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
81833 2008-08-06  Jim Meyering  <meyering@redhat.com>
81835         * modules/inet_pton (License): Relicense under LGPLv2+.
81837 2008-08-03  Bruno Haible  <bruno@clisp.org>
81839         Additional non-aborting API for lock and tls.
81840         * lib/lock.h: Include <errno.h>.
81841         (glthread_lock_init): New macro/function.
81842         (gl_lock_init): Define as wrapper around glthread_lock_init.
81843         (glthread_lock_lock): New macro/function.
81844         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
81845         (glthread_lock_unlock): New macro/function.
81846         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
81847         (glthread_lock_destroy): New macro/function.
81848         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
81849         (glthread_rwlock_init): New macro/function.
81850         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
81851         (glthread_rwlock_rdlock): New macro/function.
81852         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
81853         (glthread_rwlock_wrlock): New macro/function.
81854         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
81855         (glthread_rwlock_unlock): New macro/function.
81856         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
81857         (glthread_rwlock_destroy): New macro/function.
81858         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
81859         (glthread_recursive_lock_init): New macro/function.
81860         (gl_recursive_lock_init): Define as wrapper around
81861         glthread_recursive_lock_init.
81862         (glthread_recursive_lock_lock): New macro/function.
81863         (gl_recursive_lock_lock): Define as wrapper around
81864         glthread_recursive_lock_lock.
81865         (glthread_recursive_lock_unlock): New macro/function.
81866         (gl_recursive_lock_unlock): Define as wrapper around
81867         glthread_recursive_lock_unlock.
81868         (glthread_recursive_lock_destroy): New macro/function.
81869         (gl_recursive_lock_destroy): Define as wrapper around
81870         glthread_recursive_lock_destroy.
81871         (glthread_once): New macro/function.
81872         (gl_once): Define as wrapper around glthread_once.
81873         Update function declarations.
81874         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
81875         glthread_rwlock_init. Return error code.
81876         (glthread_rwlock_rdlock_multithreaded): Renamed from
81877         glthread_rwlock_rdlock. Return error code.
81878         (glthread_rwlock_wrlock_multithreaded): Renamed from
81879         glthread_rwlock_wrlock. Return error code.
81880         (glthread_rwlock_unlock_multithreaded): Renamed from
81881         glthread_rwlock_unlock. Return error code.
81882         (glthread_rwlock_destroy_multithreaded): Renamed from
81883         glthread_rwlock_destroy. Return error code.
81884         (glthread_recursive_lock_init_multithreaded): Renamed from
81885         glthread_recursive_lock_init. Return error code.
81886         (glthread_recursive_lock_lock_multithreaded): Renamed from
81887         glthread_recursive_lock_lock. Return error code.
81888         (glthread_recursive_lock_unlock_multithreaded): Renamed from
81889         glthread_recursive_lock_unlock. Return error code.
81890         (glthread_recursive_lock_destroy_multithreaded): Renamed from
81891         glthread_recursive_lock_destroy. Return error code.
81892         (glthread_once_call): Make static.
81893         (glthread_once_multithreaded): Renamed from glthread_once.
81894         * lib/tls.h: Include <errno.h>.
81895         (glthread_tls_key_init): New macro/function.
81896         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
81897         (glthread_tls_set): New macro/function.
81898         (gl_tls_set): Define as wrapper around glthread_tls_set.
81899         (glthread_tls_key_destroy): New macro/function.
81900         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
81901         Update function declarations.
81902         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
81903         glthread_tls_get.
81904         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
81906 2008-08-04  Eric Blake  <ebb9@byu.net>
81908         gnumakefile: use space, not TAB, outside of targets
81909         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
81911 2008-08-02  Jim Meyering  <meyering@redhat.com>
81913         getdate.y: avoid locale-dependent date parsing failure
81914         In Turkish locales, getdate would fail to recognize keywords
81915         containing a lowercase "i".  The solution is not to rely on
81916         locale-sensitive case-conversion.
81917         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
81918         (lookup_word): Use c_toupper in place of toupper.
81919         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
81920         Reported by Vefa Bicakci <bicave@superonline.com> in
81921         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
81922         * modules/getdate (Depends-on): Add c-ctype.
81924 2008-08-02  Bruno Haible  <bruno@clisp.org>
81926         * gnulib-tool (func_import): When updating or creating a .gitignore
81927         file, prepend each added line with a slash, and ignore leading slashes
81928         from the existing lines.
81929         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
81931 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81933         Portability fix for GNU make 3.79.1.
81934         * top/GNUmakefile: Avoid 'else COND', which older GNU make
81935         versions do not understand.
81937 2008-08-01  Bruno Haible  <bruno@clisp.org>
81939         Work around bug of HP-UX 10.20 cc with -0.0 literal.
81940         * tests/test-isnanf.h (zero): New variable.
81941         (main): Avoid literal -0.0f.
81942         * tests/test-isnand.h (zero): New variable.
81943         (main): Avoid literal -0.0.
81944         * tests/test-isnanl.h (zero): New variable.
81945         (main): Avoid literal -0.0L.
81946         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
81947         (test_float, test_double, test_long_double): Avoid literals -0.0f,
81948         -0.0, -0.0L.
81949         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
81950         (test_signbitd): Avoid literal -0.0.
81951         (test_signbitl): Avoid literal -0.0L.
81952         * tests/test-ceilf1.c (zero): New variable.
81953         (main): Avoid literal -0.0f.
81954         * tests/test-ceill.c (zero): New variable.
81955         (main): Avoid literal -0.0L.
81956         * tests/test-floorf1.c (zero): New variable.
81957         (main): Avoid literal -0.0f.
81958         * tests/test-floorl.c (zero): New variable.
81959         (main): Avoid literal -0.0L.
81960         * tests/test-roundf1.c (zero): New variable.
81961         (main): Avoid literal -0.0f.
81962         * tests/test-round1.c (zero): New variable.
81963         (main): Avoid literal -0.0.
81964         * tests/test-roundl.c (zero): New variable.
81965         (main): Avoid literal -0.0L.
81966         * tests/test-truncf1.c (zero): New variable.
81967         (main): Avoid literal -0.0f.
81968         * tests/test-trunc1.c (zero): New variable.
81969         (main): Avoid literal -0.0.
81970         * tests/test-truncl.c (zero): New variable.
81971         (main): Avoid literal -0.0L.
81972         * tests/test-frexp.c (zero): New variable.
81973         (main): Avoid literal -0.0.
81974         * tests/test-frexpl.c (zero): New variable.
81975         (main): Avoid literal -0.0L.
81976         * tests/test-ldexpl.c (zero): New variable.
81977         (main): Avoid literal -0.0L.
81978         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
81979         (zerod, zerol): New variables.
81980         (test_function): Avoid literals -0.0, -0.0L.
81981         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
81982         (zerod, zerol): New variables.
81983         (test_function): Avoid literals -0.0, -0.0L.
81984         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
81985         (zerod, zerol): New variables.
81986         (test_function): Avoid literals -0.0, -0.0L.
81987         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
81988         (zerod, zerol): New variables.
81989         (test_function): Avoid literals -0.0, -0.0L.
81990         * tests/test-strtod.c (zero): New variable.
81991         (main): Avoid literal -0.0.
81992         Reported by Jonathan C. Patschke <jp@centtech.com>.
81994 2008-07-31  Jim Meyering  <meyering@redhat.com>
81996         sha256.h: correct definition of SHA224_DIGEST_SIZE
81997         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
81998         Reported by Paulie Pena IV <paulie4@gmail.com>.
81999         Define as 224 / 8, rather than as a literal.
82000         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
82001         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
82002         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
82004 2008-07-31  Bruno Haible  <bruno@clisp.org>
82006         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
82007         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
82008         Reported by Jonathan Patschke <jp@centtech.com>.
82010 2008-07-31  Bruno Haible  <bruno@clisp.org>
82012         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
82013         Reported by Paolo Bonzini <bonzini@gnu.org>.
82015 2008-07-30  Eric Blake  <ebb9@byu.net>
82017         test-strtod: allow compilation without -lm
82018         * tests/test-strtod.c (main): Avoid link dependence on fabs.
82019         Reported by Dennis Clarke <blastwave@gmail.com>.
82021 2008-07-28  Jim Meyering  <meyering@redhat.com>
82023         bootstrap: work also when there are no .po files in po/
82024         * build-aux/bootstrap (update_po_files): Complete the change
82025         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
82027 2008-07-27  Jim Meyering  <meyering@redhat.com>
82029         * users.txt: Add zile.
82031 2008-07-26  Ben Pfaff  <blp@gnu.org>
82033         Add missing dependencies on new m4/exponent[fdl].m4 files.
82034         * modules/isnanf-nolibm: Add m4/exponentf.m4.
82035         * modules/isnand-nolibm: Add m4/exponentd.m4.
82036         * modules/isnanl-nolibm: Add m4/exponentl.m4.
82037         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
82038         m4/isnan[fdl].m4, because the macros actually used moved.
82039         Reported by Jim Meyering.
82041 2008-07-14  Ben Pfaff  <blp@gnu.org>
82043         Add isinf module.
82044         * lib/isinf.c: New file.
82045         * lib/math.in.h: Define isinf macro if we have decided to replace
82046         it.
82047         * m4/isinf.m4: New file.
82048         * m4/math_h.m4: Initialize and substitute variables for isinf
82049         module.
82050         * modules/isinf: New file.
82051         * modules/isinf-tests: New file.
82052         * modules/math: Add substitutions for new module.
82053         * tests/test-isinf.c: New file.
82054         * doc/posix-functions/isinf.texi: Mention new module.
82055         * MODULES.html.sh: Mention new module.
82057 2008-07-14  Ben Pfaff  <blp@gnu.org>
82059         Factor out some macros for use by additional modules.
82060         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
82061         exponentf.m4.
82062         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
82063         exponentd.m4.
82064         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
82065         file exponentl.m4.
82066         * m4/exponentf.m4: New file.
82067         * m4/exponentd.m4: New file.
82068         * m4/exponentl.m4: New file.
82069         * modules/isnanf: Use new file m4/exponentf.m4.
82070         * modules/isnand: Use new file m4/exponentd.m4.
82071         * modules/isnanl: Use new file m4/exponentl.m4.
82073 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
82075         mktime.c: normalize tp->tm_isdst value to -1/0/1.
82076         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
82077         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
82078         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
82080         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
82081         readlink on platforms without PATH_MAX.
82083 2008-07-21  Eric Blake  <ebb9@byu.net>
82085         Warn, not fail, on stale version.
82086         * top/GNUmakefile (_curr-ver): Tone down previous patch.
82088         Don't allow installation with stale devel version number.
82089         * top/GNUmakefile (_is-install-target): New macro.
82090         (_curr-ver): Forbid installation with stale version number.
82092 2008-07-20  Bruno Haible  <bruno@clisp.org>
82094         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
82095         TESTS_ENVIRONMENT.
82096         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
82098 2008-07-20  Bruno Haible  <bruno@clisp.org>
82100         * lib/c-stack.h (c_stack_action): Add documentation.
82101         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
82103 2008-07-20  Bruno Haible  <bruno@clisp.org>
82105         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
82106         * modules/readlink (License): Likewise.
82108 2008-07-17  Eric Blake  <ebb9@byu.net>
82110         * modules/c-stack (Link): Fix typo.
82112         Make c-stack use libsigsegv, when available.
82113         * modules/c-stack (Depends-on): Add libsigsegv.
82114         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
82115         needed.
82116         * lib/c-stack.c (SIGSTKSZ): Define fallback.
82117         (segv_handler, overflow_handler, c_stack_action)
82118         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
82119         implementation when libsigsegv is available, but only when using
82120         the library is necessary.
82121         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
82122         comment, explaining why XSI check fails on Linux.
82123         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
82124         * tests/test-c-stack2.sh: Tweak skip message.
82125         * NEWS: Document new link-time requirements.
82127 2008-07-16  Eric Blake  <ebb9@byu.net>
82129         c-stack: Expose false positives when not using libsigsegv.
82130         * modules/c-stack-tests (Files): Expand test.
82131         * tests/test-c-stack.c (main): Add means to conditionally trigger
82132         non-overflow SIGSEGV.
82133         * tests/test-c-stack2.sh: New file.
82135 2008-07-14  Bruno Haible  <bruno@clisp.org>
82137         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
82138         Reported by Eric Blake.
82140 2008-07-14  Sam Steingold  <sds@gnu.org>
82141             Bruno Haible  <bruno@clisp.org>
82143         New module libsigsegv.
82144         * modules/libsigsegv: New file.
82145         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
82146         modifications.
82147         * MODULES.html.sh (Signal handling): New section.
82149 2008-07-14  Bruno Haible  <bruno@clisp.org>
82151         * modules/unictype/ctype-* (Description): Add the word "function".
82152         Improves the resulting doc in MODULES.html.
82154 2008-07-12  Ben Pfaff  <blp@gnu.org>
82156         Add longlong module.
82157         * modules/longlong: New file.
82159 2008-07-12  Bruno Haible  <bruno@clisp.org>
82161         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
82162         to empty.
82164 2008-07-10  Ben Pfaff  <blp@gnu.org>
82166         Add isnan module.
82167         * doc/posix-functions/isnan.texi: Mention new module.
82168         * lib/math.in.h: Define isnan macro if we have decided to replace
82169         it.
82170         * m4/isnan.m4: New file.
82171         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
82172         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
82173         also.
82174         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
82175         redundancy.
82176         * m4/math_h.m4: Initialize and substitute variables for isnan
82177         module.
82178         * modules/isnan: New file.
82179         * modules/isnan-tests: New file.
82180         * modules/math: Add substitutions for new module.
82181         * tests/test-isnan.c: New file.
82182         * MODULES.html.sh: Mention new module.
82184 2008-07-10  Ben Pfaff  <blp@gnu.org>
82186         Add isnanf module.
82187         * lib/isnanf.m4: New file.
82188         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
82189         (gl_HAVE_ISNANF_IN_LIBM): New macro.
82190         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
82191         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
82192         * modules/isnanf: New file.
82193         * modules/isnanf-tests: New file.
82194         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
82195         files.
82196         * tests/test-isnanf-nolibm.c: factored most of its contents into
82197         new file tests/test-isnanf.h.
82198         * tests/test-isnanf.h: New file.
82199         * tests/test-isnanf.c: New file.
82200         * MODULES.html.sh: Mention new module.
82201         * doc/glibc-functions/isnanf.texi: Mention new module.
82203 2008-07-10  Ben Pfaff  <blp@gnu.org>
82205         Add isnand module.
82206         * lib/isnand.h: New file.
82207         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
82208         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
82209         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
82210         functionality also.
82211         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
82212         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
82213         (gl_HAVE_ISNAND_IN_LIBM): New macro.
82214         * modules/isnand: New file.
82215         * modules/isnand-tests: New file.
82216         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
82217         files.
82218         * tests/test-isnand-nolibm.c: factored most of its contents into
82219         new file tests/test-isnand.h.
82220         * tests/test-isnand.h: New file.
82221         * tests/test-isnand.c: New file.
82222         * MODULES.html.sh: Mention new module.
82224 2008-07-10  Ben Pfaff  <blp@gnu.org>
82226         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
82227         * lib/isnand.h: Rename lib/isnand-nolibm.h.
82228         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
82229         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
82230         * modules/isnanf-nolibm: Update references to renamed files.
82231         * modules/isnand-nolibm: Likewise.
82232         * modules/isnanf-nolibm-tests: Likewise.
82233         * modules/isnand-nolibm-tests: Likewise.
82234         * lib/frexp.c: Likewise.
82235         * lib/isfinite.c: Likewise.
82236         * lib/signbitd.c: Likewise.
82237         * lib/signbitf.c: Likewise.
82238         * lib/vasnprintf.c: Likewise.
82239         * tests/test-ceilf1.c: Likewise.
82240         * tests/test-ceilf2.c: Likewise.
82241         * tests/test-floorf1.c: Likewise.
82242         * tests/test-floorf2.c: Likewise.
82243         * tests/test-frexp.c: Likewise.
82244         * tests/test-round1.c: Likewise.
82245         * tests/test-round2.c: Likewise.
82246         * tests/test-roundf1.c: Likewise.
82247         * tests/test-strtod.c: Likewise.
82248         * tests/test-trunc1.c: Likewise.
82249         * tests/test-trunc2.c: Likewise.
82250         * tests/test-truncf1.c: Likewise.
82251         * tests/test-truncf2.c: Likewise.
82252         * NEWS: Mention the renamed header files.
82254 2008-07-11  Jim Meyering  <meyering@redhat.com>
82256         vc-list-files: make the last-resort awk code more portable
82257         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
82258         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
82259         does not support it.
82261 2008-07-10  Eric Blake  <ebb9@byu.net>
82263         Work with tar's bootstrap.
82264         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
82265         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
82266         an m4 comment.
82268 2008-07-09  Jim Meyering  <meyering@redhat.com>
82270         posix-shell.m4: fix typo that made this test malfunction
82271         * m4/posix-shell.m4: Remove capitalization in variable name.
82273 2008-07-08  Bruno Haible  <bruno@clisp.org>
82275         * m4/onceonly.m4: Update comments.
82276         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82278 2008-07-04  Jim Meyering  <meyering@redhat.com>
82280         * users.txt: Add vc-dwim.
82281         (bison, coreutils): Use the gitweb URL.
82283 2008-07-03  Jim Meyering  <meyering@redhat.com>
82285         * users.txt: Add libffcall.  From Sam Steingold.
82287 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
82289         getdate.y: do not ignore TZ with relative day, month or year offset
82290         * lib/getdate.y (get_date): Move the tz-handling block to follow the
82291         relative-date-handling, since otherwise, the latter would clobber the
82292         sole output (an updated Start value) of the tz-handling block.
82293         * tests/test-getdate.c: Tests for the fix
82295 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82297         Recognize 'foo_LIBRARIES += libgnu.a'.
82298         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
82299         makefile snippet has already specified an installation location,
82300         also using '+='.
82302 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
82304         getdate.y: factor out common actions
82305         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
82306         Use them in place of open-coded actions.
82308 2008-07-01  Simon Josefsson  <simon@josefsson.org>
82310         Add self-test for getdate module.
82311         * modules/getdate-tests: New file.
82312         * tests/test-getdate.c: New file.
82314 2008-06-29  Bruno Haible  <bruno@clisp.org>
82316         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
82317         .gitignore.
82318         Reported by Sylvain Beucler <beuc@beuc.net>.
82320 2008-06-29  Bruno Haible  <bruno@clisp.org>
82322         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
82323         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
82325 2008-06-29  Bruno Haible  <bruno@clisp.org>
82327         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
82328         EXTRA_DIST.
82329         Reported by Sylvain Beucler <beuc@beuc.net>.
82331 2008-06-26  Jim Meyering  <meyering@redhat.com>
82333         make several modules depend on the "open" module
82334         This provides slightly increased consistency when opening-for-write
82335         the name of a non-directory spelled with a trailing slash.
82336         * modules/chdir-safer: Likewise.
82337         * modules/chown: Likewise.
82338         * modules/clean-temp: Likewise.
82339         * modules/copy-file: Likewise.
82340         * modules/fchdir: Likewise.
82341         * modules/fcntl-safer: Likewise.
82342         * modules/pipe: Likewise.
82343         * modules/utime: Likewise.
82344         Prompted by Eric Blake and Bruno Haible.
82346 2008-06-24  Andreas Schwab  <schwab@suse.de>
82348         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
82349         literals can be used as initializers for global variables.
82351 2008-06-23  Eric Blake  <ebb9@byu.net>
82353         Make gnulib-cache.m4 easier to diff.
82354         * gnulib-tool (func_import): Allow newlines when reading cached
82355         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
82357 2008-06-23  Bruno Haible  <bruno@clisp.org>
82359         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
82360         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
82361         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
82362         m4/signalblocking.m4.
82363         (gl_PREREQ_SIGACTION): Don't invoke it.
82364         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
82365         gl_PREREQ_SIG_HANDLER_H.
82366         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
82367         Don't check for sigaction here.
82369 2008-06-23  Bruno Haible  <bruno@clisp.org>
82371         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
82372         (install_handlers): Don't set the SA_RESETHAND flag.
82374 2008-06-23  Bruno Haible  <bruno@clisp.org>
82376         * m4/sigaction.m4: Comment fixes.
82377         * lib/signal.in.h: Likewise.
82379 2008-06-23  Eric Blake  <ebb9@byu.net>
82381         Fix typo.
82382         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
82384         Avoid SA_ namespace.
82385         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
82386         Reported by Ralf Wildenhues.
82388         Avoid test failure due to SA_RESTORER.
82389         * tests/test-sigaction.c (SA_MASK): New macro.
82390         (main): Avoid failing due to extension flags being set.
82391         Reported by Jim Meyering.
82393         Revert use of sig-handler.h in sigprocmask.c.
82394         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
82395         it requires the existence of struct sigaction.
82396         * lib/sigprocmask.c (handler_t): Restore typedef.
82397         (rpl_signal, old_handlers): Use local type.
82399 2008-06-22  Bruno Haible  <bruno@clisp.org>
82401         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
82402         conditionally.
82403         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
82405 2008-06-22  Bruno Haible  <bruno@clisp.org>
82407         * doc/posix-functions/siginterrupt.texi: Move note.
82409         * lib/signal.in.h (SA_RESTART): New macro.
82410         * lib/sigaction.c: Update comment.
82412         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
82414         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
82415         (gl_PREREQ_SIGPROCMASK): Invoke it.
82416         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
82418         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
82420         * lib/sigprocmask.c: Update a comment.
82422 2008-06-21  Eric Blake  <ebb9@byu.net>
82424         Use sigaction module rather than signal().
82425         * modules/c-stack (Depends-on): Add sigaction.
82426         * modules/fatal-signal (Depends-on): Likewise.
82427         * modules/nanosleep (Depends-on): Likewise.
82428         * modules/sigprocmask (Files): Add sig-handler.h.
82429         * modules/sigaction (Files): Likewise.
82430         * lib/sig-handler.h (get_handler): New file, suggested by Paul
82431         Eggert.
82432         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
82433         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
82434         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
82435         (init_fatal_signals): Likewise.
82436         * lib/nanosleep.c (rpl_nanosleep): Likewise.
82437         (siginterrupt): Delete fallback.
82438         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
82439         instead.
82440         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
82441         siginterrupt.
82443         New module sigaction, for mingw.
82444         * modules/sigaction: New module...
82445         * modules/sigaction-tests: ...and its test.
82446         * m4/sigaction.m4: New file.
82447         * lib/sigaction.c: Likewise.
82448         * tests/test-sigaction.c: Likewise.
82449         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
82450         * modules/signal (Makefile.am): Likewise.
82451         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
82452         needed.
82453         * doc/posix-headers/signal.texi (signal.h): Mention provided
82454         types.
82455         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
82456         that sigaction is preferable.
82457         * doc/posix-functions/sigaction.texi (sigaction): Mention new
82458         module.
82459         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82460         sigaction.
82462         Improve robustness of sigprocmask by overriding signal.
82463         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
82464         is in use.
82465         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
82466         (SIGKILL, SIGSTOP): Provide fallbacks.
82467         (rpl_signal): Implement.
82468         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
82469         signal can be called inside handlers.
82471         Fix nanosleep module on mingw.
82472         * modules/nanosleep (Depends-on): Add sys_select.
82473         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
82475         Fix licensing of sigprocmask.
82476         * modules/raise (License): Relicense as LGPL.
82478 2008-06-21  Bruno Haible  <bruno@clisp.org>
82480         * lib/propername.c (proper_name_utf8): Don't use the transliterated
82481         result if it contains question marks.
82482         Reported by Michael Geng <linux@michaelgeng.de>.
82484 2008-06-19  Bruno Haible  <bruno@clisp.org>
82486         Fix CVS-ism.
82487         * doc/gnulib.texi: Include updated-stamp.texi.
82488         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
82489         (updated-stamp.texi): New rule.
82490         (gnulib.info): Depend on it.
82491         * doc/.gitignore: Add updated-stamp.texi.
82492         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
82494 2008-06-19  Bruno Haible  <bruno@clisp.org>
82496         * doc/Makefile (gnulib.info): Update and simplify dependencies.
82497         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
82499 2008-06-19  Eric Blake  <ebb9@byu.net>
82501         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
82502         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
82503         Reported by Stepan Kasal.
82505 2008-06-18  Bruno Haible  <bruno@clisp.org>
82507         * lib/fatal-signal.c (init_fatal_signals): Add comment.
82508         Reported by Eric Blake.
82510 2008-06-18  Eric Blake  <ebb9@byu.net>
82512         Work around cygwin 1.5.25 strsignal bug.
82513         * tests/test-strsignal.c: Allow for const char *.
82514         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
82516 2008-06-18  Simon Josefsson  <simon@josefsson.org>
82518         * users.txt: Update URL to article and add author/date
82519         information.
82521 2008-06-17  Bruno Haible  <bruno@clisp.org>
82523         New macro gl_DISABLE_THREADS.
82524         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
82525         if the user did not pass --enable-threads or --disable-threads option.
82526         (gl_DISABLE_THREADS): New macro.
82527         Reported by Eric Blake <ebb9@byu.net>.
82529 2008-06-17  Bruno Haible  <bruno@clisp.org>
82531         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
82532         when the macro ignores it.
82533         Based on a patch by Eric Blake <ebb9@byu.net>.
82535 2008-06-17  Bruno Haible  <bruno@clisp.org>
82537         * modules/tls (License): Change to LGPLv2+.
82538         Reported by Eric Blake.
82540 2008-06-17  Eric Blake  <ebb9@byu.net>
82542         Simplify c-stack prerequisites.
82543         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
82544         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
82545         no longer requires <ucontext.h> to exist.  Optimize setrlimit
82546         check.
82547         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
82548         <sys/resource.h>.
82550         Move c-stack test into testsuite.
82551         * modules/c-stack-tests: New file.
82552         * lib/c-stack.c [DEBUG]: Move test program...
82553         * tests/test-c-stack.c: ...into this new file.  Skip rather than
82554         fail test if sigaltstack is lacking.
82555         * tests/test-c-stack.sh: New driver file.
82557 2008-06-16  Eric Blake  <ebb9@byu.net>
82559         Use raise module consistently.
82560         * modules/fatal-signal (Depends-on): Add raise.
82561         * modules/sigprocmask (Depends-on): Likewise.
82562         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
82563         * lib/sigprocmask.c (sigprocmask): Likewise.
82564         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
82565         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
82567         Fix compliance bug in sigpending.
82568         * lib/sigprocmask.c (sigpending): Return pending array via
82569         parameter, not return value.
82571 2008-06-14  Eric Blake  <ebb9@byu.net>
82573         Improve obstack-printf test code.
82574         * tests/test-obstack-printf.c (test_function): Fix comment, and
82575         simplify usage of obstack_* in macros.  Add a test for coverage.
82576         Reported by Bruno Haible.
82578 2008-06-14  Bruno Haible  <bruno@clisp.org>
82580         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
82581         array size as a constant, not as a const variable.
82582         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
82583         AC_USE_SYSTEM_EXTENSIONS.
82584         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
82585         Test whether the obstack_printf function actually exists.
82586         * modules/obstack-printf (Depends-on): Add extensions.
82587         (Include): Remove obstack.h.
82588         * modules/obstack-printf-posix (Depends-on): Add extensions.
82589         (Include): Remove obstack.h.
82591 2008-06-13  Eric Blake  <ebb9@byu.net>
82593         Add obstack-printf and obstack-printf-posix modules.
82594         * modules/obstack-printf: New file.
82595         * modules/obstack-printf-posix: Likewise.
82596         * MODULES.html.sh (Misc): Mention them.
82597         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
82598         Likewise.
82599         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
82600         Likewise.
82601         * modules/stdio (Makefile.am): Accomodate new modules.
82602         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
82603         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
82604         Declare.
82605         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
82606         functions.
82607         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
82608         (gl_REPLACE_OBSTACK_PRINTF): New macros
82609         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
82610         * tests/test-obstack-printf.c: New file.
82611         * modules/obstack-printf-tests: Likewise.
82612         * modules/obstack-printf-posix-tests: Likewise.
82614 2008-06-11  Bruno Haible  <bruno@clisp.org>
82616         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
82617         * lib/open.c: Include errno.h.
82618         (open): Fail when attempting to write to a file that has a trailing
82619         slash.
82620         * tests/test-open.c (main): Test against trailing slash bug.
82621         * doc/posix-functions/open.texi: Mention the trailing slash bug.
82623 2008-06-10  Bruno Haible  <bruno@clisp.org>
82625         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
82626         for $? to work inside the trap command, with various /bin/sh-s.
82627         * tests/test-vc-list-files-cvs.sh: Likewise.
82629 2008-06-10  Bruno Haible  <bruno@clisp.org>
82631         * lib/acl-internal.h: Don't include gettext.h here.
82632         * lib/set-mode-acl.c: Include gettext.h here.
82633         * lib/copy-acl.c: Likewise.
82635 2008-06-10  Bruno Haible  <bruno@clisp.org>
82637         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
82638         * lib/wait-process.c (wait_subprocess): Likewise.
82639         * lib/execute.h (execute): Add termsigp argument.
82640         * lib/execute.c (execute): Likewise.
82641         * lib/csharpcomp.c (compile_csharp_using_pnet,
82642         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
82643         * lib/csharpexec.c (execute_csharp_using_pnet,
82644         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
82645         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
82646         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
82647         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
82648         is_jikes_present): Update.
82649         * lib/javaexec.c (execute_java_class): Update.
82650         * lib/javaversion.c (execute_and_read_line): Update.
82651         * NEWS: Document the changes.
82652         Reported by Eric Blake.
82654 2008-06-10  Eric Blake  <ebb9@byu.net>
82656         Add missing include.
82657         * tests/test-strstr.c (includes): Add <signal.h>.
82658         * tests/test-strcasestr.c (includes): Likewise.
82659         * tests/test-memmem.c (includes): Likewise.
82661 2008-06-10  Bruno Haible  <bruno@clisp.org>
82663         * lib/wait-process.c (wait_subprocess): Add an assertion.
82665 2008-06-10  Bruno Haible  <bruno@clisp.org>
82667         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
82669 2008-06-10  Bruno Haible  <bruno@clisp.org>
82671         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
82672         using alarm().
82673         * tests/test-strcasestr.c (main): Likewise.
82674         * tests/test-strstr.c (main): Likewise.
82676 2008-06-09  Bruno Haible  <bruno@clisp.org>
82678         Work around the Solaris 10 ACE ACLs ABI change.
82679         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
82680         declare if ACL_NO_TRIVIAL is present.
82681         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
82682         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
82683         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
82684         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
82685         define if ACL_NO_TRIVIAL is present.
82686         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
82687         and use the current ABI.
82688         (file_has_acl): Use same #if condition as elsewhere.
82689         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
82690         in use, and use the current ABI.
82691         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
82692         Reported by Jim Meyering.
82694 2008-06-09  Eric Blake  <ebb9@byu.net>
82696         Work around environments that (stupidly) ignore SIGALRM.
82697         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
82698         before using alarm().
82699         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
82700         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
82701         Reported by Ian Beckwith <ianb@erislabs.net>.
82703         Produce autobuild blurb earlier in log.
82704         * modules/autobuild (configure.ac-early): Move AB_INIT here.
82706 2008-06-09  Jim Meyering  <meyering@redhat.com>
82707         and Ondřej Vašík  <ovasik@redhat.com>
82709         utimens.c: correct kernel bug work-around
82710         Ondřej Vašík found that the invalid return value of 280 indicates
82711         failure, not success, and the kernel bug we're trying to work
82712         around affects not just the utimensat call, but also the fallback
82713         futimens call.
82714         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
82715         not success.
82716         [HAVE_FUTIMENS]: Use the same work-around, here.
82718 2008-06-09  Jim Meyering  <meyering@redhat.com>
82720         add more guards around definition of ACE_-related code
82721         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
82722         ALLOW and ACE_OWNER are also defined.
82724 2008-06-08  Bruno Haible  <bruno@clisp.org>
82726         * lib/acl-internal.h: Add me as co-author.
82727         * lib/file-has-acl.c: Likewise.
82728         * lib/set-mode-acl.c: Likewise.
82729         * lib/copy-acl.c: Likewise.
82731 2008-06-08  Bruno Haible  <bruno@clisp.org>
82733         Add support for AIX ACLs.
82734         * lib/acl-internal.h (acl_nontrivial): New declaration.
82735         * lib/file-has-acl.c (acl_nontrivial): New function.
82736         (file_has_acl): Add implementation using AIX 4 ACL API.
82737         * lib/set-mode-acl.c (qset_acl): Likewise.
82738         * lib/copy-acl.c (qcopy_acl): Likewise.
82740 2008-06-08  Bruno Haible  <bruno@clisp.org>
82742         Add support for HP-UX ACLs.
82743         * lib/acl-internal.h (acl_nontrivial): New declaration.
82744         * lib/file-has-acl.c (acl_nontrivial): New function.
82745         (file_has_acl): Add implementation using HP-UX 11 ACL API.
82746         * lib/set-mode-acl.c (qset_acl): Likewise.
82747         * lib/copy-acl.c (qcopy_acl): Likewise.
82749 2008-06-08  Bruno Haible  <bruno@clisp.org>
82751         Add support for Cygwin ACLs.
82752         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
82753         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
82754         the chmod_or_fchmod call.
82755         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
82757 2008-06-08  Bruno Haible  <bruno@clisp.org>
82759         Fix bug with setuid modes in Solaris 10+ code.
82760         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
82761         succeeded, when the mode contains some special bits.
82763 2008-06-08  Bruno Haible  <bruno@clisp.org>
82765         Add support for Solaris 7..10 ACLs.
82766         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
82767         declarations.
82768         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
82769         functions.
82770         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
82771         * lib/set-mode-acl.c (qset_acl): Likewise.
82772         * lib/copy-acl.c (qcopy_acl): Likewise.
82774 2008-06-08  Bruno Haible  <bruno@clisp.org>
82776         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
82777         declaration.
82778         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
82779         (acl_access_nontrivial): Remove MacOS X case.
82780         (file_has_acl): Use acl_extended_nontrivial.
82781         * lib/copy-acl.c (qcopy_acl): Likewise.
82783 2008-06-08  Bruno Haible  <bruno@clisp.org>
82785         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
82787 2008-06-08  Jim Meyering  <meyering@redhat.com>
82789         * modules/acl (Maintainer): Add Bruno Haible.
82791 2008-06-07  Bruno Haible  <bruno@clisp.org>
82793         Improve support for Tru64 ACLs.
82794         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
82795         ACL on OSF/1.
82797 2008-06-07  Bruno Haible  <bruno@clisp.org>
82799         Add support for MacOS X ACLs.
82800         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
82801         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
82802         * lib/set-mode-acl.c (qset_acl): Likewise.
82803         * lib/copy-acl.c (qcopy_acl): Likewise.
82805 2008-06-07  Bruno Haible  <bruno@clisp.org>
82807         Fix memory leak introduced on 2008-05-22.
82808         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
82809         use.
82811 2008-06-07  Bruno Haible  <bruno@clisp.org>
82813         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
82814         to construct an empty ACL.
82816 2008-06-07  Bruno Haible  <bruno@clisp.org>
82818         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
82819         precisely.
82820         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
82822 2008-06-07  Bruno Haible  <bruno@clisp.org>
82824         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
82825         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
82827 2008-06-07  Bruno Haible  <bruno@clisp.org>
82829         * doc/posix-functions/_setjmp.texi: Explain the use of this function
82830         regardless of POSIX.
82831         * doc/posix-functions/_longjmp.texi: Likewise.
82832         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
82833         SystemV platform in this case.
82835 2008-06-06  Eric Blake  <ebb9@byu.net>
82837         Document abort() bugs.
82838         * doc/posix-functions/abort.texi (abort): Mention anomalies.
82840         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
82841         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
82842         sigsetjmp.
82843         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
82844         siglongjmp, but only as a macro.
82845         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
82846         is obsolete.
82847         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
82849         Tweak documentation to cover cygwin argz bugs.
82850         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
82851         argz bug fix; no code change needed since no cygwin releases
82852         occurred between the last fix and the bug being tested.
82853         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
82854         module and recently fixed cygwin bugs.
82855         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
82856         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
82857         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
82858         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
82859         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
82860         Likewise.
82861         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
82862         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
82863         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
82864         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
82865         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
82866         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
82867         Likewise.
82869         Avoid gcc warning on cygwin.
82870         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
82871         !ACL_NO_TRIVIAL]: Avoid unused variable.
82873 2008-06-05  Eric Blake  <ebb9@byu.net>
82875         Be tolerant of UNKNOWN version in gnulib-tool test dir.
82876         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
82877         git-version-gen fails to come up with a version.
82878         Reported by Simon Josefsson.
82880 2008-06-05  Jim Meyering  <meyering@redhat.com>
82881             Paul Eggert  <eggert@cs.ucla.edu>
82883         utimens.c: work around a probable Linux kernel bug
82884         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
82885         appears to be a kernel bug that causes utimensat to return 280
82886         instead of 0, indicating success.
82888 2008-06-04  Bruno Haible  <bruno@clisp.org>
82890         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
82891         2008-06-01 commit.
82893 2008-06-04  Bruno Haible  <bruno@clisp.org>
82895         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
82896         * lib/file-has-acl.c (acl_access_nontrivial): New function.
82897         (file_has_acl): Use it. Save errno afterwards.
82898         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
82900 2008-06-03  Bruno Haible  <bruno@clisp.org>
82902         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
82903         draft code. Simplify #ifs.
82904         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
82905         Put Solaris code after POSIX-draft code. Fix comments regarding
82906         Solaris 10, HP-UX. Mention Cygwin.
82907         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
82909 2008-06-03  Eric Blake  <ebb9@byu.net>
82911         Provide fallback for older kernels.
82912         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
82913         Provide runtime fallback if kernel lacks support.
82914         Reported by Mike Frysinger.
82916 2008-06-02  Bruno Haible  <bruno@clisp.org>
82918         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
82919         it exists.
82921 2008-06-02  Bruno Haible  <bruno@clisp.org>
82923         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
82924         * lib/copy-acl.c (qcopy_acl): Update comment.
82926 2008-06-02  Bruno Haible  <bruno@clisp.org>
82928         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
82929         like ACL APIs.
82931 2008-06-02  Bruno Haible  <bruno@clisp.org>
82933         * tests/test-file-has-acl.sh: Use different code for Cygwin.
82934         * tests/test-set-mode-acl.sh: Likewise.
82935         * tests/test-copy-acl.sh: Likewise.
82936         * tests/test-copy-file.sh: Likewise.
82938 2008-06-02  Bruno Haible  <bruno@clisp.org>
82940         * tests/test-file-has-acl.sh: Remove unused code.
82942 2008-06-01  Bruno Haible  <bruno@clisp.org>
82944         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
82945         (copy_acl): Just a wrapper around qcopy_acl that emits the error
82946         messages.
82947         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
82949 2008-06-01  Bruno Haible  <bruno@clisp.org>
82951         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
82952         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
82953         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
82954         APIs.
82955         * modules/acl-tests (configure.ac): Remove tests now contained in
82956         m4/acl.m4.
82958 2008-06-02  Jim Meyering  <meyering@redhat.com>
82960         announce-gen: use a better key-server host name
82961         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
82962         it may be more consistently reliable.  Suggested by Werner Koch
82963         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
82965 2008-06-01  Bruno Haible  <bruno@clisp.org>
82967         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
82968         Reported by Voroskoi Andras <voroskoi@gmail.com>.
82970 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
82972         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
82974 2008-06-01  Bruno Haible  <bruno@clisp.org>
82976         New ACL tests.
82977         * tests/test-file-has-acl.sh: New file.
82978         * tests/test-file-has-acl.c: New file.
82979         * tests/test-set-mode-acl.sh: New file.
82980         * tests/test-set-mode-acl.c: New file.
82981         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
82982         * tests/test-copy-acl.c: New file.
82983         * modules/acl-tests: New file, based on modules/copy-file-tests.
82984         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
82985         (Depends-on): Add acl-tests.
82986         (configure.ac): Remove checks.
82987         (Makefile.am): Don't create test-sameacls program here any more.
82989 2008-06-01  Bruno Haible  <bruno@clisp.org>
82991         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
82992         * tests/test-sameacls.c: Include progname.h.
82993         (main): Invoke set_program_name. Portability fixes for MacOS X,
82994         Solaris, HP-UX.
82996 2008-06-01  Bruno Haible  <bruno@clisp.org>
82998         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
82999         function.
83000         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
83002 2008-06-01  Bruno Haible  <bruno@clisp.org>
83004         * modules/rpmatch (Depends-on): Add strdup.
83006 2008-06-01  Bruno Haible  <bruno@clisp.org>
83008         * lib/pipe.c: Include unistd-safer.h.
83009         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
83010         * modules/pipe (Depends-on): Add unistd-safer.
83012 2008-05-30  Simon Josefsson  <simon@josefsson.org>
83014         * modules/autobuild (configure.ac): Call AB_INIT.
83016 2008-05-30  Simon Josefsson  <simon@josefsson.org>
83018         * tests/test-getaddrinfo.c: Don't print debug messages by default.
83019         Suggested by Bruno Haible <bruno@clisp.org>.
83021 2008-05-30  Simon Josefsson  <simon@josefsson.org>
83023         * tests/test-base64.c: Cast size_t to unsigned long when invoking
83024         printf.  Use %lu instead of %d.  Reported by Bruno Haible
83025         <bruno@clisp.org>.
83027 2008-05-29  Eric Blake  <ebb9@byu.net>
83029         Prefer new POSIX 200x interfaces over futimesat.
83030         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
83031         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
83032         when available.
83033         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
83035 2008-05-28  Bruno Haible  <bruno@clisp.org>
83037         * modules/stpcpy (License): Change to LGPLv2+.
83038         Requested by David Lutterkort <dlutter@redhat.com>.
83040 2008-05-27  Bruno Haible  <bruno@clisp.org>
83042         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
83043         current mingw.
83044         Reported by Jose E. Marchesi <jemarch@gnu.org>.
83046 2008-05-27  Bruno Haible  <bruno@clisp.org>
83048         * modules/iconv_open (Link): New section, from module 'iconv'.
83049         * modules/striconv (Link): Likewise.
83050         * modules/striconveh (Link): Likewise.
83051         * modules/xstriconv (Link): Likewise.
83052         * modules/unicodeio (Link): Likewise.
83053         * modules/propername (Link): Likewise.
83054         Reported by Jim Meyering.
83056 2008-05-26  Jim Meyering  <meyering@redhat.com>
83058         sha256: do not artificially restrict buffer length to be < 2^32
83059         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
83060         uint32_t to size_t.
83061         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
83062         to match.
83064         avoid unaligned access errors, e.g., on sparc
83065         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
83066         direct access through a possibly-unaligned uint64* pointer.
83067         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
83068         direct access through a possibly-unaligned uint32* pointer.
83069         Prompted by this patch from Tom "spot" Callaway:
83070         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
83072         sha512.c: fix typo in comment
83073         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
83075 2008-05-25  Bruno Haible  <bruno@clisp.org>
83077         * lib/set-mode-acl.c: Renamed from lib/acl.c.
83078         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
83079         (Makefile.am): Update lib_SOURCES.
83081 2008-05-25  Bruno Haible  <bruno@clisp.org>
83083         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
83085 2008-05-25  Jim Meyering  <meyering@redhat.com>
83087         useless-if-before-free: freed expr may have white-space differences
83088         * build-aux/useless-if-before-free: Recognize cases in which the
83089         freed expression differs from the tested one in embedded white
83090         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
83091         $1 was used, so we can't make any regexp shy.  Improved tests now
83092         detect this.
83094         useless-if-before-free: accept white space in the expression.
83095         * build-aux/useless-if-before-free: For now, any white space
83096         in the expression must be identical in the free argument.
83098         useless-if-before-free: efficiency tweak
83099         * build-aux/useless-if-before-free: Make the expression-matching
83100         regexp "shy".
83101         Make the *outer* regexp shy, not the expr-matching one.
83103         update code-in-comment to accept cast of free arg
83104         * build-aux/useless-if-before-free: Update regexp.
83106 2008-05-25  Bruno Haible  <bruno@clisp.org>
83108         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
83109         * modules/copy-file-tests (Files, Makefile.am): Update.
83110         * tests/test-copy-file.c (func_test_copy): Update.
83112 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
83114         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
83116 2008-05-23  Bruno Haible  <bruno@clisp.org>
83118         Improve support for ACLs on OSF/1.
83119         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
83120         Remove fallback for unknown flavors of ACLs.
83122 2008-05-22  Bruno Haible  <bruno@clisp.org>
83124         Add support for ACLs on OSF/1.
83125         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
83126         replacements.
83127         (acl_free_text): New macro fallback.
83128         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
83129         acl_free.
83130         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
83131         acl_free_text function. Require AC_C_INLINE.
83133 2008-05-22  Bruno Haible  <bruno@clisp.org>
83135         Make copy_acl work on MacOS X 10.5.
83136         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
83137         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
83138         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
83139         If MODE_INSIDE_ACL, don't assume that every system has the same text
83140         representation for ACLs as FreeBSD.
83141         * lib/copy-acl.c (copy_acl): Add support for platforms with
83142         !MODE_INSIDE_ACL.
83143         * lib/file-has-acl.c (file_has_acl): Likewise.
83144         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
83145         FreeBSD, MacOS X, or IRIX, respectively.
83147 2008-05-22  Bruno Haible  <bruno@clisp.org>
83149         * lib/acl.h: Don't include <sys/acl.h>.
83150         (GETACLCNT): Move fallback to lib/acl-internal.h.
83151         * lib/acl-internal.h: Include <sys/acl.h> here.
83152         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
83154 2008-05-22  Bruno Haible  <bruno@clisp.org>
83156         Split off copy_acl function to separate file.
83157         * lib/copy-acl.c: New file, extracted from lib/acl.c.
83158         * lib/acl.c (copy_acl): Moved function to separate file.
83159         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
83160         * modules/acl (Files): Add lib/copy-acl.c.
83161         (Makefiles.am): Augment lib_SOURCES.
83163 2008-05-22  Bruno Haible  <bruno@clisp.org>
83165         * modules/copy-file-tests: New file.
83166         * tests/test-copy-file.sh: New file.
83167         * tests/test-copy-file.c: New file.
83168         * tests/test-copy-file-sameacls.c: New file.
83170 2008-05-22  Eric Blake  <ebb9@byu.net>
83172         Avoid gcc warning.
83173         * tests/test-memcmp.c (main): Pass NULL indirectly.
83175 2008-05-21  Bruno Haible  <bruno@clisp.org>
83177         Add reference doc about ACLs.
83178         * doc/acl-resources.txt: New file.
83179         * doc/acl-cygwin.txt: New file.
83181 2008-05-21  Bruno Haible  <bruno@clisp.org>
83183         Avoid one more warning from gcc.
83184         * lib/vasnprintf.c (IF_LINT): Update comments.
83185         (VASNPRINTF): Use it also for the 'prefix' array initializer.
83187 2008-05-21  Jim Meyering  <meyering@redhat.com>
83189         avoid a warning from gcc
83190         * lib/vasnprintf.c (IF_LINT): Define.
83191         (scale10_round_decimal_long_double):
83192         Use it to avoid a "may be used uninitialized" warning.
83193         (scale10_round_decimal_double): Likewise.
83195 2008-05-21  Simon Josefsson  <simon@josefsson.org>
83197         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
83198         declared.
83200 2008-05-20  Bruno Haible  <bruno@clisp.org>
83202         * tests/test-memcmp.c (main): Test also the sign of the result. Test
83203         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
83205 2008-05-20  Simon Josefsson  <simon@josefsson.org>
83207         * modules/memcmp-tests: New file.
83208         * tests/test-memcmp.c: New file.
83210 2008-05-19  Bruno Haible  <bruno@clisp.org>
83212         * modules/propername (Notice, configure.ac): Put quoted "..." into
83213         --keyword option.
83214         * lib/propername.h: Update comments accordingly.
83215         Reported by Eric Blake.
83217 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
83219         * modules/getpass-gnu (Depends-on): Add fseeko.
83221 2008-05-19  Simon Josefsson  <simon@josefsson.org>
83223         * modules/base64-tests: New file.
83225 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
83227         * lib/base64.c (base64_decode_ctx): If a decode context structure
83228         was passed in use it to ignore newlines.  If a context structure
83229         was _not_ passed in, continue to treat newlines as garbage (this
83230         is the historical behavior).  Formerly base64_decode.
83231         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
83232         takes a decode context structure.
83233         * lib/base64.h (base64_decode): Macro for four-argument calls.
83234         (base64_decode_alloc): Likewise.
83235         * lib/base64.c (base64_decode_ctx): If a decode context structure
83236         was passed in use it to ignore newlines.  If a context structure
83237         was _not_ passed in, continue to treat newlines as garbage (this
83238         is the historical behavior).  Formerly base64_decode.
83239         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
83240         takes a decode context structure.
83241         * lib/base64.h (base64_decode): Macro for four-argument calls.
83242         (base64_decode_alloc): Likewise.
83244 2008-05-19  Jim Meyering  <meyering@redhat.com>
83246         avoid a warning from gcc
83247         * lib/trim.c (IF_LINT): Define.
83248         (trim2): Use it to avoid a "may be used uninitialized" warning.
83250         Fix doc typo.
83251         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
83253 2008-05-19  Bruno Haible  <bruno@clisp.org>
83255         * doc/glibc-functions/getpass.texi: Document limits of other
83256         implementations.
83258 2008-05-19  Simon Josefsson  <simon@josefsson.org>
83259             Bruno Haible <bruno@clisp.org>
83261         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
83263 2008-05-18  Bruno Haible  <bruno@clisp.org>
83265         * modules/propername: New file, from GNU gettext.
83266         * lib/propername.h: New file, from GNU gettext.
83267         * lib/propername.c: New file, from GNU gettext.
83268         * MODULES.html.sh (Internationalization functions): Add propername.
83270 2008-05-16  Jim Meyering  <meyering@redhat.com>
83271             Bruno Haible  <bruno@clisp.org>
83273         Avoid some warnings from "gcc -Wshadow".
83274         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
83276 2008-05-15  Eric Blake  <ebb9@byu.net>
83278         Extend previous patch to cygwin 1.7.0.
83279         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
83280         fast implementation in cygwin >= 1.7.0.
83281         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
83282         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
83284 2008-05-15  Bruno Haible  <bruno@clisp.org>
83286         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
83287         implementation in glibc >= 2.9.
83288         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
83289         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
83291 2008-05-15  Bruno Haible  <bruno@clisp.org>
83293         * MODULES.html.sh (Internationalization functions): Remove linebreak.
83294         (Unicode string functions): Add unilbrk/*.
83295         Reported by Karl Berry.
83297 2008-05-15  Eric Blake  <ebb9@byu.net>
83299         Fix violation of <stdbool.h> replacement in regex.
83300         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
83301         * lib/regexec.c (re_search_internal): Likewise.
83302         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
83304 2008-05-15  Jim Meyering  <meyering@redhat.com>
83306         avoid distracting test output when git or cvs is not found
83307         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
83308         * tests/test-vc-list-files-git.sh: Likewise.
83310 2008-05-15  Eric Blake  <ebb9@byu.net>
83312         Glibc finally accepted the memmem speedup code, bugzilla #5514.
83313         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
83314         glibc version.
83315         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
83316         * doc/posix-functions/strstr.texi (strstr): Likewise.
83317         * lib/str-two-way.h (MAX): Sychronize with glibc.
83319 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
83321         * lib/regcomp.c (optimize_utf8): Add a note on why we test
83322         opr.ctx_type.
83323         (calc_first): Initialize constraint field.
83324         (duplicate_node_closure): Use it instead of special casing ANCHORS.
83325         Fix grammar.
83326         (duplicate_node): Merge constraint field for all node types.
83327         (calc_eclosure_iter): Look at constraint field for all node types.
83328         * lib/regex_internal.c (create_cd_newstate): Don't look at
83329         opr.ctx_type.
83331 2008-05-14  Bruno Haible  <bruno@clisp.org>
83333         Help GCC to do better code generation.
83334         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
83335         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
83336         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
83337         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
83338         Declare with attribute 'malloc' if supported.
83340 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
83342         use "echo STR|wc -c" rather than unportable "expr length STR"
83343         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
83344         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
83346 2008-05-14  Jim Meyering  <meyering@redhat.com>
83348         use dd ibs=$n count=1 ... rather than less-portable head -c$n
83349         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
83350         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
83351         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
83352         via Collin Lasse.
83354 2008-05-14  Eric Blake  <ebb9@byu.net>
83356         Avoid quadratic growth in gl_LIBSOURCES.
83357         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
83358         Suggested by Bruno Haible.
83360         Test xmemdup0.
83361         * modules/xmemdup0-tests: New file.
83362         * tests/test-xmemdup0.c: Likewise.
83364 2008-05-13  Eric Blake  <ebb9@byu.net>
83366         Split xmemdup0 into its own module.
83367         * modules/xmemdup0: New file.
83368         * lib/xmemdup0.h: Likewise.
83369         * lib/xmemdup0.c: Likewise.
83370         * MODULES.html.sh (Memory management functions): Add xmemdup0.
83371         * lib/xalloc.h (xmemdup0): Remove.
83372         * lib/xmalloc.c (xmemdup0): Likewise.
83374 2008-05-13  Eric Blake  <ebb9@byu.net>
83375             Bruno Haible  <bruno@clisp.org>
83377         Reduce number of forks required during autoconf.
83378         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
83379         and gl_LIBSOURCES_DIR.
83380         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
83381         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
83382         m4_syscmd per file.
83383         <m4_foreach_w>: Move...
83384         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
83386 2008-05-13  Eric Blake  <ebb9@byu.net>
83388         * gnulib-tool: Fix various comment typos.
83390 2008-05-12  Bruno Haible  <bruno@clisp.org>
83392         Tailor the linebreaking algorithm.
83393         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
83395 2008-05-12  Bruno Haible  <bruno@clisp.org>
83397         Update to Unicode 5.0.0.
83398         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
83399         LBP_JV, LBP_JT. Redistribute values.
83400         (unilbrk_table): Change size.
83401         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
83402         Unicode TR#14 rev. 22.
83403         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
83404         LBP_JV, LBP_JT. Redistribute values.
83405         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
83406         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
83407         Update.
83408         * lib/unilbrk/lbrkprop1.h: Regenerated.
83409         * lib/unilbrk/lbrkprop2.h: Regenerated.
83410         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
83411         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
83412         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
83413         Likewise.
83414         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
83415         Likewise.
83416         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
83417         result.
83418         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
83419         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
83420         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
83421         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
83422         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
83423         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
83425 2008-05-11  Bruno Haible  <bruno@clisp.org>
83427         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
83429 2008-05-11  Bruno Haible  <bruno@clisp.org>
83431         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
83432         * modules/unilbrk/gen-lbrk: New file.
83434 2008-05-11  Bruno Haible  <bruno@clisp.org>
83436         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
83437         * m4/sha512.m4 (gl_SHA512): Likewise.
83439 2008-05-11  Jim Meyering  <meyering@redhat.com>
83441         New modules: crypto/sha256, crypto/sha512 (from coreutils)
83442         * modules/crypto/sha256: New file.
83443         * modules/crypto/sha512: Likewise.
83444         * lib/sha256.c: Likewise.
83445         * lib/sha256.h: Likewise.
83446         * lib/sha512.c: Likewise.
83447         * lib/sha512.h: Likewise.
83448         * lib/u64.h: Likewise.
83449         * m4/sha256.m4: Likewise.
83450         * m4/sha512.m4: Likewise.
83451         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
83453 2008-05-10  Bruno Haible  <bruno@clisp.org>
83455         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
83456         (Input/Output <stdio.h>): Add xprintf.
83457         (Signal handling <signal.h>): Add strsignal.
83458         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
83459         (Core language properties): Add func.
83460         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
83461         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
83462         strings.
83463         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
83464         (Input/output): New section.
83465         (File system functions): Add openat-die, stat-macros.
83466         (Networking functions): Add sockets.
83467         (Unicode string functions): Add unictype/*.
83468         (Support for building libraries and executables): Add gperf.
83469         (Support for building documentation): Add agpl-3.0.
83470         (Misc): Add nocrash.
83472 2008-05-10  Bruno Haible  <bruno@clisp.org>
83474         * modules/unictype/gen-ctype: New file.
83476 2008-05-10  Jim Meyering  <meyering@redhat.com>
83478         Make chdir-safer.c more efficient on a system with no symlinks.
83479         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
83480         also if ELOOP is zero.  Suggested by Bruno Haible.
83482         Make chdir-safer.c slightly safer.
83483         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
83484         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
83486         Avoid compile failure on systems without ELOOP (like mingw).
83487         * lib/chdir-safer.c (ELOOP): Define if not already defined.
83488         Reported by Bruno Haible.
83490 2008-05-10  Bruno Haible  <bruno@clisp.org>
83492         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
83493         (is_utf8_encoding): Use a case-insensitive comparison.
83494         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
83495         streq.
83497 2008-05-10  Bruno Haible  <bruno@clisp.org>
83499         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
83500         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
83501         * lib/unilbrk/ulc-common.h (iconv_string_length,
83502         iconv_string_keeping_offsets): Remove declarations.
83503         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
83504         Don't include <iconv.h>, streq.h, xsize.h.
83505         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
83506         conversion.
83507         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
83508         <iconv.h>, streq.h, xsize.h.
83509         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
83510         conversion.
83511         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
83512         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
83513         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
83514         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
83516 2008-05-10  Bruno Haible  <bruno@clisp.org>
83518         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
83519         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
83521         * modules/unilbrk/u32-width-linebreaks-tests: New file.
83522         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
83524         * modules/unilbrk/u16-width-linebreaks-tests: New file.
83525         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
83527         * modules/unilbrk/u8-width-linebreaks-tests: New file.
83528         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
83530         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
83531         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
83533         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
83534         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
83536         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
83537         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
83539         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
83540         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
83542 2008-05-10  Bruno Haible  <bruno@clisp.org>
83544         Split up 'linebreak' module.
83545         * lib/unilbrk.h: New file, based on lib/linebreak.h.
83546         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
83547         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
83548         modifications.
83549         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
83550         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
83551         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
83552         lib/linebreak.c.
83553         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
83554         lib/linebreak.c.
83555         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
83556         lib/linebreak.c.
83557         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
83558         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
83559         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
83560         lib/linebreak.c.
83561         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
83562         lib/linebreak.c.
83563         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
83564         lib/linebreak.c.
83565         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
83566         lib/linebreak.c.
83567         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
83568         lib/linebreak.c.
83569         * modules/unilbrk/base: New file.
83570         * modules/unilbrk/tables: New file.
83571         * modules/unilbrk/u8-possible-linebreaks: New file.
83572         * modules/unilbrk/u16-possible-linebreaks: New file.
83573         * modules/unilbrk/u32-possible-linebreaks: New file.
83574         * modules/unilbrk/ulc-common: New file.
83575         * modules/unilbrk/ulc-possible-linebreaks: New file.
83576         * modules/unilbrk/u8-width-linebreaks: New file.
83577         * modules/unilbrk/u16-width-linebreaks: New file.
83578         * modules/unilbrk/u32-width-linebreaks: New file.
83579         * modules/unilbrk/ulc-width-linebreaks: New file.
83580         * lib/linebreak.h: Remove file.
83581         * lib/linebreak.c: Remove file.
83582         * m4/linebreak.m4: Remove file.
83583         * modules/linebreak: Remove file.
83584         * NEWS: Mention the changes.
83586 2008-05-09  Eric Blake  <ebb9@byu.net>
83588         Add xmemdup0.
83589         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
83590         implementation.
83591         * lib/xmalloc.c (xmemdup0): New C implementation.
83593 2008-05-08  Bruno Haible  <bruno@clisp.org>
83595         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
83597 2008-05-07  Eric Blake  <ebb9@byu.net>
83599         Support cross-compilation of <wctype.h>.
83600         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
83601         AC_CACHE_CHECK.
83603 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
83605         * build-aux/vc-list-files: Add support for bzr.
83607 2008-05-03  Jim Meyering  <meyering@redhat.com>
83609         avoid failed assertion with tight malloc
83610         * tests/test-getndelim2.c: Correct an off-by-one assertion.
83612 2008-05-03  Simon Josefsson  <simon@josefsson.org>
83614         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
83615         are needed from arpa/inet.h.
83616         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
83617         Reported by Bruno Haible.
83619 2008-05-02  Jim Meyering  <meyering@redhat.com>
83621         avoid compilation error on FreeBSD 6
83622         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
83624 2008-05-01  Jim Meyering  <meyering@redhat.com>
83626         useless-if-before-free: correct --help's exit status description
83627         * build-aux/useless-if-before-free (usage): Like grep, exit 0
83628         for one or more matches, etc.  Reported by Bruno Haible.
83630         vc-list-files: make the stand-alone gnulib test work
83631         * modules/vc-list-files-tests (configure.ac):
83632         Define and AC_SUBST abs_aux_dir.
83633         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
83634         $(abs_top_srcdir) to each script and having each of them
83635         duplicate the work of setting PATH, set PATH here, using
83636         the new variable, abs_aux_dir instead.
83637         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
83638         * tests/test-vc-list-files-git.sh: Likewise.
83639         Reported by Bruno Haible.
83641 2008-05-01  Bruno Haible  <bruno@clisp.org>
83643         * lib/getndelim2.c (getndelim2): Fix newsize computation during
83644         reallocation. Rename 'done' to 'found_delimiter'.
83646 2008-05-01  Jim Meyering  <meyering@redhat.com>
83648         vc-list-files: accommodate /bin/sh like the one from Solaris 10
83649         * build-aux/vc-list-files: Use `...`, not $(...).
83651 2008-04-30  Jim Meyering  <meyering@redhat.com>
83653         add tests for vc-list-files
83654         * modules/vc-list-files-tests: New module.
83655         * tests/test-vc-list-files-cvs.sh: New file.
83656         * tests/test-vc-list-files-git.sh: New file.
83658         avoid a warning from gcc
83659         * lib/getndelim2.c (IF_LINT): Define.
83660         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
83662         vc-list-files: work properly with build-aux/cvsu, too
83663         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
83664         to all cvs-based clauses.
83666         vc-list-files: work properly in the CVS+awk case, too
83667         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
83669         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
83670         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
83671         take more than one file argument, so .  Add quotes, just in case $dir
83672         ever contains a shell meta-character.  Prompted by Soren Hansen in
83673         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
83675 2008-04-29  Eric Blake  <ebb9@byu.net>
83677         Optimize getndelim2 to use block operations when possible.
83678         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
83679         freadseek, and memchr2.
83680         * lib/getndelim2.c (getndelim2): Use them for block reads.
83682 2008-04-29  Bruno Haible  <bruno@clisp.org>
83684         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
83685         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
83686         * modules/inet_ntop (Depends-on): Add extensions.
83687         * modules/inet_pton (Depends-on): Likewise.
83688         Reported by Simon Josefsson.
83690 2008-04-29  Jim Meyering  <meyering@redhat.com>
83692         When the is more than one match in a block, match all of them.
83693         * build-aux/useless-if-before-free: Iterate through each block
83694         until there are no more matches.
83696         Fix broken useless-if-before-free script.
83697         * build-aux/useless-if-before-free: Fix typo: missing "?" after
83698         the expression to match cast of argument to free-like function.
83700 2008-04-29  Eric Blake  <ebb9@byu.net>
83702         Use new header.
83703         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
83705 2008-04-29  Jim Meyering  <meyering@redhat.com>
83707         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
83708         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
83709         by gnulib to exist and to declare e.g., inet_ntop.
83710         Don't include "inet_ntop.h", now removed.
83712         * m4/arpa_inet_h.m4: Remove trailing blanks.
83714 2008-04-29  Eric Blake  <ebb9@byu.net>
83716         Silence valgrind on safe reads beyond potential array bounds.
83717         * lib/rawmemchr.valgrind: New file.
83718         * lib/strchrnul.valgrind: Likewise.
83719         * modules/rawmemchr (Files): Distribute new file.
83720         * modules/strchrnul (Files): Likewise.
83721         Suggested by Bruno Haible.
83723 2008-04-29  Bruno Haible  <bruno@clisp.org>
83725         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
83726         (inet_ntop, inet_pton): Change portability warning's wording.
83727         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
83728         Invoke gl_CHECK_NEXT_HEADERS.
83729         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
83730         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
83731         set ARPA_INET_H.
83732         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
83733         * modules/arpa_inet (Description): No longer only for systems that
83734         lack it.
83735         (Depends-on): Add include_next.
83736         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
83737         HAVE_ARPA_INET_H.
83739 2008-04-29  Jim Meyering  <meyering@redhat.com>
83741         * modules/mkdir (License): Re-license as LGPLv2+.
83743 2008-04-29  Bruno Haible  <bruno@clisp.org>
83745         * modules/rawmemchr (Maintainer): Set to Eric.
83746         * modules/strchrnul (Maintainer): Likewise.
83748 2008-04-29  Simon Josefsson  <simon@josefsson.org>
83750         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
83751         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
83753         * modules/arpa_inet (arpa/inet.h): Use them.
83755 2008-04-28  Eric Blake  <ebb9@byu.net>
83757         Test getndelim2.
83758         * modules/getndelim2-tests: New file.
83759         * tests/test-getndelim2.c: Likewise.
83760         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
83761         stream.
83762         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
83764         * MODULES.html.sh: Document new module.
83766 2008-04-20  Bruno Haible  <bruno@clisp.org>
83768         * lib/c-stack.c (die): Use raise.
83769         * modules/c-stack (Depends-on): Add raise.
83771 2008-04-28  Bruno Haible  <bruno@clisp.org>
83773         Expect rpmatch to be declared.
83774         * lib/yesno.c (rpmatch): Remove declaration.
83776         Declare rpmatch.
83777         * lib/stdlib.in.h (rpmatch): New declaration.
83778         * lib/rpmatch.c: Include <stdlib.h> first.
83779         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
83780         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
83781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
83782         HAVE_RPMATCH.
83783         * modules/rpmatch (Depends-on): Add stdlib, extensions.
83784         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
83785         (Include): Set to <stdlib.h>.
83786         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
83787         HAVE_RPMATCH.
83788         * NEWS: Document the change.
83790 2008-04-28  Bruno Haible  <bruno@clisp.org>
83792         Change rpmatch to use nl_langinfo when appropriate.
83793         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
83794         (N_): New macro.
83795         (localized_pattern): New function/macro.
83796         (try): Remove match, nomatch arguments. Copy the pattern into safe
83797         memory before caching it.
83798         (rpmatch): Use localized_pattern. Add translator comments.
83799         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
83800         Suggested by Eric Blake.
83801         * modules/rpmatch (Depends-on): Add stdbool.
83803 2008-04-28  Eric Blake  <ebb9@byu.net>
83805         Add rawmemchr module, matching glibc.
83806         * modules/string (Makefile.am): New indicator.
83807         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
83808         * lib/string.in.h (rawmemchr): Declare when appropriate.
83809         * modules/rawmemchr: New file.
83810         * m4/rawmemchr.m4: Likewise.
83811         * lib/rawmemchr.c: Likewise.
83812         * modules/rawmemchr-tests: Likewise.
83813         * tests/test-rawmemchr.c: Likewise.
83814         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
83815         module.
83816         * modules/strchrnul (Depends-on): Add rawmemchr.
83817         * lib/strchrnul.c (strchrnul): Optimize a corner case.
83819         Whitespace cleanup.
83820         * tests/test-strchrnul.c: Reindent.
83821         * lib/strchrnul.c: Likewise.
83823         Optimize and test strchrnul.
83824         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
83825         * modules/strchrnul-tests: New file.
83826         * tests/test-strchrnul.c: Likewise.
83828         Remove intprops dependency.
83829         * modules/memchr (Depends-on): Remove intprops.
83830         * modules/memrchr (Depends-on): Likewise.
83831         * modules/memchr2 (Depends-on): Likewise.
83832         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
83833         * lib/memrchr.c (__memrchr): Likewise.
83834         * lib/memrchr2.c (memchr2): Likewise.
83835         Reported by Simon Josefsson.
83837 2008-04-28  Simon Josefsson  <simon@josefsson.org>
83839         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
83840         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83842 2008-04-28  Simon Josefsson  <simon@josefsson.org>
83844         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
83846         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
83848         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
83850         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
83851         declarations.
83852         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
83854         * m4/inet_pton.m4: Don't check for header files.
83856         * m4/inet_ntop.m4: Don't check for header files.
83858 2008-04-28  Simon Josefsson  <simon@josefsson.org>
83860         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
83861         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
83862         trigger for cygwin).
83863         Reported by Bruno Haible  <bruno@clisp.org>.
83865 2008-04-28  Bruno Haible  <bruno@clisp.org>
83867         * doc/posix-functions/strdup.texi: Mention mingw problem.
83869 2008-04-27  Bruno Haible  <bruno@clisp.org>
83871         * modules/stat-time-tests (Depends-on): Add sleep.
83872         * tests/test-stat-time.c (force_unlink): New function.
83873         (cleanup): Use it.
83874         (test_mtime): Remove the ctime related tests.
83875         (test_ctime): New function, containing the ctime related tests.
83876         (main): Call test_ctime, except on native Windows platforms.
83878 2008-04-27  Bruno Haible  <bruno@clisp.org>
83880         * lib/rpmatch.c (rpmatch): Add some comments.
83881         Reported by James Youngman <jay@gnu.org>.
83883 2008-04-27  Bruno Haible  <bruno@clisp.org>
83885         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
83886         quiet NaNs.
83888 2008-04-27  Bruno Haible  <bruno@clisp.org>
83890         Make test-yesno.sh work on mingw.
83891         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
83892         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
83893         (main): Set stdin to binary mode.
83894         * modules/yesno-tests (Depends-on): Add binary-io.
83896 2008-04-27  Bruno Haible  <bruno@clisp.org>
83898         Fix 'isfinite' on x86, x86_64, ia64 platforms.
83899         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
83900         argument that lie outside the IEEE 854 domain.
83901         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
83902         (gl_ISFINITE): Use it.
83903         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
83905 2008-04-27  Bruno Haible  <bruno@clisp.org>
83907         Allow local renaming in config.h.
83908         * lib/memrchr.c (memrchr): Don't undefine outside libc.
83910 2008-04-27  Bruno Haible  <bruno@clisp.org>
83912         * lib/memchr.c (__memchr): Change type of 'i'.
83913         * lib/memchr2.c (memchr2): Likewise.
83915 2008-04-26  Eric Blake  <ebb9@byu.net>
83916         and Bruno Haible  <bruno@clisp.org>
83918         Optimize and test memrchr.
83919         * modules/memrchr (Depends-on): Add intprops.
83920         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
83921         * modules/memrchr-tests: New file.
83922         * tests/test-memrchr.c: New file.
83924 2008-04-26  Bruno Haible  <bruno@clisp.org>
83926         Add tentative support for DragonFly BSD.
83927         * lib/stdio-impl.h: Add macros for DragonFly BSD.
83928         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
83929         fp.
83930         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
83931         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
83932         * lib/fpurge.c (fpurge): Likewise.
83933         * lib/freadable.c (freaadable): Likewise.
83934         * lib/freadahead.c (freadahead): Likewise.
83935         * lib/freading.c (freading): Likewise.
83936         * lib/freadptr.c (freadptr): Likewise.
83937         * lib/freadseek.c (freadptrinc): Likewise.
83938         * lib/fseeko.c (fseeko): Likewise.
83939         * lib/fseterr.c (fseterr): Likewise.
83940         * lib/fwritable.c (fwritable): Likewise.
83941         * lib/fwriting.c (fwriting): Likewise.
83943 2008-04-26  Bruno Haible  <bruno@clisp.org>
83945         * lib/stdio-impl.h: New file.
83946         * lib/fbufmode.c: Include stdio-impl.h.
83947         (fbufmode): Use fp_, remove redundant #defines.
83948         * lib/fflush.c: Include stdio-impl.h.
83949         (clear_ungetc_buffer): Remove redundant #defines.
83950         * lib/fpurge.c: Include stdio-impl.h.
83951         (fpurge): Remove redundant #defines.
83952         * lib/freadable.c: Include stdio-impl.h.
83953         (freadable): Remove redundant #defines.
83954         * lib/freadahead.c: Include stdio-impl.h.
83955         (freadahead): Remove redundant #defines.
83956         * lib/freading.c: Include stdio-impl.h.
83957         (freading): Remove redundant #defines.
83958         * lib/freadptr.c: Include stdio-impl.h.
83959         (freadptr): Remove redundant #defines.
83960         * lib/freadseek.c: Include stdio-impl.h.
83961         (freadptrinc): Remove redundant #defines.
83962         * lib/fseeko.c: Include stdio-impl.h.
83963         (rpl_fseeko): Remove redundant #defines.
83964         * lib/fseterr.c: Include stdio-impl.h.
83965         (fseterr): Remove redundant #defines.
83966         * lib/fwritable.c: Include stdio-impl.h.
83967         (fwritable: Remove redundant #defines.
83968         * lib/fwriting.c: Include stdio-impl.h.
83969         (fwriting): Remove redundant #defines.
83970         * modules/fbufmode (Files): Add lib/stdio-impl.h.
83971         * modules/fflush (Files): Likewise.
83972         * modules/fpurge (Files): Likewise.
83973         * modules/freadable (Files): Likewise.
83974         * modules/freadahead (Files): Likewise.
83975         * modules/freading (Files): Likewise.
83976         * modules/freadptr (Files): Likewise.
83977         * modules/freadseek (Files): Likewise.
83978         * modules/fseeko (Files): Likewise.
83979         * modules/fseterr (Files): Likewise.
83980         * modules/fwritable (Files): Likewise.
83981         * modules/fwriting (Files): Likewise.
83983 2008-04-26  Bruno Haible  <bruno@clisp.org>
83985         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
83986         restore_seek_optimization, update_fpos_cache): New functions, extracted
83987         from rpl_fflush.
83988         (rpl_fflush): Use them.
83989         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
83990         (gl_REPLACE_FFLUSH): Use it.
83992 2008-04-26  Bruno Haible  <bruno@clisp.org>
83994         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
83995         on Solaris.
83996         * tests/test-xstrtoimax.sh: Likewise.
83997         * tests/test-xstrtoumax.sh: Likewise.
83998         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84000 2008-04-26  Bruno Haible  <bruno@clisp.org>
84002         * modules/memchr-tests: New file.
84003         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
84005 2008-04-26  Eric Blake  <ebb9@byu.net>
84006             Bruno Haible  <bruno@clisp.org>
84008         * lib/memchr.c: Include intprops.h.
84009         (__memchr): Optimize parallel detection of matching bytes. Rename local
84010         variables. Add explanatory comments.
84012 2008-04-26  Bruno Haible  <bruno@clisp.org>
84014         Fix module 'memchr', broken since 2000-10-28.
84015         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
84017 2008-04-26  Bruno Haible  <bruno@clisp.org>
84019         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
84020         comments.
84022 2008-04-25  Eric Blake  <ebb9@byu.net>
84024         Use native fstatat on cygwin 1.7.0.
84025         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
84026         first.
84028 2008-04-23  Eric Blake  <ebb9@byu.net>
84030         Improve memchr2 performance.
84031         * lib/memchr2.c (memchr2): Further optimize parallel detection of
84032         NUL bytes.
84033         * modules/memchr2 (Depends-on): Use intprops.h.
84035 2008-04-23  Simon Josefsson  <simon@josefsson.org>
84037         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
84038         an inline function instead of a CPP macro.  Patch by Ben Pfaff
84039         <blp@cs.stanford.edu>.
84041 2008-04-23  Simon Josefsson  <simon@josefsson.org>
84043         * lib/arpa_inet.in.h: New file.
84045         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
84046         (Makefile.am): Sed in substitute header file.
84048         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
84049         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
84051         * modules/inet_ntop (configure.ac): Use
84052         gl_ARPA_INET_MODULE_INDICATOR.
84054         * modules/inet_pton (configure.ac): Use
84055         gl_ARPA_INET_MODULE_INDICATOR.
84057 2008-04-22  Jim Meyering  <meyering@redhat.com>
84059         * modules/verify (License): Re-license as LGPLv2+.
84061 2008-04-22  Simon Josefsson  <simon@josefsson.org>
84063         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
84064         parameter to void* as per POSIX standard (MinGW uses char*).
84066 2008-04-21  Bruno Haible  <bruno@clisp.org>
84068         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
84069         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
84070         Define to replacements if REPLACE_ISWCNTRL is 1.
84071         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
84072         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
84073         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
84074         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
84075         what it fixes.
84076         * doc/posix-functions/iswalpha.texi: Likewise.
84077         * doc/posix-functions/iswblank.texi: Likewise.
84078         * doc/posix-functions/iswcntrl.texi: Likewise.
84079         * doc/posix-functions/iswdigit.texi: Likewise.
84080         * doc/posix-functions/iswgraph.texi: Likewise.
84081         * doc/posix-functions/iswlower.texi: Likewise.
84082         * doc/posix-functions/iswprint.texi: Likewise.
84083         * doc/posix-functions/iswpunct.texi: Likewise.
84084         * doc/posix-functions/iswspace.texi: Likewise.
84085         * doc/posix-functions/iswupper.texi: Likewise.
84086         * doc/posix-functions/iswxdigit.texi: Likewise.
84087         Reported by Alain Guibert.
84089 2008-04-21  Bruno Haible  <bruno@clisp.org>
84091         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
84092         Patch by Alain Guibert.
84094 2008-04-21  Bruno Haible  <bruno@clisp.org>
84096         Fix test failures on mingw.
84097         * tests/test-xstrtol.c (print_no_progname): New function.
84098         (main): Install it in error_print_progname hook.
84099         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
84100         * tests/test-xstrtoimax.sh: Likewise.
84101         * tests/test-xstrtoumax.sh: Likewise.
84103 2008-04-21  Bruno Haible  <bruno@clisp.org>
84105         Fix test failure on mingw.
84106         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
84108 2008-04-21  Bruno Haible  <bruno@clisp.org>
84110         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
84111         Actually assign a value.
84113 2008-04-20  Bruno Haible  <bruno@clisp.org>
84115         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
84116         take 2.
84117         * lib/canonicalize.c (canonicalize_file_name): Elide if the
84118         'canonicalize-lgpl' module is also used.
84119         * lib/canonicalize-lgpl.c: Undo last change.
84120         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
84122 2008-04-20  Bruno Haible  <bruno@clisp.org>
84124         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
84125         config.h. Provide _mkdir based fallback for mingw.
84126         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
84127         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
84128         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
84129         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
84130         rather than defining mkdir in config.h.
84131         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
84132         (gl_SYS_STAT_H_DEFAULTS): New macro.
84133         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
84134         HAVE_IO_H any more.
84135         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
84136         HAVE_DECL_MKDIR and HAVE_IO_H.
84138 2008-04-20  Bruno Haible  <bruno@clisp.org>
84140         * lib/isapipe.c: Port to native Windows platforms.
84142 2008-04-20  Bruno Haible  <bruno@clisp.org>
84144         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
84146 2008-04-21  Eric Blake  <ebb9@byu.net>
84148         Work around preprocessors that don't handle UINTMAX_MAX.
84149         * lib/memchr2.c (memchr2): Avoid embedded #if.
84150         Reported by Alain Guibert, fix suggested by Bruno Haible.
84152 2008-04-21  Simon Josefsson  <simon@josefsson.org>
84154         * doc/posix-functions/strftime.texi (strftime): Explain better
84155         Windows incompatibility.  Suggested by Micah Cowan
84156         <micah@cowan.name>.
84158 2008-04-20  Bruno Haible  <bruno@clisp.org>
84160         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
84161         unistr/u8-mblen.
84163 2008-04-20  Bruno Haible  <bruno@clisp.org>
84165         Fix test failure on platforms with non-GNU iconv.
84166         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
84167         (U_TO_U8): Use it, rather than u16_to_u8.
84168         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
84169         units at the end of the input string.
84170         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
84172 2008-04-20  Bruno Haible  <bruno@clisp.org>
84174         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
84175         when the resulting length is 0.
84176         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
84178 2008-04-20  Bruno Haible  <bruno@clisp.org>
84180         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
84181         works.
84182         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
84184 2008-04-20  Bruno Haible  <bruno@clisp.org>
84186         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
84187         * modules/tsearch-tests (configure.ac): Test for initstate function.
84189 2008-04-20  Bruno Haible  <bruno@clisp.org>
84191         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
84192         for nlink_t if missing.
84193         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
84195 2008-04-19  Bruno Haible  <bruno@clisp.org>
84197         Work around snprintf bug on Linux libc5.
84198         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
84199         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
84200         gl_SNPRINTF_SIZE1.
84201         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84202         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
84203         that test failed.
84204         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
84205         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
84206         * modules/snprintf (Files): Add m4/printf.m4.
84207         * modules/vsnprintf (Files): Likewise.
84208         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
84209         * doc/posix-functions/vsnprintf.texi: Likewise.
84211 2008-04-19  Bruno Haible  <bruno@clisp.org>
84213         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
84214         from 0.0058 to less than 10^-7.
84216 2008-04-19  Bruno Haible  <bruno@clisp.org>
84218         Fix rounding when a precision is given.
84219         * lib/vasnprintf.c (is_borderline): New function.
84220         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
84221         9...9x.
84222         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
84223         %e, %g.
84224         * tests/test-vasprintf-posix.c (test_function): Likewise.
84225         * tests/test-snprintf-posix.h (test_function): Likewise.
84226         * tests/test-sprintf-posix.h (test_function): Likewise.
84227         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
84228         * tests/test-printf-posix.h (test_function): Likewise.
84229         * tests/test-printf-posix.output: Update.
84230         Reported by John Darrington <john@darrington.wattle.id.au> via
84231         Ben Pfaff <blp@cs.stanford.edu>.
84233 2008-04-18  Simon Josefsson  <simon@josefsson.org>
84235         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
84236         Suggested by Bruno Haible <bruno@clisp.org>.
84238 2008-04-17  Bruno Haible  <bruno@clisp.org>
84240         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
84241         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
84242         implementation.
84243         Patch by Bruce Merry <bmerry@gmail.com>.
84245 2008-04-17  Simon Josefsson  <simon@josefsson.org>
84247         * doc/posix-functions/strftime.texi (strftime): Mention that %e
84248         doesn't work under Windows.
84250 2008-04-16  Bruno Haible  <bruno@clisp.org>
84252         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
84253         New macros.
84254         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
84255         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
84256         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
84257         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
84258         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
84259         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
84260         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
84261         macros.
84262         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
84263         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
84264         Northern Sotho, Uighur.
84266 2008-04-16  Bruno Haible  <bruno@clisp.org>
84268         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
84269         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
84270         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
84271         Reported by Daniel Bergström <daniel@octocode.com>.
84273 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
84274             Bruno Haible  <bruno@clisp.org>
84276         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
84277         function.
84278         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
84279         New functions, mostly extracted from gl_locale_name_default.
84280         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
84282 2008-04-16  Eric Blake  <ebb9@byu.net>
84284         Adjust strtod detection to catch glibc 2.7 bug.
84285         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
84286         Reported by John Gatewood Ham.
84288 2008-04-16  Bruno Haible  <bruno@clisp.org>
84290         Add tentative support for Linux libc5.
84291         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
84292         * lib/fpurge.c (fpurge): Likewise.
84293         * lib/freadable.c (freadable): Likewise.
84294         * lib/freadahead.c (freadahead): Likewise.
84295         * lib/freading.c (freading): Likewise.
84296         * lib/freadptr.c (freadptr): Likewise.
84297         * lib/freadseek.c (freadptrinc): Likewise.
84298         * lib/fseeko.c (rpl_fseeko): Likewise.
84299         * lib/fseterr.c (fseterr): Likewise.
84300         * lib/fwritable.c (fwritable): Likewise.
84301         * lib/fwriting.c (fwriting): Likewise.
84302         Reported by Alain Guibert <alguibert+bts@free.fr>.
84304 2008-04-15  Bruno Haible  <bruno@clisp.org>
84306         * modules/mathl (configure.ac): Define module indicator.
84308 2008-04-15  Bruno Haible  <bruno@clisp.org>
84310         * lib/logl.c (logl): Remove unused variables.
84312 2008-04-15  Bruno Haible  <bruno@clisp.org>
84314         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
84315         fails.
84317 2008-04-15  Bruno Haible  <bruno@clisp.org>
84319         * lib/trim.c (trim2): Fix argument of isspace() macro.
84321 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
84323         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
84324         to 0.
84325         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
84327 2008-04-14  Bruno Haible  <bruno@clisp.org>
84329         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
84330         AC_LANG_PROGRAM argument.
84331         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
84332         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
84333         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
84334         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
84335         * m4/math_h.m4 (gl_MATH_H): Likewise.
84336         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
84337         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
84338         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
84339         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
84340         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
84341         * m4/regex.m4 (gl_REGEX): Likewise.
84342         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
84343         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
84344         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
84345         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
84346         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
84347         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
84348         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
84349         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
84351 2008-04-14  Jim Meyering  <meyering@redhat.com>
84353         test-strtod: fix typos: s/abs/fabs/
84354         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
84356 2008-04-13  Bruno Haible  <bruno@clisp.org>
84358         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
84359         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
84360         module is also used and while not building the reloc-wrapper.
84362 2008-04-13  Bruno Haible  <bruno@clisp.org>
84364         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
84366 2008-04-13  Bruno Haible  <bruno@clisp.org>
84368         Fix AIX compilation failure introduced on 2008-04-02.
84369         * tests/test-frexp.c (exp): Undefine before redefining.
84370         * tests/test-frexpl.c (exp): Likewise.
84372 2008-04-13  Bruno Haible  <bruno@clisp.org>
84374         Work around a HP-UX stdio bug.
84375         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
84376         * tests/test-ftello.c (main): Likewise.
84377         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
84378         * doc/posix-functions/ftello.texi: Likewise.
84380 2008-04-13  Bruno Haible  <bruno@clisp.org>
84382         Make test-signbit pass on HP-UX/hppa.
84383         * tests/test-signbit.c (minus_zerol): New variable.
84384         (test_signbitl): Use it.
84386 2008-04-13  Bruno Haible  <bruno@clisp.org>
84388         Make truncl work on OSF/1 4.0.
84389         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
84390         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
84391         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
84392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
84393         HAVE_DECL_TRUNCL.
84394         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
84395         HAVE_DECL_TRUNCL.
84396         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
84398 2008-04-13  Bruno Haible  <bruno@clisp.org>
84400         * lib/unictype.h: Remove trailing comma from enumeration definitions.
84402 2008-04-13  Bruno Haible  <bruno@clisp.org>
84404         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
84405         expression, so as to avoid HP-UX 11 cc compiler bug.
84407 2008-04-13  Bruno Haible  <bruno@clisp.org>
84409         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
84411 2008-04-13  Bruno Haible  <bruno@clisp.org>
84413         * lib/git-merge-changelog.c: Remove empty declaration outside of
84414         functions.
84416 2008-04-13  Bruno Haible  <bruno@clisp.org>
84418         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
84420 2008-04-13  Bruno Haible  <bruno@clisp.org>
84422         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
84423         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
84424         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
84425         also if it exists but lacks definitions of the SHUT_* macros.
84426         * modules/sys_socket (Description): Update.
84427         Reported by Elbert Pol <e.pol@chello.nl>.
84429 2008-04-13  Bruno Haible  <bruno@clisp.org>
84431         * lib/localcharset.c (OS2): Don't redefine if already defined.
84432         Reported by Elbert Pol <e.pol@chello.nl>.
84434 2008-04-13  Bruno Haible  <bruno@clisp.org>
84436         * lib/binary-io.h [__EMX__]: Include <io.h>.
84437         Reported by Elbert Pol <e.pol@chello.nl>.
84439 2008-04-12  Bruno Haible  <bruno@clisp.org>
84441         * lib/fpucw.h: Enable the definitions also for x86_64.
84442         Needed for NetBSD/x86_64.
84443         Reported by Thomas Klausner <tk@giga.or.at>.
84445 2008-04-12  Bruno Haible  <bruno@clisp.org>
84447         * tests/test-strtod.c: Include isnand.h.
84448         (main): Use isnand instead of isnan.
84449         Reported by Jim Meyering.
84451 2008-04-12  Bruno Haible  <bruno@clisp.org>
84453         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
84454         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
84456 2008-04-12  Jim Meyering  <meyering@redhat.com>
84458         * m4/math_h.m4 (gl_MATH_H): Fix typos.
84460 2008-04-12  Bruno Haible  <bruno@clisp.org>
84462         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
84463         Reported by Elbert Pol <e.pol@chello.nl>.
84465 2008-04-12  Eric Blake  <ebb9@byu.net>
84467         Work around Solaris 10 math.h bug.
84468         * m4/math_h.m4 (gl_MATH_H): Check for bug.
84469         (gl_MATH_H_DEFAULTS): Set up default.
84470         * modules/math (Makefile.am): Replace new indicators.
84471         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
84472         * tests/test-math.c (main): Test this.
84473         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
84474         * doc/posix-headers/math.texi (math.h): Mention bug.
84475         Reported by Nelson H. F. Beebe and Jim Meyering.
84477 2008-04-11  Bruno Haible  <bruno@clisp.org>
84479         Adapt to future versions of Apple GCC.
84480         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
84481         Reported by Peter O'Gorman <peter@pogma.com>.
84483 2008-04-11  Bruno Haible  <bruno@clisp.org>
84485         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
84487 2008-04-11  Bruno Haible  <bruno@clisp.org>
84489         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
84491         * modules/getaddrinfo-tests (Makefile.am): Define
84492         test_getaddrinfo_LDADD.
84494 2008-04-11  Bruno Haible  <bruno@clisp.org>
84496         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
84497         (init): Fix syntax error.
84498         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
84499         is declared.
84501 2008-04-11  Bruno Haible  <bruno@clisp.org>
84503         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
84504         * modules/glob (Depends-on): Add stdbool.
84506 2008-04-11  Bruno Haible  <bruno@clisp.org>
84508         * lib/trim.c: Include <string.h>.
84510 2008-04-11  Eric Blake  <ebb9@byu.net>
84512         Avoid compile failure on OS/2.
84513         * lib/regex_internal.h (internal_function): Disable optimization
84514         on OS/2 (__EMX__), where it caused compiler error.
84515         Reported by Elbert Pol.
84517 2008-04-11  Bruno Haible  <bruno@clisp.org>
84519         Flush the standard error stream before aborting. Needed on mingw.
84520         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
84521         * tests/test-array_list.c (ASSERT): Likewise.
84522         * tests/test-array_oset.c (ASSERT): Likewise.
84523         * tests/test-avltree_list.c (ASSERT): Likewise.
84524         * tests/test-avltree_oset.c (ASSERT): Likewise.
84525         * tests/test-avltreehash_list.c (ASSERT): Likewise.
84526         * tests/test-binary-io.c (ASSERT): Likewise.
84527         * tests/test-byteswap.c (ASSERT): Likewise.
84528         * tests/test-c-ctype.c (ASSERT): Likewise.
84529         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
84530         * tests/test-c-strcasestr.c (ASSERT): Likewise.
84531         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
84532         * tests/test-c-strstr.c (ASSERT): Likewise.
84533         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
84534         * tests/test-canonicalize.c (ASSERT): Likewise.
84535         * tests/test-carray_list.c (ASSERT): Likewise.
84536         * tests/test-ceilf1.c (ASSERT): Likewise.
84537         * tests/test-ceilf2.c (ASSERT): Likewise.
84538         * tests/test-ceill.c (ASSERT): Likewise.
84539         * tests/test-count-one-bits.c (ASSERT): Likewise.
84540         * tests/test-fbufmode.c (ASSERT): Likewise.
84541         * tests/test-fflush2.c (ASSERT): Likewise.
84542         * tests/test-floorf1.c (ASSERT): Likewise.
84543         * tests/test-floorf2.c (ASSERT): Likewise.
84544         * tests/test-floorl.c (ASSERT): Likewise.
84545         * tests/test-fopen.c (ASSERT): Likewise.
84546         * tests/test-fpending.c (ASSERT): Likewise.
84547         * tests/test-fprintf-posix.c (ASSERT): Likewise.
84548         * tests/test-fpurge.c (ASSERT): Likewise.
84549         * tests/test-freadable.c (ASSERT): Likewise.
84550         * tests/test-freadahead.c (ASSERT): Likewise.
84551         * tests/test-freading.c (ASSERT): Likewise.
84552         * tests/test-freadptr.c (ASSERT): Likewise.
84553         * tests/test-freadptr2.c (ASSERT): Likewise.
84554         * tests/test-freadseek.c (ASSERT): Likewise.
84555         * tests/test-freopen.c (ASSERT): Likewise.
84556         * tests/test-frexp.c (ASSERT): Likewise.
84557         * tests/test-frexpl.c (ASSERT): Likewise.
84558         * tests/test-fseek.c (ASSERT): Likewise.
84559         * tests/test-fseeko.c (ASSERT): Likewise.
84560         * tests/test-fstrcmp.c (ASSERT): Likewise.
84561         * tests/test-ftell.c (ASSERT): Likewise.
84562         * tests/test-ftello.c (ASSERT): Likewise.
84563         * tests/test-func.c (ASSERT): Likewise.
84564         * tests/test-fwritable.c (ASSERT): Likewise.
84565         * tests/test-fwriting.c (ASSERT): Likewise.
84566         * tests/test-getdelim.c (ASSERT): Likewise.
84567         * tests/test-getline.c (ASSERT): Likewise.
84568         * tests/test-i-ring.c (ASSERT): Likewise.
84569         * tests/test-iconv-utf.c (ASSERT): Likewise.
84570         * tests/test-iconv.c (ASSERT): Likewise.
84571         * tests/test-isfinite.c (ASSERT): Likewise.
84572         * tests/test-isnand.c (ASSERT): Likewise.
84573         * tests/test-isnanf.c (ASSERT): Likewise.
84574         * tests/test-isnanl.h (ASSERT): Likewise.
84575         * tests/test-ldexpl.c (ASSERT): Likewise.
84576         * tests/test-linked_list.c (ASSERT): Likewise.
84577         * tests/test-linkedhash_list.c (ASSERT): Likewise.
84578         * tests/test-localename.c (ASSERT): Likewise.
84579         * tests/test-lseek.c (ASSERT): Likewise.
84580         * tests/test-mbscasecmp.c (ASSERT): Likewise.
84581         * tests/test-mbscasestr1.c (ASSERT): Likewise.
84582         * tests/test-mbscasestr2.c (ASSERT): Likewise.
84583         * tests/test-mbscasestr3.c (ASSERT): Likewise.
84584         * tests/test-mbscasestr4.c (ASSERT): Likewise.
84585         * tests/test-mbschr.c (ASSERT): Likewise.
84586         * tests/test-mbscspn.c (ASSERT): Likewise.
84587         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
84588         * tests/test-mbspbrk.c (ASSERT): Likewise.
84589         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
84590         * tests/test-mbsrchr.c (ASSERT): Likewise.
84591         * tests/test-mbsspn.c (ASSERT): Likewise.
84592         * tests/test-mbsstr1.c (ASSERT): Likewise.
84593         * tests/test-mbsstr2.c (ASSERT): Likewise.
84594         * tests/test-mbsstr3.c (ASSERT): Likewise.
84595         * tests/test-memchr2.c (ASSERT): Likewise.
84596         * tests/test-memmem.c (ASSERT): Likewise.
84597         * tests/test-open.c (ASSERT): Likewise.
84598         * tests/test-printf-frexp.c (ASSERT): Likewise.
84599         * tests/test-printf-frexpl.c (ASSERT): Likewise.
84600         * tests/test-printf-posix.c (ASSERT): Likewise.
84601         * tests/test-quotearg.c (ASSERT): Likewise.
84602         * tests/test-rbtree_list.c (ASSERT): Likewise.
84603         * tests/test-rbtree_oset.c (ASSERT): Likewise.
84604         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
84605         * tests/test-round1.c (ASSERT): Likewise.
84606         * tests/test-roundf1.c (ASSERT): Likewise.
84607         * tests/test-roundl.c (ASSERT): Likewise.
84608         * tests/test-signbit.c (ASSERT): Likewise.
84609         * tests/test-sleep.c (ASSERT): Likewise.
84610         * tests/test-snprintf-posix.c (ASSERT): Likewise.
84611         * tests/test-snprintf.c (ASSERT): Likewise.
84612         * tests/test-sprintf-posix.c (ASSERT): Likewise.
84613         * tests/test-stat-time.c (ASSERT): Likewise.
84614         * tests/test-strcasestr.c (ASSERT): Likewise.
84615         * tests/test-strerror.c (ASSERT): Likewise.
84616         * tests/test-striconv.c (ASSERT): Likewise.
84617         * tests/test-striconveh.c (ASSERT): Likewise.
84618         * tests/test-striconveha.c (ASSERT): Likewise.
84619         * tests/test-strsignal.c (ASSERT): Likewise.
84620         * tests/test-strstr.c (ASSERT): Likewise.
84621         * tests/test-strtod.c (ASSERT): Likewise.
84622         * tests/test-trunc1.c (ASSERT): Likewise.
84623         * tests/test-trunc2.c (ASSERT): Likewise.
84624         * tests/test-truncf1.c (ASSERT): Likewise.
84625         * tests/test-truncf2.c (ASSERT): Likewise.
84626         * tests/test-truncl.c (ASSERT): Likewise.
84627         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
84628         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
84629         * tests/test-vasnprintf.c (ASSERT): Likewise.
84630         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
84631         * tests/test-vasprintf.c (ASSERT): Likewise.
84632         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
84633         * tests/test-vprintf-posix.c (ASSERT): Likewise.
84634         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
84635         * tests/test-vsnprintf.c (ASSERT): Likewise.
84636         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
84637         * tests/test-wcwidth.c (ASSERT): Likewise.
84638         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
84639         * tests/test-xprintf-posix.c (ASSERT): Likewise.
84640         * tests/test-xvasprintf.c (ASSERT): Likewise.
84641         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
84642         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
84643         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
84644         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
84645         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
84646         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
84647         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
84648         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
84649         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
84650         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
84651         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
84652         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
84653         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
84654         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
84655         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
84656         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
84657         * tests/unictype/test-block_list.c (ASSERT): Likewise.
84658         * tests/unictype/test-block_of.c (ASSERT): Likewise.
84659         * tests/unictype/test-block_test.c (ASSERT): Likewise.
84660         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
84661         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
84662         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
84663         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
84664         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
84665         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
84666         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
84667         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
84668         * tests/unictype/test-combining.c (ASSERT): Likewise.
84669         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
84670         * tests/unictype/test-digit.c (ASSERT): Likewise.
84671         * tests/unictype/test-mirror.c (ASSERT): Likewise.
84672         * tests/unictype/test-numeric.c (ASSERT): Likewise.
84673         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
84674         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
84675         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
84676         * tests/unictype/test-scripts.c (ASSERT): Likewise.
84677         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
84678         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
84679         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
84680         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
84681         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
84682         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
84683         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
84684         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
84685         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
84686         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
84687         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
84688         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
84689         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
84690         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
84691         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
84692         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
84693         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
84694         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
84695         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
84696         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
84697         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
84698         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
84699         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
84700         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
84701         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
84702         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
84703         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
84704         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
84705         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
84706         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
84707         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
84708         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
84709         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
84710         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
84711         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
84712         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
84713         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
84714         Reported by Eric Blake.
84716 2008-04-11  Bruno Haible  <bruno@clisp.org>
84718         * lib/wchar.in.h: Tweak comment.
84720 2008-04-11  Bruno Haible  <bruno@clisp.org>
84722         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
84723         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
84724         gl_COMMON.
84725         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
84727 2008-04-11  Bruno Haible  <bruno@clisp.org>
84729         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
84731 2008-04-11  Simon Josefsson  <simon@josefsson.org>
84733         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
84734         of attempting to use non-existing /dev/*random.  Based on patch
84735         from Adam Strzelecki <ono@java.pl> in
84736         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
84738 2008-04-08  Bruno Haible  <bruno@clisp.org>
84740         Add tentative support for emx+gcc.
84741         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
84742         * lib/fpurge.c (fpurge): Likewise.
84743         * lib/freadable.c (freadable): Likewise.
84744         * lib/freadahead.c (freadahead): Likewise.
84745         * lib/freading.c (freading): Likewise.
84746         * lib/freadptr.c (freadptr): Likewise.
84747         * lib/freadseek.c (freadptrinc): Likewise.
84748         * lib/fseeko.c (rpl_fseeko): Likewise.
84749         * lib/fseterr.c (fseterr): Likewise.
84750         * lib/fwritable.c (fwritable): Likewise.
84751         * lib/fwriting.c (fwriting): Likewise.
84752         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
84754 2008-04-09  Eric Blake  <ebb9@byu.net>
84756         Avoid some autoconf warnings.
84757         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
84758         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
84759         * m4/afs.m4 (gl_AFS): Likewise.
84760         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
84761         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
84762         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
84763         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
84764         (gl_INTEGER_TYPE_SUFFIX): Likewise.
84765         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
84766         (AC_CHECK_DECLS_ONCE): Likewise.
84767         Rename file...
84768         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
84769         gnulib-tool requires autoconf 2.59 or better.
84770         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
84772 2008-04-08  Eric Blake  <ebb9@byu.net>
84774         Use 'git describe --match' if present (added in git 1.5.5).
84775         * build-aux/git-version-gen: Limit result to tags that match 'v*'
84776         if possible.
84778 2008-04-08  Bruno Haible  <bruno@clisp.org>
84780         Add tentative support for OpenServer.
84781         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
84782         _ptr, _cnt.
84783         * lib/fpurge.c (fpurge): Likewise.
84784         * lib/freadable.c (freadable): Likewise.
84785         * lib/freadahead.c (freadahead): Likewise.
84786         * lib/freading.c (freading): Likewise.
84787         * lib/freadptr.c (freadptr): Likewise.
84788         * lib/freadseek.c (freadptrinc): Likewise.
84789         * lib/fseeko.c (rpl_fseeko): Likewise.
84790         * lib/fseterr.c (fseterr): Likewise.
84791         * lib/fwritable.c (fwritable): Likewise.
84792         * lib/fwriting.c (fwriting): Likewise.
84793         Reported by Roger Cornelius <rac@tenzing.org> and
84794         Brian K. White <brian@aljex.com>.
84796 2008-04-06  Jim Meyering  <meyering@redhat.com>
84798         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
84800 2008-04-06  Bruno Haible  <bruno@clisp.org>
84802         Avoid possible error with non-ASCII bytes in UTF-8 locales.
84803         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
84804         * tests/test-printf-posix.sh: Likewise.
84805         * tests/test-vfprintf-posix.sh: Likewise.
84806         * tests/test-vprintf-posix.sh: Likewise.
84807         * tests/test-xprintf-posix.sh: Likewise.
84809 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84811         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
84812         hide error from 'ls', needed on OS/2.
84813         Report by Elbert Pol <elbert.pol@gmail.com>.
84815 2008-04-04  Eric Blake  <ebb9@byu.net>
84817         Make test-fseeko.c failures meaningful.
84818         * tests/test-fseeko.c: Print line number on failure.
84819         * tests/test-fseek.c: Likewise.
84820         Reported by Nelson H. F. Beebe.
84822         Improve strtod bug detection check.
84823         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
84824         required for Solaris 10.
84825         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
84827 2008-04-04  Bruno Haible  <bruno@clisp.org>
84829         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
84830         by m4/setenv.m4.
84832 2008-04-03  Eric Blake  <ebb9@byu.net>
84834         Ensure sane .version contents.
84835         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
84836         version string.
84837         * build-aux/git-version-gen: Improve documentation.
84839         Make GNU make output nicer.
84840         * top/GNUmakefile [!_have-Makefile]: Add dependency on
84841         MAKECMDGOALS to enforce message for all command line targets.  Set
84842         srcdir for use in maint.mk.
84844         Another maintainer tweak.
84845         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
84846         a target that regenerates version.
84848 2008-04-03  Jim Meyering  <meyering@redhat.com>
84850         vc-list-files: don't cause coreutils "make po-check" failure
84851         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
84853 2008-04-03  Eric Blake  <ebb9@byu.net>
84855         Allow VPATH usage of vc-list-files.
84856         * build-aux/vc-list-files (scriptversion): Add timestamp.
84857         (options): Add --help, --version, -C.
84858         (CVS): Support installed cvsu.
84860 2008-04-02  Bruno Haible  <bruno@clisp.org>
84862         Avoid some "statement with no effect" warnings from gcc.
84863         * tests/test-wctype.c (main): Explicitly ignore unused values.
84864         Reported by Jim Meyering.
84866 2008-04-02  Jim Meyering  <meyering@redhat.com>
84868         Avoid some warnings from "gcc -Wshadow".
84869         * tests/test-frexp.c (exp): Define to a different identifier.
84870         * tests/test-frexpl.c (exp): Likewise.
84872 2008-04-03  Jim Meyering  <meyering@redhat.com>
84874         bootstrap: remove dangling *.[ch] symlinks from lib
84875         * build-aux/bootstrap [dangling symlink removal]: Move find's
84876         -depth option to precede all others, to avoid a warning.
84877         Remove *.[ch] files too, and from "$source_base" (usually lib/).
84879 2008-04-02  Bruno Haible  <bruno@clisp.org>
84881         Avoid some warnings from "gcc -Wshadow".
84882         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
84883         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
84884         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
84885         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
84886         Reported by Jim Meyering.
84888 2008-04-01  Bruno Haible  <bruno@clisp.org>
84890         Fix test to work on IRIX 6.5 with cc.
84891         * tests/test-math.c (numeric_equal): New function.
84892         (main): Use it.
84894 2008-04-01  Bruno Haible  <bruno@clisp.org>
84896         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
84898 2008-04-01  Bruno Haible  <bruno@clisp.org>
84900         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
84901         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
84902         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
84903         (Depends-on): Remove math.
84905         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
84906         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
84907         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
84908         (Depends-on): Remove math.
84910         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
84911         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
84912         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
84913         (Depends-on): Remove math.
84914         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
84915         (Depends-on): Remove math.
84917         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
84918         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
84919         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
84920         (Depends-on): Remove math.
84921         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
84922         (Depends-on): Remove math.
84924         * tests/test-round1.c: Include nan.h.
84925         (main): Use NaNd instead of NAN.
84926         * modules/round-tests (Files): Add tests/nan.h.
84928         * tests/test-trunc1.c: Include nan.h.
84929         (main): Use NaNd instead of NAN.
84930         * modules/trunc-tests (Files): Add tests/nan.h.
84932         * tests/test-roundf1.c: Include nan.h.
84933         (main): Use NaNf instead of NAN.
84934         * modules/roundf-tests (Files): Add tests/nan.h.
84936         * tests/test-truncf1.c: Include nan.h.
84937         (main): Use NaNf instead of NAN.
84938         * modules/truncf-tests (Files): Add tests/nan.h.
84940         * tests/test-ceilf1.c: Include nan.h.
84941         (main): Use NaNf instead of NAN.
84942         * modules/ceilf-tests (Files): Add tests/nan.h.
84944         * tests/test-floorf1.c: Include nan.h.
84945         (main): Use NaNf instead of NAN.
84946         * modules/floorf-tests (Files): Add tests/nan.h.
84948         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
84949         (main): Use NaNf instead of NAN.
84950         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
84952         * tests/test-isnand.c: Include nan.h instead of <math.h>.
84953         (main): Use NaNd instead of NAN.
84954         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
84956         * tests/test-frexp.c: Include nan.h.
84957         (main): Use NaNd instead of NAN.
84958         * modules/frexp-tests (Files): Add tests/nan.h.
84960         * lib/isnan.c: Don't include <math.h>.
84961         (FUNC): Don't use NAN macro.
84962         * modules/isnand-nolibm (Depends-on): Remove math.
84963         * modules/isnanf-nolibm (Depends-on): Remove math.
84964         * modules/isnanl (Depends-on): Remove math.
84965         * modules/isnanl-nolibm (Depends-on): Remove math.
84967         * tests/nan.h: New file.
84969 2008-04-01  Eric Blake  <ebb9@byu.net>
84971         Fix typos.
84972         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
84973         values to be the right type.
84975         For now, cater to gnulib strtod inaccuracies.
84976         * tests/test-strtod.c (main): Allow 1-ulp error on expected
84977         fractional results.  While not as nice from a QoI perspective, it
84978         is a quicker patch than correctly implementing decimal to binary
84979         rounding.
84981 2008-03-31  Eric Blake  <ebb9@byu.net>
84983         Guarantee a definition of NAN.
84984         * lib/math.in.h (NAN): Define if missing.
84985         * tests/test-math.c (main): Test it.
84986         * doc/posix-headers/math.texi (math.h): Document this.
84987         * lib/isnan.c (rpl_isnand): Use it.
84988         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
84989         * tests/test-floorf1.c (NaN): Likewise.
84990         * tests/test-frexp.c (NaN): Likewise.
84991         * tests/test-isnand.c (NaN): Likewise.
84992         * tests/test-isnanf.c (NaN): Likewise.
84993         * tests/test-round1.c (NaN): Likewise.
84994         * tests/test-roundf1.c (NaN): Likewise.
84995         * tests/test-snprintf-posix.h (NaN): Likewise.
84996         * tests/test-sprintf-posix.h (NaN): Likewise.
84997         * tests/test-trunc1.c (NaN): Likewise.
84998         * tests/test-truncf1.c (NaN): Likewise.
84999         * tests/test-vasnprintf-posix.c (NaN): Likewise.
85000         * tests/test-vasprintf-posix.c (NaN): Likewise.
85001         * modules/isnand-nolibm (Depends-on): Add math.
85002         * modules/isnanf-nolibm (Depends-on): Likewise.
85003         * modules/isnanl (Depends-on): Likewise.
85004         * modules/isnanl-nolibm (Depends-on): Likewise.
85005         * modules/snprintf-posix-tests (Depends-on): Likewise.
85006         * modules/sprintf-posix-tests (Depends-on): Likewise.
85007         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
85008         * modules/vsprintf-posix-tests (Depends-on): Likewise.
85009         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
85010         * modules/vasprintf-posix-tests (Depends-on): Likewise.
85012 2008-03-31  Bruno Haible  <bruno@clisp.org>
85014         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
85015         * doc/posix-functions/strtod.texi: Likewise.
85017 2008-03-31  Bruno Haible  <bruno@clisp.org>
85019         * tests/test-strtod.c (main): Don't use C99 syntax.
85021 2008-03-31  Bruno Haible  <bruno@clisp.org>
85023         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
85024         Reported by Eric Blake.
85026 2008-03-31  Jim Meyering  <meyering@redhat.com>
85028         Don't compare actual signbit return values.
85029         * tests/test-strtod.c (main): Rather, compare only their
85030         zero/non-zero nature.
85032 2008-03-31  Eric Blake  <ebb9@byu.net>
85034         More strtod documentation.
85035         * doc/posix-functions/strtod.texi (strtod): Interpret more test
85036         failures as distinct bugs.
85038 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
85040         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
85041         Problem reported by Erik Benada in
85042         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
85044 2008-03-30  Bruno Haible  <bruno@clisp.org>
85046         * tests/test-strtod.c: Add comments about which assertion fails on which
85047         platform.
85048         * doc/posix-functions/strtod.texi: Add info about many more platforms.
85050 2008-03-30  Eric Blake  <ebb9@byu.net>
85052         Test signbit behavior on zeros.
85053         * tests/test-signbit.c (test_signbitf): Add tests for zero.
85054         (test_signbitd, test_signbitl): Likewise.
85056         More strtod touchups.
85057         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
85058         sign of negative underflow, for now.  Use .5, not .1.
85059         * doc/posix-functions/strtod.texi (strtod): Mention these
85060         limitations.
85061         Reported by Jim Meyering.
85063 2008-03-30  Bruno Haible  <bruno@clisp.org>
85065         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
85066         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
85068 2008-03-30  Bruno Haible  <bruno@clisp.org>
85070         Avoid failure when attempting to return empty iconv results on some
85071         platforms.
85072         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
85073         allocation, don't report ENOMEM when the resulting string is empty.
85075 2008-03-30  Bruno Haible  <bruno@clisp.org>
85077         Fix buffer overrun.
85078         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
85079         Don't consider the width for tmp_length. Check count against tmp_length
85080         before doing the padding. Ensure enough allocation during padding.
85082 2008-03-30  Eric Blake  <ebb9@byu.net>
85084         strtod touchups.
85085         * lib/strtod.c (strtod): Avoid compiler warnings.
85086         Reported by Jim Meyering.
85088 2008-03-30  Bruno Haible  <bruno@clisp.org>
85090         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
85091         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
85092         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
85093         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
85094         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
85095         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
85096         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
85097         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
85099         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
85100         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
85101         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
85102         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
85103         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
85104         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
85105         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
85106         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
85108         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
85109         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
85110         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
85111         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
85112         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
85113         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
85114         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
85115         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
85117         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
85118         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
85120         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
85121         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
85123         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
85124         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
85126         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
85127         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
85128         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
85130         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
85131         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
85132         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
85134         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
85135         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
85136         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
85138         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
85139         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
85140         * modules/vasprintf (Depends-on): Add EOVERFLOW.
85142         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
85143         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
85144         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
85145         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
85146         (Depends-on): Add EOVERFLOW.
85147         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
85148         (Depends-on): Add EOVERFLOW.
85149         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
85150         (Depends-on): Add EOVERFLOW.
85151         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
85152         (Depends-on): Add EOVERFLOW.
85153         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
85154         (Depends-on): Add EOVERFLOW.
85155         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
85156         (Depends-on): Add EOVERFLOW.
85157         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
85158         (Depends-on): Add EOVERFLOW.
85159         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
85160         (Depends-on): Add EOVERFLOW.
85162         * lib/sprintf.c (EOVERFLOW): Remove fallback.
85163         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
85164         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
85166         * lib/snprintf.c (EOVERFLOW): Remove fallback.
85167         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
85168         * modules/snprintf (Depends-on): Add EOVERFLOW.
85170         * lib/poll.c (EOVERFLOW): Remove fallback.
85171         * modules/poll (Depends-on): Add EOVERFLOW.
85173         * lib/getugroups.c (EOVERFLOW): Remove fallback.
85174         * modules/getugroups (Depends-on): Add EOVERFLOW.
85176         * lib/getdelim.c (EOVERFLOW): Remove fallback.
85177         * modules/getdelim (Depends-on): Add EOVERFLOW.
85179         * lib/ftell.c (EOVERFLOW): Remove fallback.
85180         * modules/ftell (Depends-on): Add EOVERFLOW.
85182         * lib/fprintf.c (EOVERFLOW): Remove fallback.
85183         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
85184         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
85186         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
85188         * modules/EOVERFLOW-tests: New file.
85189         * tests/test-EOVERFLOW.c: New file.
85191         * modules/EOVERFLOW: New file.
85192         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
85194 2008-03-30  Bruno Haible  <bruno@clisp.org>
85196         Fix bug introduced on 2007-06-10.
85197         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
85198         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
85200 2008-03-30  Bruno Haible  <bruno@clisp.org>
85202         Improve freadseek's efficiency after ungetc.
85203         * lib/freadseek.c: Include freadahead.h.
85204         (freadptrinc): New function, extracted from freadseek.
85205         (freadseek): Use it in a loop. Use freadahead to determine the number
85206         of loop iterations.
85207         * modules/freadseek (Depends-on): Add freadahead.
85208         (configure.ac): Require AC_C_INLINE.
85210 2008-03-30  Bruno Haible  <bruno@clisp.org>
85212         * lib/freadseek.c (freadseek): Don't ignore the return value of
85213         freadptr.
85215 2008-03-29  Eric Blake  <ebb9@byu.net>
85217         Add hex float support.
85218         * modules/strtod (Depends-on): Add c-ctype.
85219         (Link): Mention POW_LIB.
85220         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
85221         whitespace between 'e' and exponent.
85222         * tests/test-strtod.c (main): Enable hex float tests.
85223         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
85224         now provides.
85226         Document various strtod bugs, with some fixes.
85227         * doc/posix-functions/strtod.texi (strtod): Document bugs with
85228         "-0x", "inf", "nan", and hex constants.
85229         * doc/posix-functions/atof.texi (atof): Likewise.
85230         * modules/stdlib (Makefile.am): Support strtod.
85231         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
85232         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
85233         detect additional strtod bugs.
85234         * lib/stdlib.in.h (rpl_strtod): Add declarations.
85235         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
85236         bool where appropriate.  Parse 'inf' and 'nan'.
85237         * tests/test-strtod.c: New file.
85238         * modules/strtod (Depends-on): Add stdbool, stdlib.
85239         (configure.ac): Turn on module indicator.
85240         * modules/strtod-tests: New module.
85242 2008-03-29  Eric Blake  <ebb9@byu.net>
85244         Fix ftell on mingw.
85245         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
85246         * modules/ftell-tests (Depends-on): Add binary-io.
85247         * modules/ftello-tests (Depends-on): Likewise.
85248         * tests/test-ftell.c (main): Enhance test to cover behavior after
85249         ungetc.  Enforce binary mode.
85250         * tests/test-ftello.c (main): Likewise.
85252         Pass test-freadseek on cygwin.
85253         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
85254         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
85255         ungetc buffer.
85257         * tests/test-fflush2.c (main): Fix typo.
85259 2008-03-29  Bruno Haible  <bruno@clisp.org>
85261         * tests/test-fflush2.c (main): Temporarily disable the contents of
85262         this test.
85263         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
85264         Reported by Eric Blake.
85266 2008-03-28  Simon Josefsson  <simon@josefsson.org>
85268         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
85269         (GC_SHA224_DIGEST_SIZE): Add.
85271         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
85272         (gc_hash_digest_length): Likewise.
85273         (gc_hash_buffer): Likewise.
85275 2008-03-25  Bruno Haible  <bruno@clisp.org>
85277         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
85278         detail which gettext release to use.
85279         Reported by Simon Josefsson.
85281 2008-03-26  Jim Meyering  <meyering@redhat.com>
85283         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
85284         * modules/gnumakefile (clean-GNUmakefile): Also, use
85285         test ... && ... || : syntax rather than if-then ... fi.
85287         gnumakefile: Don't double-quote-expand $(VPATH) value.
85288         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
85290 2008-03-24  Eric Blake  <ebb9@byu.net>
85292         Alter GNUmakefile to install into top directory.
85293         * modules/maintainer-makefile: Split, and add dependency...
85294         * modules/gnumakefile: to this new module.
85295         * build-aux/GNUmakefile: Move...
85296         * top/GNUmakefile: ...here.
85297         * build-aux/maint.mk: Move...
85298         * top/maint.mk: ...here.
85299         * MODULES.html.sh (Support for maintaining...): Document new
85300         module.
85302 2008-03-23  Bruno Haible  <bruno@clisp.org>
85304         * gnulib-tool: New options --vc-files, --no-vc-files.
85305         (func_usage): Document them.
85306         (vc_files): New variable.
85307         (func_import): Consider vc_files.
85308         (func_create_testdir): Set vc_files to empty.
85309         Suggested by Jim Meyering and Karl Berry.
85311 2008-03-23  Bruno Haible  <bruno@clisp.org>
85313         Fix regex compilation error on HP-UX 11.
85314         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
85315         * modules/regex (Files): Add m4/mbstate_t.m4.
85316         Reported by Ton Voon <ton.voon@altinity.com>.
85318 2008-03-23  Bruno Haible  <bruno@clisp.org>
85320         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
85322 2008-03-23  Eric Blake  <ebb9@byu.net>
85323             Bruno Haible  <bruno@clisp.org>
85325         Install files from top/ in the destination directory.
85326         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
85327         augmentation also for the files from top/.
85328         (func_import, func_create_testdir): Rewrite file names:
85329         top/filename -> filename.
85331 2008-03-23  Bruno Haible  <bruno@clisp.org>
85333         Tweak "gnulib --version" output.
85334         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
85336 2008-03-23  Bruno Haible  <bruno@clisp.org>
85338         Tweak "gnulib --version" output.
85339         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
85340         rather than contents of ChangeLog, when possible.
85342 2008-03-21  Eric Blake  <ebb9@byu.net>
85344         More --version tweaks.
85345         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
85346         date of last ChangeLog entry.
85348 2008-03-21  Jim Meyering  <meyering@redhat.com>
85350         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
85352 2008-03-20  Eric Blake  <ebb9@byu.net>
85354         VPATH fix.
85355         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
85357 2008-03-20  Simon Josefsson  <simon@josefsson.org>
85359         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
85360         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
85362 2008-03-20  Eric Blake  <ebb9@byu.net>
85364         Sync GNUmakefile with coreutils.
85365         * build-aux/GNUmakefile (have-Makefile): Rename...
85366         (_have-Makefile): ...to this, for namespace consideration.
85367         (GNUmakefile.cfg): Include, if present.
85368         (_autoreconf): Define a default.
85369         (_is-dist-target): New rule for rebuilds to pick up intra-release
85370         version.
85371         (maint-cfg.mk): Rename...
85372         (cfg.mk): ...to this.
85374 2008-03-18  Jim Meyering  <meyering@redhat.com>
85376         New script and module: mktempd
85377         * MODULES.html.sh (maint+release support): Add mktempd.
85378         * build-aux/mktempd: New file.
85379         * modules/mktempd: New file.
85381 2008-03-15  Jim Meyering  <meyering@redhat.com>
85383         Undo last change.
85384         * lib/sha1.c, lib/md5.c: 63 != ~63.
85385         Reported by Andreas Schwab.
85387         sha1.c, md5.c: Hoist a redundant expression.
85388         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
85389         "ctx->buflen" only once, before calling *_process_block.
85390         * lib/md5.c (md5_process_bytes): Likewise.
85392 2008-03-14  Eric Blake  <ebb9@byu.net>
85394         Bump copyright year in files generated by gnulib-tool.
85395         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
85396         gnulib-tool, rather than hard-coding it.
85398         Fix 'gnulib-tool --version' output to work with git.
85399         * gnulib-tool (func_gnulib_dir): New function, extracted from...
85400         (startup): ...here.
85401         (func_version): Use it to invoke git-version-gen, rather than
85402         relying on CVS keyword expansion.  Modernize wording.
85403         (cvsdatestamp, last_checkin_date, version): Kill unused
85404         variables.
85406 2008-03-12  Jim Meyering  <meyering@redhat.com>
85408         Recognize optional cast of the argument to free.
85409         * build-aux/useless-if-before-free: Update regexps.
85411         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
85413 2008-03-11  Bruno Haible  <bruno@clisp.org>
85415         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
85416         by a single package.
85417         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
85418         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
85419         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
85420         Reported by Sam Steingold <sds@gnu.org>.
85422 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
85424         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
85425         repositories.
85427 2008-03-11  Bruno Haible  <bruno@clisp.org>
85429         Avoid conflicts between local macro definitions.
85430         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
85431         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
85433 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
85434             Bruno Haible  <bruno@clisp.org>
85436         Make va_copy work with some version of xlc on AIX 5.1.
85437         * lib/stdarg.in.h: New file.
85438         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
85439         On AIX, use a <stdarg.h> file substitute.
85440         * modules/stdarg (Files): Add lib/stdarg.in.h.
85441         (Depends-on): Add include_next.
85442         (Makefile.am): Build a stdarg.h substitute if requested.
85443         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
85445 2008-03-10  Bruno Haible  <bruno@clisp.org>
85447         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
85448         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
85449         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
85451 2008-03-10  Bruno Haible  <bruno@clisp.org>
85453         * modules/stdlib (Depends-on): Add include_next, remove
85454         absolute-header.
85456 2008-03-09  Bruno Haible  <bruno@clisp.org>
85458         * lib/freadahead.h (freadahead): Document more precisely.
85459         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
85460         the sum of both buffer sizes.
85461         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
85462         * NEWS: Document the change.
85464 2008-03-09  Bruno Haible  <bruno@clisp.org>
85466         Extend freadptr to return also the buffer size.
85467         * lib/freadptr.h (freadptr): Add sizep argument.
85468         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
85469         (freadptr): Add sizep argument. Determine buffer size like freadahead
85470         does.
85471         * tests/test-freadptr.c: Don't include freadahead.h.
85472         (main): Adapt for new calling convention of freadptr.
85473         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
85474         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
85475         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
85476         tests/test-freadptr2.sh.
85477         (Depends): Remove freadahead.
85478         (TESTS): Add test-freadptr2.sh.
85479         (check_PROGRAMS): Add test-freadptr2.
85481 2008-03-09  Bruno Haible  <bruno@clisp.org>
85483         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
85484         Report and solution by Simon Josefsson.
85486 2008-03-06  Bruno Haible  <bruno@clisp.org>
85488         Make fflush after ungetc work on BSD platforms.
85489         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
85490         * tests/test-fflush2.c: New file.
85491         * tests/test-fflush2.sh: New file.
85492         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
85493         tests/test-fflush2.c.
85494         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
85495         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
85497 2008-03-06  Eric Blake  <ebb9@byu.net>
85499         Likewise for ftello.
85500         * modules/ftello (Dependencies): Add extensions.
85501         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
85503 2008-03-06  Bruno Haible  <bruno@clisp.org>
85505         * modules/fseeko (Dependencies): Add extensions.
85506         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
85507         Needed on glibc systems.
85509 2008-03-06  Bruno Haible  <bruno@clisp.org>
85511         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
85512         email address.
85513         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
85515 2008-03-06  Bruno Haible  <bruno@clisp.org>
85517         * users.txt: Add libgnupdf.
85519 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
85521         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
85522         (Header File Substitutes, Function Substitutes,
85523         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
85524         (Build robot for gnulib): Fix typo.
85526 2008-03-06  Bruno Haible  <bruno@clisp.org>
85528         * doc/gnulib-tool.texi (VCS Issues): Small updates.
85529         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
85531 2008-03-06  Bruno Haible  <bruno@clisp.org>
85533         * doc/func.texi: New file, extracted from doc/gnulib.texi.
85534         * doc/gnulib.texi: Include it.
85536 2008-03-06  Simon Josefsson  <simon@josefsson.org>
85538         * modules/func (License): Change license to unlimited; there was
85539         no LGPL parts in the module anyway.
85541 2008-03-06  Simon Josefsson  <simon@josefsson.org>
85543         * modules/__func__: Renamed to modules/func.
85544         * modules/__func__-tests: Renamed to modules/func-tests.
85545         * tests/test-__func__.c: Renamed to tests/test-func.c.
85546         * m4/__func__.m4: Renamed to m4/func.m4.
85547         * doc/gnulib.texi (__func__): Section renamed to func.
85548         Suggested by Eric Blake <ebb9@byu.net>.
85550 2008-03-06  Simon Josefsson  <simon@josefsson.org>
85552         * doc/gnulib.texi (__func__): Use C99 terminology when talking
85553         about __func__.  Make example self-contained.  Suggested by Eric
85554         Blake <ebb9@byu.net>.
85556         * tests/test-__func__.c (main): Avoid extraneous () around __func.
85557         Suggested by Eric Blake <ebb9@byu.net>.
85559 2008-03-06  Simon Josefsson  <simon@josefsson.org>
85561         * modules/__func__: New file.
85562         * modules/__func__-tests: New file.
85563         * tests/test-__func__.c: New file.
85564         * m4/__func__.m4: New file.
85565         * doc/gnulib.texi (__func__): Document __func__ module.
85567 2008-03-05  Simon Josefsson  <simon@josefsson.org>
85569         * modules/byteswap (License): Re-license as LGPLv2+.
85571 2008-03-05  Simon Josefsson  <simon@josefsson.org>
85573         * doc/Makefile: Add pdf target.
85575 2008-03-05  Simon Josefsson  <simon@josefsson.org>
85577         * modules/inline (License): Use 'unlimited', since there are only
85578         *.m4 files in this module.
85580 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
85581             Bruno Haible  <bruno@clisp.org>
85583         Add support for HP C 7.1 on OpenVMS 8.3.
85584         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
85586 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
85588         Update VMS specifics.
85589         * lib/getopt.c [VMS]: Remove include of unixlib.h.
85591 2008-03-02  Jim Meyering  <meyering@redhat.com>
85593         Remove the last dependency on the "free" module.
85594         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
85595         Reported by Bob Proulx.
85597         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
85599         Remove useless "if" tests before free.  Deprecate "free" module.
85600         * doc/posix-functions/free.texi: Mention that this
85601         module is no longer useful.
85602         * modules/free (Notice): Say this module is obsolete.
85603         * modules/readutmp (Depends-on): Remove free.
85604         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
85605         * lib/putenv.c (putenv): Likewise.
85606         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
85607         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
85608         * tests/test-c-strcasestr.c (main): Likewise.
85609         * tests/test-c-strstr.c (main): Likewise.
85610         * tests/test-mbscasestr1.c (main): Likewise.
85611         * tests/test-mbscasestr2.c (main): Likewise.
85612         * tests/test-mbsstr1.c (main): Likewise.
85613         * tests/test-mbsstr2.c (main): Likewise.
85614         * tests/test-memmem.c (main): Likewise.
85615         * tests/test-strcasestr.c (main): Likewise.
85616         * tests/test-striconv.c (main): Likewise.
85617         * tests/test-striconveh.c (main): Likewise.
85618         * tests/test-striconveha.c (main): Likewise.
85619         * tests/test-strstr.c (main): Likewise.
85621         * build-aux/git-version-gen: Adjust a comment and the Usage string.
85623         bootstrap: sync from coreutils again
85624         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
85626 2008-03-01  Jim Meyering  <meyering@redhat.com>
85628         bootstrap: sync from coreutils
85629         * build-aux/bootstrap (update_po_files): Copy a .po file into place
85630         also when the target doesn't exist.
85632 2008-03-01  Eric Blake  <ebb9@byu.net>
85634         Fix bugs in last patch.
85635         * lib/memchr2.c (memchr2): Fix typo.
85636         * tests/test-memchr2.c: Test previous bug, and don't use GNU
85637         extension.
85638         Reported by Bruce Korb.
85640         New module 'memchr2'.
85641         * modules/memchr2: New file.
85642         * modules/memchr2-tests: Likewise.
85643         * lib/memchr2.h: Likewise.
85644         * lib/memchr2.c: Likewise, based on memchr.c.
85645         * tests/test-memchr2.c: New test.
85646         * MODULES.html.sh (String handling): Add memchr2.
85648 2008-02-29  Bruno Haible  <bruno@clisp.org>
85650         * modules/freadseek-tests: New file.
85651         * tests/test-freadseek.sh: New file.
85652         * tests/test-freadseek.c: New file.
85654         New module 'freadseek'.
85655         * modules/freadseek: New file.
85656         * lib/freadseek.h: New file.
85657         * lib/freadseek.c: New file.
85658         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
85660 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
85662         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
85663         wydawca.
85665         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
85666         program_invocation_name and program_invocation_short_name are
85667         present.
85669 2008-02-28  Bruno Haible  <bruno@clisp.org>
85671         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
85672         * tests/test-freadptr.sh: Also test non-seekable stdin.
85674 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
85676         * build-aux/bootstrap (source_base, m4_base)
85677         (doc_base, tests_base): New variables.
85678         (gnulib_tool_options): Do not hardcode base directories, use
85679         the above variables instead.
85681 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
85683         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
85685 2008-02-28  Bruno Haible  <bruno@clisp.org>
85687         * modules/freadptr-tests: New file.
85688         * tests/test-freadptr.sh: New file.
85689         * tests/test-freadptr.c: New file.
85691         New module 'freadptr'.
85692         * modules/freadptr: New file.
85693         * lib/freadptr.h: New file.
85694         * lib/freadptr.c: New file.
85695         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
85697 2008-02-26  Karl Berry  <karl@freefriends.org>
85699         Sync from Libtool:
85700         * libltdl/argz.c (argz_add, argz_count): New functions.
85701         * libltdl/argz.in.h: Declare them.
85702         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
85704 2008-02-22  Bruno Haible  <bruno@clisp.org>
85706         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
85707         is a pointer type.  Needed for HP-UX 10.
85708         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
85709         * doc/posix-functions/gmtime_r.texi: Likewise.
85710         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
85712 2008-02-24  Bruno Haible  <bruno@clisp.org>
85714         * modules/environ-tests: New file.
85715         * tests/test-environ.c: New file.
85717         New module 'environ'.
85718         * modules/environ: New file.
85719         * lib/unistd.in.h (environ): New declaration.
85720         * m4/environ.m4: New file.
85721         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
85722         after use.
85723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
85724         HAVE_DECL_ENVIRON.
85725         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
85726         HAVE_DECL_ENVIRON.
85727         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
85728         wrong claim that 'environ' is missing on some systems.
85729         * modules/execute (Depends-on): Add environ.
85730         * lib/execute.c (environ): Remove fallback declaration.
85731         * modules/pipe (Depends-on): Add environ.
85732         * lib/pipe.c (environ): Remove fallback declaration.
85733         * modules/setenv (Depends-on): Add environ.
85734         * lib/setenv.c (environ): Remove fallback declaration.
85735         * modules/unsetenv (Depends-on): Add environ.
85736         * lib/unsetenv.c (environ): Remove fallback declaration.
85737         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
85738         m4/environ.m4.
85739         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
85740         (gl_PREREQ_UNSETENV): Likewise.
85742 2008-02-24  Bruno Haible  <bruno@clisp.org>
85744         * doc/posix-functions/environ.texi: Document the MacOS X problem.
85746 2008-02-20  Bob Proulx  <bob@proulx.com>
85748         Enable use of older two part flavor 'git describe'.
85749         * build-aux/git-version-gen: If using the older two part flavor of
85750         git version then recreate the third part now present in the
85751         newer three part flavor of git describe.
85753 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
85755         * lib/fts.c (fts_build): Typo correction to comment.
85757 2008-02-17  Bruno Haible  <bruno@clisp.org>
85759         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
85760         generating no-op conflicts.
85762 2008-02-17  Bruno Haible  <bruno@clisp.org>
85764         Speed up by 10%.
85765         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
85766         result_entries, rather than an index-based loop.
85768 2008-02-17  Bruno Haible  <bruno@clisp.org>
85770         Speed up by 25%.
85771         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
85772         'hashcode_cached'.
85773         (entry_create): New function.
85774         (entry_hashcode): Use the cached hashcode if possible.
85775         (read_changelog_file, try_split_merged_entry): Use entry_create.
85777 2008-02-17  Bruno Haible  <bruno@clisp.org>
85779         Speed up from O(n^2) to O(n) for long ChangeLog files.
85780         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
85781         (read_changelog_file): Change implementation of entries_reversed list
85782         to rbtreehash.
85783         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
85785 2008-02-17  Bruno Haible  <bruno@clisp.org>
85787         New option --split-merged-entry.
85788         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
85789         (find_paragraph_end, try_split_merged_entry): New functions.
85790         (long_options): Add option --split-merged-entry.
85791         (usage): Document option --split-merged-entry.
85792         (main): Implement option --split-merged-entry.
85793         Reported by Eric Blake.
85795 2008-02-17  Bruno Haible  <bruno@clisp.org>
85797         * lib/git-merge-changelog.c: Include c-strstr.h.
85798         (main): Support the "git pull --rebase" situation.
85799         * modules/git-merge-changelog (Depends-on): Add c-strstr.
85800         Reported by Eric Blake.
85802 2008-02-16  Eric Blake  <ebb9@byu.net>
85804         Avoid doubling \ in common case of "c-maybe" quoting style.
85805         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
85806         eliding outer quotes.
85807         * lib/quotearg.h: Document this.
85808         * tests/test-quotearg.c (result_strings, inputs, results_g)
85809         (flag_results, locale_results): Test it by adding a new string to
85810         each test group.
85811         (compare_strings): Test new string.
85813 2008-02-13  Eric Blake  <ebb9@byu.net>
85815         Avoid trigraph quoting in default output.
85816         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
85817         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
85818         unless explicitly requested.
85819         * tests/test-quotearg.c (flag_results, main): Add additional tests.
85821 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
85823         Don't rely on signed integer overflowing to negative value.
85824         * lib/getugroups.c (getugroups): Include <limits.h>.
85825         Instead, compare against INT_MAX, and increment only if the test passes.
85827 2008-02-13  Jim Meyering  <meyering@redhat.com>
85828         and Eric Blake  <ebb9@byu.net>
85830         Avoid shadowing warning and compile errors on Linux.
85831         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
85832         forwarding macros on Linux.
85833         (dcgettext): Define a stub, for Linux.
85834         (results_g, main): Avoid warnings.
85836 2008-02-12  Eric Blake  <ebb9@byu.net>
85838         Silence warning in last patch.
85839         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
85841         Quotearg part 4: add tests, fix c-maybe colon quoting.
85842         * lib/quotearg.h: Improve documentation.
85843         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
85844         escapes when adding outer quotes.  When quoting trigraphs, use
85845         valid C notation.  When quoting NUL, omit extra characters if next
85846         character is not digit.  Alter prototype.
85847         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
85848         callers.
85849         * modules/quotearg-tests: New module.
85850         * tests/test-quotearg.c: New test.
85852 2008-02-07  Eric Blake  <ebb9@byu.net>
85854         Quotearg part 3: add flag to control outer quote elision.
85855         * lib/quotearg.h (c_maybe_quoting_style): New style.
85856         (enum quoting_flags): Better documentation of flags.
85857         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
85858         c-maybe style.
85859         (quotearg_buffer_restyled): Handle new flag to elide outer
85860         quotes.
85862         Quotearg part 2: add flag that can control NUL elision.
85863         * lib/quotearg.h (set_quoting_flags): New prototype.
85864         * lib/quotearg.c (struct quoting_options): Add flag field.
85865         (set_quoting_flags): New function.
85866         (quotearg_buffer_restyled): Add flags parameter.
85867         (quotearg_alloc_mem): Set the flag if length cannot be returned.
85868         (quotearg_n_options): Set the flag, since length cannot be
85869         returned.
85870         (quoting_options_from_style): Default flags correctly.
85872         Quotearg part 1: more wrappers, restore quotearg_char state.
85873         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
85874         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
85875         (quotearg_colon_mem): New wrappers.
85876         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
85877         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
85878         functions.
85879         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
85880         (quotearg_colon_mem): New functions.
85882 2008-02-11  Bruno Haible  <bruno@clisp.org>
85884         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
85885         library in the current directory: it does not work with parallel make.
85886         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
85888 2008-02-11  Bruno Haible  <bruno@clisp.org>
85890         * .gitattributes: New file.
85892 2008-02-11  Jim Meyering  <meyering@redhat.com>
85894         useless-if-before-free: Fix reversed exit values.
85895         * build-aux/useless-if-before-free: Use correct values
85896         for EXIT_MATCH and EXIT_NO_MATCH.
85898         * build-aux/useless-if-before-free: Close stdout carefully.
85900 2008-02-10  Bruno Haible  <bruno@clisp.org>
85902         New module 'git-merge-changelog'.
85903         * modules/git-merge-changelog: New file.
85904         * lib/git-merge-changelog.c: New file.
85906 2008-02-10  Jim Meyering  <meyering@redhat.com>
85908         useless-if-before-free: New option: --list (-l).
85910         useless-if-before-free: Don't exit immediately upon open failure.
85911         * build-aux/useless-if-before-free: Exit 2 for errors.
85912         Upon failure to open a file, don't exit immediately.
85913         Rather, just warn and continue with any remaining files.
85915 2008-02-10  Bruno Haible  <bruno@clisp.org>
85917         New abstract list operation 'node_set_value'.
85918         * lib/gl_list.h (gl_list_node_set_value): New function.
85919         (struct gl_list_implementation): New field node_set_value.
85920         * lib/gl_list.c (gl_list_node_set_value): New function.
85921         * lib/gl_array_list.c (gl_array_node_set_value): New function.
85922         (gl_array_list_implementation): Update.
85923         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
85924         (gl_carray_list_implementation): Update.
85925         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
85926         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
85927         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
85928         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
85929         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
85930         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
85931         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
85932         Update.
85933         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
85934         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
85935         (gl_sublist_list_implementation): Update.
85937 2008-02-10  Bruno Haible  <bruno@clisp.org>
85939         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
85940         Needed when ELEMENT is #defined to 'some_type *'.
85942 2008-02-10  Jim Meyering  <meyering@redhat.com>
85944         New script and module: useless-if-before-free
85945         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
85946         * build-aux/useless-if-before-free: New file.
85947         * modules/useless-if-before-free: New file.
85949         * build-aux/gitlog-to-changelog: Use committer date, not author date.
85951         xstrtol_error: Fix typo.
85952         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
85953         s/exit_failure/exit_status/.
85955 2008-02-09  Jim Meyering  <meyering@redhat.com>
85957         New script and module: gitlog-to-changelog
85958         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
85959         * modules/gitlog-to-changelog: New file.
85960         * build-aux/gitlog-to-changelog: New file.
85962 2008-02-08  Jim Meyering  <meyering@redhat.com>
85964         Avoid two "parameter unused" warnings.
85965         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
85966         Mark "st" as used.
85968         Use "git COMMAND", not "git-COMMAND".
85969         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
85970         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
85971         * build-aux/git-version-gen: Use "git status", not "git-status".
85973 2008-02-07  Bruno Haible  <bruno@clisp.org>
85975         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
85976         Avoids a crash on Windows Vista.
85977         Reported by Adam Strzelecki <ono@java.pl> via
85978         Simon Josefsson <simon@josefsson.org>.
85980 2008-02-06  Bruno Haible  <bruno@clisp.org>
85982         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
85983         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
85984         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
85985         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
85986         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
85987         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85988         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
85989         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
85990         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85991         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85992         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85993         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85994         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85995         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85996         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85997         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
85998         left-adjust flag.
85999         * tests/test-snprintf-posix.h (test_function): Likewise.
86000         * tests/test-sprintf-posix.h (test_function): Likewise.
86001         * tests/test-vasprintf-posix.c (test_function): Likewise.
86002         * doc/posix-functions/fprintf.texi: Update.
86003         * doc/posix-functions/printf.texi: Update.
86004         * doc/posix-functions/snprintf.texi: Update.
86005         * doc/posix-functions/sprintf.texi: Update.
86006         * doc/posix-functions/vfprintf.texi: Update.
86007         * doc/posix-functions/vprintf.texi: Update.
86008         * doc/posix-functions/vsnprintf.texi: Update.
86009         * doc/posix-functions/vsprintf.texi: Update.
86010         Reported by Peter Fales <psfales@alcatel-lucent.com>.
86012 2008-02-06  Bruno Haible  <bruno@clisp.org>
86014         Fix bug introduced on 2008-01-26.
86015         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
86017 2008-02-06  Bruno Haible  <bruno@clisp.org>
86019         Fix bug introduced on 2007-06-10.
86020         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
86021         !NEED_PRINTF_FLAG_ZERO.
86023 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
86025         getloadavg: use libperfstat on AIX5
86026         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
86028 2008-02-03  Bruno Haible  <bruno@clisp.org>
86030         * lib/diffseq.h: Add comments about required #includes.
86031         Reported by Michael Biggs <gnulib@doubleplum.net>.
86033 2008-02-01  Bruno Haible  <bruno@clisp.org>
86035         * users.txt: Add gnuit.
86037 2008-01-31  Bruno Haible  <bruno@clisp.org>
86039         * lib/md4.c (set_uint32): Mark as inline.
86040         * lib/md5.c (set_uint32): Likewise.
86041         * lib/sha1.c (set_uint32): Likewise.
86042         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
86043         * m4/md5.m4 (gl_MD5): Likewise.
86044         * m4/sha1.m4 (gl_SHA1): Likewise.
86046 2008-01-31  Jim Meyering  <meyering@redhat.com>
86048         Use "sizeof VAR", rather than a literal "4".
86049         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
86050         * lib/md4.c (md4_read_ctx): Likewise.
86051         * lib/sha1.c (sha1_read_ctx): Likewise.
86053 2008-01-31  Simon Josefsson  <simon@josefsson.org>
86055         * tests/test-sha1.c: New file, based on test-md5.c.
86057         * modules/crypto/sha1-tests: New file.
86059 2008-01-31  Simon Josefsson  <simon@josefsson.org>
86061         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
86063 2008-01-31  Jim Meyering  <meyering@redhat.com>
86065         Prefer "sizeof v" over the equivalent "4".
86066         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
86067         * lib/md5.c (set_uint32): Likewise.
86068         * lib/sha1.c (set_uint32): Likewise.
86070 2008-01-31  Simon Josefsson  <simon@josefsson.org>
86072         * lib/sha1.c (set_uint32): Mark function as static.
86074 2008-01-31  Simon Josefsson  <simon@josefsson.org>
86076         md2: clarify comments to say that alignment is not required.
86077         * lib/md2.h: Remove warning about alignment in comment.
86078         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
86079         never been required.
86081 2008-01-31  Simon Josefsson  <simon@josefsson.org>
86083         md4: adapt alignment constraint fix from sha1.
86084         * lib/md4.c (set_uint32): New function, from sha1.c
86085         (md4_read_ctx): Use it.
86086         (md4_finish_ctx): Doc fix.
86087         * lib/md4.h: Doc fix.
86089 2008-01-31  Simon Josefsson  <simon@josefsson.org>
86091         md5: adapt alignment constraint fix from sha1.
86092         * lib/md5.c (set_uint32): New function, from sha1.c
86093         (md5_read_ctx): Use it.
86094         (md5_finish_ctx): Doc fix.
86095         * lib/md5.h: Doc fix.
86097 2008-01-30  Peter Palfrader  <weasel@debian.org>
86099         sha1: remove the result buffer alignment constraint
86100         * lib/sha1.c (set_uint32): New function.
86101         (sha1_read_ctx): Rewrite to remove the result buffer alignment
86102         constraint.
86103         (sha1_finish_ctx): Remove comment warning about alignment constraint.
86104         * lib/sha1.h: Likewise.
86106 2008-01-30  Andreas Schwab  <schwab@suse.de>
86107             Bruno Haible  <bruno@clisp.org>
86109         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
86110         correct definition of LDBL_MIN_EXP.
86112 2008-01-30  Karl Berry  <karl@gnu.org>
86114         * config/srclist-update: try to preserve x bit on updates.
86115         * config/srclistvars.sh: update for karl.
86117 2008-01-29  Jim Meyering  <meyering@redhat.com>
86119         vasnprintf.c: Avoid warning about unused label
86120         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
86121         "overflow" label definition and associated code with the
86122         same cpp condition that guards the sole use of that label.
86124 2008-01-26  Bruno Haible  <bruno@clisp.org>
86126         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
86127         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
86128         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
86129         * lib/isnanl-nolibm.h (isnanl): Likewise.
86130         Reported by Paul Eggert <eggert@cs.ucla.edu>.
86132 2008-01-26  Bruno Haible  <bruno@clisp.org>
86134         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
86135         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
86137 2008-01-26  Bruno Haible  <bruno@clisp.org>
86139         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
86140         GCC >= 4.0 built-in.
86141         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
86143 2008-01-26  Bruno Haible  <bruno@clisp.org>
86145         Rename isnan, applicable to 'double' only, to isnand.
86146         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
86147         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
86148         (configure.ac): Update.
86149         (Include): Replace "isnan.h" with "isnand.h".
86150         * m4/isnand.m4: Renamed from m4/isnan.m4.
86151         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
86152         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
86153         instead of isnan.c.
86154         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
86155         instead of HAVE_ISNAN_IN_LIBC.
86156         (isnand): Renamed from isnan.
86157         * lib/isnand.c: New file.
86158         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
86159         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
86160         (Makefile.am): Update.
86161         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
86162         Include isnand.h instead of isnan.h.
86163         (main): Test isnand instead of isnan.
86164         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
86165         isnan-nolibm.
86166         * modules/frexp (Depends-on): Likewise.
86167         * modules/frexp-tests (Depends-on): Likewise.
86168         * modules/frexp-nolibm (Depends-on): Likewise.
86169         * modules/frexp-nolibm-tests (Depends-on): Likewise.
86170         * modules/isfinite (Depends-on): Likewise.
86171         * modules/round-tests (Depends-on): Likewise.
86172         * modules/signbit (Depends-on): Likewise.
86173         * modules/signbit-tests (Depends-on): Likewise.
86174         * modules/snprintf-posix (Depends-on): Likewise.
86175         * modules/sprintf-posix (Depends-on): Likewise.
86176         * modules/trunc-tests (Depends-on): Likewise.
86177         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
86178         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
86179         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
86180         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
86181         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
86182         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
86183         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
86184         * modules/vasnprintf-posix (Depends-on): Likewise.
86185         * modules/vasprintf-posix (Depends-on): Likewise.
86186         * modules/vfprintf-posix (Depends-on): Likewise.
86187         * modules/vsnprintf-posix (Depends-on): Likewise.
86188         * modules/vsprintf-posix (Depends-on): Likewise.
86189         * lib/frexp.c: Include isnand.h instead of isnan.h.
86190         (ISNAN): Set to isnand instead of isnan.
86191         * lib/isfinite.c: Include isnand.h instead of isnan.h.
86192         (gl_isfinited): Use isnand instead of isnan.
86193         * lib/signbitd.c: Include isnand.h instead of isnan.h.
86194         (gl_signbitd): Use isnand instead of isnan.
86195         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
86196         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
86197         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
86198         (main): Use isnand instead of isnan.
86199         * tests/test-round1.c: Include isnand.h.
86200         (main): Use isnand instead of isnan.
86201         * tests/test-round2.c: Include isnand.h instead of isnan.h.
86202         (ISNAN): Set to isnand instead of isnan.
86203         * tests/test-trunc1.c: Include isnand.h.
86204         (main): Use isnand instead of isnan.
86205         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
86206         (equal): Use isnand instead of isnan.
86207         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
86208         isnand-nolibm.
86209         * NEWS: Mention the change.
86211 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
86212             Bruno Haible  <bruno@clisp.org>
86214         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
86215         the GCC builtins for signbits are present and set
86216         REPLACE_SIGNBIT_USING_GCC if so.
86217         * lib/math.in.h (signbit): Define using GCC builtins if
86218         REPLACE_SIGNBIT_USING_GCC is set.
86219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
86220         REPLACE_SIGNBIT_USING_GCC.
86221         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
86223 2008-01-25  Jim Meyering  <meyering@redhat.com>
86225         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
86226         * lib/poll.c: Include <config.h>, not "config.h".
86227         * tests/test-getaddrinfo.c: Likewise.
86229 2008-01-25  Simon Josefsson  <simon@josefsson.org>
86231         * modules/sockets-tests: New file.
86233 2008-01-24  Simon Josefsson  <simon@josefsson.org>
86235         * modules/sockets: New module, can be used to call WSA_Startup and
86236         WSA_Cleanup when needed.
86238         * lib/sockets.h, lib/sockets.c: New files.
86240         * m4/sockets.m4: New file.
86242         * tests/test-sockets.c: New file.
86244 2008-01-19  Bruno Haible  <bruno@clisp.org>
86246         * doc/posix-headers: Renamed from doc/headers.
86247         * doc/posix-functions: Renamed from doc/functions.
86248         * doc/gnulib.texi: Update.
86250 2008-01-19  Bruno Haible  <bruno@clisp.org>
86252         * doc/glibc-functions/strcasestr.texi: Include contents of
86253         doc/functions/strcasestr.texi, fixing the list of platforms.
86254         * doc/functions/strcasestr.texi: Remove file.
86256 2008-01-19  Bruno Haible  <bruno@clisp.org>
86258         * doc/glibc-functions/memmem.texi: Include contents of
86259         doc/functions/memmem.texi.
86260         * doc/functions/memmem.texi: Remove file.
86262 2008-01-18  Bruno Haible  <bruno@clisp.org>
86264         * doc/glibc-functions/*.texi: New files.
86265         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
86266         to use the new files.
86268 2008-01-17  Bruno Haible  <bruno@clisp.org>
86270         * tests/test-gethostname.c (main): Fix printf statement.
86272 2008-01-17  Simon Josefsson  <simon@josefsson.org>
86274         * modules/gethostname-tests: New file.
86276         * tests/test-gethostname.c: New file.
86278 2008-01-17  Simon Josefsson  <simon@josefsson.org>
86280         * lib/gethostname.c: Include string.h unconditionally, strncpy is
86281         used by the UNAME case.  Reported by Bruno Haible
86282         <bruno@clisp.org>.
86284 2008-01-17  Eric Blake  <ebb9@byu.net>
86286         Convert c-strcasestr to be more efficient.
86287         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
86288         (Depends-on): Add c-strcase, remove malloca, strnlen.
86289         * tests/test-c-strcasestr.c (main): Enhance test.
86290         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
86292 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
86294         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
86295         Use it in creating po/Makevars.
86297 2008-01-15  Simon Josefsson  <simon@josefsson.org>
86299         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
86300         Applications that requires it should initialize libgcrypt
86301         manually.
86303 2008-01-16  Simon Josefsson  <simon@josefsson.org>
86305         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
86307 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
86309         Fix problem with getdate on mingw32 reported by Simon Josefsson
86310         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
86311         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
86312         tzname", when deciding whether to declare tzname.
86313         * lib/strftime.c (tzname): Likewise.
86315 2008-01-15  Bruno Haible  <bruno@clisp.org>
86317         Work around a MacOS X 10.5 bug in frexpl().
86318         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
86319         * doc/functions/frexpl.texi: Document the bug.
86320         Reported by Elias Pipping <pipping@gentoo.org>.
86322 2008-01-14  Eric Blake  <ebb9@byu.net>
86324         Touch up previous patch.
86325         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
86326         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
86328         Convert strcasestr module to use Two-Way algorithm.
86329         * modules/strcasestr-simple: New module, based on the old
86330         strcasestr, but with Two-Way rather than KMP.
86331         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
86332         * lib/string.in.h (rpl_strcasestr): Declare.
86333         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
86334         performance.
86335         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
86336         * modules/string (Makefile.am): Support strcasestr.
86337         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
86338         * modules/strcasestr-tests (Depends-on): Check for alarm.
86339         * tests/test-strcasestr.c: Augment test.
86340         * lib/str-two-way.h: Clean up stray macro.
86341         * NEWS: Document new module.
86342         * MODULES.html.sh (string handling): Likewise.
86343         * doc/functions/strcasestr.texi: New file.
86344         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
86345         here, since it is not a POSIX function.
86347 2008-01-14  Colin Watson  <cjwatson@debian.org>
86348             Bruno Haible  <bruno@clisp.org>
86350         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
86351         works fine; if not, set REPLACE_STRSIGNAL.
86352         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
86353         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
86354         REPLACE_STRSIGNAL.
86355         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
86356         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
86357         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
86359 2008-01-14  Bruno Haible  <bruno@clisp.org>
86361         * modules/strsignal (Include): Change to <string.h>.
86363 2008-01-14  Colin Watson  <cjwatson@debian.org>
86365         * modules/argp (Notice): Add a notice recommending to change
86366         XGETTEXT_OPTIONS.
86367         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
86369 2008-01-13  Colin Watson  <cjwatson@debian.org>
86371         * modules/strsignal-tests: New file.
86372         * tests/test-strsignal.c: New file.
86374         * lib/strsignal.c: New file, from glibc with modifications.
86375         * lib/siglist.h: New file, from glibc with modifications.
86376         * lib/string.in.h (strsignal): New declaration.
86377         * m4/strsignal.m4: New file.
86378         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
86379         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
86380         * modules/strsignal: New file.
86381         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
86382         HAVE_DECL_STRSIGNAL.
86384 2008-01-13  Bruno Haible  <bruno@clisp.org>
86386         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
86387         locale encoding is not ASCII. Needed for OpenBSD 4.0.
86388         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
86389         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
86391 2008-01-13  Bruno Haible  <bruno@clisp.org>
86393         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
86394         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
86395         * lib/argp.h (__attribute__): Likewise.
86396         * lib/c-stack.c (__attribute__): Likewise.
86397         * lib/error.h (__attribute__): Likewise.
86398         * lib/fts.c (__attribute__): Likewise.
86399         * lib/openat.h (__attribute__): Likewise.
86400         * lib/stdio.in.h (__attribute__): Likewise.
86401         * lib/string.in.h (__attribute__): Likewise.
86402         * lib/utimens.c (__attribute__): Likewise.
86403         * lib/vasnprintf.h (__attribute__): Likewise.
86404         * lib/xalloc.h (__attribute__): Likewise.
86405         * lib/xprintf.h (__attribute__): Likewise.
86406         * lib/xstrtol.h (__attribute__): Likewise.
86407         * lib/xvasprintf.h (__attribute__): Likewise.
86409 2008-01-12  Bruno Haible  <bruno@clisp.org>
86411         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
86412         * doc/glibc-headers/a.out.texi: New file.
86413         * doc/glibc-headers/aliases.texi: New file.
86414         * doc/glibc-headers/alloca.texi: New file.
86415         * doc/glibc-headers/ar.texi: New file.
86416         * doc/glibc-headers/argp.texi: New file.
86417         * doc/glibc-headers/argz.texi: New file.
86418         * doc/glibc-headers/byteswap.texi: New file.
86419         * doc/glibc-headers/crypt.texi: New file.
86420         * doc/glibc-headers/endian.texi: New file.
86421         * doc/glibc-headers/envz.texi: New file.
86422         * doc/glibc-headers/err.texi: New file.
86423         * doc/glibc-headers/error.texi: New file.
86424         * doc/glibc-headers/execinfo.texi: New file.
86425         * doc/glibc-headers/fpu_control.texi: New file.
86426         * doc/glibc-headers/fstab.texi: New file.
86427         * doc/glibc-headers/fts.texi: New file.
86428         * doc/glibc-headers/getopt.texi: New file.
86429         * doc/glibc-headers/ieee754.texi: New file.
86430         * doc/glibc-headers/ifaddrs.texi: New file.
86431         * doc/glibc-headers/libintl.texi: New file.
86432         * doc/glibc-headers/mcheck.texi: New file.
86433         * doc/glibc-headers/mntent.texi: New file.
86434         * doc/glibc-headers/obstack.texi: New file.
86435         * doc/glibc-headers/paths.texi: New file.
86436         * doc/glibc-headers/printf.texi: New file.
86437         * doc/glibc-headers/pty.texi: New file.
86438         * doc/glibc-headers/resolv.texi: New file.
86439         * doc/glibc-headers/shadow.texi: New file.
86440         * doc/glibc-headers/sysexits.texi: New file.
86441         * doc/glibc-headers/ttyent.texi: New file.
86443 2008-01-12  Jim Meyering  <meyering@redhat.com>
86445         announce-gen: emit Gnulib's git-based version string.
86446         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
86447         New option --gnulib-version=V, where V is expected to be
86448         the output of running git describe in the gnulib directory.
86449         (get_tool_versions): Request feedback on xdelta.  I suspect it's
86450         not useful, and plan to stop publishing an xdelta file with each
86451         coreutils release.
86453         * build-aux/announce-gen: Also check for lzma-compressed files.
86455 2008-01-11  Bruno Haible  <bruno@clisp.org>
86457         * tests/test-memmem.c (main): Increase maximum allowed time.
86458         * tests/test-strstr.c (main): Likewise.
86460 2008-01-11  Bruno Haible  <bruno@clisp.org>
86462         * doc/functions/memmem.texi: Add more precisions about platforms.
86463         * doc/functions/strstr.texi: Likewise.
86465 2008-01-10  Eric Blake  <ebb9@byu.net>
86467         * m4/strstr.m4: Delete cruft from copy-n-paste.
86468         Reported by Bruno Haible.
86470 2008-01-10  Bruno Haible  <bruno@clisp.org>
86472         Make c-strstr rely on strstr.
86473         * lib/c-strstr.c: Don't include str-kmp.h.
86474         (c_strstr): Define in terms of strstr.
86475         * modules/c-strstr (Files): Remove lib/str-kmp.h.
86476         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
86478 2008-01-10  Bruno Haible  <bruno@clisp.org>
86480         * doc/gnulib.texi (String Functions in C Locale): New section.
86481         * doc/c-ctype.texi: New file.
86482         * doc/c-strcase.texi: New file.
86483         * doc/c-strcaseeq.texi: New file.
86484         * doc/c-strcasestr.texi: New file.
86485         * doc/c-strstr.texi: New file.
86486         * doc/c-strtod.texi: New file.
86487         * doc/c-strtold.texi: New file.
86489 2008-01-10  Eric Blake  <ebb9@byu.net>
86491         * lib/relocatable.h: Fix a comment.
86493 2008-01-10  Eric Blake  <ebb9@byu.net>
86495         Share two-way algorithm.
86496         * lib/str-two-way.h: New file, merged from...
86497         * lib/memmem.c: ...here...
86498         * lib/strstr.c: ...and here.
86499         * modules/memmem (Files): Use it.
86500         * modules/strstr (Files): Likewise.
86502         Avoid quadratic strstr implementations.
86503         * lib/strstr.c: New file.
86504         * m4/strstr.m4: Likewise.
86505         * modules/strstr: Likewise.
86506         * modules/strstr-tests: Likewise.
86507         * tests/test-strstr.c: Likewise.
86508         * lib/string.in.h (rpl_strstr): Declare.
86509         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
86510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
86511         * modules/string (Makefile.am): Likewise.
86512         * MODULES.html.sh (string handling): Mention new module.
86513         * doc/functions/strstr.texi (strstr): Document the bug.
86515 2008-01-10  Bruno Haible  <bruno@clisp.org>
86517         * lib/relocatable.h (relocate): State whether result is freshly
86518         allocated or not.
86519         * lib/relocatable.c (relocate): Return a freshly allocated string
86520         instead of a pointer to a privately held string.
86521         Reported by Sylvain Beucler <beuc@gnu.org>.
86523 2008-01-10  Colin Watson  <cjwatson@debian.org>
86525         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
86526         s/S_ISNLK/S_ISLNK/.
86528 2008-01-09  Bruno Haible  <bruno@clisp.org>
86530         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
86531         and other files.
86532         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
86533         if it's only a guess.
86534         * modules/memmem: Simplify by depending on memmem-simple.
86536 2008-01-09  Bruno Haible  <bruno@clisp.org>
86538         Work around OpenBSD 4.0 tdelete() bug.
86539         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
86540         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
86541         macros and don't redefine the enum values.
86542         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
86543         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
86544         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
86546 2008-01-09  Bruno Haible  <bruno@clisp.org>
86548         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
86549         (main): Don't perform the tests if setlocale did not install a UTF-8
86550         locale. Needed on OpenBSD 4.0.
86551         * modules/wcwidth-tests (Depends-on): Add localcharset.
86553 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
86555         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
86556         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
86557         * NEWS: announce this.
86558         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
86560 2008-01-09  Simon Josefsson  <simon@josefsson.org>
86561         and Eric Blake  <ebb9@byu.net>
86563         Add memmem-simple module.
86564         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
86565         (gl_FUNC_MEMMEM): Separate performance from presence checks.
86566         * modules/memmem-simple: New file.
86567         * modules/memmem (Description): Tweak.
86568         * MODULES.html.sh (string handling): Mention new module.
86569         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
86570         addressed by memmem-simple.
86571         * NEWS: Document the difference.
86573 2008-01-09  Eric Blake  <ebb9@byu.net>
86575         Give gcc some memmem optimization hints.
86576         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
86577         (strcasestr): Declare as pure.
86578         * modules/memmem (Maintainer): Claim my implementation.
86580 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86582         Support AIX 6.1 and higher.
86583         * build-aux/config.libpath: Likewise.
86584         * build-aux/config.rpath: Likewise.
86586 2008-01-08  Jim Meyering  <meyering@redhat.com>
86587             Bruno Haible  <bruno@clisp.org>
86589         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
86590         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
86591         Reported by Peter Fales in
86592         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
86594 2008-01-08  Bruno Haible  <bruno@clisp.org>
86596         * modules/unictype/category-of (Depends-on): Add
86597         unictype/category-none.
86598         * modules/unictype/category-and-tests (Depends-on): Add
86599         unictype/category-{L,N,Lu,Nd}.
86600         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
86601         * modules/unictype/category-or-tests (Depends-on): Add
86602         unictype/category-{L,N}.
86603         * modules/unictype/category-name-tests (Depends-on): Add
86604         unictype/category-{Z,Nl}.
86605         Reported by Simon Josefsson.
86607 2008-01-08  Bruno Haible  <bruno@clisp.org>
86609         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
86610         convention better.
86611         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
86612         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
86613         Reported by Peter Miller <millerp@canb.auug.org.au>.
86615 2008-01-08  Eric Blake  <ebb9@byu.net>
86617         Rewrite memmem to guarantee linear complexity without malloc.
86618         * lib/memmem.c (memmem): Use Two-Way rather than
86619         Knuth-Morris-Pratt, to allow O(1) space usage.
86620         (critical_factorization, two_way_short_needle)
86621         (two_way_long_needle): New functions.
86622         (knuth_morris_pratt): Delete.
86623         * modules/memmem (Depends-on): No longer need malloca or stdbool.
86624         Add stdint.
86625         * tests/test-memmem.c (main): Add tests for periodic needle and
86626         sublinear performance.
86627         * doc/functions/memmem.texi (memmem): Document other deficiencies
86628         in cygwin and older glibc.
86630 2008-01-08  Bruno Haible  <bruno@clisp.org>
86632         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
86633         augmentation.
86635 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
86637         Add a configure time option: --disable-acl.
86638         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
86639         AC_ARG_ENABLE(acl).
86641 2008-01-06  Simon Josefsson  <simon@josefsson.org>
86643         * tests/test-localename.c: Don't include obsolete "setenv.h".
86645         * modules/localename-tests (Depends-on): Need unsetenv.
86647 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86649         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
86651 2008-01-06  Colin Watson  <cjwatson@debian.org>
86653         * users.txt: Add man-db.
86655 2008-01-07  Bruno Haible  <bruno@clisp.org>
86657         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
86658         previous section name.
86660 2008-01-07  Bruno Haible  <bruno@clisp.org>
86662         * lib/progname.c (set_program_name): Don't strip off a leading
86663         "lt-" prefix outside a .libs directory.
86664         Suggested by Paul Eggert.
86666 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
86667             Bruno Haible  <bruno@clisp.org>
86669         Improve memory cleanup in 'relocatable' module.
86670         * lib/relocatable.h (compute_curr_prefix): Change return type to
86671         'char *'.
86672         * lib/relocatable.c (compute_curr_prefix): Change return type to
86673         'char *'. Free curr_installdir after use.
86674         (relocate): Free curr_prefix_better after use.
86675         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
86677 2008-01-01  Bruno Haible  <bruno@clisp.org>
86679         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
86680         failure on older glibc systems.
86681         Reported by Peter Fales <psfales@alcatel-lucent.com>.
86683 2008-01-05  Eric Blake  <ebb9@byu.net>
86685         Avoid quadratic system memmem.
86686         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
86687         Reported by Ralf Wildenhues.
86689         Fix memmem test for mingw.
86690         * modules/memmem-tests (configure.ac): Check for alarm.
86691         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
86692         it.
86693         * doc/functions/memmem.texi: New file.
86694         * doc/gnulib.texi (Function Substitutes): Add memmem.
86695         Reported by Bruno Haible.
86697 2008-01-04  Bruno Haible  <bruno@clisp.org>
86699         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
86700         Require gl_HEADER_STRINGS_H_DEFAULTS, not
86701         gl_HEADER_STRING_H_DEFAULTS.
86703 2008-01-04  Eric Blake  <ebb9@byu.net>
86705         Shorten duration of memmem test.
86706         * tests/test-memmem.c (main): Use alarm to declare failure if test
86707         is taking too long.
86708         Reported by Ralf Wildenhues.
86710 2007-12-21  Simon Josefsson  <simon@josefsson.org>
86712         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
86713         string, needed by strerror.
86715 2008-01-03  Colin Watson  <cjwatson@debian.org>
86716             Bruno Haible  <bruno@clisp.org>
86718         * doc/gnulib-tool.texi (Localization): New section.
86720 2008-01-02  Bruno Haible  <bruno@clisp.org>
86722         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
86723         variables to 'unsigned char *' type.
86724         Reported by Paul Eggert.
86726 2008-01-02  Jim Meyering  <jim@meyering.net>
86728         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
86730 2007-12-31  Jim Meyering  <jim@meyering.net>
86732         Avoid use of private FTS type name.
86733         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
86735 2007-12-30  Karl Berry  <karl@gnu.org>
86737         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
86738         work around defect in Texinfo and/or the standalone Info browser.
86740 2007-12-30  Bruno Haible  <bruno@clisp.org>
86742         Unify 5 copies of the KMP code.
86743         * lib/str-kmp.h: New file.
86744         * lib/c-strcasestr.c: Include str-kmp.h.
86745         (knuth_morris_pratt): Remove function.
86746         (c_strcasestr): Update.
86747         * lib/c-strstr.c: Include str-kmp.h.
86748         (knuth_morris_pratt): Remove function.
86749         (c_strcasestr): Update.
86750         * lib/mbscasestr.c: Include str-kmp.h.
86751         (knuth_morris_pratt_unibyte): Remove function.
86752         * lib/mbsstr.c: Include str-kmp.h.
86753         (knuth_morris_pratt_unibyte): Remove function.
86754         * lib/strcasestr.c: Include str-kmp.h.
86755         (knuth_morris_pratt): Remove function.
86756         (strcasestr): Update.
86757         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
86758         * modules/c-strstr (Files): Likewise.
86759         * modules/mbscasestr (Files): Likewise.
86760         * modules/mbsstr (Files): Likewise.
86761         * modules/strcasestr (Files): Likewise.
86762         Suggested by Paul Eggert.
86764 2007-12-30  Bruno Haible  <bruno@clisp.org>
86766         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
86767         defined.
86769 2007-12-30  Bruno Haible  <bruno@clisp.org>
86771         * lib/xmalloca.h: Include xalloc.h.
86772         (xnmalloca): New macro.
86774 2007-12-30  Bruno Haible  <bruno@clisp.org>
86776         * lib/malloca.h (nmalloca): New macro.
86777         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
86778         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
86779         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
86780         knuth_morris_pratt_multibyte): Likewise.
86781         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
86782         knuth_morris_pratt_multibyte): Likewise.
86783         * lib/memmem.c (knuth_morris_pratt): Likewise.
86784         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
86786 2007-12-25  Bruno Haible  <bruno@clisp.org>
86788         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
86789         * lib/glob.c: Don't include openat.h.
86790         (link_exists2_p): Add back the code that deals with the
86791         !GLOB_ALTDIRFUNC case.
86792         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
86793         let it do the filename concatenation.
86794         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
86795         * modules/glob (Depends-on): Remove openat.
86797 2007-12-31  Bruno Haible  <bruno@clisp.org>
86799         * modules/dirfd (License): Change to LGPLv2+.
86800         Approved by Jim Meyering.
86802 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
86804         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
86805         when multiplying M by sizeof (size_t).
86807 2007-12-10  Martin Lambers  <marlam@marlam.de>
86809         Override getpagesize on mingw.
86810         * lib/getpagesize.c: New file.
86811         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
86812         * modules/getpagesize (Files): Add lib/getpagesize.c.
86813         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
86814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
86815         REPLACE_GETPAGESIZE.
86816         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
86818 2007-12-25  Bruno Haible  <bruno@clisp.org>
86820         * modules/localcharset (Notice): New field.
86821         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
86822         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
86824 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
86825             Bruno Haible  <bruno@clisp.org>
86827         Avoid using the syntax symbol() in formatted documentation.
86828         * MODULES.html.sh (func_module): When replacing symbol() with a
86829         hyperlink, remove the parentheses. Show an error if some remain.
86830         Recognize and render the '...' syntax.
86831         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
86832         Rework. Add paragraph about GCC's inlining.
86833         * doc/alloca.texi: Likewise.
86834         * doc/error.texi: Remove parentheses from symbol reference.
86835         * doc/gnulib-intro.texi: Likewise.
86836         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
86837         * modules/fnmatch (Description): Reword to say "the ... function".
86838         * modules/full-read (Description): Likewise.
86839         * modules/full-write (Description): Likewise.
86840         * modules/safe-read (Description): Likewise.
86841         * modules/safe-write (Description): Likewise.
86842         * modules/strchrnul (Description): Likewise.
86843         * modules/trim (Description): Likewise.
86844         * modules/error (Description): Remove parentheses from symbol
86845         references.
86846         * modules/verror (Description): Likewise.
86847         Reported by Karl Berry.
86849 2007-12-25  Bruno Haible  <bruno@clisp.org>
86851         Fixup after 2007-10-16 commit.
86852         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
86854 2007-12-24  Bruno Haible  <bruno@clisp.org>
86856         Make --enable-relocatable work with DESTDIR.
86857         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
86858         to compute installdir from destprog.
86859         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
86860         also set the RELOC_DESTDIR variable.
86861         Reported by Левашев Иван <octagram@bluebottle.com>.
86863 2007-12-24  Bruno Haible  <bruno@clisp.org>
86865         Fix link error due to xalloc_die().
86866         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
86867         of xreadlink.
86868         * lib/relocwrapper.c: Update comments.
86869         * build-aux/install-reloc: Remove xreadlink.c from file list.
86870         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
86871         xreadlink.c.
86872         Reported by Левашев Иван <octagram@bluebottle.com>.
86874 2007-12-24  Bruno Haible  <bruno@clisp.org>
86876         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
86877         * lib/setenv.h: Remove file.
86878         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
86879         lib/setenv.h.
86880         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
86881         (Depends-on): Add stdlib.
86882         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
86883         gl_FUNC_UNSETENV.
86884         (Include): Replace setenv.h with <stdlib.h>.
86885         * modules/unsetenv: New file.
86886         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
86887         * lib/unsetenv.c: Include <stdlib.h> first.
86888         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
86889         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
86890         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
86891         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
86892         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
86893         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
86894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
86895         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
86896         * doc/functions/unsetenv.texi: Update.
86897         * modules/xsetenv (Depends-on): Add unsetenv.
86898         * modules/getdate (Depends-on): Likewise.
86899         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
86900         * lib/xsetenv.c: Don't include setenv.h.
86901         * lib/getdate.y: Likewise.
86902         * lib/relocwrapper.c: Likewise.
86903         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
86904         (Depends-on): Add stdlib.
86905         * NEWS: Mention the changes.
86906         Reported by Левашев Иван <octagram@bluebottle.com>.
86908 2007-12-23  Bruno Haible  <bruno@clisp.org>
86910         * lib/memmem.c (memmem): Use lowercase variable names. Tab
86911         indentation.
86913 2007-12-23  Bruno Haible  <bruno@clisp.org>
86915         * lib/c-strcasestr.c: Add more comments.
86916         * lib/c-strstr.c: Likewise.
86917         * lib/mbscasestr.c: Likewise.
86918         * lib/mbsstr.c: Likewise.
86919         * lib/strcasestr.c: Likewise.
86920         * lib/memmem.c: Likewise.
86922 2007-12-23  Bruno Haible  <bruno@clisp.org>
86924         * tests/test-memmem.c: Include <string.h> first.
86926 2007-12-22  Bruno Haible  <bruno@clisp.org>
86928         * gnulib-tool (func_create_testdir): Change $auxdir while generating
86929         the contents of $testsbase.
86930         Reported by Ralf Wildenhues.
86932 2007-12-22  Bruno Haible  <bruno@clisp.org>
86934         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
86935         two variables local_ldadd_before, local_ldadd_last.
86937 2007-12-20  Eric Blake  <ebb9@byu.net>
86939         Work around circular library issue when cross-compiling.
86940         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
86941         that progname.o does not need to pull in rpl_memcmp.
86943 2007-12-19  Eric Blake  <ebb9@byu.net>
86945         Fix memmem to avoid O(n^2) worst-case complexity.
86946         * lib/memmem.c (knuth_morris_pratt): New function.
86947         (memmem): Use it if first few naive iterations fail.
86948         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
86949         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
86950         * modules/memchr (License): Likewise.
86951         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
86952         malloca.
86953         * tests/test-memmem.c: Rewrite, borrowing ideas from
86954         test-mbsstr1.c; the old version wouldn't even compile!
86955         * modules/memmem-tests: New file.
86956         * lib/string.in.h (rpl_memmem): Add declaration.
86957         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
86958         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
86959         REPLACE_MEMMEM.
86961 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
86963         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
86964         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
86965         before any system include files, and undef after them all.  This
86966         should fix a problem on VMS reported by John E. Malmberg in
86967         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
86969 2007-12-17  Eric Blake  <ebb9@byu.net>
86971         Revert addition of verify, for BSD/OS.
86972         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
86973         can't handle large files, for the sake of obsolete platforms.
86974         * modules/fseeko (Depends-on): Remove verify.
86975         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
86976         * doc/functions/ftello.texi (ftello): Likewise.
86977         * doc/functions/fgetpos.texi (fgetpos): Likewise.
86978         Reported by Larry Jones.
86980 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
86982         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
86983         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
86985 2007-12-17  Jim Meyering  <meyering@redhat.com>
86987         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
86988         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
86989         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
86990         * modules/getcwd (Depends-on): Add openat.
86991         Reported by Petr Salinger.
86993 2007-12-17  Bruno Haible  <bruno@clisp.org>
86995         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
86996         avoid a segmentation fault of the configure test on x86_64 systems.
86998 2007-12-15  Jim Meyering  <meyering@redhat.com>
87000         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
87002 2007-12-13  Eric Blake  <ebb9@byu.net>
87004         Another fseek test.
87005         * tests/test-fseek.c (main): Also test ungetc handling.
87006         * tests/test-fseeko.c (main): Likewise.
87007         * modules/fseeko (Depends-on): Add verify.
87008         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
87009         large.
87010         Reported by Larry Jones.
87012         Fix fseeko on mingw.
87013         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
87014         seek.
87016         Beef up fseek tests.
87017         * tests/test-fseek.c (main): Also test eof handling.
87018         * tests/test-fseeko.c (main): Likewise.
87019         Reported by Larry Jones.
87021 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
87023         Fix fseeko on BSD-based platforms.
87024         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
87025         successful seek.
87027 2007-12-12  Eric Blake  <ebb9@byu.net>
87029         Allow circular dependency of separate libtests.a
87030         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
87031         when use_libtests.
87033 2007-12-11  Eric Blake  <ebb9@byu.net>
87035         Fix bug with -0.0L in previous patch.
87036         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
87037         * tests/test-isnan.c (main): Also test on zeroes.
87038         * tests/test-isnanf.c (main): Likewise.
87039         * tests/test-isnanl.h (main): Likewise.
87041         Detect pseudo-denormals on x86 even when cross-compiling.
87042         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
87043         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
87044         invalid bit patterns that happen to satisfy ==.
87046         Avoid link failures with separate libtests.a.
87047         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
87048         last, to satisfy circular dependencies.
87050 2007-12-11  Eric Blake  <ebb9@byu.net>
87051         and Bruno Haible  <bruno@clisp.org>
87053         Fix OpenBSD 4.0 <float.h> handling of long double.
87054         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
87055         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
87056         * doc/headers/float.texi (float.h): Document OpenBSD bug.
87058 2007-12-11  Jim Meyering  <meyering@redhat.com>
87060         * users.txt: Add libvirt.
87062         Support versions of autoconf prior to 2.59c.
87063         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
87064         if it is not already defined.
87066 2007-12-09  Bruno Haible  <bruno@clisp.org>
87068         Let 'gnulib-tool --import' collect sources needed for the tests in
87069         tests/ rather than in lib/.
87070         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
87071         argument. If true, add rules to generate libtests.a, and put libtests.a
87072         into $(LDADD). Consider source files in subdirectories and set
87073         uses_subdirs.
87074         (func_emit_initmacro_start, func_emit_initmacro_end,
87075         func_emit_initmacro_done): Pass all arguments explicitly.
87076         (func_import): Determine two module lists main_modules,
87077         testsrelated_modules. Determine use_libtests. Determine two variables
87078         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
87079         instead of just sed_transform_lib_file. Determine two variables
87080         main_files and testsrelated_files. Compute 'files' as the union of
87081         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
87082         func_add_or_update. In the generated gnulib-comp.m4, collect the
87083         object files for tests/ in different variables than those for lib/.
87084         Substitute LIBTESTS_LIBDEPS.
87085         (func_create_testdir): Combine the uses_subdirs results from
87086         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
87088 2007-12-09  Bruno Haible  <bruno@clisp.org>
87090         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
87091         the build-aux directory.
87093 2007-12-09  Bruno Haible  <bruno@clisp.org>
87095         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
87096         introduced on 2006-09-09.
87098 2007-12-07  Jim Meyering  <meyering@redhat.com>
87100         Let these macros work also with autoconf-2.59.
87101         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
87102         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
87103         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
87105 2007-12-06  Jim Meyering  <meyering@redhat.com>
87107         Avoid a configure-time syntax error in gl_FUNC_ACL.
87108         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
87109         function in each branch, before testing the cache variable.
87111 2007-12-04  Eric Blake  <ebb9@byu.net>
87113         Make scripts executable.
87114         * build-aux/config.guess: Add execute permissions.
87115         * build-aux/config.sub: Likewise.
87116         * build-aux/gendocs.sh: Likewise.
87118         Fix frexp on mingw.
87119         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
87120         cross-compiling.
87121         * doc/functions/frexp.texi (frexp): Document the bug.
87123         Make cygwin fseeko check more reliable.
87124         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
87125         version numbers, rather than unrelated feature check.
87126         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
87127         * doc/functions/ftello.texi (ftello): Likewise.
87128         Reported by Bruno Haible.
87130         * m4/strerror.m4: Bump version number.
87132 2007-12-03  Bruno Haible  <bruno@clisp.org>
87134         * doc/functions/mprotect.texi: Mention the mingw problem.
87136 2007-12-03  Eric Blake  <ebb9@byu.net>
87138         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
87139         REPLACE_STRERROR is initialized before this macro.
87141 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
87143         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
87144         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
87145         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
87146         put -lsec in even for programs other than 'ls'.  This fixes a problem
87147         for gettext reported by Bruno Haible in
87148         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
87149         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
87150         Add support for Solaris 10.  This isn't efficient, but should get the
87151         job done for now.
87153 2007-12-03  James Youngman  <jay@gnu.org>
87155         * doc/regexprops-generic.texi: change "an close-group" to "a
87156         close-group" and "illegal" to "not allowed".
87158 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87160         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
87161         pr_byname.h. Needed for the rare case when the maintainer has done
87162         "make maintainer-clean" in the source directory and then attempts a
87163         build outside the source directory.
87164         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
87165         scripts_byname.h.
87167 2007-12-02  Martin Lambers  <marlam@marlam.de>
87168             Bruno Haible  <bruno@clisp.org>
87170         * lib/getpagesize.h: Remove file.
87171         * lib/unistd.in.h: Include declaration of getpagesize here.
87172         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
87173         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
87174         HAVE_SYS_PARAM_H.
87175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
87176         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
87177         * modules/getpagesize (Files): Remove lib/getpagesize.h.
87178         (Depends-on): Add unistd.
87179         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87180         (Include): Use <unistd.h> instead of getpagesize.h.
87181         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
87182         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
87183         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
87184         gl_GETPAGESIZE invocation, already handled by module dependency.
87185         * lib/pagealign_alloc.c: Don't include getpagesize.h.
87187 2007-12-02  Bruno Haible  <bruno@clisp.org>
87189         * modules/strings-tests: New file.
87190         * tests/test-strings.c: New file.
87192         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
87193         * lib/strings.in.h: New file.
87194         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
87195         * m4/strings_h.m4: New file.
87196         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
87197         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
87198         * modules/strings: New file.
87199         * modules/string (Makefile.am): Update.
87200         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
87201         Reported by Karl Berry.
87203 2007-12-01  Eric Blake  <ebb9@byu.net>
87205         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
87206         accommodate fix in cygwin 1.5.25.
87208 2007-12-01  Jim Meyering  <meyering@redhat.com>
87210         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
87211         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
87212         that would inhibit utf8-optimization of a regexp containing line-
87213         or buffer-anchors, e.g., `^', `$'.
87215 2007-11-30  Bruno Haible  <bruno@clisp.org>
87217         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
87218         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
87219         glthread_recursive_lock_init.
87220         * lib/lock.c (glthread_recursive_lock_init)
87221         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
87222         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87224 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
87226         New function qset_acl, like set_acl but with syscall semantics.
87227         * lib/acl.h (qset_acl): New decl.
87228         * lib/acl.c (qset_acl): New function.
87229         (set_acl): Use new function.  Use more-consistent diagnostics.
87231 2007-11-28  Jim Meyering  <meyering@redhat.com>
87233         * modules/physmem (License): Change from GPL to LGPLv2+.
87235 2007-11-26  Bruno Haible  <bruno@clisp.org>
87237         * lib/vasnprintf.c (decode_long_double): Don't abort if the
87238         'long double' type has excess precision.
87239         Reported by Jim Meyering in
87240         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
87242 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87244         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
87245         Sync from <http://gnu.org/licenses>.
87246         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
87247         with license text from same location.
87248         * doc/maintain.texi, doc/standards.texi:  Sync from
87249         <http://savannah.gnu.org/projects/gnustandards>.
87251 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
87252         and Jim Meyering  <meyering@redhat.com>
87254         Adjust getdate' grammar to accept a slightly more regular language.
87255         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
87256         Before, the former was rejected.
87257         * lib/getdate.y (digits_to_date_time): New function, factored
87258         out of ...
87259         (number): ...here.  Just call digits_to_date_time.
87260         (hybrid): New non-terminal to handle an <unsigned number,
87261         signed relative offset> sequence consistently.
87263 2007-11-18  Jim Meyering  <meyering@redhat.com>
87265         Pull my changes from coreutils:
87266         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
87267         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
87268         use of $gnulib_tool_option_extras, so that it's separated from the
87269         preceding argument.
87271         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
87272         * build-aux/bootstrap (cp_mark_as_generated): Create any required
87273         parent destination directories before copying a file into place.
87275 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
87277         bootstrap: work also with 4-argument variant of AC_INIT
87278         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
87280 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87282         Port test-getaddrinfo to Solaris.
87283         Problem reported by Bruno Haible in
87284         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
87285         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
87286         explanation of setting 'hints'.
87287         Don't reject an implementation merely because it returns EAI_SERVICE.
87288         (EAI_SERVICE): Define to 0 if not defined.
87290 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
87292         The license of gnu-make and posix-shell is now "GPLed build tool".
87293         * modules/gnu-make (License): Likewise.
87294         * modules/posix-shell (License): Likewise.
87296         New module posix-shell, for determining a POSIX shell
87297         or perhaps something that is close enough to a POSIX shell.
87298         * m4/posix-shell.m4: New file.
87299         * modules/posix-shell: New file.
87301         * MODULES.html.sh: Mention new module.
87303         New module gnu-make, for determining whether we're using GNU Make.
87304         * m4/gnu-make.m4: New file.
87305         * modules/gnu-make: New file.
87306         * MODULES.html.sh: Mention new module.
87308 2007-11-14  Jim Meyering  <meyering@redhat.com>
87310         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
87311         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
87312         use this macro to create a function _definition_.
87313         Remove useless "#undef ARGMATCH_DIE".
87315 2007-11-14  Bruno Haible  <bruno@clisp.org>
87317         * lib/config.charset: Update for OpenBSD 4.1.
87318         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
87320 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
87322         Document 64-bit #if problems in stdint.texi.
87323         * doc/headers/stdint.texi (stdint.h): Mention problems with
87324         64-bit-#if, and how to work around them.
87326         Don't insist on 'long long int' support in the preprocessor.  It
87327         breaks too many things.  For example, PRIdMAX still uses a 'long
87328         long int' format with the latest Sun compiler, even though
87329         HAVE_LONG_LONG_INT isn't defined due to that compiler's
87330         preprocessor problem.  This causes the latest coreutils to dump
87331         core on Solaris 10 sparc with the Sun C compiler.
87332         Instead, fix the 2007-10-16 problem in a different way, by evaluating
87333         the troublesome expressions at configure-time, not at #if-time.
87334         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
87335         preprocessor.
87336         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
87337         compile-time C checks, done at 'configure'-time.
87338         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
87339         * modules/inttypes (Makefile): Substitute the new symbols that
87340         gl_INTTYPES_H now generates.
87341         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
87343 2007-11-12  Bruno Haible  <bruno@clisp.org>
87345         Tests for Unicode character classification functions.
87347         * modules/unictype/bidicategory-byname-tests: New file.
87348         * modules/unictype/bidicategory-name-tests: New file.
87349         * modules/unictype/bidicategory-of-tests: New file.
87350         * modules/unictype/bidicategory-test-tests: New file.
87351         * modules/unictype/block-list-tests: New file.
87352         * modules/unictype/block-of-tests: New file.
87353         * modules/unictype/block-test-tests: New file.
87354         * modules/unictype/category-C-tests: New file.
87355         * modules/unictype/category-Cc-tests: New file.
87356         * modules/unictype/category-Cf-tests: New file.
87357         * modules/unictype/category-Cn-tests: New file.
87358         * modules/unictype/category-Co-tests: New file.
87359         * modules/unictype/category-Cs-tests: New file.
87360         * modules/unictype/category-L-tests: New file.
87361         * modules/unictype/category-Ll-tests: New file.
87362         * modules/unictype/category-Lm-tests: New file.
87363         * modules/unictype/category-Lo-tests: New file.
87364         * modules/unictype/category-Lt-tests: New file.
87365         * modules/unictype/category-Lu-tests: New file.
87366         * modules/unictype/category-M-tests: New file.
87367         * modules/unictype/category-Mc-tests: New file.
87368         * modules/unictype/category-Me-tests: New file.
87369         * modules/unictype/category-Mn-tests: New file.
87370         * modules/unictype/category-N-tests: New file.
87371         * modules/unictype/category-Nd-tests: New file.
87372         * modules/unictype/category-Nl-tests: New file.
87373         * modules/unictype/category-No-tests: New file.
87374         * modules/unictype/category-P-tests: New file.
87375         * modules/unictype/category-Pc-tests: New file.
87376         * modules/unictype/category-Pd-tests: New file.
87377         * modules/unictype/category-Pe-tests: New file.
87378         * modules/unictype/category-Pf-tests: New file.
87379         * modules/unictype/category-Pi-tests: New file.
87380         * modules/unictype/category-Po-tests: New file.
87381         * modules/unictype/category-Ps-tests: New file.
87382         * modules/unictype/category-S-tests: New file.
87383         * modules/unictype/category-Sc-tests: New file.
87384         * modules/unictype/category-Sk-tests: New file.
87385         * modules/unictype/category-Sm-tests: New file.
87386         * modules/unictype/category-So-tests: New file.
87387         * modules/unictype/category-Z-tests: New file.
87388         * modules/unictype/category-Zl-tests: New file.
87389         * modules/unictype/category-Zp-tests: New file.
87390         * modules/unictype/category-Zs-tests: New file.
87391         * modules/unictype/category-and-not-tests: New file.
87392         * modules/unictype/category-and-tests: New file.
87393         * modules/unictype/category-byname-tests: New file.
87394         * modules/unictype/category-name-tests: New file.
87395         * modules/unictype/category-none-tests: New file.
87396         * modules/unictype/category-of-tests: New file.
87397         * modules/unictype/category-or-tests: New file.
87398         * modules/unictype/category-test-withtable-tests: New file.
87399         * modules/unictype/combining-class-tests: New file.
87400         * modules/unictype/ctype-alnum-tests: New file.
87401         * modules/unictype/ctype-alpha-tests: New file.
87402         * modules/unictype/ctype-blank-tests: New file.
87403         * modules/unictype/ctype-cntrl-tests: New file.
87404         * modules/unictype/ctype-digit-tests: New file.
87405         * modules/unictype/ctype-graph-tests: New file.
87406         * modules/unictype/ctype-lower-tests: New file.
87407         * modules/unictype/ctype-print-tests: New file.
87408         * modules/unictype/ctype-punct-tests: New file.
87409         * modules/unictype/ctype-space-tests: New file.
87410         * modules/unictype/ctype-upper-tests: New file.
87411         * modules/unictype/ctype-xdigit-tests: New file.
87412         * modules/unictype/decimal-digit-tests: New file.
87413         * modules/unictype/digit-tests: New file.
87414         * modules/unictype/mirror-tests: New file.
87415         * modules/unictype/numeric-tests: New file.
87416         * modules/unictype/property-alphabetic-tests: New file.
87417         * modules/unictype/property-ascii-hex-digit-tests: New file.
87418         * modules/unictype/property-bidi-arabic-digit-tests: New file.
87419         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
87420         * modules/unictype/property-bidi-block-separator-tests: New file.
87421         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
87422         * modules/unictype/property-bidi-common-separator-tests: New file.
87423         * modules/unictype/property-bidi-control-tests: New file.
87424         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
87425         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
87426         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
87427         * modules/unictype/property-bidi-european-digit-tests: New file.
87428         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
87429         * modules/unictype/property-bidi-left-to-right-tests: New file.
87430         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
87431         * modules/unictype/property-bidi-other-neutral-tests: New file.
87432         * modules/unictype/property-bidi-pdf-tests: New file.
87433         * modules/unictype/property-bidi-segment-separator-tests: New file.
87434         * modules/unictype/property-bidi-whitespace-tests: New file.
87435         * modules/unictype/property-byname-tests: New file.
87436         * modules/unictype/property-combining-tests: New file.
87437         * modules/unictype/property-composite-tests: New file.
87438         * modules/unictype/property-currency-symbol-tests: New file.
87439         * modules/unictype/property-dash-tests: New file.
87440         * modules/unictype/property-decimal-digit-tests: New file.
87441         * modules/unictype/property-default-ignorable-code-point-tests: New file.
87442         * modules/unictype/property-deprecated-tests: New file.
87443         * modules/unictype/property-diacritic-tests: New file.
87444         * modules/unictype/property-extender-tests: New file.
87445         * modules/unictype/property-format-control-tests: New file.
87446         * modules/unictype/property-grapheme-base-tests: New file.
87447         * modules/unictype/property-grapheme-extend-tests: New file.
87448         * modules/unictype/property-grapheme-link-tests: New file.
87449         * modules/unictype/property-hex-digit-tests: New file.
87450         * modules/unictype/property-hyphen-tests: New file.
87451         * modules/unictype/property-id-continue-tests: New file.
87452         * modules/unictype/property-id-start-tests: New file.
87453         * modules/unictype/property-ideographic-tests: New file.
87454         * modules/unictype/property-ids-binary-operator-tests: New file.
87455         * modules/unictype/property-ids-trinary-operator-tests: New file.
87456         * modules/unictype/property-ignorable-control-tests: New file.
87457         * modules/unictype/property-iso-control-tests: New file.
87458         * modules/unictype/property-join-control-tests: New file.
87459         * modules/unictype/property-left-of-pair-tests: New file.
87460         * modules/unictype/property-line-separator-tests: New file.
87461         * modules/unictype/property-logical-order-exception-tests: New file.
87462         * modules/unictype/property-lowercase-tests: New file.
87463         * modules/unictype/property-math-tests: New file.
87464         * modules/unictype/property-non-break-tests: New file.
87465         * modules/unictype/property-not-a-character-tests: New file.
87466         * modules/unictype/property-numeric-tests: New file.
87467         * modules/unictype/property-other-alphabetic-tests: New file.
87468         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
87469         * modules/unictype/property-other-grapheme-extend-tests: New file.
87470         * modules/unictype/property-other-id-continue-tests: New file.
87471         * modules/unictype/property-other-id-start-tests: New file.
87472         * modules/unictype/property-other-lowercase-tests: New file.
87473         * modules/unictype/property-other-math-tests: New file.
87474         * modules/unictype/property-other-uppercase-tests: New file.
87475         * modules/unictype/property-paired-punctuation-tests: New file.
87476         * modules/unictype/property-paragraph-separator-tests: New file.
87477         * modules/unictype/property-pattern-syntax-tests: New file.
87478         * modules/unictype/property-pattern-white-space-tests: New file.
87479         * modules/unictype/property-private-use-tests: New file.
87480         * modules/unictype/property-punctuation-tests: New file.
87481         * modules/unictype/property-quotation-mark-tests: New file.
87482         * modules/unictype/property-radical-tests: New file.
87483         * modules/unictype/property-sentence-terminal-tests: New file.
87484         * modules/unictype/property-soft-dotted-tests: New file.
87485         * modules/unictype/property-space-tests: New file.
87486         * modules/unictype/property-terminal-punctuation-tests: New file.
87487         * modules/unictype/property-test-tests: New file.
87488         * modules/unictype/property-titlecase-tests: New file.
87489         * modules/unictype/property-unassigned-code-value-tests: New file.
87490         * modules/unictype/property-unified-ideograph-tests: New file.
87491         * modules/unictype/property-uppercase-tests: New file.
87492         * modules/unictype/property-variation-selector-tests: New file.
87493         * modules/unictype/property-white-space-tests: New file.
87494         * modules/unictype/property-xid-continue-tests: New file.
87495         * modules/unictype/property-xid-start-tests: New file.
87496         * modules/unictype/property-zero-width-tests: New file.
87497         * modules/unictype/scripts-tests: New file.
87498         * modules/unictype/syntax-c-ident-tests: New file.
87499         * modules/unictype/syntax-c-whitespace-tests: New file.
87500         * modules/unictype/syntax-java-ident-tests: New file.
87501         * modules/unictype/syntax-java-whitespace-tests: New file.
87502         * tests/unictype/test-bidi_byname.c: New file.
87503         * tests/unictype/test-bidi_name.c: New file.
87504         * tests/unictype/test-bidi_of.c: New file.
87505         * tests/unictype/test-bidi_test.c: New file.
87506         * tests/unictype/test-block_list.c: New file.
87507         * tests/unictype/test-block_of.c: New file.
87508         * tests/unictype/test-block_test.c: New file.
87509         * tests/unictype/test-categ_and.c: New file.
87510         * tests/unictype/test-categ_and_not.c: New file.
87511         * tests/unictype/test-categ_byname.c: New file.
87512         * tests/unictype/test-categ_name.c: New file.
87513         * tests/unictype/test-categ_none.c: New file.
87514         * tests/unictype/test-categ_of.c: New file.
87515         * tests/unictype/test-categ_or.c: New file.
87516         * tests/unictype/test-categ_test_withtable.c: New file.
87517         * tests/unictype/test-combining.c: New file.
87518         * tests/unictype/test-decdigit.c: New file.
87519         * tests/unictype/test-digit.c: New file.
87520         * tests/unictype/test-mirror.c: New file.
87521         * tests/unictype/test-numeric.c: New file.
87522         * tests/unictype/test-pr_byname.c: New file.
87523         * tests/unictype/test-pr_test.c: New file.
87524         * tests/unictype/test-predicate-part1.h: New file.
87525         * tests/unictype/test-predicate-part2.h: New file.
87526         * tests/unictype/test-scripts.c: New file.
87527         * tests/unictype/test-sy_c_ident.c: New file.
87528         * tests/unictype/test-sy_java_ident.c: New file.
87530         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
87531         for Unicode 5.0.0.
87532         * tests/unictype/test-categ_Cc.c: Likewise.
87533         * tests/unictype/test-categ_Cf.c: Likewise.
87534         * tests/unictype/test-categ_Cn.c: Likewise.
87535         * tests/unictype/test-categ_Co.c: Likewise.
87536         * tests/unictype/test-categ_Cs.c: Likewise.
87537         * tests/unictype/test-categ_L.c: Likewise.
87538         * tests/unictype/test-categ_Ll.c: Likewise.
87539         * tests/unictype/test-categ_Lm.c: Likewise.
87540         * tests/unictype/test-categ_Lo.c: Likewise.
87541         * tests/unictype/test-categ_Lt.c: Likewise.
87542         * tests/unictype/test-categ_Lu.c: Likewise.
87543         * tests/unictype/test-categ_M.c: Likewise.
87544         * tests/unictype/test-categ_Mc.c: Likewise.
87545         * tests/unictype/test-categ_Me.c: Likewise.
87546         * tests/unictype/test-categ_Mn.c: Likewise.
87547         * tests/unictype/test-categ_N.c: Likewise.
87548         * tests/unictype/test-categ_Nd.c: Likewise.
87549         * tests/unictype/test-categ_Nl.c: Likewise.
87550         * tests/unictype/test-categ_No.c: Likewise.
87551         * tests/unictype/test-categ_P.c: Likewise.
87552         * tests/unictype/test-categ_Pc.c: Likewise.
87553         * tests/unictype/test-categ_Pd.c: Likewise.
87554         * tests/unictype/test-categ_Pe.c: Likewise.
87555         * tests/unictype/test-categ_Pf.c: Likewise.
87556         * tests/unictype/test-categ_Pi.c: Likewise.
87557         * tests/unictype/test-categ_Po.c: Likewise.
87558         * tests/unictype/test-categ_Ps.c: Likewise.
87559         * tests/unictype/test-categ_S.c: Likewise.
87560         * tests/unictype/test-categ_Sc.c: Likewise.
87561         * tests/unictype/test-categ_Sk.c: Likewise.
87562         * tests/unictype/test-categ_Sm.c: Likewise.
87563         * tests/unictype/test-categ_So.c: Likewise.
87564         * tests/unictype/test-categ_Z.c: Likewise.
87565         * tests/unictype/test-categ_Zl.c: Likewise.
87566         * tests/unictype/test-categ_Zp.c: Likewise.
87567         * tests/unictype/test-categ_Zs.c: Likewise.
87568         * tests/unictype/test-ctype_alnum.c: Likewise.
87569         * tests/unictype/test-ctype_alpha.c: Likewise.
87570         * tests/unictype/test-ctype_blank.c: Likewise.
87571         * tests/unictype/test-ctype_cntrl.c: Likewise.
87572         * tests/unictype/test-ctype_digit.c: Likewise.
87573         * tests/unictype/test-ctype_graph.c: Likewise.
87574         * tests/unictype/test-ctype_lower.c: Likewise.
87575         * tests/unictype/test-ctype_print.c: Likewise.
87576         * tests/unictype/test-ctype_punct.c: Likewise.
87577         * tests/unictype/test-ctype_space.c: Likewise.
87578         * tests/unictype/test-ctype_upper.c: Likewise.
87579         * tests/unictype/test-ctype_xdigit.c: Likewise.
87580         * tests/unictype/test-decdigit.h: Likewise.
87581         * tests/unictype/test-digit.h: Likewise.
87582         * tests/unictype/test-numeric.h: Likewise.
87583         * tests/unictype/test-pr_alphabetic.c: Likewise.
87584         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
87585         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
87586         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
87587         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
87588         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
87589         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
87590         * tests/unictype/test-pr_bidi_control.c: Likewise.
87591         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
87592         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
87593         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
87594         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
87595         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
87596         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
87597         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
87598         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
87599         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
87600         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
87601         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
87602         * tests/unictype/test-pr_combining.c: Likewise.
87603         * tests/unictype/test-pr_composite.c: Likewise.
87604         * tests/unictype/test-pr_currency_symbol.c: Likewise.
87605         * tests/unictype/test-pr_dash.c: Likewise.
87606         * tests/unictype/test-pr_decimal_digit.c: Likewise.
87607         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
87608         * tests/unictype/test-pr_deprecated.c: Likewise.
87609         * tests/unictype/test-pr_diacritic.c: Likewise.
87610         * tests/unictype/test-pr_extender.c: Likewise.
87611         * tests/unictype/test-pr_format_control.c: Likewise.
87612         * tests/unictype/test-pr_grapheme_base.c: Likewise.
87613         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
87614         * tests/unictype/test-pr_grapheme_link.c: Likewise.
87615         * tests/unictype/test-pr_hex_digit.c: Likewise.
87616         * tests/unictype/test-pr_hyphen.c: Likewise.
87617         * tests/unictype/test-pr_id_continue.c: Likewise.
87618         * tests/unictype/test-pr_id_start.c: Likewise.
87619         * tests/unictype/test-pr_ideographic.c: Likewise.
87620         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
87621         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
87622         * tests/unictype/test-pr_ignorable_control.c: Likewise.
87623         * tests/unictype/test-pr_iso_control.c: Likewise.
87624         * tests/unictype/test-pr_join_control.c: Likewise.
87625         * tests/unictype/test-pr_left_of_pair.c: Likewise.
87626         * tests/unictype/test-pr_line_separator.c: Likewise.
87627         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
87628         * tests/unictype/test-pr_lowercase.c: Likewise.
87629         * tests/unictype/test-pr_math.c: Likewise.
87630         * tests/unictype/test-pr_non_break.c: Likewise.
87631         * tests/unictype/test-pr_not_a_character.c: Likewise.
87632         * tests/unictype/test-pr_numeric.c: Likewise.
87633         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
87634         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
87635         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
87636         * tests/unictype/test-pr_other_id_continue.c: Likewise.
87637         * tests/unictype/test-pr_other_id_start.c: Likewise.
87638         * tests/unictype/test-pr_other_lowercase.c: Likewise.
87639         * tests/unictype/test-pr_other_math.c: Likewise.
87640         * tests/unictype/test-pr_other_uppercase.c: Likewise.
87641         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
87642         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
87643         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
87644         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
87645         * tests/unictype/test-pr_private_use.c: Likewise.
87646         * tests/unictype/test-pr_punctuation.c: Likewise.
87647         * tests/unictype/test-pr_quotation_mark.c: Likewise.
87648         * tests/unictype/test-pr_radical.c: Likewise.
87649         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
87650         * tests/unictype/test-pr_soft_dotted.c: Likewise.
87651         * tests/unictype/test-pr_space.c: Likewise.
87652         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
87653         * tests/unictype/test-pr_titlecase.c: Likewise.
87654         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
87655         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
87656         * tests/unictype/test-pr_uppercase.c: Likewise.
87657         * tests/unictype/test-pr_variation_selector.c: Likewise.
87658         * tests/unictype/test-pr_white_space.c: Likewise.
87659         * tests/unictype/test-pr_xid_continue.c: Likewise.
87660         * tests/unictype/test-pr_xid_start.c: Likewise.
87661         * tests/unictype/test-pr_zero_width.c: Likewise.
87662         * tests/unictype/test-sy_c_whitespace.c: Likewise.
87663         * tests/unictype/test-sy_java_whitespace.c: Likewise.
87665 2007-11-12  Bruno Haible  <bruno@clisp.org>
87667         Unicode character classification functions.
87668         * lib/unictype.h: New file.
87669         * modules/unictype/base: New file.
87670         * modules/unictype/category-L: New file.
87671         * modules/unictype/category-Lu: New file.
87672         * modules/unictype/category-Ll: New file.
87673         * modules/unictype/category-Lt: New file.
87674         * modules/unictype/category-Lm: New file.
87675         * modules/unictype/category-Lo: New file.
87676         * modules/unictype/category-M: New file.
87677         * modules/unictype/category-Mn: New file.
87678         * modules/unictype/category-Mc: New file.
87679         * modules/unictype/category-Me: New file.
87680         * modules/unictype/category-N: New file.
87681         * modules/unictype/category-Nd: New file.
87682         * modules/unictype/category-Nl: New file.
87683         * modules/unictype/category-No: New file.
87684         * modules/unictype/category-P: New file.
87685         * modules/unictype/category-Pc: New file.
87686         * modules/unictype/category-Pd: New file.
87687         * modules/unictype/category-Ps: New file.
87688         * modules/unictype/category-Pe: New file.
87689         * modules/unictype/category-Pi: New file.
87690         * modules/unictype/category-Pf: New file.
87691         * modules/unictype/category-Po: New file.
87692         * modules/unictype/category-S: New file.
87693         * modules/unictype/category-Sm: New file.
87694         * modules/unictype/category-Sc: New file.
87695         * modules/unictype/category-Sk: New file.
87696         * modules/unictype/category-So: New file.
87697         * modules/unictype/category-Z: New file.
87698         * modules/unictype/category-Zs: New file.
87699         * modules/unictype/category-Zl: New file.
87700         * modules/unictype/category-Zp: New file.
87701         * modules/unictype/category-C: New file.
87702         * modules/unictype/category-Cc: New file.
87703         * modules/unictype/category-Cf: New file.
87704         * modules/unictype/category-Cs: New file.
87705         * modules/unictype/category-Co: New file.
87706         * modules/unictype/category-Cn: New file.
87707         * modules/unictype/category-or: New file.
87708         * modules/unictype/category-of: New file.
87709         * modules/unictype/category-test: New file.
87710         * modules/unictype/category-test-withtable: New file.
87711         * modules/unictype/category-byname: New file.
87712         * modules/unictype/category-none: New file.
87713         * modules/unictype/category-and: New file.
87714         * modules/unictype/category-and-not: New file.
87715         * modules/unictype/category-name: New file.
87716         * modules/unictype/combining-class: New file.
87717         * modules/unictype/category-all: New file.
87718         * modules/unictype/bidicategory-all: New file.
87719         * modules/unictype/bidicategory-byname: New file.
87720         * modules/unictype/bidicategory-name: New file.
87721         * modules/unictype/bidicategory-of: New file.
87722         * modules/unictype/bidicategory-test: New file.
87723         * modules/unictype/decimal-digit: New file.
87724         * modules/unictype/digit: New file.
87725         * modules/unictype/numeric: New file.
87726         * modules/unictype/mirror: New file.
87727         * modules/unictype/property-white-space: New file.
87728         * modules/unictype/property-alphabetic: New file.
87729         * modules/unictype/property-other-alphabetic: New file.
87730         * modules/unictype/property-not-a-character: New file.
87731         * modules/unictype/property-default-ignorable-code-point: New file.
87732         * modules/unictype/property-other-default-ignorable-code-point: New
87733         file.
87734         * modules/unictype/property-deprecated: New file.
87735         * modules/unictype/property-logical-order-exception: New file.
87736         * modules/unictype/property-variation-selector: New file.
87737         * modules/unictype/property-private-use: New file.
87738         * modules/unictype/property-unassigned-code-value: New file.
87739         * modules/unictype/property-uppercase: New file.
87740         * modules/unictype/property-other-uppercase: New file.
87741         * modules/unictype/property-lowercase: New file.
87742         * modules/unictype/property-other-lowercase: New file.
87743         * modules/unictype/property-titlecase: New file.
87744         * modules/unictype/property-soft-dotted: New file.
87745         * modules/unictype/property-id-start: New file.
87746         * modules/unictype/property-other-id-start: New file.
87747         * modules/unictype/property-id-continue: New file.
87748         * modules/unictype/property-other-id-continue: New file.
87749         * modules/unictype/property-xid-start: New file.
87750         * modules/unictype/property-xid-continue: New file.
87751         * modules/unictype/property-pattern-white-space: New file.
87752         * modules/unictype/property-pattern-syntax: New file.
87753         * modules/unictype/property-join-control: New file.
87754         * modules/unictype/property-grapheme-base: New file.
87755         * modules/unictype/property-grapheme-extend: New file.
87756         * modules/unictype/property-other-grapheme-extend: New file.
87757         * modules/unictype/property-grapheme-link: New file.
87758         * modules/unictype/property-bidi-control: New file.
87759         * modules/unictype/property-bidi-left-to-right: New file.
87760         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
87761         * modules/unictype/property-bidi-arabic-right-to-left: New file.
87762         * modules/unictype/property-bidi-european-digit: New file.
87763         * modules/unictype/property-bidi-eur-num-separator: New file.
87764         * modules/unictype/property-bidi-eur-num-terminator: New file.
87765         * modules/unictype/property-bidi-arabic-digit: New file.
87766         * modules/unictype/property-bidi-common-separator: New file.
87767         * modules/unictype/property-bidi-block-separator: New file.
87768         * modules/unictype/property-bidi-segment-separator: New file.
87769         * modules/unictype/property-bidi-whitespace: New file.
87770         * modules/unictype/property-bidi-non-spacing-mark: New file.
87771         * modules/unictype/property-bidi-boundary-neutral: New file.
87772         * modules/unictype/property-bidi-pdf: New file.
87773         * modules/unictype/property-bidi-embedding-or-override: New file.
87774         * modules/unictype/property-bidi-other-neutral: New file.
87775         * modules/unictype/property-hex-digit: New file.
87776         * modules/unictype/property-ascii-hex-digit: New file.
87777         * modules/unictype/property-ideographic: New file.
87778         * modules/unictype/property-unified-ideograph: New file.
87779         * modules/unictype/property-radical: New file.
87780         * modules/unictype/property-ids-binary-operator: New file.
87781         * modules/unictype/property-ids-trinary-operator: New file.
87782         * modules/unictype/property-zero-width: New file.
87783         * modules/unictype/property-space: New file.
87784         * modules/unictype/property-non-break: New file.
87785         * modules/unictype/property-iso-control: New file.
87786         * modules/unictype/property-format-control: New file.
87787         * modules/unictype/property-dash: New file.
87788         * modules/unictype/property-hyphen: New file.
87789         * modules/unictype/property-punctuation: New file.
87790         * modules/unictype/property-line-separator: New file.
87791         * modules/unictype/property-paragraph-separator: New file.
87792         * modules/unictype/property-quotation-mark: New file.
87793         * modules/unictype/property-sentence-terminal: New file.
87794         * modules/unictype/property-terminal-punctuation: New file.
87795         * modules/unictype/property-currency-symbol: New file.
87796         * modules/unictype/property-math: New file.
87797         * modules/unictype/property-other-math: New file.
87798         * modules/unictype/property-paired-punctuation: New file.
87799         * modules/unictype/property-left-of-pair: New file.
87800         * modules/unictype/property-combining: New file.
87801         * modules/unictype/property-composite: New file.
87802         * modules/unictype/property-decimal-digit: New file.
87803         * modules/unictype/property-numeric: New file.
87804         * modules/unictype/property-diacritic: New file.
87805         * modules/unictype/property-extender: New file.
87806         * modules/unictype/property-ignorable-control: New file.
87807         * modules/unictype/property-test: New file.
87808         * modules/unictype/property-byname: New file.
87809         * modules/unictype/property-all: New file.
87810         * modules/unictype/scripts: New file.
87811         * modules/unictype/scripts-all: New file.
87812         * modules/unictype/block-of: New file.
87813         * modules/unictype/block-test: New file.
87814         * modules/unictype/block-list: New file.
87815         * modules/unictype/block-all: New file.
87816         * modules/unictype/syntax-c-whitespace: New file.
87817         * modules/unictype/syntax-java-whitespace: New file.
87818         * modules/unictype/syntax-c-ident: New file.
87819         * modules/unictype/syntax-java-ident: New file.
87820         * modules/unictype/ctype-alnum: New file.
87821         * modules/unictype/ctype-alpha: New file.
87822         * modules/unictype/ctype-cntrl: New file.
87823         * modules/unictype/ctype-digit: New file.
87824         * modules/unictype/ctype-graph: New file.
87825         * modules/unictype/ctype-lower: New file.
87826         * modules/unictype/ctype-print: New file.
87827         * modules/unictype/ctype-punct: New file.
87828         * modules/unictype/ctype-space: New file.
87829         * modules/unictype/ctype-upper: New file.
87830         * modules/unictype/ctype-xdigit: New file.
87831         * modules/unictype/ctype-blank: New file.
87832         * lib/unictype/bidi_byname.c: New file.
87833         * lib/unictype/bidi_name.c: New file.
87834         * lib/unictype/bidi_of.c: New file.
87835         * lib/unictype/bidi_test.c: New file.
87836         * lib/unictype/bitmap.h: New file.
87837         * lib/unictype/block_test.c: New file.
87838         * lib/unictype/blocks.c: New file.
87839         * lib/unictype/categ_C.c: New file.
87840         * lib/unictype/categ_Cc.c: New file.
87841         * lib/unictype/categ_Cf.c: New file.
87842         * lib/unictype/categ_Cn.c: New file.
87843         * lib/unictype/categ_Co.c: New file.
87844         * lib/unictype/categ_Cs.c: New file.
87845         * lib/unictype/categ_L.c: New file.
87846         * lib/unictype/categ_Ll.c: New file.
87847         * lib/unictype/categ_Lm.c: New file.
87848         * lib/unictype/categ_Lo.c: New file.
87849         * lib/unictype/categ_Lt.c: New file.
87850         * lib/unictype/categ_Lu.c: New file.
87851         * lib/unictype/categ_M.c: New file.
87852         * lib/unictype/categ_Mc.c: New file.
87853         * lib/unictype/categ_Me.c: New file.
87854         * lib/unictype/categ_Mn.c: New file.
87855         * lib/unictype/categ_N.c: New file.
87856         * lib/unictype/categ_Nd.c: New file.
87857         * lib/unictype/categ_Nl.c: New file.
87858         * lib/unictype/categ_No.c: New file.
87859         * lib/unictype/categ_P.c: New file.
87860         * lib/unictype/categ_Pc.c: New file.
87861         * lib/unictype/categ_Pd.c: New file.
87862         * lib/unictype/categ_Pe.c: New file.
87863         * lib/unictype/categ_Pf.c: New file.
87864         * lib/unictype/categ_Pi.c: New file.
87865         * lib/unictype/categ_Po.c: New file.
87866         * lib/unictype/categ_Ps.c: New file.
87867         * lib/unictype/categ_S.c: New file.
87868         * lib/unictype/categ_Sc.c: New file.
87869         * lib/unictype/categ_Sk.c: New file.
87870         * lib/unictype/categ_Sm.c: New file.
87871         * lib/unictype/categ_So.c: New file.
87872         * lib/unictype/categ_Z.c: New file.
87873         * lib/unictype/categ_Zl.c: New file.
87874         * lib/unictype/categ_Zp.c: New file.
87875         * lib/unictype/categ_Zs.c: New file.
87876         * lib/unictype/categ_and.c: New file.
87877         * lib/unictype/categ_and_not.c: New file.
87878         * lib/unictype/categ_byname.c: New file.
87879         * lib/unictype/categ_name.c: New file.
87880         * lib/unictype/categ_none.c: New file.
87881         * lib/unictype/categ_of.c: New file.
87882         * lib/unictype/categ_or.c: New file.
87883         * lib/unictype/categ_test.c: New file.
87884         * lib/unictype/combining.c: New file.
87885         * lib/unictype/ctype_alnum.c: New file.
87886         * lib/unictype/ctype_alpha.c: New file.
87887         * lib/unictype/ctype_blank.c: New file.
87888         * lib/unictype/ctype_cntrl.c: New file.
87889         * lib/unictype/ctype_digit.c: New file.
87890         * lib/unictype/ctype_graph.c: New file.
87891         * lib/unictype/ctype_lower.c: New file.
87892         * lib/unictype/ctype_print.c: New file.
87893         * lib/unictype/ctype_punct.c: New file.
87894         * lib/unictype/ctype_space.c: New file.
87895         * lib/unictype/ctype_upper.c: New file.
87896         * lib/unictype/ctype_xdigit.c: New file.
87897         * lib/unictype/decdigit.c: New file.
87898         * lib/unictype/digit.c: New file.
87899         * lib/unictype/identsyntaxmap.h: New file.
87900         * lib/unictype/mirror.c: New file.
87901         * lib/unictype/numeric.c: New file.
87902         * lib/unictype/pr_alphabetic.c: New file.
87903         * lib/unictype/pr_ascii_hex_digit.c: New file.
87904         * lib/unictype/pr_bidi_arabic_digit.c: New file.
87905         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
87906         * lib/unictype/pr_bidi_block_separator.c: New file.
87907         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
87908         * lib/unictype/pr_bidi_common_separator.c: New file.
87909         * lib/unictype/pr_bidi_control.c: New file.
87910         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
87911         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
87912         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
87913         * lib/unictype/pr_bidi_european_digit.c: New file.
87914         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
87915         * lib/unictype/pr_bidi_left_to_right.c: New file.
87916         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
87917         * lib/unictype/pr_bidi_other_neutral.c: New file.
87918         * lib/unictype/pr_bidi_pdf.c: New file.
87919         * lib/unictype/pr_bidi_segment_separator.c: New file.
87920         * lib/unictype/pr_bidi_whitespace.c: New file.
87921         * lib/unictype/pr_byname.c: New file.
87922         * lib/unictype/pr_byname.gperf: New file.
87923         * lib/unictype/pr_combining.c: New file.
87924         * lib/unictype/pr_composite.c: New file.
87925         * lib/unictype/pr_currency_symbol.c: New file.
87926         * lib/unictype/pr_dash.c: New file.
87927         * lib/unictype/pr_decimal_digit.c: New file.
87928         * lib/unictype/pr_default_ignorable_code_point.c: New file.
87929         * lib/unictype/pr_deprecated.c: New file.
87930         * lib/unictype/pr_diacritic.c: New file.
87931         * lib/unictype/pr_extender.c: New file.
87932         * lib/unictype/pr_format_control.c: New file.
87933         * lib/unictype/pr_grapheme_base.c: New file.
87934         * lib/unictype/pr_grapheme_extend.c: New file.
87935         * lib/unictype/pr_grapheme_link.c: New file.
87936         * lib/unictype/pr_hex_digit.c: New file.
87937         * lib/unictype/pr_hyphen.c: New file.
87938         * lib/unictype/pr_id_continue.c: New file.
87939         * lib/unictype/pr_id_start.c: New file.
87940         * lib/unictype/pr_ideographic.c: New file.
87941         * lib/unictype/pr_ids_binary_operator.c: New file.
87942         * lib/unictype/pr_ids_trinary_operator.c: New file.
87943         * lib/unictype/pr_ignorable_control.c: New file.
87944         * lib/unictype/pr_iso_control.c: New file.
87945         * lib/unictype/pr_join_control.c: New file.
87946         * lib/unictype/pr_left_of_pair.c: New file.
87947         * lib/unictype/pr_line_separator.c: New file.
87948         * lib/unictype/pr_logical_order_exception.c: New file.
87949         * lib/unictype/pr_lowercase.c: New file.
87950         * lib/unictype/pr_math.c: New file.
87951         * lib/unictype/pr_non_break.c: New file.
87952         * lib/unictype/pr_not_a_character.c: New file.
87953         * lib/unictype/pr_numeric.c: New file.
87954         * lib/unictype/pr_other_alphabetic.c: New file.
87955         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
87956         * lib/unictype/pr_other_grapheme_extend.c: New file.
87957         * lib/unictype/pr_other_id_continue.c: New file.
87958         * lib/unictype/pr_other_id_start.c: New file.
87959         * lib/unictype/pr_other_lowercase.c: New file.
87960         * lib/unictype/pr_other_math.c: New file.
87961         * lib/unictype/pr_other_uppercase.c: New file.
87962         * lib/unictype/pr_paired_punctuation.c: New file.
87963         * lib/unictype/pr_paragraph_separator.c: New file.
87964         * lib/unictype/pr_pattern_syntax.c: New file.
87965         * lib/unictype/pr_pattern_white_space.c: New file.
87966         * lib/unictype/pr_private_use.c: New file.
87967         * lib/unictype/pr_punctuation.c: New file.
87968         * lib/unictype/pr_quotation_mark.c: New file.
87969         * lib/unictype/pr_radical.c: New file.
87970         * lib/unictype/pr_sentence_terminal.c: New file.
87971         * lib/unictype/pr_soft_dotted.c: New file.
87972         * lib/unictype/pr_space.c: New file.
87973         * lib/unictype/pr_terminal_punctuation.c: New file.
87974         * lib/unictype/pr_test.c: New file.
87975         * lib/unictype/pr_titlecase.c: New file.
87976         * lib/unictype/pr_unassigned_code_value.c: New file.
87977         * lib/unictype/pr_unified_ideograph.c: New file.
87978         * lib/unictype/pr_uppercase.c: New file.
87979         * lib/unictype/pr_variation_selector.c: New file.
87980         * lib/unictype/pr_white_space.c: New file.
87981         * lib/unictype/pr_xid_continue.c: New file.
87982         * lib/unictype/pr_xid_start.c: New file.
87983         * lib/unictype/pr_zero_width.c: New file.
87984         * lib/unictype/scripts.c: New file.
87985         * lib/unictype/sy_c_ident.c: New file.
87986         * lib/unictype/sy_c_whitespace.c: New file.
87987         * lib/unictype/sy_java_ident.c: New file.
87988         * lib/unictype/sy_java_whitespace.c: New file.
87990         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
87991         Unicode 5.0.0.
87992         * lib/unictype/blocks.h: Likewise.
87993         * lib/unictype/categ_C.h: Likewise.
87994         * lib/unictype/categ_Cc.h: Likewise.
87995         * lib/unictype/categ_Cf.h: Likewise.
87996         * lib/unictype/categ_Cn.h: Likewise.
87997         * lib/unictype/categ_Co.h: Likewise.
87998         * lib/unictype/categ_Cs.h: Likewise.
87999         * lib/unictype/categ_L.h: Likewise.
88000         * lib/unictype/categ_Ll.h: Likewise.
88001         * lib/unictype/categ_Lm.h: Likewise.
88002         * lib/unictype/categ_Lo.h: Likewise.
88003         * lib/unictype/categ_Lt.h: Likewise.
88004         * lib/unictype/categ_Lu.h: Likewise.
88005         * lib/unictype/categ_M.h: Likewise.
88006         * lib/unictype/categ_Mc.h: Likewise.
88007         * lib/unictype/categ_Me.h: Likewise.
88008         * lib/unictype/categ_Mn.h: Likewise.
88009         * lib/unictype/categ_N.h: Likewise.
88010         * lib/unictype/categ_Nd.h: Likewise.
88011         * lib/unictype/categ_Nl.h: Likewise.
88012         * lib/unictype/categ_No.h: Likewise.
88013         * lib/unictype/categ_P.h: Likewise.
88014         * lib/unictype/categ_Pc.h: Likewise.
88015         * lib/unictype/categ_Pd.h: Likewise.
88016         * lib/unictype/categ_Pe.h: Likewise.
88017         * lib/unictype/categ_Pf.h: Likewise.
88018         * lib/unictype/categ_Pi.h: Likewise.
88019         * lib/unictype/categ_Po.h: Likewise.
88020         * lib/unictype/categ_Ps.h: Likewise.
88021         * lib/unictype/categ_S.h: Likewise.
88022         * lib/unictype/categ_Sc.h: Likewise.
88023         * lib/unictype/categ_Sk.h: Likewise.
88024         * lib/unictype/categ_Sm.h: Likewise.
88025         * lib/unictype/categ_So.h: Likewise.
88026         * lib/unictype/categ_Z.h: Likewise.
88027         * lib/unictype/categ_Zl.h: Likewise.
88028         * lib/unictype/categ_Zp.h: Likewise.
88029         * lib/unictype/categ_Zs.h: Likewise.
88030         * lib/unictype/categ_of.h: Likewise.
88031         * lib/unictype/combining.h: Likewise.
88032         * lib/unictype/ctype_alnum.h: Likewise.
88033         * lib/unictype/ctype_alpha.h: Likewise.
88034         * lib/unictype/ctype_blank.h: Likewise.
88035         * lib/unictype/ctype_cntrl.h: Likewise.
88036         * lib/unictype/ctype_digit.h: Likewise.
88037         * lib/unictype/ctype_graph.h: Likewise.
88038         * lib/unictype/ctype_lower.h: Likewise.
88039         * lib/unictype/ctype_print.h: Likewise.
88040         * lib/unictype/ctype_punct.h: Likewise.
88041         * lib/unictype/ctype_space.h: Likewise.
88042         * lib/unictype/ctype_upper.h: Likewise.
88043         * lib/unictype/ctype_xdigit.h: Likewise.
88044         * lib/unictype/decdigit.h: Likewise.
88045         * lib/unictype/digit.h: Likewise.
88046         * lib/unictype/mirror.h: Likewise.
88047         * lib/unictype/numeric.h: Likewise.
88048         * lib/unictype/pr_alphabetic.h: Likewise.
88049         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
88050         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
88051         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
88052         * lib/unictype/pr_bidi_block_separator.h: Likewise.
88053         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
88054         * lib/unictype/pr_bidi_common_separator.h: Likewise.
88055         * lib/unictype/pr_bidi_control.h: Likewise.
88056         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
88057         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
88058         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
88059         * lib/unictype/pr_bidi_european_digit.h: Likewise.
88060         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
88061         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
88062         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
88063         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
88064         * lib/unictype/pr_bidi_pdf.h: Likewise.
88065         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
88066         * lib/unictype/pr_bidi_whitespace.h: Likewise.
88067         * lib/unictype/pr_combining.h: Likewise.
88068         * lib/unictype/pr_composite.h: Likewise.
88069         * lib/unictype/pr_currency_symbol.h: Likewise.
88070         * lib/unictype/pr_dash.h: Likewise.
88071         * lib/unictype/pr_decimal_digit.h: Likewise.
88072         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
88073         * lib/unictype/pr_deprecated.h: Likewise.
88074         * lib/unictype/pr_diacritic.h: Likewise.
88075         * lib/unictype/pr_extender.h: Likewise.
88076         * lib/unictype/pr_format_control.h: Likewise.
88077         * lib/unictype/pr_grapheme_base.h: Likewise.
88078         * lib/unictype/pr_grapheme_extend.h: Likewise.
88079         * lib/unictype/pr_grapheme_link.h: Likewise.
88080         * lib/unictype/pr_hex_digit.h: Likewise.
88081         * lib/unictype/pr_hyphen.h: Likewise.
88082         * lib/unictype/pr_id_continue.h: Likewise.
88083         * lib/unictype/pr_id_start.h: Likewise.
88084         * lib/unictype/pr_ideographic.h: Likewise.
88085         * lib/unictype/pr_ids_binary_operator.h: Likewise.
88086         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
88087         * lib/unictype/pr_ignorable_control.h: Likewise.
88088         * lib/unictype/pr_iso_control.h: Likewise.
88089         * lib/unictype/pr_join_control.h: Likewise.
88090         * lib/unictype/pr_left_of_pair.h: Likewise.
88091         * lib/unictype/pr_line_separator.h: Likewise.
88092         * lib/unictype/pr_logical_order_exception.h: Likewise.
88093         * lib/unictype/pr_lowercase.h: Likewise.
88094         * lib/unictype/pr_math.h: Likewise.
88095         * lib/unictype/pr_non_break.h: Likewise.
88096         * lib/unictype/pr_not_a_character.h: Likewise.
88097         * lib/unictype/pr_numeric.h: Likewise.
88098         * lib/unictype/pr_other_alphabetic.h: Likewise.
88099         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
88100         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
88101         * lib/unictype/pr_other_id_continue.h: Likewise.
88102         * lib/unictype/pr_other_id_start.h: Likewise.
88103         * lib/unictype/pr_other_lowercase.h: Likewise.
88104         * lib/unictype/pr_other_math.h: Likewise.
88105         * lib/unictype/pr_other_uppercase.h: Likewise.
88106         * lib/unictype/pr_paired_punctuation.h: Likewise.
88107         * lib/unictype/pr_paragraph_separator.h: Likewise.
88108         * lib/unictype/pr_pattern_syntax.h: Likewise.
88109         * lib/unictype/pr_pattern_white_space.h: Likewise.
88110         * lib/unictype/pr_private_use.h: Likewise.
88111         * lib/unictype/pr_punctuation.h: Likewise.
88112         * lib/unictype/pr_quotation_mark.h: Likewise.
88113         * lib/unictype/pr_radical.h: Likewise.
88114         * lib/unictype/pr_sentence_terminal.h: Likewise.
88115         * lib/unictype/pr_soft_dotted.h: Likewise.
88116         * lib/unictype/pr_space.h: Likewise.
88117         * lib/unictype/pr_terminal_punctuation.h: Likewise.
88118         * lib/unictype/pr_titlecase.h: Likewise.
88119         * lib/unictype/pr_unassigned_code_value.h: Likewise.
88120         * lib/unictype/pr_unified_ideograph.h: Likewise.
88121         * lib/unictype/pr_uppercase.h: Likewise.
88122         * lib/unictype/pr_variation_selector.h: Likewise.
88123         * lib/unictype/pr_white_space.h: Likewise.
88124         * lib/unictype/pr_xid_continue.h: Likewise.
88125         * lib/unictype/pr_xid_start.h: Likewise.
88126         * lib/unictype/pr_zero_width.h: Likewise.
88127         * lib/unictype/scripts.h: Likewise.
88128         * lib/unictype/scripts_byname.gperf: Likewise.
88129         * lib/unictype/sy_c_ident.h: Likewise.
88130         * lib/unictype/sy_c_whitespace.h: Likewise.
88131         * lib/unictype/sy_java_ident.h: Likewise.
88132         * lib/unictype/sy_java_whitespace.h: Likewise.
88134         * lib/unictype/Makefile: New file.
88135         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
88136         glibc.
88137         * lib/unictype/3level.h: New file, copied from glibc.
88138         * lib/unictype/3levelbit.h: New file.
88140 2007-11-11  Bruno Haible  <bruno@clisp.org>
88142         * modules/gperf: New file.
88143         * modules/iconv_open (Depends-on): Add it.
88144         (Makefile.am): Remove the GPERF definition.
88146 2007-11-11  Bruno Haible  <bruno@clisp.org>
88148         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
88149         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
88151 2007-11-11  Bruno Haible  <bruno@clisp.org>
88153         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
88154         (usage): Remove function.
88156 2007-11-11  Bruno Haible  <bruno@clisp.org>
88158         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
88159         gl_FUNC_CEILF_LIBS.
88160         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
88161         gl_FUNC_CEIL_LIBS.
88162         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
88163         gl_FUNC_CEILL_LIBS.
88164         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
88165         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
88166         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
88168 2007-11-11  Bruno Haible  <bruno@clisp.org>
88170         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
88171         roundf were declared but do not exist on functions.
88172         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
88173         roundl were declared but do not exist on functions.
88174         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
88175         HAVE_FLOORL_AND_CEILL, respectively.
88176         Needed for Sun C on Solaris 10.
88178 2007-11-11  Bruno Haible  <bruno@clisp.org>
88180         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
88181         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
88182         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
88183         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
88184         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
88185         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
88186         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
88187         HAVE_DECL_ROUNDF.
88188         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
88189         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
88190         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
88191         of HAVE_DECL_ROUND*.
88192         * modules/math (Makefile.am): Update.
88194 2007-11-10  Bruno Haible  <bruno@clisp.org>
88196         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
88197         ptrdiff_t as m4/intl.m4.
88199 2007-11-10  Jim Meyering  <meyering@redhat.com>
88201         Avoid link failure for the argmatch test.
88202         * tests/test-argmatch.c (usage): Define function to avoid a link
88203         failure: argmatch_die requires a usage function.
88205 2007-11-09  Bruno Haible  <bruno@clisp.org>
88207         * doc/functions/snprintf.texi: Mention BeOS deficiency.
88208         * doc/functions/vsnprintf.texi: Likewise.
88209         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
88210         with a size argument < 2.
88212 2007-11-09  Bruno Haible  <bruno@clisp.org>
88214         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
88215         buffer. Fixes an inefficiency introduced on 2007-11-03.
88217 2007-11-09  Bruno Haible  <bruno@clisp.org>
88219         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
88220         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
88222 2007-11-08  Jim Meyering  <meyering@redhat.com>
88224         Change cache variable name prefix "jm_" to "gl_" everywhere.
88225         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
88226         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
88227         * m4/uptime.m4: s/gl_/jm_/
88229 2007-11-07  Bruno Haible  <bruno@clisp.org>
88231         Update to GNU gettext 0.17.
88232         * m4/intl.m4: Update to GNU gettext 0.17.
88233         * m4/po.m4: Likewise.
88234         * modules/gettext (Files): Remove m4/ulonglong.m4.
88235         (configure.ac): Require gettext infrastructure from version 0.17.
88237 2007-11-06  Bruno Haible  <bruno@clisp.org>
88239         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
88240         symbolic values are not defined in a public header.
88241         * lib/freadable.c (freadable) [QNX]: Likewise.
88242         * lib/freadahead.c (freadahead) [QNX]: Likewise.
88243         * lib/freading.c (freading) [QNX]: Likewise.
88244         * lib/fseterr.c (fseterr) [QNX]: Likewise.
88245         * lib/fwritable.c (fwritable) [QNX]: Likewise.
88246         * lib/fwriting.c (fwriting) [QNX]: Likewise.
88247         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
88248         Reported by Alain Magloire.
88250         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
88252 2007-11-05  Bruno Haible  <bruno@clisp.org>
88254         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
88255         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
88256         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
88257         Reported by Eric Blake.
88259 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88260             Bruno Haible  <bruno@clisp.org>
88262         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
88263         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
88264         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
88265         (malloc): Undefine also before including <stdlib.h>.
88266         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
88267         Needed on OSF/1 4.0.
88269 2007-11-05  Jim Meyering  <meyering@redhat.com>
88271         git-version-gen: sync from coreutils.
88272         * build-aux/git-version-gen: Add comments.
88273         Change the first '-' to '.' in the snapshot version string,
88274         e.g., 6.9-377-08144 -> 6.9.377-08144
88275         Remove first parameter.
88276         Don't declare a version "-dirty" merely because a time
88277         stamp has changed.
88279 2007-11-04  Bruno Haible  <bruno@clisp.org>
88281         * lib/lock.h: Protect all macro definitions containing an 'if'
88282         statement through a "do { ... } while (0)".
88283         * lib/tls.h: Likewise.
88285 2007-11-04  Bruno Haible  <bruno@clisp.org>
88287         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
88289 2007-11-04  Bruno Haible  <bruno@clisp.org>
88291         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
88292         * modules/fprintf-posix (Depends-on): Add nocrash.
88293         * modules/snprintf-posix (Depends-on): Likewise.
88294         * modules/sprintf-posix (Depends-on): Likewise.
88295         * modules/vasnprintf-posix (Depends-on): Likewise.
88296         * modules/vasprintf-posix (Depends-on): Likewise.
88297         * modules/vfprintf-posix (Depends-on): Likewise.
88298         * modules/vsnprintf-posix (Depends-on): Likewise.
88299         * modules/vsprintf-posix (Depends-on): Likewise.
88300         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
88301         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
88302         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
88303         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
88304         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
88305         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
88306         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
88308 2007-11-04  Bruno Haible  <bruno@clisp.org>
88310         * modules/nocrash: New file.
88311         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
88312         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
88314 2007-11-04  Bruno Haible  <bruno@clisp.org>
88316         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
88317         precision handling.
88318         * tests/test-vasprintf-posix.c (test_function): Likewise.
88319         * tests/test-snprintf-posix.h (test_function): Likewise.
88320         * tests/test-sprintf-posix.h (test_function): Likewise.
88322         Fix *printf behaviour for large precisions on mingw and BeOS.
88323         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
88324         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
88325         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
88326         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
88327         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88328         gl_PRINTF_PRECISION and test its result. Invoke
88329         gl_PREREQ_VASNPRINTF_PRECISION.
88330         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88331         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88332         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88333         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88334         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88335         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88336         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88337         * doc/functions/fprintf.texi: Update.
88338         * doc/functions/printf.texi: Update.
88339         * doc/functions/snprintf.texi: Update.
88340         * doc/functions/sprintf.texi: Update.
88341         * doc/functions/vfprintf.texi: Update.
88342         * doc/functions/vprintf.texi: Update.
88343         * doc/functions/vsnprintf.texi: Update.
88344         * doc/functions/vsprintf.texi: Update.
88346 2007-11-04  Bruno Haible  <bruno@clisp.org>
88348         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
88350 2007-11-04  Bruno Haible  <bruno@clisp.org>
88352         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
88353         Reported by Sylvain Beucler <beuc@gnu.org>.
88355 2007-11-03  Bruno Haible  <bruno@clisp.org>
88357         * tests/test-fprintf-posix2.sh: New file.
88358         * tests/test-fprintf-posix2.c: New file.
88359         * modules/fprintf-posix-tests (Files): Add them.
88360         (TESTS): Add test-fprintf-posix2.sh.
88361         (configure.ac): Check for getrlimit and setrlimit.
88362         (check_PROGRAMS): Add test-fprintf-posix2.
88364         * tests/test-printf-posix2.sh: New file.
88365         * tests/test-printf-posix2.c: New file.
88366         * modules/printf-posix-tests (Files): Add them.
88367         (TESTS): Add test-printf-posix2.sh.
88368         (configure.ac): Check for getrlimit and setrlimit.
88369         (check_PROGRAMS): Add test-printf-posix2.
88371         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
88372         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
88373         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
88374         (decode_double): New function, copied from decode_long_double.
88375         (scale10_round_decimal_decoded): New function, extracted from
88376         scale10_round_decimal_long_double.
88377         (scale10_round_decimal_long_double): Use it.
88378         (scale10_round_decimal_double): New function.
88379         (floorlog10): New function.
88380         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
88381         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
88382         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
88383         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88384         gl_PRINTF_ENOMEM and test its result. Invoke
88385         gl_PREREQ_VASNPRINTF_ENOMEM.
88386         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88387         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88388         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88389         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88390         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88391         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88392         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88393         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
88394         * modules/snprintf-posix (Depends-on): Likewise.
88395         * modules/sprintf-posix (Depends-on): Likewise.
88396         * modules/vasnprintf-posix (Depends-on): Likewise.
88397         * modules/vasprintf-posix (Depends-on): Likewise.
88398         * modules/vfprintf-posix (Depends-on): Likewise.
88399         * modules/vsnprintf-posix (Depends-on): Likewise.
88400         * modules/vsprintf-posix (Depends-on): Likewise.
88401         * doc/functions/fprintf.texi: Update.
88402         * doc/functions/printf.texi: Update.
88403         * doc/functions/snprintf.texi: Update.
88404         * doc/functions/sprintf.texi: Update.
88405         * doc/functions/vfprintf.texi: Update.
88406         * doc/functions/vprintf.texi: Update.
88407         * doc/functions/vsnprintf.texi: Update.
88408         * doc/functions/vsprintf.texi: Update.
88410 2007-11-03  Bruno Haible  <bruno@clisp.org>
88412         * modules/frexp-nolibm-tests: New file.
88414         * modules/frexp-nolibm: New file.
88415         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
88417 2007-11-03  Bruno Haible  <bruno@clisp.org>
88419         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
88420         value is C99 compliant.
88421         Needed for OSF/1 5.1.
88423 2007-11-03  Bruno Haible  <bruno@clisp.org>
88425         Fix out-of-memory handling of vasnprintf.
88426         * lib/printf-parse.c: Include <errno.h>.
88427         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
88428         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
88429         is already set.
88431 2007-11-02  Eric Blake  <ebb9@byu.net>
88433         Fix tests on cygwin.
88434         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
88436 2007-11-01  Bruno Haible  <bruno@clisp.org>
88438         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
88439         warning.
88440         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
88441         needed for POSIX compatibility.
88443 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88445         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
88446         for compatibility with GNU.
88448 2007-11-01  Bruno Haible  <bruno@clisp.org>
88450         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
88451         (putenv): Renamed from rpl_putenv. Change argument type from
88452         'const char *' to 'char *'.
88453         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
88454         of defining putenv in config.h, just set REPLACE_PUTENV.
88455         * modules/putenv (Depends-on): Add stdlib.
88456         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
88457         (Include): Use <stdlib.h>.
88458         * lib/stdlib.in.h (putenv): New declaration.
88459         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
88460         REPLACE_PUTENV.
88461         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
88462         REPLACE_PUTENV.
88463         Needed for MacOS X 10.5.0.
88464         Reported by Peter O'Gorman <peter@pogma.com>.
88466 2007-11-01  Jim Meyering  <meyering@redhat.com>
88468         Treat an empty date string exactly like "0".
88469         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
88470         if the remaining date string (to be parsed) is empty, use "0".
88471         Reported by Mischa Molhoek and discussed in this thread:
88472         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
88474 2007-10-31  Bruno Haible  <bruno@clisp.org>
88476         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
88477         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
88478         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
88479         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
88480         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
88481         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
88483 2007-10-31  Bruno Haible  <bruno@clisp.org>
88485         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
88486         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
88487         (AC_TYPE_LONG_LONG_INT): Use it.
88488         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
88489         it as well.
88490         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
88491         to m4/longlong.m4.
88492         * modules/stdint (Files): Remove m4/ulonglong.m4.
88493         * modules/strtoull (Files): Use m4/longlong.m4 instead of
88494         m4/ulonglong.m4.
88495         * modules/strtoumax (Files): Likewise.
88497 2007-10-30  Bruno Haible  <bruno@clisp.org>
88499         * modules/xvasprintf-posix: New file.
88500         Suggested by Eric Blake.
88502 2007-10-30  Bruno Haible  <bruno@clisp.org>
88504         * modules/xprintf-posix-tests: New file.
88505         * tests/test-xprintf-posix.sh: New file.
88506         * tests/test-xprintf-posix.c: New file.
88507         * tests/test-xfprintf-posix.c: New file.
88509         * modules/xprintf-posix: New file.
88511 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88513         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
88514         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
88515         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
88517 2007-10-29  Bruno Haible  <bruno@clisp.org>
88519         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
88520         contain the special marker '_cv_'.
88521         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
88522         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
88523         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
88524         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
88525         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
88526         Reported by Ralf Wildenhues.
88528 2007-10-29  Bruno Haible  <bruno@clisp.org>
88530         * gnulib-tool (func_import): When --lgpl is not specified, set
88531         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
88532         GPLv3.
88533         Reported by Simon Josefsson.
88535 2007-10-28  Bruno Haible  <bruno@clisp.org>
88537         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
88538         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
88539         HAVE_DECL_ISFINITE.
88540         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
88541         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
88542         HAVE_DECL_ISFINITE.
88544 2007-10-28  Bruno Haible  <bruno@clisp.org>
88546         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
88547         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
88549 2007-10-28  Bruno Haible  <bruno@clisp.org>
88551         Fix link errors with Sun C 5.0 on Solaris 10.
88552         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
88553         function is declared but not present in the compiler's libm.
88554         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
88555         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
88556         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
88557         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
88558         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
88559         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
88560         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
88561         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
88562         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
88563         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
88564         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
88565         HAVE_DECL_FLOORL.
88567 2007-10-28  Bruno Haible  <bruno@clisp.org>
88569         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
88570         gl_FUNC_FLOORL. Cache the result.
88571         (gl_FUNC_FLOORL): Use it.
88572         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
88573         gl_FUNC_CEILL. Cache the result.
88574         (gl_FUNC_CEILL): Use it.
88576         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
88577         gl_FUNC_FLOOR. Cache the result.
88578         (gl_FUNC_FLOOR): Use it.
88579         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
88580         gl_FUNC_CEIL. Cache the result.
88581         (gl_FUNC_CEIL): Use it.
88583         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
88584         gl_FUNC_FLOORF. Cache the result.
88585         (gl_FUNC_FLOORF): Use it.
88586         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
88587         gl_FUNC_CEILF. Cache the result.
88588         (gl_FUNC_CEILF): Use it.
88590 2007-10-28  Bruno Haible  <bruno@clisp.org>
88592         * gnulib-tool: Allow specifying the LGPL version number through
88593         --lgpl=2 or --lgpl=3.
88594         (func_usage): Document --lgpl with argument.
88595         Handle --lgpl=... arguments.
88596         (func_import): Recognize also gl_LGPL calls with an argument. When
88597         --lgpl=2 is used and the module's license is just LGPL, report an
88598         error. Set sed_transform_lib_file according to the lgpl variable. In
88599         the generated files, use --lgpl or gl_LGPL invocations with argument,
88600         if necessary.
88601         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
88602         an LGPv2+ license.
88603         * doc/gnulib-tool.texi (Modified imports): Update explanation of
88604         gl_LGPL macro.
88606 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88607             Bruno Haible  <bruno@clisp.org>
88609         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
88610         (u16_uctomb_aux): Likewise.
88611         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
88612         !HAVE_INLINE.
88613         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
88615 2007-10-28  Bruno Haible  <bruno@clisp.org>
88617         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
88618         Invoke AM_GETTEXT_OPTION if it exists.
88619         * modules/vasprintf: Likewise.
88620         * modules/verror: Likewise.
88621         * modules/xprintf: Likewise.
88622         * modules/xvasprintf: Likewise.
88624 2007-10-27  Ben Pfaff  <blp@gnu.org>
88626         * lib/math.in.h: Define isfinite macro and prototypes for
88627         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
88628         implementations.
88629         * m4/math_h.m4: New substitutions for isfinite module.
88630         * lib/isfinite.c: New file.
88631         * m4/isfinite.m4: New file.
88632         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
88633         * modules/isfinite: New file.
88634         * modules/isfinite-tests: New file.
88635         * tests/tests-isfinite.c: New file.
88636         * doc/functions/isfinite.texi: Mention isfinite module.
88637         * MODULES.html.sh: Mention new module.
88639 2007-10-27  Ben Pfaff  <blp@gnu.org>
88641         Ralf Wildenhues reported that Tru64 4.0D declares the round
88642         functions but does not have definitions.
88643         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
88644         cannot be found in any library, set the output variable to
88645         "missing" instead of "".
88646         * m4/round.m4: Also use our substitute if we cannot find round in
88647         any library, even if it is declared.
88648         * m4/roundf.m4: Likewise for roundf.
88649         * m4/roundl.m4: Likewise for roundl.
88650         * lib/math.in.h: Undefine roundf, round, roundl before defining
88651         their replacements, to allow for hypothetical systems where these
88652         may be defined as macros but not available in libraries.
88654 2007-10-27  Bruno Haible  <bruno@clisp.org>
88656         * doc/gnulib.texi: Invoke @firstparagraphindent.
88657         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
88658         changes in gnulib.
88659         (Source changes): New section.
88661 2007-10-26  Bruno Haible  <bruno@clisp.org>
88663         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
88664         borrowed from autoconf.
88666 2007-10-26  Bruno Haible  <bruno@clisp.org>
88668         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
88669         strerror returned the empty string. Needed on HP-UX 11.00.
88671 2007-10-24  Micah Cowan  <micah@cowan.name>
88673         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
88674         * build-aux/bootstrap: Remove support for now-unnecessary option,
88675         --cvs-user, and envvars CVS_USER, CVS_RSH.
88677 2007-10-24  Jim Meyering  <meyering@redhat.com>
88679         Avoid diagnostics from sha1sum when there is no cached checksum.
88680         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
88681         if the po.s1 file hasn't been created yet.
88683         * build-aux/bootstrap: Sync from coreutils:
88684         2007-10-24  Jim Meyering  <meyering@redhat.com>
88685         Get gnulib from the git repository, not from an obsolete cvs one.
88686         * build-aux/bootstrap: Suggestion from Micah Cowan.
88687         2007-10-04  Jim Meyering  <jim@meyering.net>
88688         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
88689         (update_po_files): Work also when there are no .po files in po/.
88691 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88693         * README: Append ".git" to git and cg examples.
88694         Problem reported by Benoit Sigoure.
88696 2007-10-23  Micah Cowan  <micah@cowan.name>
88698         * users.txt: Add wget.
88700 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88702         Fix linking of some unistdio tests on FreeBSD.
88703         * modules/unistdio/u16-vsnprintf-tests
88704         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
88705         * modules/unistdio/u16-vsprintf-tests
88706         (test_u16_vsnprintf1_LDADD): Likewise.
88707         * modules/unistdio/u32-vsnprintf-tests
88708         (test_u32_vsnprintf1_LDADD): Likewise.
88709         * modules/unistdio/u32-vsprintf-tests
88710         (test_u32_vsprintf1_LDADD): Likewise.
88711         * modules/unistdio/u8-vsnprintf-tests
88712         (test_u8_vsnprintf1_LDADD): Likewise.
88713         * modules/unistdio/u8-vsprintf-tests
88714         (test_u8_vsprintf1_LDADD): Likewise.
88715         * modules/unistdio/ulc-vsnprintf-tests
88716         (test_ulc_vsnprintf1_LDADD): Likewise.
88717         * modules/unistdio/ulc-vsprintf-tests
88718         (test_ulc_vsprintf1_LDADD): Likewise.
88720         Fix linking of some uniconv tests on FreeBSD.
88721         * modules/uniconv/u16-conv-from-enc-tests
88722         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
88723         * modules/uniconv/u16-conv-to-enc-tests
88724         (test_u16_conv_to_enc_LDADD): Likewise.
88725         * modules/uniconv/u16-strconv-from-enc-tests
88726         (test_u16_strconv_from_enc_LDADD): Likewise.
88727         * modules/uniconv/u16-strconv-to-enc-tests
88728         (test_u16_strconv_to_enc_LDADD): Likewise.
88729         * modules/uniconv/u32-conv-from-enc-tests
88730         (test_u32_conv_from_enc_LDADD): Likewise.
88731         * modules/uniconv/u32-conv-to-enc-tests
88732         (test_u32_conv_to_enc_LDADD): Likewise.
88733         * modules/uniconv/u32-strconv-from-enc-tests
88734         (test_u32_strconv_from_enc_LDADD): Likewise.
88735         * modules/uniconv/u32-strconv-to-enc-tests
88736         (test_u32_strconv_to_enc_LDADD): Likewise.
88737         * modules/uniconv/u8-conv-from-enc-tests
88738         (test_u8_conv_from_enc_LDADD): Likewise.
88739         * modules/uniconv/u8-conv-to-enc-tests
88740         (test_u8_conv_to_enc_LDADD): Likewise.
88741         * modules/uniconv/u8-strconv-from-enc-tests
88742         (test_u8_strconv_from_enc_LDADD): Likewise.
88743         * modules/uniconv/u8-strconv-to-enc-tests
88744         (test_u8_strconv_to_enc_LDADD): Likewise.
88746 2007-10-22  Bruno Haible  <bruno@clisp.org>
88748         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
88749         size.
88751 2007-10-22  Eric Blake  <ebb9@byu.net>
88753         Tweak x*printf documentation.
88754         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
88755         variable name and comments.
88756         Suggested by Bruno Haible.
88758 2007-10-22  Bruno Haible  <bruno@clisp.org>
88760         * lib/acl.c (copy_acl): Fix file name in comment.
88762 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88764         Fix Tru64 problem with stdbool.h.
88765         * lib/stdbool.in.h (false, true):
88766         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
88767         Don't declare as an enum in this situation; it runs afoul of Tru64.
88768         Problem reported by Steven M. Schweda in
88769         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
88771 2007-10-22  Eric Blake  <ebb9@byu.net>
88773         Also wrap vf?printf.
88774         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
88775         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
88776         (xvprintf, xvfprintf): New functions.
88778 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88780         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
88781         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
88783         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
88784         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
88786 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88788         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
88789         by Bruno Haible.
88791 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88793         * lib/getloadavg.c
88794         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
88795         Undef `sys' after including sys/table.h, for Tru64 4.0D.
88797         * tests/test-i-ring.c: Work for C89.
88799 2007-10-22  Bruno Haible  <bruno@clisp.org>
88801         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
88802         -1u, in preprocessor expression, so that we don't test for the bug
88803         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
88804         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
88806 2007-10-22  Eric Blake  <ebb9@byu.net>
88808         * tests/test-yesno.sh: Silence stderr during test.
88810 2007-10-22  Simon Josefsson  <simon@josefsson.org>
88812         * modules/crypto/gc-camellia: New file.
88814         * m4/gc-camellia.m4: New file.
88816         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
88818         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
88820 2007-10-22  Simon Josefsson  <simon@josefsson.org>
88822         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
88823         --help to stdout.  Reported by sms@antinode.org (Steven
88824         M. Schweda).
88826 2007-10-22  Simon Josefsson  <simon@josefsson.org>
88828         * users.txt: Fix link to libksba.
88830 2007-10-21  Ben Pfaff  <blp@gnu.org>
88832         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
88833         round.c roundf implementation that depends on floorf and ceilf to
88834         be tested unconditionally.
88836 2007-10-21  Ben Pfaff  <blp@gnu.org>
88838         * m4/check-libm-func.m4: Removed.
88839         * m4/check-math-lib.m4: New file.
88840         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
88841         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
88842         definition and lack of AC_LIBOBJ([roundf]).
88843         * m4/roundl.m4: Ditto, and similarly for roundl.
88844         * modules/round: Reference new m4 file.
88845         * modules/roundf: Ditto.
88846         * modules/roundl: Ditto.
88847         * tests/test-round2.c (main): Use ROUND instead of round.
88848         Bug report from Bruno Haible.
88850 2007-10-21  Bruno Haible  <bruno@clisp.org>
88852         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
88853         context.
88855 2007-10-21  Bruno Haible  <bruno@clisp.org>
88857         * tests/test-wcwidth.c (main): Allow negative result for some control
88858         characters.
88860         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
88861         Needed on OSF/1 5.1.
88863 2007-10-21  Bruno Haible  <bruno@clisp.org>
88865         * tests/test-floorf1.c: Include isnanf.h.
88866         (main): Use isnanf() instead of isnan().
88867         * tests/test-ceilf1.c: Include isnanf.h.
88868         (main): Use isnanf() instead of isnan().
88869         * tests/test-truncf1.c: Include isnanf.h.
88870         (main): Use isnanf() instead of isnan().
88871         * tests/test-roundf1.c: Include isnanf.h.
88872         (main): Use isnanf() instead of isnan().
88874 2007-10-21  Eric Blake  <ebb9@byu.net>
88876         * users.txt: Update URL for m4.
88878 2007-10-21  Bruno Haible  <bruno@clisp.org>
88880         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
88882 2007-10-21  Bruno Haible  <bruno@clisp.org>
88884         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
88885         Git's management files if the CVS files are not present.
88887 2007-10-20  Bruno Haible  <bruno@clisp.org>
88889         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
88890         gcc-3.4.x.
88892 2007-10-20  Ben Pfaff  <blp@gnu.org>
88894         * lib/math.in.h: Declare round, roundf, roundl if we are providing
88895         implementations.
88896         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
88897         * lib/round.c: New file.
88898         * lib/roundf.c: New file.
88899         * lib/roundl.c: New file.
88900         * m4/round.m4: New file.
88901         * m4/roundf.m4: New file.
88902         * m4/roundl.m4: New file.
88903         * m4/check-libm-func-m4: New file.
88904         * modules/math: Replace round, roundf, roundl related @VARS@ in
88905         math.in.h.
88906         * modules/round: New file.
88907         * modules/round-tests: New file.
88908         * modules/roundf: New file.
88909         * modules/roundf-tests: New file.
88910         * modules/roundl: New file.
88911         * modules/roundl-tests: New file.
88912         * tests/test-round1.c: New file.
88913         * tests/test-round2.c: New file.
88914         * tests/test-roundf1.c: New file.
88915         * tests/test-roundf2.c: New file.
88916         * tests/test-roundl.c: New file.
88917         * doc/functions/round.texi: Mention round module.
88918         * doc/functions/roundf.texi: Mention roundf module.
88919         * doc/functions/roundl.texi: Mention roundl module.
88920         * MODULES.html.sh: Mention new modules.
88921         Thanks to Bruno Haible for suggestions.
88923 2007-10-20  Jim Meyering  <meyering@redhat.com>
88925         * lib/xprintf.c: Include <config.h> unconditionally.
88927         Change xprintf's license to GPL.
88928         * modules/xprintf (License): s/LGPL/GPL/, since this module
88929         depends on modules (exit and exitfail) which are GPL.
88930         Suggestion from Bruno Haible.
88932         xprintf fixes.
88933         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
88934         Use a clearer diagnostic.
88935         Patch from Bruno Haible.
88937 2007-10-20  Bruno Haible  <bruno@clisp.org>
88939         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
88940         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
88941         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88943 2007-10-20  Bruno Haible  <bruno@clisp.org>
88945         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
88946         precision in the comparison result > x - 1 or similar.
88947         * tests/test-ceilf2.c (correct_result_p): Likewise.
88948         * tests/test-truncf2.c (correct_result_p): Likewise.
88949         * tests/test-trunc2.c (correct_result_p): Likewise.
88950         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88952 2007-10-20  Bruno Haible  <bruno@clisp.org>
88954         * modules/ceil: New file.
88955         * m4/ceil.m4: New file.
88956         * doc/functions/ceil.texi: Mention the 'ceil' module.
88958 2007-10-20  Bruno Haible  <bruno@clisp.org>
88960         * modules/floor: New file.
88961         * m4/floor.m4: New file.
88962         * doc/functions/floor.texi: Mention the 'floor' module.
88964 2007-10-20  Bruno Haible  <bruno@clisp.org>
88966         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
88967         of %a.
88968         * modules/floorf-tests (Depends-on): Likewise.
88969         * modules/truncf-tests (Depends-on): Likewise.
88970         * modules/trunc-tests (Depends-on): Likewise.
88971         Reported by Ben Pfaff.
88973 2007-10-19  Jim Meyering  <meyering@redhat.com>
88975         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
88976         Don't bother testing specific errno values.  Just test ferror.
88978         New module: xprintf
88979         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
88981 2007-10-19  Bruno Haible  <bruno@clisp.org>
88983         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
88984         syntax.
88985         * modules/javaexec (Makefile.am): Likewise.
88986         * modules/relocatable-prog (Makefile.am): Likewise.
88987         Suggested by Jim Meyering.
88989 2007-10-18  Bruno Haible  <bruno@clisp.org>
88991         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
88992         Reported by Jim Meyering.
88994 2007-10-18  Eric Blake  <ebb9@byu.net>
88996         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
88998 2007-10-18  Bruno Haible  <bruno@clisp.org>
89000         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
89001         the format string into writable memory. Needed in Fortify conditions.
89003 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
89004             Bruno Haible  <bruno@clisp.org>
89006         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
89007         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
89008         * modules/trim (Depends-on): Add mbchar.
89009         (configure.ac): Add gl_FUNC_MBRTOWC.
89010         (Makefile.am): Augment lib_SOURCES.
89012 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
89014         Modify glob.c to use fstatat and dirfd, to simplify it.
89015         Suggested by Eric Blake.
89016         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
89017         Don't include <stdbool.h>; not used.
89018         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
89019         (link_exists_p): Simplify implementation, since we can now assume
89020         dirfd and fstatat.
89021         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
89023 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89025         * gnulib-tool (func_get_dependencies): Fix sed script to
89026         match only tests.
89028 2007-10-17  Bruno Haible  <bruno@clisp.org>
89030         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
89031         allow locale names without encoding suffix.
89032         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
89033         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
89035 2007-10-16  Bruno Haible  <bruno@clisp.org>
89037         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
89038         * lib/getgroups.c (getgroups): Likewise.
89039         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
89041 2007-10-16  Bruno Haible  <bruno@clisp.org>
89043         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
89044         * modules/malloc-posix (License): Likewise.
89045         * modules/realloc-posix (License): Likewise.
89046         * modules/calloc-posix (License): Likewise.
89047         * modules/intprops (License): Change from GPL to LGPL, with
89048         Paul Eggert's approval.
89050 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
89052         Merge glibc changes into lib/glob.c.
89054         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
89055         2007-10-15 04:59:03 UTC.  Here are the changes:
89057         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
89059         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
89061         * lib/glob.c: Add some branch prediction throughout.
89063         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
89065         [BZ #5103]
89066         * lib/glob.c (glob): Recognize patterns starting \/.
89068         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
89070         [BZ #3996]
89071         * lib/glob.c (attribute_hidden): Define if not defined.
89072         (glob): Unescape dirname, filename or username when needed and not
89073         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
89074         is NULL.  Handle unescaped [ in pattern without closing ].
89075         Don't pass GLOB_CHECK down to recursive glob for directories.
89076         (__glob_pattern_type): New function.
89077         (__glob_pattern_p): Implement using __glob_pattern_type.
89078         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
89079         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
89080         Remove unreachable code.
89082         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
89084         * lib/glob.c (glob_in_dir): Add some comments and asserts to
89085         explain why there are no leaks.
89087         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
89089         [BZ #3253]
89090         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
89091         time, rather allocate increasingly bigger arrays of pointers, if
89092         possible with alloca, if too large with malloc.
89094 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
89096         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
89097         Problem reported by H.Merijn Brand in
89098         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
89099         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
89100         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
89102 2007-10-15  Bruno Haible  <bruno@clisp.org>
89104         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
89105         with explicit rpl_ prefix.
89106         * lib/fopen.c (fopen): Likewise.
89107         * lib/freopen.c (freopen): Likewise.
89108         * lib/iconv.c (iconv): Likewise.
89109         * lib/iconv_close.c (iconv_close): Likewise.
89111 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89113         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
89115 2007-10-15  Bruno Haible  <bruno@clisp.org>
89117         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
89118         <stddef.h> instead of <stdlib.h> since we only need NULL.
89119         Reported by Ben Pfaff <blp@cs.stanford.edu>.
89121 2007-10-15  Bruno Haible  <bruno@clisp.org>
89123         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
89124         Replace paragraph talking about LIBOBJS.
89125         Reported by Colin Watson <cjwatson@debian.org>.
89127 2007-10-15  Bruno Haible  <bruno@clisp.org>
89129         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
89130         <stdlib.h> before using NULL.
89132 2007-10-15  Simon Josefsson  <simon@josefsson.org>
89134         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
89135         Reported by Albert Chin <china@thewrittenword.com>.
89137 2007-10-14  Bruno Haible  <bruno@clisp.org>
89139         * modules/iconv_open-utf-tests: New file.
89140         * tests/test-iconv-utf.c: New file.
89142         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
89143         * modules/iconv_open-utf: New file.
89144         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
89145         (iconv, iconv_close): New declarations.
89146         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
89147         be defined.
89148         (iconv_open): Add special handling of conversion between UTF-8 and
89149         UTF-{16,32}{BE,LE}.
89150         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
89151         * lib/iconv_close.c: New file.
89152         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
89153         gl_FUNC_ICONV_OPEN.
89154         (gl_FUNC_ICONV_OPEN): Use it.
89155         (gl_FUNC_ICONV_OPEN_UTF): New macro.
89156         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
89157         and REPLACE_ICONV_UTF.
89158         * modules/iconv_open (Depends-on): Add c-strcase.
89159         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
89160         ICONV_CONST.
89161         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
89163 2007-10-13  Albert Chin  <china@thewrittenword.com>
89164             Bruno Haible  <bruno@clisp.org>
89166         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
89167         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
89169 2007-10-13  Bruno Haible  <bruno@clisp.org>
89171         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
89172         defined, use the ISO C99 inline semantics.
89173         * lib/argp.h (ARGP_EI): Likewise.
89175 2007-10-13  Bruno Haible  <bruno@clisp.org>
89177         Handle 'inline' change in gcc 4.3.0.
89178         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
89179         argp_fmtstream_write, argp_fmtstream_set_lmargin,
89180         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
89181         argp_fmtstream_point): Disable 'extern' declaration if the function
89182         definition is going to be provided inline.
89183         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
89184         semantics, not the ISO C99 inline semantics.
89185         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
89186         'extern' declaration if the function definition is going to be provided
89187         inline.
89188         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
89189         the GNU C inline semantics, not the ISO C99 inline semantics. With
89190         GCC 4.2, avoid a warning.
89192 2007-10-13  Bruno Haible  <bruno@clisp.org>
89194         * lib/freading.h (freading): Enable the use of __freading for
89195         glibc >= 2.7.
89196         * lib/freading.c (freading): Likewise.
89198 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
89200         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
89201         "warning: C99 inline functions are not supported; using GNU89".
89203 2007-10-12  Bruno Haible  <bruno@clisp.org>
89205         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
89206         of 2.
89207         * tests/test-ceilf2.c: New file.
89208         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
89210         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
89211         * modules/ceilf-tests: Update.
89213 2007-10-12  Bruno Haible  <bruno@clisp.org>
89215         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
89216         of 2.
89217         * tests/test-floorf2.c: New file.
89218         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
89220         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
89221         * modules/floorf-tests: Update.
89223 2007-10-12  Bruno Haible  <bruno@clisp.org>
89225         * tests/test-trunc2.c: New file.
89226         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
89228         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
89229         * modules/trunc-tests: Update.
89231 2007-10-12  Bruno Haible  <bruno@clisp.org>
89233         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
89234         of 2.
89235         * tests/test-truncf2.c: New file.
89236         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
89238         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
89239         * modules/truncf-tests: Update.
89241 2007-10-11  Eric Blake  <ebb9@byu.net>
89243         Don't claim strerror is broken on Interix.
89244         * doc/functions/strerror.texi (strerror): Known broken systems are
89245         now Solaris 8, and not Interix.
89246         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
89247         Interix on cross-compile.
89248         Reported by Martin Koeppe in
89249         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
89251 2007-10-11  Bruno Haible  <bruno@clisp.org>
89253         * modules/i-ring-tests: New file.
89254         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
89255         instead of assert.
89257 2007-10-11  Bruno Haible  <bruno@clisp.org>
89259         * modules/filenamecat-tests: New file.
89260         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
89261         * lib/filenamecat.c: Remove test code.
89263 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
89265         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
89267         * lib/strerror.c: Include <string.h> always, to test interface,
89268         and to remove the need for the dummy.
89269         Include intprops.h to compute width instead of doing it ourselves
89270         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
89271         (strerror): Define it to return NULL if there's no system strerror.
89272         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
89273         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
89274         ancient pre-strerror Unix systems well any more.  Saying "unknown
89275         system error" is enough.
89276         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
89277         simpler strerror.c implementation.
89278         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
89279         Simplify the tests to reflect the simpler strerror implementation.
89280         * modules/strerror (Depends-on): Add intprops.
89282 2007-10-09  Eric Blake  <ebb9@byu.net>
89284         Silence test-fpending.
89285         * modules/fpending-tests (Files): Add wrapper script.
89286         * tests/test-fpending.sh: New file.
89288 2007-10-09  Bruno Haible  <bruno@clisp.org>
89290         * MODULES.html.sh (func_module): Don't create a hyperlink for
89291         function names like 'printf_frexp'.
89292         (Misc): Add crc, memxor.
89293         (Characteristics of floating types): New section.
89294         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
89295         isnanf-nolibm, signbit, trunc, truncf, truncl.
89296         (Enhancements for ISO C 99 functions): New subsection Input/output.
89297         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
89298         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
89299         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
89300         (Compatibility checks for POSIX:2001 functions): Add clock-time.
89301         (Enhancements for POSIX:2001 functions): Add chdir-long.
89302         (File system functions): Add areadlink, chdir-safer, read-file.
89303         Remove cycle-check.
89304         (File system as inode set): New section.
89305         (Date and time): Add gethrxtime.
89306         (Multithreading): Add openmp.
89307         (Internationalization functions): Add localename.
89308         (Unicode string functions): Add unistr/u*-mbsnlen.
89309         (Support for maintaining and releasing projects): Add git-version-gen.
89310         (Lone files): Remove directories.
89312 2007-10-08  Ben Pfaff  <blp@gnu.org>
89314         * lib/xmalloca.h: Fix typo in comment.
89316 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
89318         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
89319         when avoiding problems with integer overflow.  Use a portable test
89320         instead.
89322 2007-10-08  Simon Josefsson  <simon@josefsson.org>
89324         * modules/dummy (License): Change to LGPLv2+.
89325         * modules/float (License): Likewise
89326         * modules/realloc (License): Likewise
89327         * modules/stdlib (License): Likewise
89329 2007-10-07  Bruno Haible  <bruno@clisp.org>
89331         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
89332         * floor.c (TWO_MANT_DIG): Likewise.
89333         * ceil.c (TWO_MANT_DIG): Likewise.
89334         Reported by Ben Pfaff.
89336 2007-10-07  Bruno Haible  <bruno@clisp.org>
89338         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
89339         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
89340         * lib/frexp.c (FUNC): Likewise.
89341         * lib/printf-frexp.h (printf_frexp): Likewise.
89342         * lib/printf-frexpl.h (printf_frexpl): Likewise.
89343         * lib/printf-frexp.c (FUNC): Likewise.
89344         Suggested by Jim Meyering.
89346 2007-10-07  Jim Meyering  <meyering@redhat.com>
89348         Make xnanosleep's integer overflow test more robust.
89349         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
89350         so that gcc-4.3.0 doesn't optimize away this test for overflow.
89352 2007-10-07  Bruno Haible  <bruno@clisp.org>
89354         * NEWS: Mention the license change.
89356         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
89357         abbreviations in the modules files.
89359         Change copyright notice from GPLv2+ to GPLv3+.
89360         * README: Change copyright notice.
89361         * MODULES.html.sh: Likewise.
89362         * build-aux/bootstrap.conf: Likewise.
89363         * build-aux/config.libpath: Likewise.
89364         * build-aux/csharpcomp.sh.in: Likewise.
89365         * build-aux/csharpexec.sh.in: Likewise.
89366         * build-aux/install-reloc: Likewise.
89367         * build-aux/javacomp.sh.in: Likewise.
89368         * build-aux/javaexec.sh.in: Likewise.
89369         * build-aux/ldd.sh.in: Likewise.
89370         * build-aux/reloc-ldflags: Likewise.
89371         * build-aux/relocatable.sh.in: Likewise.
89372         * build-aux/x-to-1.in: Likewise.
89373         * check-module: Likewise.
89374         * config/srclistvars.sh: Likewise.
89375         * gnulib-tool: Likewise.
89376         * lib/acl-internal.h: Likewise.
89377         * lib/acl.c: Likewise.
89378         * lib/acl.h: Likewise.
89379         * lib/acl_entries.c: Likewise.
89380         * lib/areadlink-with-size.c: Likewise.
89381         * lib/areadlink.c: Likewise.
89382         * lib/areadlink.h: Likewise.
89383         * lib/argmatch.c: Likewise.
89384         * lib/argmatch.h: Likewise.
89385         * lib/argp-ba.c: Likewise.
89386         * lib/argp-eexst.c: Likewise.
89387         * lib/argp-fmtstream.c: Likewise.
89388         * lib/argp-fmtstream.h: Likewise.
89389         * lib/argp-fs-xinl.c: Likewise.
89390         * lib/argp-help.c: Likewise.
89391         * lib/argp-namefrob.h: Likewise.
89392         * lib/argp-parse.c: Likewise.
89393         * lib/argp-pin.c: Likewise.
89394         * lib/argp-pv.c: Likewise.
89395         * lib/argp-pvh.c: Likewise.
89396         * lib/argp-xinl.c: Likewise.
89397         * lib/argp.h: Likewise.
89398         * lib/at-func.c: Likewise.
89399         * lib/atanl.c: Likewise.
89400         * lib/backupfile.c: Likewise.
89401         * lib/backupfile.h: Likewise.
89402         * lib/basename.c: Likewise.
89403         * lib/binary-io.h: Likewise.
89404         * lib/byteswap.in.h: Likewise.
89405         * lib/c-stack.c: Likewise.
89406         * lib/c-stack.h: Likewise.
89407         * lib/c-strcasestr.c: Likewise.
89408         * lib/c-strcasestr.h: Likewise.
89409         * lib/c-strstr.c: Likewise.
89410         * lib/c-strstr.h: Likewise.
89411         * lib/c-strtod.c: Likewise.
89412         * lib/calloc.c: Likewise.
89413         * lib/canon-host.c: Likewise.
89414         * lib/canon-host.h: Likewise.
89415         * lib/canonicalize-lgpl.c: Likewise.
89416         * lib/canonicalize.c: Likewise.
89417         * lib/canonicalize.h: Likewise.
89418         * lib/ceil.c: Likewise.
89419         * lib/ceilf.c: Likewise.
89420         * lib/ceill.c: Likewise.
89421         * lib/chdir-long.c: Likewise.
89422         * lib/chdir-long.h: Likewise.
89423         * lib/chdir-safer.c: Likewise.
89424         * lib/chdir-safer.h: Likewise.
89425         * lib/chown.c: Likewise.
89426         * lib/classpath.c: Likewise.
89427         * lib/classpath.h: Likewise.
89428         * lib/clean-temp.c: Likewise.
89429         * lib/clean-temp.h: Likewise.
89430         * lib/cloexec.c: Likewise.
89431         * lib/close-stream.c: Likewise.
89432         * lib/closein.c: Likewise.
89433         * lib/closein.h: Likewise.
89434         * lib/closeout.c: Likewise.
89435         * lib/closeout.h: Likewise.
89436         * lib/concat-filename.c: Likewise.
89437         * lib/copy-file.c: Likewise.
89438         * lib/copy-file.h: Likewise.
89439         * lib/count-one-bits.h: Likewise.
89440         * lib/crc.c: Likewise.
89441         * lib/crc.h: Likewise.
89442         * lib/creat-safer.c: Likewise.
89443         * lib/csharpcomp.c: Likewise.
89444         * lib/csharpcomp.h: Likewise.
89445         * lib/csharpexec.c: Likewise.
89446         * lib/csharpexec.h: Likewise.
89447         * lib/cycle-check.c: Likewise.
89448         * lib/cycle-check.h: Likewise.
89449         * lib/diacrit.c: Likewise.
89450         * lib/diacrit.h: Likewise.
89451         * lib/diffseq.h: Likewise.
89452         * lib/dirchownmod.c: Likewise.
89453         * lib/dirent.in.h: Likewise.
89454         * lib/dirfd.c: Likewise.
89455         * lib/dirfd.h: Likewise.
89456         * lib/dirname.c: Likewise.
89457         * lib/dirname.h: Likewise.
89458         * lib/dummy.c: Likewise.
89459         * lib/dup-safer.c: Likewise.
89460         * lib/dup2.c: Likewise.
89461         * lib/eealloc.h: Likewise.
89462         * lib/error.c: Likewise.
89463         * lib/error.h: Likewise.
89464         * lib/euidaccess.c: Likewise.
89465         * lib/exclude.c: Likewise.
89466         * lib/exclude.h: Likewise.
89467         * lib/execute.c: Likewise.
89468         * lib/execute.h: Likewise.
89469         * lib/exitfail.c: Likewise.
89470         * lib/exitfail.h: Likewise.
89471         * lib/expl.c: Likewise.
89472         * lib/fatal-signal.c: Likewise.
89473         * lib/fatal-signal.h: Likewise.
89474         * lib/fbufmode.c: Likewise.
89475         * lib/fbufmode.h: Likewise.
89476         * lib/fchdir.c: Likewise.
89477         * lib/fchmodat.c: Likewise.
89478         * lib/fchownat.c: Likewise.
89479         * lib/fcntl--.h: Likewise.
89480         * lib/fcntl-safer.h: Likewise.
89481         * lib/fcntl.in.h: Likewise.
89482         * lib/fd-safer.c: Likewise.
89483         * lib/fflush.c: Likewise.
89484         * lib/file-has-acl.c: Likewise.
89485         * lib/file-set.c: Likewise.
89486         * lib/file-type.c: Likewise.
89487         * lib/file-type.h: Likewise.
89488         * lib/fileblocks.c: Likewise.
89489         * lib/filemode.c: Likewise.
89490         * lib/filemode.h: Likewise.
89491         * lib/filename.h: Likewise.
89492         * lib/filenamecat.c: Likewise.
89493         * lib/filenamecat.h: Likewise.
89494         * lib/findprog.c: Likewise.
89495         * lib/findprog.h: Likewise.
89496         * lib/float.in.h: Likewise.
89497         * lib/floor.c: Likewise.
89498         * lib/floorf.c: Likewise.
89499         * lib/floorl.c: Likewise.
89500         * lib/fopen-safer.c: Likewise.
89501         * lib/fopen.c: Likewise.
89502         * lib/fpending.c: Likewise.
89503         * lib/fpending.h: Likewise.
89504         * lib/fprintf.c: Likewise.
89505         * lib/fprintftime.h: Likewise.
89506         * lib/fpucw.h: Likewise.
89507         * lib/fpurge.c: Likewise.
89508         * lib/fpurge.h: Likewise.
89509         * lib/freadable.c: Likewise.
89510         * lib/freadable.h: Likewise.
89511         * lib/freadahead.c: Likewise.
89512         * lib/freadahead.h: Likewise.
89513         * lib/freading.c: Likewise.
89514         * lib/freading.h: Likewise.
89515         * lib/free.c: Likewise.
89516         * lib/freopen.c: Likewise.
89517         * lib/frexp.c: Likewise.
89518         * lib/frexpl.c: Likewise.
89519         * lib/fseek.c: Likewise.
89520         * lib/fseterr.c: Likewise.
89521         * lib/fseterr.h: Likewise.
89522         * lib/fstatat.c: Likewise.
89523         * lib/fstrcmp.c: Likewise.
89524         * lib/fstrcmp.h: Likewise.
89525         * lib/fsusage.c: Likewise.
89526         * lib/fsusage.h: Likewise.
89527         * lib/ftell.c: Likewise.
89528         * lib/ftello.c: Likewise.
89529         * lib/fts-cycle.c: Likewise.
89530         * lib/fts.c: Likewise.
89531         * lib/fts_.h: Likewise.
89532         * lib/full-read.c: Likewise.
89533         * lib/full-read.h: Likewise.
89534         * lib/full-write.c: Likewise.
89535         * lib/full-write.h: Likewise.
89536         * lib/fwritable.c: Likewise.
89537         * lib/fwritable.h: Likewise.
89538         * lib/fwriteerror.c: Likewise.
89539         * lib/fwriteerror.h: Likewise.
89540         * lib/fwriting.c: Likewise.
89541         * lib/fwriting.h: Likewise.
89542         * lib/gcd.c: Likewise.
89543         * lib/gcd.h: Likewise.
89544         * lib/getcwd.c: Likewise.
89545         * lib/getdate.h: Likewise.
89546         * lib/getdate.y: Likewise.
89547         * lib/getdomainname.c: Likewise.
89548         * lib/getdomainname.h: Likewise.
89549         * lib/getgroups.c: Likewise.
89550         * lib/gethostname.c: Likewise.
89551         * lib/gethrxtime.c: Likewise.
89552         * lib/gethrxtime.h: Likewise.
89553         * lib/getloadavg.c: Likewise.
89554         * lib/getndelim2.c: Likewise.
89555         * lib/getndelim2.h: Likewise.
89556         * lib/getnline.c: Likewise.
89557         * lib/getnline.h: Likewise.
89558         * lib/getopt.c: Likewise.
89559         * lib/getopt.in.h: Likewise.
89560         * lib/getopt1.c: Likewise.
89561         * lib/getopt_int.h: Likewise.
89562         * lib/getpagesize.h: Likewise.
89563         * lib/getsubopt.c: Likewise.
89564         * lib/gettime.c: Likewise.
89565         * lib/getugroups.c: Likewise.
89566         * lib/getugroups.h: Likewise.
89567         * lib/getusershell.c: Likewise.
89568         * lib/gl_anyavltree_list1.h: Likewise.
89569         * lib/gl_anyavltree_list2.h: Likewise.
89570         * lib/gl_anyhash_list1.h: Likewise.
89571         * lib/gl_anyhash_list2.h: Likewise.
89572         * lib/gl_anylinked_list1.h: Likewise.
89573         * lib/gl_anylinked_list2.h: Likewise.
89574         * lib/gl_anyrbtree_list1.h: Likewise.
89575         * lib/gl_anyrbtree_list2.h: Likewise.
89576         * lib/gl_anytree_list1.h: Likewise.
89577         * lib/gl_anytree_list2.h: Likewise.
89578         * lib/gl_anytree_oset.h: Likewise.
89579         * lib/gl_anytreehash_list1.h: Likewise.
89580         * lib/gl_anytreehash_list2.h: Likewise.
89581         * lib/gl_array_list.c: Likewise.
89582         * lib/gl_array_list.h: Likewise.
89583         * lib/gl_array_oset.c: Likewise.
89584         * lib/gl_array_oset.h: Likewise.
89585         * lib/gl_avltree_list.c: Likewise.
89586         * lib/gl_avltree_list.h: Likewise.
89587         * lib/gl_avltree_oset.c: Likewise.
89588         * lib/gl_avltree_oset.h: Likewise.
89589         * lib/gl_avltreehash_list.c: Likewise.
89590         * lib/gl_avltreehash_list.h: Likewise.
89591         * lib/gl_carray_list.c: Likewise.
89592         * lib/gl_carray_list.h: Likewise.
89593         * lib/gl_linked_list.c: Likewise.
89594         * lib/gl_linked_list.h: Likewise.
89595         * lib/gl_linkedhash_list.c: Likewise.
89596         * lib/gl_linkedhash_list.h: Likewise.
89597         * lib/gl_list.c: Likewise.
89598         * lib/gl_list.h: Likewise.
89599         * lib/gl_oset.c: Likewise.
89600         * lib/gl_oset.h: Likewise.
89601         * lib/gl_rbtree_list.c: Likewise.
89602         * lib/gl_rbtree_list.h: Likewise.
89603         * lib/gl_rbtree_oset.c: Likewise.
89604         * lib/gl_rbtree_oset.h: Likewise.
89605         * lib/gl_rbtreehash_list.c: Likewise.
89606         * lib/gl_rbtreehash_list.h: Likewise.
89607         * lib/gl_sublist.c: Likewise.
89608         * lib/gl_sublist.h: Likewise.
89609         * lib/group-member.c: Likewise.
89610         * lib/group-member.h: Likewise.
89611         * lib/hard-locale.c: Likewise.
89612         * lib/hard-locale.h: Likewise.
89613         * lib/hash-pjw.c: Likewise.
89614         * lib/hash-pjw.h: Likewise.
89615         * lib/hash-triple.c: Likewise.
89616         * lib/hash.c: Likewise.
89617         * lib/hash.h: Likewise.
89618         * lib/human.c: Likewise.
89619         * lib/human.h: Likewise.
89620         * lib/i-ring.c: Likewise.
89621         * lib/i-ring.h: Likewise.
89622         * lib/idcache.c: Likewise.
89623         * lib/imaxabs.c: Likewise.
89624         * lib/imaxdiv.c: Likewise.
89625         * lib/inet_pton.c: Likewise.
89626         * lib/inet_pton.h: Likewise.
89627         * lib/intprops.h: Likewise.
89628         * lib/inttostr.c: Likewise.
89629         * lib/inttostr.h: Likewise.
89630         * lib/inttypes.in.h: Likewise.
89631         * lib/isapipe.c: Likewise.
89632         * lib/isdir.c: Likewise.
89633         * lib/isnan.c: Likewise.
89634         * lib/isnan.h: Likewise.
89635         * lib/isnanf.c: Likewise.
89636         * lib/isnanf.h: Likewise.
89637         * lib/isnanl-nolibm.h: Likewise.
89638         * lib/isnanl.c: Likewise.
89639         * lib/isnanl.h: Likewise.
89640         * lib/javacomp.c: Likewise.
89641         * lib/javacomp.h: Likewise.
89642         * lib/javaexec.c: Likewise.
89643         * lib/javaexec.h: Likewise.
89644         * lib/javaversion.c: Likewise.
89645         * lib/javaversion.h: Likewise.
89646         * lib/javaversion.java: Likewise.
89647         * lib/lbrkprop.h: Likewise.
89648         * lib/lchmod.h: Likewise.
89649         * lib/lchown.c: Likewise.
89650         * lib/ldexpl.c: Likewise.
89651         * lib/linebreak.c: Likewise.
89652         * lib/linebreak.h: Likewise.
89653         * lib/linebuffer.c: Likewise.
89654         * lib/linebuffer.h: Likewise.
89655         * lib/locale.in.h: Likewise.
89656         * lib/logl.c: Likewise.
89657         * lib/long-options.c: Likewise.
89658         * lib/long-options.h: Likewise.
89659         * lib/lstat.c: Likewise.
89660         * lib/lstat.h: Likewise.
89661         * lib/math.in.h: Likewise.
89662         * lib/mbchar.c: Likewise.
89663         * lib/mbchar.h: Likewise.
89664         * lib/mbfile.h: Likewise.
89665         * lib/mbiter.h: Likewise.
89666         * lib/mbscasecmp.c: Likewise.
89667         * lib/mbscasestr.c: Likewise.
89668         * lib/mbschr.c: Likewise.
89669         * lib/mbscspn.c: Likewise.
89670         * lib/mbslen.c: Likewise.
89671         * lib/mbsncasecmp.c: Likewise.
89672         * lib/mbsnlen.c: Likewise.
89673         * lib/mbspbrk.c: Likewise.
89674         * lib/mbspcasecmp.c: Likewise.
89675         * lib/mbsrchr.c: Likewise.
89676         * lib/mbssep.c: Likewise.
89677         * lib/mbsspn.c: Likewise.
89678         * lib/mbsstr.c: Likewise.
89679         * lib/mbstok_r.c: Likewise.
89680         * lib/mbswidth.c: Likewise.
89681         * lib/mbswidth.h: Likewise.
89682         * lib/mbuiter.h: Likewise.
89683         * lib/memcasecmp.c: Likewise.
89684         * lib/memcasecmp.h: Likewise.
89685         * lib/memchr.c: Likewise.
89686         * lib/memcmp.c: Likewise.
89687         * lib/memcoll.c: Likewise.
89688         * lib/memcoll.h: Likewise.
89689         * lib/memcpy.c: Likewise.
89690         * lib/memrchr.c: Likewise.
89691         * lib/mkancesdirs.c: Likewise.
89692         * lib/mkdir-p.c: Likewise.
89693         * lib/mkdir-p.h: Likewise.
89694         * lib/mkdir.c: Likewise.
89695         * lib/mkdirat.c: Likewise.
89696         * lib/mkdtemp.c: Likewise.
89697         * lib/mkstemp-safer.c: Likewise.
89698         * lib/mkstemp.c: Likewise.
89699         * lib/modechange.c: Likewise.
89700         * lib/modechange.h: Likewise.
89701         * lib/mountlist.c: Likewise.
89702         * lib/mountlist.h: Likewise.
89703         * lib/mpsort.c: Likewise.
89704         * lib/nanosleep.c: Likewise.
89705         * lib/obstack.c: Likewise.
89706         * lib/obstack.h: Likewise.
89707         * lib/open-safer.c: Likewise.
89708         * lib/open.c: Likewise.
89709         * lib/openat-die.c: Likewise.
89710         * lib/openat-priv.h: Likewise.
89711         * lib/openat-proc.c: Likewise.
89712         * lib/openat.c: Likewise.
89713         * lib/openat.h: Likewise.
89714         * lib/pagealign_alloc.c: Likewise.
89715         * lib/pagealign_alloc.h: Likewise.
89716         * lib/physmem.c: Likewise.
89717         * lib/physmem.h: Likewise.
89718         * lib/pipe-safer.c: Likewise.
89719         * lib/pipe.c: Likewise.
89720         * lib/pipe.h: Likewise.
89721         * lib/posixtm.c: Likewise.
89722         * lib/posixtm.h: Likewise.
89723         * lib/posixver.c: Likewise.
89724         * lib/printf-frexp.c: Likewise.
89725         * lib/printf-frexp.h: Likewise.
89726         * lib/printf-frexpl.c: Likewise.
89727         * lib/printf-frexpl.h: Likewise.
89728         * lib/printf.c: Likewise.
89729         * lib/progname.c: Likewise.
89730         * lib/progname.h: Likewise.
89731         * lib/progreloc.c: Likewise.
89732         * lib/putenv.c: Likewise.
89733         * lib/quote.c: Likewise.
89734         * lib/quote.h: Likewise.
89735         * lib/quotearg.c: Likewise.
89736         * lib/quotearg.h: Likewise.
89737         * lib/raise.c: Likewise.
89738         * lib/readline.c: Likewise.
89739         * lib/readline.h: Likewise.
89740         * lib/readlink.c: Likewise.
89741         * lib/readtokens.c: Likewise.
89742         * lib/readtokens.h: Likewise.
89743         * lib/readtokens0.c: Likewise.
89744         * lib/readtokens0.h: Likewise.
89745         * lib/readutmp.c: Likewise.
89746         * lib/readutmp.h: Likewise.
89747         * lib/realloc.c: Likewise.
89748         * lib/relocwrapper.c: Likewise.
89749         * lib/rename-dest-slash.c: Likewise.
89750         * lib/rename.c: Likewise.
89751         * lib/rmdir.c: Likewise.
89752         * lib/rpmatch.c: Likewise.
89753         * lib/safe-read.c: Likewise.
89754         * lib/safe-read.h: Likewise.
89755         * lib/safe-write.c: Likewise.
89756         * lib/safe-write.h: Likewise.
89757         * lib/same-inode.h: Likewise.
89758         * lib/same.c: Likewise.
89759         * lib/same.h: Likewise.
89760         * lib/save-cwd.c: Likewise.
89761         * lib/save-cwd.h: Likewise.
89762         * lib/savedir.c: Likewise.
89763         * lib/savedir.h: Likewise.
89764         * lib/savewd.c: Likewise.
89765         * lib/savewd.h: Likewise.
89766         * lib/search.in.h: Likewise.
89767         * lib/setenv.c: Likewise.
89768         * lib/setenv.h: Likewise.
89769         * lib/settime.c: Likewise.
89770         * lib/sh-quote.c: Likewise.
89771         * lib/sh-quote.h: Likewise.
89772         * lib/sig2str.c: Likewise.
89773         * lib/sig2str.h: Likewise.
89774         * lib/signal.in.h: Likewise.
89775         * lib/signbitd.c: Likewise.
89776         * lib/signbitf.c: Likewise.
89777         * lib/signbitl.c: Likewise.
89778         * lib/sigprocmask.c: Likewise.
89779         * lib/sincosl.c: Likewise.
89780         * lib/sleep.c: Likewise.
89781         * lib/sprintf.c: Likewise.
89782         * lib/sqrtl.c: Likewise.
89783         * lib/stat-time.h: Likewise.
89784         * lib/stdio--.h: Likewise.
89785         * lib/stdio-safer.h: Likewise.
89786         * lib/stdlib--.h: Likewise.
89787         * lib/stdlib-safer.h: Likewise.
89788         * lib/stdlib.in.h: Likewise.
89789         * lib/stpcpy.c: Likewise.
89790         * lib/stpncpy.c: Likewise.
89791         * lib/strchrnul.c: Likewise.
89792         * lib/strcspn.c: Likewise.
89793         * lib/strerror.c: Likewise.
89794         * lib/strftime.c: Likewise.
89795         * lib/strftime.h: Likewise.
89796         * lib/striconveh.c: Likewise.
89797         * lib/striconveh.h: Likewise.
89798         * lib/striconveha.c: Likewise.
89799         * lib/striconveha.h: Likewise.
89800         * lib/stripslash.c: Likewise.
89801         * lib/strnlen1.c: Likewise.
89802         * lib/strnlen1.h: Likewise.
89803         * lib/strtod.c: Likewise.
89804         * lib/strtoimax.c: Likewise.
89805         * lib/strtok_r.c: Likewise.
89806         * lib/strtol.c: Likewise.
89807         * lib/strtoll.c: Likewise.
89808         * lib/strtoul.c: Likewise.
89809         * lib/strtoull.c: Likewise.
89810         * lib/sysexits.in.h: Likewise.
89811         * lib/tempname.c: Likewise.
89812         * lib/tempname.h: Likewise.
89813         * lib/timespec.h: Likewise.
89814         * lib/tls.c: Likewise.
89815         * lib/tls.h: Likewise.
89816         * lib/tmpdir.c: Likewise.
89817         * lib/tmpdir.h: Likewise.
89818         * lib/tmpfile-safer.c: Likewise.
89819         * lib/tmpfile.c: Likewise.
89820         * lib/trigl.c: Likewise.
89821         * lib/trigl.h: Likewise.
89822         * lib/trim.c: Likewise.
89823         * lib/trim.h: Likewise.
89824         * lib/trunc.c: Likewise.
89825         * lib/truncf.c: Likewise.
89826         * lib/truncl.c: Likewise.
89827         * lib/tsearch.c: Likewise.
89828         * lib/unicodeio.c: Likewise.
89829         * lib/unicodeio.h: Likewise.
89830         * lib/unistd--.h: Likewise.
89831         * lib/unistd-safer.h: Likewise.
89832         * lib/unistdio/ulc-fprintf.c: Likewise.
89833         * lib/unistdio/ulc-vfprintf.c: Likewise.
89834         * lib/unlinkdir.c: Likewise.
89835         * lib/unlinkdir.h: Likewise.
89836         * lib/unlocked-io.h: Likewise.
89837         * lib/unsetenv.c: Likewise.
89838         * lib/userspec.c: Likewise.
89839         * lib/utime.c: Likewise.
89840         * lib/utimecmp.c: Likewise.
89841         * lib/utimecmp.h: Likewise.
89842         * lib/utimens.c: Likewise.
89843         * lib/verify.h: Likewise.
89844         * lib/verror.c: Likewise.
89845         * lib/verror.h: Likewise.
89846         * lib/version-etc-fsf.c: Likewise.
89847         * lib/version-etc.c: Likewise.
89848         * lib/version-etc.h: Likewise.
89849         * lib/vfprintf.c: Likewise.
89850         * lib/vprintf.c: Likewise.
89851         * lib/vsprintf.c: Likewise.
89852         * lib/w32spawn.h: Likewise.
89853         * lib/wait-process.c: Likewise.
89854         * lib/wait-process.h: Likewise.
89855         * lib/wcwidth.c: Likewise.
89856         * lib/write-any-file.c: Likewise.
89857         * lib/xalloc-die.c: Likewise.
89858         * lib/xalloc.h: Likewise.
89859         * lib/xasprintf.c: Likewise.
89860         * lib/xgetcwd.c: Likewise.
89861         * lib/xgetcwd.h: Likewise.
89862         * lib/xgetdomainname.c: Likewise.
89863         * lib/xgetdomainname.h: Likewise.
89864         * lib/xgethostname.c: Likewise.
89865         * lib/xmalloc.c: Likewise.
89866         * lib/xmalloca.c: Likewise.
89867         * lib/xmalloca.h: Likewise.
89868         * lib/xmemcoll.c: Likewise.
89869         * lib/xnanosleep.c: Likewise.
89870         * lib/xreadlink.c: Likewise.
89871         * lib/xreadlink.h: Likewise.
89872         * lib/xsetenv.c: Likewise.
89873         * lib/xsetenv.h: Likewise.
89874         * lib/xstriconv.c: Likewise.
89875         * lib/xstriconv.h: Likewise.
89876         * lib/xstrndup.c: Likewise.
89877         * lib/xstrndup.h: Likewise.
89878         * lib/xstrtod.c: Likewise.
89879         * lib/xstrtod.h: Likewise.
89880         * lib/xstrtol-error.c: Likewise.
89881         * lib/xstrtol.c: Likewise.
89882         * lib/xstrtol.h: Likewise.
89883         * lib/xtime.h: Likewise.
89884         * lib/xvasprintf.c: Likewise.
89885         * lib/xvasprintf.h: Likewise.
89886         * lib/yesno.c: Likewise.
89887         * lib/yesno.h: Likewise.
89888         * posix-modules: Likewise.
89889         * tests/test-alloca-opt.c: Likewise.
89890         * tests/test-arcfour.c: Likewise.
89891         * tests/test-arctwo.c: Likewise.
89892         * tests/test-argmatch.c: Likewise.
89893         * tests/test-argp-2.sh: Likewise.
89894         * tests/test-argp.c: Likewise.
89895         * tests/test-arpa_inet.c: Likewise.
89896         * tests/test-array_list.c: Likewise.
89897         * tests/test-array_oset.c: Likewise.
89898         * tests/test-atexit.c: Likewise.
89899         * tests/test-avltree_list.c: Likewise.
89900         * tests/test-avltree_oset.c: Likewise.
89901         * tests/test-avltreehash_list.c: Likewise.
89902         * tests/test-base64.c: Likewise.
89903         * tests/test-binary-io.c: Likewise.
89904         * tests/test-byteswap.c: Likewise.
89905         * tests/test-c-ctype.c: Likewise.
89906         * tests/test-c-strcasecmp.c: Likewise.
89907         * tests/test-c-strcasestr.c: Likewise.
89908         * tests/test-c-strncasecmp.c: Likewise.
89909         * tests/test-c-strstr.c: Likewise.
89910         * tests/test-canonicalize-lgpl.c: Likewise.
89911         * tests/test-canonicalize.c: Likewise.
89912         * tests/test-carray_list.c: Likewise.
89913         * tests/test-ceilf.c: Likewise.
89914         * tests/test-ceill.c: Likewise.
89915         * tests/test-count-one-bits.c: Likewise.
89916         * tests/test-crc.c: Likewise.
89917         * tests/test-dirname.c: Likewise.
89918         * tests/test-fbufmode.c: Likewise.
89919         * tests/test-fcntl.c: Likewise.
89920         * tests/test-fflush.c: Likewise.
89921         * tests/test-floorf.c: Likewise.
89922         * tests/test-floorl.c: Likewise.
89923         * tests/test-fopen.c: Likewise.
89924         * tests/test-fprintf-posix.c: Likewise.
89925         * tests/test-fprintf-posix.h: Likewise.
89926         * tests/test-fpurge.c: Likewise.
89927         * tests/test-freadable.c: Likewise.
89928         * tests/test-freadahead.c: Likewise.
89929         * tests/test-freading.c: Likewise.
89930         * tests/test-freopen.c: Likewise.
89931         * tests/test-frexp.c: Likewise.
89932         * tests/test-frexpl.c: Likewise.
89933         * tests/test-fseek.c: Likewise.
89934         * tests/test-fseeko.c: Likewise.
89935         * tests/test-fseterr.c: Likewise.
89936         * tests/test-fstrcmp.c: Likewise.
89937         * tests/test-ftell.c: Likewise.
89938         * tests/test-ftello.c: Likewise.
89939         * tests/test-fwritable.c: Likewise.
89940         * tests/test-fwriting.c: Likewise.
89941         * tests/test-getaddrinfo.c: Likewise.
89942         * tests/test-getpass.c: Likewise.
89943         * tests/test-gettimeofday.c: Likewise.
89944         * tests/test-hmac-md5.c: Likewise.
89945         * tests/test-hmac-sha1.c: Likewise.
89946         * tests/test-iconv.c: Likewise.
89947         * tests/test-iconvme.c: Likewise.
89948         * tests/test-inttypes.c: Likewise.
89949         * tests/test-isnan.c: Likewise.
89950         * tests/test-isnanf.c: Likewise.
89951         * tests/test-isnanl-nolibm.c: Likewise.
89952         * tests/test-isnanl.c: Likewise.
89953         * tests/test-isnanl.h: Likewise.
89954         * tests/test-ldexpl.c: Likewise.
89955         * tests/test-linked_list.c: Likewise.
89956         * tests/test-linkedhash_list.c: Likewise.
89957         * tests/test-locale.c: Likewise.
89958         * tests/test-localename.c: Likewise.
89959         * tests/test-lock.c: Likewise.
89960         * tests/test-lseek.c: Likewise.
89961         * tests/test-malloca.c: Likewise.
89962         * tests/test-math.c: Likewise.
89963         * tests/test-mbscasecmp.c: Likewise.
89964         * tests/test-mbscasestr1.c: Likewise.
89965         * tests/test-mbscasestr2.c: Likewise.
89966         * tests/test-mbscasestr3.c: Likewise.
89967         * tests/test-mbscasestr4.c: Likewise.
89968         * tests/test-mbschr.c: Likewise.
89969         * tests/test-mbscspn.c: Likewise.
89970         * tests/test-mbsncasecmp.c: Likewise.
89971         * tests/test-mbspbrk.c: Likewise.
89972         * tests/test-mbspcasecmp.c: Likewise.
89973         * tests/test-mbsrchr.c: Likewise.
89974         * tests/test-mbsspn.c: Likewise.
89975         * tests/test-mbsstr1.c: Likewise.
89976         * tests/test-mbsstr2.c: Likewise.
89977         * tests/test-mbsstr3.c: Likewise.
89978         * tests/test-md5.c: Likewise.
89979         * tests/test-memmem.c: Likewise.
89980         * tests/test-netinet_in.c: Likewise.
89981         * tests/test-open.c: Likewise.
89982         * tests/test-printf-frexp.c: Likewise.
89983         * tests/test-printf-frexpl.c: Likewise.
89984         * tests/test-printf-posix.c: Likewise.
89985         * tests/test-printf-posix.h: Likewise.
89986         * tests/test-rbtree_list.c: Likewise.
89987         * tests/test-rbtree_oset.c: Likewise.
89988         * tests/test-rbtreehash_list.c: Likewise.
89989         * tests/test-read-file.c: Likewise.
89990         * tests/test-rijndael.c: Likewise.
89991         * tests/test-search.c: Likewise.
89992         * tests/test-signbit.c: Likewise.
89993         * tests/test-sleep.c: Likewise.
89994         * tests/test-snprintf-posix.c: Likewise.
89995         * tests/test-snprintf-posix.h: Likewise.
89996         * tests/test-snprintf.c: Likewise.
89997         * tests/test-sprintf-posix.c: Likewise.
89998         * tests/test-sprintf-posix.h: Likewise.
89999         * tests/test-stat-time.c: Likewise.
90000         * tests/test-stdbool.c: Likewise.
90001         * tests/test-stdint.c: Likewise.
90002         * tests/test-stdio.c: Likewise.
90003         * tests/test-stdlib.c: Likewise.
90004         * tests/test-stpncpy.c: Likewise.
90005         * tests/test-strcasestr.c: Likewise.
90006         * tests/test-striconv.c: Likewise.
90007         * tests/test-striconveh.c: Likewise.
90008         * tests/test-striconveha.c: Likewise.
90009         * tests/test-string.c: Likewise.
90010         * tests/test-sys_select.c: Likewise.
90011         * tests/test-sys_socket.c: Likewise.
90012         * tests/test-sys_stat.c: Likewise.
90013         * tests/test-sys_time.c: Likewise.
90014         * tests/test-sysexits.c: Likewise.
90015         * tests/test-time.c: Likewise.
90016         * tests/test-tls.c: Likewise.
90017         * tests/test-trunc.c: Likewise.
90018         * tests/test-truncf.c: Likewise.
90019         * tests/test-truncl.c: Likewise.
90020         * tests/test-unistd.c: Likewise.
90021         * tests/test-vasnprintf-posix.c: Likewise.
90022         * tests/test-vasnprintf-posix2.c: Likewise.
90023         * tests/test-vasnprintf.c: Likewise.
90024         * tests/test-vasprintf-posix.c: Likewise.
90025         * tests/test-vasprintf.c: Likewise.
90026         * tests/test-verify.c: Likewise.
90027         * tests/test-vfprintf-posix.c: Likewise.
90028         * tests/test-vprintf-posix.c: Likewise.
90029         * tests/test-vsnprintf-posix.c: Likewise.
90030         * tests/test-vsnprintf.c: Likewise.
90031         * tests/test-vsprintf-posix.c: Likewise.
90032         * tests/test-wchar.c: Likewise.
90033         * tests/test-wctype.c: Likewise.
90034         * tests/test-wcwidth.c: Likewise.
90035         * tests/test-xstrtol.c: Likewise.
90036         * tests/test-xvasprintf.c: Likewise.
90037         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
90038         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
90039         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
90040         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
90041         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
90042         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
90043         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
90044         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
90045         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
90046         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
90047         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
90048         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
90049         * tests/uniname/test-uninames.c: Likewise.
90050         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
90051         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
90052         * tests/unistdio/test-u16-printf1.h: Likewise.
90053         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
90054         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
90055         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
90056         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
90057         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
90058         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
90059         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
90060         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
90061         * tests/unistdio/test-u32-printf1.h: Likewise.
90062         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
90063         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
90064         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
90065         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
90066         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
90067         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
90068         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
90069         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
90070         * tests/unistdio/test-u8-printf1.h: Likewise.
90071         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
90072         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
90073         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
90074         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
90075         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
90076         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
90077         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
90078         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
90079         * tests/unistdio/test-ulc-printf1.h: Likewise.
90080         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
90081         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
90082         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
90083         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
90084         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
90085         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
90086         * tests/uniwidth/test-u16-strwidth.c: Likewise.
90087         * tests/uniwidth/test-u16-width.c: Likewise.
90088         * tests/uniwidth/test-u32-strwidth.c: Likewise.
90089         * tests/uniwidth/test-u32-width.c: Likewise.
90090         * tests/uniwidth/test-u8-strwidth.c: Likewise.
90091         * tests/uniwidth/test-u8-width.c: Likewise.
90092         * tests/uniwidth/test-uc_width.c: Likewise.
90093         * config/srclist-update: Likewise.
90094         (fixlicense): Update to GPLv3+.
90096         Change copyright notice from LGPLv2.1+ to LGPLv3+.
90097         * tests/test-tsearch.c: Change copyright notice.
90099         Change copyright notice from LGPLv2.0+ to LGPLv3+.
90100         * lib/c-strcaseeq.h: Change copyright notice.
90101         * lib/streq.h: Likewise.
90102         * lib/uniconv.h: Likewise.
90103         * lib/uniconv/u-conv-from-enc.h: Likewise.
90104         * lib/uniconv/u-conv-to-enc.h: Likewise.
90105         * lib/uniconv/u-strconv-from-enc.h: Likewise.
90106         * lib/uniconv/u-strconv-to-enc.h: Likewise.
90107         * lib/uniconv/u16-conv-from-enc.c: Likewise.
90108         * lib/uniconv/u16-conv-to-enc.c: Likewise.
90109         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
90110         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
90111         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
90112         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
90113         * lib/uniconv/u32-conv-from-enc.c: Likewise.
90114         * lib/uniconv/u32-conv-to-enc.c: Likewise.
90115         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
90116         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
90117         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
90118         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
90119         * lib/uniconv/u8-conv-from-enc.c: Likewise.
90120         * lib/uniconv/u8-conv-to-enc.c: Likewise.
90121         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
90122         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
90123         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
90124         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
90125         * lib/uniname.h: Likewise.
90126         * lib/uniname/uniname.c: Likewise.
90127         * lib/unistdio.h: Likewise.
90128         * lib/unistdio/u-asnprintf.h: Likewise.
90129         * lib/unistdio/u-asprintf.h: Likewise.
90130         * lib/unistdio/u-printf-args.c: Likewise.
90131         * lib/unistdio/u-printf-args.h: Likewise.
90132         * lib/unistdio/u-printf-parse.h: Likewise.
90133         * lib/unistdio/u-snprintf.h: Likewise.
90134         * lib/unistdio/u-sprintf.h: Likewise.
90135         * lib/unistdio/u-vasprintf.h: Likewise.
90136         * lib/unistdio/u-vsnprintf.h: Likewise.
90137         * lib/unistdio/u-vsprintf.h: Likewise.
90138         * lib/unistdio/u16-asnprintf.c: Likewise.
90139         * lib/unistdio/u16-asprintf.c: Likewise.
90140         * lib/unistdio/u16-printf-parse.c: Likewise.
90141         * lib/unistdio/u16-snprintf.c: Likewise.
90142         * lib/unistdio/u16-sprintf.c: Likewise.
90143         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
90144         * lib/unistdio/u16-u16-asprintf.c: Likewise.
90145         * lib/unistdio/u16-u16-snprintf.c: Likewise.
90146         * lib/unistdio/u16-u16-sprintf.c: Likewise.
90147         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
90148         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
90149         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
90150         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
90151         * lib/unistdio/u16-vasnprintf.c: Likewise.
90152         * lib/unistdio/u16-vasprintf.c: Likewise.
90153         * lib/unistdio/u16-vsnprintf.c: Likewise.
90154         * lib/unistdio/u16-vsprintf.c: Likewise.
90155         * lib/unistdio/u32-asnprintf.c: Likewise.
90156         * lib/unistdio/u32-asprintf.c: Likewise.
90157         * lib/unistdio/u32-printf-parse.c: Likewise.
90158         * lib/unistdio/u32-snprintf.c: Likewise.
90159         * lib/unistdio/u32-sprintf.c: Likewise.
90160         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
90161         * lib/unistdio/u32-u32-asprintf.c: Likewise.
90162         * lib/unistdio/u32-u32-snprintf.c: Likewise.
90163         * lib/unistdio/u32-u32-sprintf.c: Likewise.
90164         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
90165         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
90166         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
90167         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
90168         * lib/unistdio/u32-vasnprintf.c: Likewise.
90169         * lib/unistdio/u32-vasprintf.c: Likewise.
90170         * lib/unistdio/u32-vsnprintf.c: Likewise.
90171         * lib/unistdio/u32-vsprintf.c: Likewise.
90172         * lib/unistdio/u8-asnprintf.c: Likewise.
90173         * lib/unistdio/u8-asprintf.c: Likewise.
90174         * lib/unistdio/u8-printf-parse.c: Likewise.
90175         * lib/unistdio/u8-snprintf.c: Likewise.
90176         * lib/unistdio/u8-sprintf.c: Likewise.
90177         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
90178         * lib/unistdio/u8-u8-asprintf.c: Likewise.
90179         * lib/unistdio/u8-u8-snprintf.c: Likewise.
90180         * lib/unistdio/u8-u8-sprintf.c: Likewise.
90181         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
90182         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
90183         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
90184         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
90185         * lib/unistdio/u8-vasnprintf.c: Likewise.
90186         * lib/unistdio/u8-vasprintf.c: Likewise.
90187         * lib/unistdio/u8-vsnprintf.c: Likewise.
90188         * lib/unistdio/u8-vsprintf.c: Likewise.
90189         * lib/unistdio/ulc-asnprintf.c: Likewise.
90190         * lib/unistdio/ulc-asprintf.c: Likewise.
90191         * lib/unistdio/ulc-printf-parse.c: Likewise.
90192         * lib/unistdio/ulc-snprintf.c: Likewise.
90193         * lib/unistdio/ulc-sprintf.c: Likewise.
90194         * lib/unistdio/ulc-vasnprintf.c: Likewise.
90195         * lib/unistdio/ulc-vasprintf.c: Likewise.
90196         * lib/unistdio/ulc-vsnprintf.c: Likewise.
90197         * lib/unistdio/ulc-vsprintf.c: Likewise.
90198         * lib/unistr.h: Likewise.
90199         * lib/unistr/u-cpy-alloc.h: Likewise.
90200         * lib/unistr/u-cpy.h: Likewise.
90201         * lib/unistr/u-endswith.h: Likewise.
90202         * lib/unistr/u-move.h: Likewise.
90203         * lib/unistr/u-set.h: Likewise.
90204         * lib/unistr/u-startswith.h: Likewise.
90205         * lib/unistr/u-stpcpy.h: Likewise.
90206         * lib/unistr/u-stpncpy.h: Likewise.
90207         * lib/unistr/u-strcat.h: Likewise.
90208         * lib/unistr/u-strcpy.h: Likewise.
90209         * lib/unistr/u-strcspn.h: Likewise.
90210         * lib/unistr/u-strdup.h: Likewise.
90211         * lib/unistr/u-strlen.h: Likewise.
90212         * lib/unistr/u-strncat.h: Likewise.
90213         * lib/unistr/u-strncpy.h: Likewise.
90214         * lib/unistr/u-strnlen.h: Likewise.
90215         * lib/unistr/u-strpbrk.h: Likewise.
90216         * lib/unistr/u-strspn.h: Likewise.
90217         * lib/unistr/u-strstr.h: Likewise.
90218         * lib/unistr/u-strtok.h: Likewise.
90219         * lib/unistr/u16-check.c: Likewise.
90220         * lib/unistr/u16-chr.c: Likewise.
90221         * lib/unistr/u16-cmp.c: Likewise.
90222         * lib/unistr/u16-cpy-alloc.c: Likewise.
90223         * lib/unistr/u16-cpy.c: Likewise.
90224         * lib/unistr/u16-endswith.c: Likewise.
90225         * lib/unistr/u16-mblen.c: Likewise.
90226         * lib/unistr/u16-mbsnlen.c: Likewise.
90227         * lib/unistr/u16-mbtouc-aux.c: Likewise.
90228         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
90229         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
90230         * lib/unistr/u16-mbtouc.c: Likewise.
90231         * lib/unistr/u16-mbtoucr.c: Likewise.
90232         * lib/unistr/u16-move.c: Likewise.
90233         * lib/unistr/u16-next.c: Likewise.
90234         * lib/unistr/u16-prev.c: Likewise.
90235         * lib/unistr/u16-set.c: Likewise.
90236         * lib/unistr/u16-startswith.c: Likewise.
90237         * lib/unistr/u16-stpcpy.c: Likewise.
90238         * lib/unistr/u16-stpncpy.c: Likewise.
90239         * lib/unistr/u16-strcat.c: Likewise.
90240         * lib/unistr/u16-strchr.c: Likewise.
90241         * lib/unistr/u16-strcmp.c: Likewise.
90242         * lib/unistr/u16-strcpy.c: Likewise.
90243         * lib/unistr/u16-strcspn.c: Likewise.
90244         * lib/unistr/u16-strdup.c: Likewise.
90245         * lib/unistr/u16-strlen.c: Likewise.
90246         * lib/unistr/u16-strmblen.c: Likewise.
90247         * lib/unistr/u16-strmbtouc.c: Likewise.
90248         * lib/unistr/u16-strncat.c: Likewise.
90249         * lib/unistr/u16-strncmp.c: Likewise.
90250         * lib/unistr/u16-strncpy.c: Likewise.
90251         * lib/unistr/u16-strnlen.c: Likewise.
90252         * lib/unistr/u16-strpbrk.c: Likewise.
90253         * lib/unistr/u16-strrchr.c: Likewise.
90254         * lib/unistr/u16-strspn.c: Likewise.
90255         * lib/unistr/u16-strstr.c: Likewise.
90256         * lib/unistr/u16-strtok.c: Likewise.
90257         * lib/unistr/u16-to-u32.c: Likewise.
90258         * lib/unistr/u16-to-u8.c: Likewise.
90259         * lib/unistr/u16-uctomb-aux.c: Likewise.
90260         * lib/unistr/u16-uctomb.c: Likewise.
90261         * lib/unistr/u32-check.c: Likewise.
90262         * lib/unistr/u32-chr.c: Likewise.
90263         * lib/unistr/u32-cmp.c: Likewise.
90264         * lib/unistr/u32-cpy-alloc.c: Likewise.
90265         * lib/unistr/u32-cpy.c: Likewise.
90266         * lib/unistr/u32-endswith.c: Likewise.
90267         * lib/unistr/u32-mblen.c: Likewise.
90268         * lib/unistr/u32-mbsnlen.c: Likewise.
90269         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
90270         * lib/unistr/u32-mbtouc.c: Likewise.
90271         * lib/unistr/u32-mbtoucr.c: Likewise.
90272         * lib/unistr/u32-move.c: Likewise.
90273         * lib/unistr/u32-next.c: Likewise.
90274         * lib/unistr/u32-prev.c: Likewise.
90275         * lib/unistr/u32-set.c: Likewise.
90276         * lib/unistr/u32-startswith.c: Likewise.
90277         * lib/unistr/u32-stpcpy.c: Likewise.
90278         * lib/unistr/u32-stpncpy.c: Likewise.
90279         * lib/unistr/u32-strcat.c: Likewise.
90280         * lib/unistr/u32-strchr.c: Likewise.
90281         * lib/unistr/u32-strcmp.c: Likewise.
90282         * lib/unistr/u32-strcpy.c: Likewise.
90283         * lib/unistr/u32-strcspn.c: Likewise.
90284         * lib/unistr/u32-strdup.c: Likewise.
90285         * lib/unistr/u32-strlen.c: Likewise.
90286         * lib/unistr/u32-strmblen.c: Likewise.
90287         * lib/unistr/u32-strmbtouc.c: Likewise.
90288         * lib/unistr/u32-strncat.c: Likewise.
90289         * lib/unistr/u32-strncmp.c: Likewise.
90290         * lib/unistr/u32-strncpy.c: Likewise.
90291         * lib/unistr/u32-strnlen.c: Likewise.
90292         * lib/unistr/u32-strpbrk.c: Likewise.
90293         * lib/unistr/u32-strrchr.c: Likewise.
90294         * lib/unistr/u32-strspn.c: Likewise.
90295         * lib/unistr/u32-strstr.c: Likewise.
90296         * lib/unistr/u32-strtok.c: Likewise.
90297         * lib/unistr/u32-to-u16.c: Likewise.
90298         * lib/unistr/u32-to-u8.c: Likewise.
90299         * lib/unistr/u32-uctomb.c: Likewise.
90300         * lib/unistr/u8-check.c: Likewise.
90301         * lib/unistr/u8-chr.c: Likewise.
90302         * lib/unistr/u8-cmp.c: Likewise.
90303         * lib/unistr/u8-cpy-alloc.c: Likewise.
90304         * lib/unistr/u8-cpy.c: Likewise.
90305         * lib/unistr/u8-endswith.c: Likewise.
90306         * lib/unistr/u8-mblen.c: Likewise.
90307         * lib/unistr/u8-mbsnlen.c: Likewise.
90308         * lib/unistr/u8-mbtouc-aux.c: Likewise.
90309         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
90310         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
90311         * lib/unistr/u8-mbtouc.c: Likewise.
90312         * lib/unistr/u8-mbtoucr.c: Likewise.
90313         * lib/unistr/u8-move.c: Likewise.
90314         * lib/unistr/u8-next.c: Likewise.
90315         * lib/unistr/u8-prev.c: Likewise.
90316         * lib/unistr/u8-set.c: Likewise.
90317         * lib/unistr/u8-startswith.c: Likewise.
90318         * lib/unistr/u8-stpcpy.c: Likewise.
90319         * lib/unistr/u8-stpncpy.c: Likewise.
90320         * lib/unistr/u8-strcat.c: Likewise.
90321         * lib/unistr/u8-strchr.c: Likewise.
90322         * lib/unistr/u8-strcmp.c: Likewise.
90323         * lib/unistr/u8-strcpy.c: Likewise.
90324         * lib/unistr/u8-strcspn.c: Likewise.
90325         * lib/unistr/u8-strdup.c: Likewise.
90326         * lib/unistr/u8-strlen.c: Likewise.
90327         * lib/unistr/u8-strmblen.c: Likewise.
90328         * lib/unistr/u8-strmbtouc.c: Likewise.
90329         * lib/unistr/u8-strncat.c: Likewise.
90330         * lib/unistr/u8-strncmp.c: Likewise.
90331         * lib/unistr/u8-strncpy.c: Likewise.
90332         * lib/unistr/u8-strnlen.c: Likewise.
90333         * lib/unistr/u8-strpbrk.c: Likewise.
90334         * lib/unistr/u8-strrchr.c: Likewise.
90335         * lib/unistr/u8-strspn.c: Likewise.
90336         * lib/unistr/u8-strstr.c: Likewise.
90337         * lib/unistr/u8-strtok.c: Likewise.
90338         * lib/unistr/u8-to-u16.c: Likewise.
90339         * lib/unistr/u8-to-u32.c: Likewise.
90340         * lib/unistr/u8-uctomb-aux.c: Likewise.
90341         * lib/unistr/u8-uctomb.c: Likewise.
90342         * lib/unitypes.h: Likewise.
90343         * lib/uniwidth.h: Likewise.
90344         * lib/uniwidth/cjk.h: Likewise.
90345         * lib/uniwidth/u16-strwidth.c: Likewise.
90346         * lib/uniwidth/u16-width.c: Likewise.
90347         * lib/uniwidth/u32-strwidth.c: Likewise.
90348         * lib/uniwidth/u32-width.c: Likewise.
90349         * lib/uniwidth/u8-strwidth.c: Likewise.
90350         * lib/uniwidth/u8-width.c: Likewise.
90351         * lib/uniwidth/width.c: Likewise.
90353 2007-10-07  Bruno Haible  <bruno@clisp.org>
90355         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
90356         The file is still under LGPL (see modules/inttypes).
90358 2007-10-06  Bruno Haible  <bruno@clisp.org>
90360         * modules/trunc (Dependencies): Add 'extensions'.
90361         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
90362         Reported by Ben Pfaff <blp@gnu.org>.
90364 2007-10-06  Bruno Haible  <bruno@clisp.org>
90366         * modules/freopen-tests: New file.
90367         * tests/test-freopen.c: New file.
90369         * modules/fopen-tests: New file.
90370         * tests/test-fopen.c: New file.
90372         * modules/fopen: New file.
90373         * lib/fopen.c: New file.
90374         * m4/fopen.m4: New file.
90375         * modules/freopen: New file.
90376         * lib/freopen.c: New file.
90377         * m4/freopen.m4: New file.
90378         * lib/stdio.in.h (fopen, freopen): New declarations.
90379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
90380         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
90381         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
90382         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
90383         * doc/functions/fopen.texi: Mention the 'fopen' module.
90384         * doc/functions/freopen.texi: Mention the 'freopen' module.
90386 2007-10-06  Bruno Haible  <bruno@clisp.org>
90388         * modules/open-tests: New file.
90389         * tests/test-open.c: New file.
90391         * modules/open: New file.
90392         * lib/open.c: New file.
90393         * m4/open.m4: New file.
90394         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
90395         lib/open.c does.
90396         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
90397         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
90398         macros.
90399         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
90400         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
90401         REPLACE_OPEN.
90402         * doc/functions/open.texi: Mention the 'open' module.
90404 2007-10-04  Bruno Haible  <bruno@clisp.org>
90406         * modules/ceill-tests: New file.
90407         * tests/test-ceill.c: New file.
90409         * modules/ceill: New file.
90410         * lib/ceill.c: Replace entire file.
90411         * m4/ceill.m4: New file.
90412         * lib/math.in.h (ceill): Replace declaration.
90413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
90414         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
90415         * doc/functions/ceill.texi: Mention the 'ceill' module.
90416         * modules/mathl (Files): Remove lib/ceill.c.
90417         (Depends-on): Add ceill.
90419 2007-10-04  Bruno Haible  <bruno@clisp.org>
90421         * modules/ceilf-tests: New file.
90422         * tests/test-ceilf.c: New file.
90424         * modules/ceilf: New file.
90425         * lib/ceil.c: New file.
90426         * lib/ceilf.c: New file.
90427         * m4/ceilf.m4: New file.
90428         * lib/math.in.h (ceilf): New declaration.
90429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
90430         HAVE_DECL_CEILF.
90431         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
90432         HAVE_DECL_CEILF.
90433         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
90435 2007-10-04  Bruno Haible  <bruno@clisp.org>
90437         * modules/floorl-tests: New file.
90438         * tests/test-floorl.c: New file.
90440         * modules/floorl: New file.
90441         * lib/floorl.c: Replace entire file.
90442         * m4/floorl.m4: New file.
90443         * lib/math.in.h (floorl): Replace declaration.
90444         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
90445         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
90446         * doc/functions/floorl.texi: Mention the 'floorl' module.
90447         * modules/mathl (Files): Remove lib/floorl.c.
90448         (Depends-on): Add floorl.
90450 2007-10-04  Bruno Haible  <bruno@clisp.org>
90452         * modules/floorf-tests: New file.
90453         * tests/test-floorf.c: New file.
90455         * modules/floorf: New file.
90456         * lib/floor.c: New file.
90457         * lib/floorf.c: New file.
90458         * m4/floorf.m4: New file.
90459         * lib/math.in.h (floorf): New declaration.
90460         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
90461         HAVE_DECL_FLOORF.
90462         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
90463         HAVE_DECL_FLOORF.
90464         * doc/functions/floorf.texi: Mention the 'floorf' module.
90466 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
90467             Bruno Haible  <bruno@clisp.org>
90469         Advertise for the Git server instead of the CVS server.
90470         * doc/gnulib-intro.texi (Steady Development): Mention the Git
90471         repository instead of the CVS one.
90472         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
90473         about all VCS systems generically.
90474         * doc/gnulib.texi (Introduction): Capitalize `Git'.
90476 2007-10-04  Bruno Haible  <bruno@clisp.org>
90478         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
90479         means.
90480         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
90482 2007-10-04  Bruno Haible  <bruno@clisp.org>
90484         * modules/truncl-tests: New file.
90485         * tests/test-truncl.c: New file.
90487         * modules/truncl: New file.
90488         * lib/truncl.c: New file.
90489         * m4/truncl.m4: New file.
90490         * lib/math.in.h (truncl): New declaration.
90491         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
90492         HAVE_DECL_TRUNCL.
90493         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
90494         HAVE_DECL_TRUNCL.
90495         * doc/functions/truncl.texi: Mention the 'truncl' module.
90497 2007-10-04  Bruno Haible  <bruno@clisp.org>
90499         * modules/truncf-tests: New file.
90500         * tests/test-truncf.c: New file.
90502         * modules/truncf: New file.
90503         * lib/trunc.c: Make paramerizable through USE_* macros.
90504         * lib/truncf.c: New file.
90505         * m4/truncf.m4: New file.
90506         * lib/math.in.h (truncf): New declaration.
90507         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
90508         HAVE_DECL_TRUNCF.
90509         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
90510         HAVE_DECL_TRUNCF.
90511         * doc/functions/truncf.texi: Mention the 'truncf' module.
90513 2007-10-03  Bruno Haible  <bruno@clisp.org>
90515         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
90516         augmentation also for tests modules.
90517         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
90518         * modules/atexit-tests (Makefile.am): Likewise.
90519         * modules/binary-io-tests (Makefile.am): Likewise.
90520         * modules/c-strcase-tests (Makefile.am): Likewise.
90521         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
90522         * modules/canonicalize-tests (Makefile.am): Likewise.
90523         * modules/closein-tests (Makefile.am): Likewise.
90524         * modules/fprintf-posix-tests (Makefile.am): Likewise.
90525         * modules/freadahead-tests (Makefile.am): Likewise.
90526         * modules/fseek-tests (Makefile.am): Likewise.
90527         * modules/fseeko-tests (Makefile.am): Likewise.
90528         * modules/ftell-tests (Makefile.am): Likewise.
90529         * modules/ftello-tests (Makefile.am): Likewise.
90530         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
90531         * modules/isnanl-tests (Makefile.am): Likewise.
90532         * modules/lseek-tests (Makefile.am): Likewise.
90533         * modules/mbscasecmp-tests (Makefile.am): Likewise.
90534         * modules/mbscasestr-tests (Makefile.am): Likewise.
90535         * modules/mbschr-tests (Makefile.am): Likewise.
90536         * modules/mbscspn-tests (Makefile.am): Likewise.
90537         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
90538         * modules/mbspbrk-tests (Makefile.am): Likewise.
90539         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
90540         * modules/mbsrchr-tests (Makefile.am): Likewise.
90541         * modules/mbsspn-tests (Makefile.am): Likewise.
90542         * modules/mbsstr-tests (Makefile.am): Likewise.
90543         * modules/printf-posix-tests (Makefile.am): Likewise.
90544         * modules/snprintf-posix-tests (Makefile.am): Likewise.
90545         * modules/sprintf-posix-tests (Makefile.am): Likewise.
90546         * modules/tsearch-tests (Makefile.am): Likewise.
90547         * modules/uniname/uniname-tests (Makefile.am): Likewise.
90548         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
90549         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
90550         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
90551         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
90552         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
90553         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
90554         * modules/vprintf-posix-tests (Makefile.am): Likewise.
90555         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
90556         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
90557         * modules/xstrtoimax-tests (Makefile.am): Likewise.
90558         * modules/xstrtol-tests (Makefile.am): Likewise.
90559         * modules/xstrtoumax-tests (Makefile.am): Likewise.
90560         * modules/yesno-tests (Makefile.am): Likewise.
90562 2007-10-03  Bruno Haible  <bruno@clisp.org>
90564         * modules/trunc-tests: New file.
90565         * tests/test-trunc.c: New file.
90567         * modules/trunc: New file.
90568         * lib/trunc.c: New file.
90569         * m4/trunc.m4: New file.
90570         * lib/math.in.h (trunc): New declaration.
90571         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
90572         HAVE_DECL_TRUNC.
90573         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
90574         HAVE_DECL_TRUNC.
90575         * doc/functions/trunc.texi: Mention the 'trunc' module.
90577 2007-10-03  Bruno Haible  <bruno@clisp.org>
90579         * tests/test-fpending.c: New file, mostly copied
90580         from coreutils/lib/t-fpending.c.
90581         * modules/fpending-tests: New file.
90583 2007-10-03  Bruno Haible  <bruno@clisp.org>
90585         Port the stdio extensions to QNX (untested).
90586         * lib/fseterr.c (fseterr): Add support for QNX.
90587         * lib/fbufmode.c (fbufmode): Likewise.
90588         * lib/freadable.c (freadable): Likewise.
90589         * lib/fwritable.c (fwritable): Likewise.
90590         * lib/freading.c (freading): Likewise.
90591         * lib/fwriting.c (fwriting): Likewise.
90592         * lib/freadahead.c (freadahed): Likewise.
90593         * lib/fpurge.c (fpurge): Likewise.
90594         * lib/fseeko.c (rpl_fseeko): Likewise.
90596 2007-10-03  Bruno Haible  <bruno@clisp.org>
90597             Jim Meyering  <jim@meyering.net>
90598             Eric Blake  <ebb9@byu.net>
90600         * doc/relocatable.texi: Use @command instead of @program.
90602 2007-10-02  Jim Meyering  <jim@meyering.net>
90604         Perform one more "_.h" -> ".in.h" substitution.
90605         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
90606         instead of unistd_.h here, too.
90608 2007-10-01  Bruno Haible  <bruno@clisp.org>
90610         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
90611         Needed for the alloca-opt module.
90613 2007-09-30  Bruno Haible  <bruno@clisp.org>
90615         * lib/alloca.in.h: Renamed from lib/alloca_.h.
90616         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
90617         alloca_.h.
90618         * lib/argz.in.h: Renamed from lib/argz_.h.
90619         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
90620         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
90621         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
90622         byteswap_.h.
90623         * lib/dirent.in.h: Renamed from lib/dirent_.h.
90624         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
90625         dirent_.h.
90626         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
90627         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
90628         fcntl_.h.
90629         * lib/float.in.h: Renamed from lib/float_.h.
90630         * modules/float (Files, Makefile.am): Use float.in.h instead of
90631         float_.h.
90632         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
90633         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
90634         fnmatch_.h.
90635         * lib/getopt.in.h: Renamed from lib/getopt_.h.
90636         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
90637         getopt_.h.
90638         * lib/glob.in.h: Renamed from lib/glob_.h.
90639         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
90640         * lib/iconv.in.h: Renamed from lib/iconv_.h.
90641         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
90642         iconv_.h.
90643         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
90644         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
90645         inttypes_.h.
90646         * lib/locale.in.h: Renamed from lib/locale_.h.
90647         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
90648         locale_.h.
90649         * lib/math.in.h: Renamed from lib/math_.h.
90650         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
90651         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
90652         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
90653         of netinet_in_.h. Add dependency.
90654         * lib/poll.in.h: Renamed from lib/poll_.h.
90655         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
90656         * lib/search.in.h: Renamed from lib/search_.h.
90657         * modules/search (Files, Makefile.am): Use search.in.h instead of
90658         search_.h.
90659         * lib/signal.in.h: Renamed from lib/signal_.h.
90660         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
90661         _signal.h.
90662         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
90663         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
90664         stdbool_.h.
90665         * lib/stdint.in.h: Renamed from lib/stdint_.h.
90666         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
90667         stdint_.h.
90668         * lib/stdio.in.h: Renamed from lib/stdio_.h.
90669         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
90670         stdio_.h.
90671         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
90672         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
90673         stdlib_.h.
90674         * lib/string.in.h: Renamed from lib/string_.h.
90675         * modules/string (Files, Makefile.am): Use string.in.h instead of
90676         string_.h.
90677         * doc/gnulib-tool.texi (Initial import): Update.
90678         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
90679         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
90680         of sys_select_.h. Add dependency.
90681         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
90682         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
90683         of sys_socket_.h.
90684         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
90685         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
90686         sys_stat_.h.
90687         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
90688         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
90689         sys_time_.h.
90690         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
90691         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
90692         sysexits_.h.
90693         * lib/time.in.h: Renamed from lib/time_.h.
90694         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
90695         * lib/unistd.in.h: Renamed from lib/unistd_.h.
90696         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
90697         unistd_.h.
90698         * lib/wchar.in.h: Renamed from lib/wchar_.h.
90699         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
90700         wchar_.h.
90701         * lib/wctype.in.h: Renamed from lib/wctype_.h.
90702         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
90703         wctype_.h.
90704         * build-aux/bootstrap (slurp): Update.
90705         * lib/.cppi-disable: Update.
90707 2007-09-30  Bruno Haible  <bruno@clisp.org>
90709         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
90710         Needed on BeOS.
90712 2007-09-30  Bruno Haible  <bruno@clisp.org>
90714         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
90716 2007-09-29  Bruno Haible  <bruno@clisp.org>
90718         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
90720 2007-09-29  Bruno Haible  <bruno@clisp.org>
90722         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
90723         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
90724         * build-aux/install-reloc: Compile also areadlink.c.
90725         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
90727 2007-09-29  Bruno Haible  <bruno@clisp.org>
90729         * gnulib-tool (func_emit_initmacro_done): Indentation.
90731 2007-09-29  Bruno Haible  <bruno@clisp.org>
90733         * README: Add CVS checkout update instructions.
90734         Info from Bob Proulx <bob@proulx.com>.
90736 2007-09-28  Eric Blake  <ebb9@byu.net>
90738         Provide move-if-change.
90739         * build-aux/move-if-change: New file, based on best practice
90740         rather than any canonical upstream location.
90742 2007-09-28  Jim Meyering  <jim@meyering.net>
90744         Fix canonicalize loop-detection corner case.
90745         Do not attempt to stat the symlink values stored via seen_triple.
90746         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
90747         on linux-2.6.18, (but not 2.6.22).
90748         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
90749         triple_compare.  The former compares dev,ino,filename, while the latter
90750         would actually stat dirname(filename) when dev and ino were equal.
90751         * lib/hash-triple.c: Install <string.h>.
90752         (STREQ): Define.
90753         (triple_compare_ino_str): New function.
90754         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
90756 2007-09-28  Eric Blake  <ebb9@byu.net>
90758         Enforce that AC_REPLACE_FUNCS files exist.
90759         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
90760         override check for typos.
90762         Fix test-closein on Solaris 10.
90763         * tests/test-closein.c (main): Don't assume stdin can be inherited
90764         closed on all systems.
90765         * tests/test-closein.sh: Likewise.
90766         Reported by Piotr Tarnowski.
90768 2007-09-28  Jim Meyering  <jim@meyering.net>
90770         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
90772 2007-09-27  Jim Meyering  <jim@meyering.net>
90774         canonicalize: Avoid a false-positive cycle failure.
90775         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
90776         Sort.  Remove cycle-check.
90777         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
90778         not cycle-check.h.
90779         (seen_triple): New function.
90780         (canonicalize_filename_mode): Use it instead of cycle-check.
90781         * tests/test-canonicalize.c: Add a test for this bug.
90782         * tests/test-canonicalize.sh: Set up and run the test.
90784         New module, file-set, from coreutils.
90785         * modules/file-set: Define it.
90786         * lib/file-set.c, lib/file-set.h: Implement.
90788         New module, hash-triple, from coreutils.
90789         * modules/hash-triple: Define it.
90790         * lib/hash-triple.c, lib/hash-triple.h: Implement.
90792 2007-09-25  Eric Blake  <ebb9@byu.net>
90794         Fix strerror on Interix.
90795         * lib/string_.h (strerror): Declare replacement.
90796         * doc/functions/strerror.texi (strerror): Document the Interix
90797         shortcoming.
90798         * modules/string (Makefile.am): Support new hooks.
90799         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
90800         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
90801         gl_FUNC_STRERROR_SEPARATE.
90802         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
90803         * lib/strerror.c (rpl_strerror): Provide replacement.
90804         * modules/strerror (Depends-on): Add string.
90805         (configure.ac): Detect use of module.
90806         * tests/test-strerror.c: New file.
90807         * modules/strerror-tests: New test module.
90808         * modules/argp (Depends-on): Add strerror.
90809         * modules/error (Depends-on): Likewise.
90810         Reported by Martin Koeppe.
90812 2007-09-24  Bruno Haible  <bruno@clisp.org>
90814         * README: Update git instructions.
90816 2007-09-24  Eric Blake  <ebb9@byu.net>
90818         Revert fpending breakage from 2007-09-08.
90819         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
90820         __fpending.c.
90822 2007-09-24  Jim Meyering  <jim@meyering.net>
90824         filenamecat.c: Add a test.
90825         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
90826         showing how the function works when DIR is the empty string.
90828 2007-09-21  Simon Josefsson  <simon@josefsson.org>
90830         * tests/test-canonicalize.sh: Turn on executable bit.
90832 2007-09-19  Eric Blake  <ebb9@byu.net>
90834         * README: Update CVS instructions.
90836 2007-09-18  Bruno Haible  <bruno@clisp.org>
90838         * modules/areadlink: New file.
90839         * lib/areadlink.h (areadlink): New declaration.
90840         * lib/areadlink.c: New file, based on lib/xreadlink.c.
90842 2007-09-17  Jim Meyering  <jim@meyering.net>
90844         * lib/savewd.c (ESTALE) [!defined]: Define.
90845         Reported to be required on Interix by Martin Koeppe.
90847 2007-09-17  Bruno Haible  <bruno@clisp.org>
90849         * gnulib-tool (func_version): Use $version.
90851 2007-09-16  Bruno Haible  <bruno@clisp.org>
90853         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
90854         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
90855         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
90856         Reported by Greg Schafer <gschafer@zip.com.au>.
90858 2007-09-15  Bruno Haible  <bruno@clisp.org>
90860         * gnulib-tool (sed): Try a little harder to make bash understand the
90861         alias.
90862         Reported by Bruce Korb <bruce.korb@gmail.com>.
90864 2007-09-13  Eric Blake  <ebb9@byu.net>
90866         * ChangeLog: Remove conflict markers.
90868 2007-09-13  Simon Josefsson  <simon@josefsson.org>
90870         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
90871         Reported by Bruno Haible <bruno@clisp.org>.
90873 2007-09-12  Bruno Haible  <bruno@clisp.org>
90875         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
90876         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
90877         is not defined.
90879 2007-09-12  Eric Blake  <ebb9@byu.net>
90881         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
90882         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
90883         Autoconf definition.
90884         * modules/euidaccess (Depends-on): Add extensions, for
90885         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
90886         * modules/fnmatch (Depends-on): Likewise.
90887         * modules/getaddrinfo (Depends-on): Likewise.
90888         * modules/getdelim (Depends-on): Likewise.
90889         * modules/getline (Depends-on): Likewise.
90890         * modules/getsubopt (Depends-on): Likewise.
90891         * modules/gettext (Depends-on): Likewise.
90892         * modules/group-member (Depends-on): Likewise.
90893         * modules/mbchar (Depends-on): Likewise.
90894         * modules/memmem (Depends-on): Likewise.
90895         * modules/mempcpy (Depends-on): Likewise.
90896         * modules/memrchr (Depends-on): Likewise.
90897         * modules/pagealign_alloc (Depends-on): Likewise.
90898         * modules/readutmp (Depends-on): Likewise.
90899         * modules/stpcpy (Depends-on): Likewise.
90900         * modules/stpncpy (Depends-on): Likewise.
90901         * modules/strchrnul (Depends-on): Likewise.
90902         * modules/strndup (Depends-on): Likewise.
90903         * modules/strsep (Depends-on): Likewise.
90904         * modules/strverscmp (Depends-on): Likewise.
90905         * modules/vasprintf (Depends-on): Likewise.
90906         * modules/wcwidth (Depends-on): Likewise.
90907         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
90908         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
90909         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
90910         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
90911         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
90912         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
90913         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
90914         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
90915         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
90916         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
90917         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
90918         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
90919         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
90920         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
90921         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
90922         * m4/readutmp.m4 (gl_READUTMP): Likewise.
90923         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
90924         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
90925         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
90926         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
90927         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
90928         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
90929         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
90930         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
90931         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
90932         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
90933         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
90934         so that lock.m4 can be used in gettext without extensions module.
90936 2007-09-11  Bruno Haible  <bruno@clisp.org>
90938         * m4/isc-posix.m4: Remove file.
90939         Suggested by Eric Blake.
90941 2007-09-11  Eric Blake  <ebb9@byu.net>
90943         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
90945 2007-09-10  Bruno Haible  <bruno@clisp.org>
90947         * posix-modules: Fix typo in error message.
90948         Reported by Matt <mkraai@beckman.com>.
90950 2007-09-09  Bruno Haible  <bruno@clisp.org>
90952         * doc/functions/getdelim.texi: Update list of platforms lacking the
90953         function.
90954         * doc/functions/getline.texi: Likewise.
90956 2007-09-09  Jim Meyering  <jim@meyering.net>
90958         * lib/hash.c (hash_initialize): Detect calloc failure.
90959         Reported by Bruno Haible.
90961 2007-09-09  Bruno Haible  <bruno@clisp.org>
90963         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
90964         malloc or realloc fails.
90966 2007-09-09  Bruno Haible  <bruno@clisp.org>
90968         * modules/getcwd (Depends-on): Add malloc-posix.
90969         * modules/glob (Depends-on): Likewise.
90970         * modules/putenv (Depends-on): Likewise.
90971         * modules/strdup (Depends-on): Likewise.
90972         * modules/getdelim (Depends-on): Add realloc-posix.
90973         * modules/read-file (Depends-on): Likewise.
90975 2007-09-09  Bruno Haible  <bruno@clisp.org>
90977         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
90978         (gl_FUNC_MALLOC_POSIX): Require it.
90979         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
90980         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
90981         * modules/realloc (Files): Add m4/malloc.m4.
90982         * modules/calloc (Files): Likewise.
90984 2007-09-09  Bruno Haible  <bruno@clisp.org>
90986         * modules/malloc-posix: New file.
90987         * modules/malloc (Depends-on): Add malloc-posix.
90988         * lib/malloc.c: Include errno.h.
90989         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
90990         and a POSIX-compatible malloc into a single function. Set ENOMEM
90991         when returning NULL.
90992         * m4/malloc.m4: New file.
90993         * doc/functions/malloc.texi: Mention the malloc-posix module.
90994         * lib/stdlib_.h (malloc): New declaration.
90995         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
90996         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
90997         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
90998         and HAVE_MALLOC_POSIX.
91000 2007-09-09  Bruno Haible  <bruno@clisp.org>
91002         * modules/realloc-posix: New file.
91003         * modules/realloc (Depends-on): Add realloc-posix.
91004         * lib/realloc.c: Include errno.h.
91005         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
91006         and a POSIX-compatible realloc into a single function. Set ENOMEM
91007         when returning NULL.
91008         * m4/realloc.m4: New file.
91009         * doc/functions/realloc.texi: Mention the realloc-posix module.
91010         * lib/stdlib_.h (realloc): New declaration.
91011         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
91012         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
91013         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
91014         and HAVE_REALLOC_POSIX.
91016 2007-09-09  Bruno Haible  <bruno@clisp.org>
91018         * modules/calloc-posix: New file.
91019         * modules/calloc (Depends-on): Add calloc-posix.
91020         * lib/calloc.c: Include errno.h.
91021         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
91022         and a POSIX-compatible calloc into a single function. Set ENOMEM
91023         when returning NULL.
91024         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
91025         * doc/functions/calloc.texi: Mention the calloc-posix module.
91026         * lib/stdlib_.h (calloc): New declaration.
91027         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
91028         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
91029         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
91030         and HAVE_CALLOC_POSIX.
91032 2007-09-09  Bruno Haible  <bruno@clisp.org>
91034         Allow for modules to show an arbitrary notice.
91035         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
91036         * gnulib-tool: New option --extract-notice.
91037         (func_usage): Document it.
91038         (sed_extract_prog): Update.
91039         (func_get_notice): New function.
91040         (func_modules_notice): New function.
91041         (func_import, func_create_testdir): Invoke it.
91042         Suggested by Jim Meyering.
91044 2007-09-09  Bruno Haible  <bruno@clisp.org>
91046         * gnulib-tool: New options --verbose, --quiet.
91047         (func_usage): Document them.
91048         (verbose): New variable.
91049         (func_execute_command): New function.
91050         (func_import): Don't show the module list and the file list if
91051         $verbose < 0.
91052         (func_create_testdir): Likewise. Use func_execute_command.
91053         (func_create_megatestdir): Use func_execute_command.
91055 2007-09-08  Bruno Haible  <bruno@clisp.org>
91057         * gnulib-tool (func_import): Prefer rsync over wget when available,
91058         for fetching the PO files.
91060 2007-09-08  Bruno Haible  <bruno@clisp.org>
91062         * posix-modules: New file. Portions copied from gnulib-tool.
91063         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
91065 2007-09-08  Jim Meyering  <jim@meyering.net>
91067         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
91068         * lib/fpending.h: Rename from __fpending.h.
91069         * lib/fpending.c: Rename from __fpending.c.
91070         Include "fpending.h", not "__fpending.h".
91071         * lib/__fpending.h, lib/__fpending.c: Remove files.
91072         * modules/fpending (Files): Reflect new file names.
91073         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
91075 2007-09-08  Bruno Haible  <bruno@clisp.org>
91077         * m4/inttypes-h.m4: Remove stub file.
91079 2007-09-07  Simon Josefsson  <simon@josefsson.org>
91081         * doc/headers/stdint.texi: Discuss #include_next issue.
91083 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
91085         * build-aux/bootstrap: Remove obsolete comment about wget --help.
91087 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91089         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
91090         in variable name.
91092 2007-09-03  Jim Meyering  <jim@meyering.net>
91094         New module: git-version-gen.
91095         * modules/git-version-gen: New file.
91097         Import changes from coreutils for bootstrap script.
91099         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
91101         bootstrap: uses rsync to download the .po files
91102         * build-aux/bootstrap (po_download_command_format): New global.
91103         (download_po_files): Use rsync.
91104         (update_po_files): Don't remove .po files after download,
91105         so future rsync runs can take advantage of the copies.
91107         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
91109         Solve the unnecessary-.po-file-regeneration problem once and for all.
91110         * build-aux/bootstrap (download_po_files): New function, renamed from
91111         get_translations.  Now, downloads, but doesn't update LINGUAS.
91112         (update_po_files): New function.
91114         bootstrap: Ignore more.
91115         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
91116         uniwidth to e.g., lib/.gitignore.
91117         (slurp): Handle the sys_stat_.h -> sys mapping, too.
91119         * build-aux/bootstrap: New setting: vc_ignore.
91120         (insert_sorted_if_absent): Create $file if absent.
91121         Adapt to new, possibly empty, list: $vc_ignore.
91123         bootstrap: generate more ignorable names
91124         * build-aux/bootstrap (slurp): When generating ignorable names,
91125         also map .sin to .sed, .gperf to .c, and .y to .c.
91127 2007-09-03  Jim Meyering  <jim@meyering.net>
91129         * build-aux/git-version-gen: New file, from coreutils.  For details, see
91130         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
91132 2007-09-02  Bruno Haible  <bruno@clisp.org>
91134         Fix mis-recognition of 'mcs' on QNX 6.
91135         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
91136         output contains the string "Mono".
91137         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
91138         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
91140 2007-09-01  Bruno Haible  <bruno@clisp.org>
91142         Fix collision between uniwidth/* and linebreak modules.
91143         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
91144         u32_width): Remove declarations.
91145         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
91146         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
91147         streq3, streq2, streq1, streq0): Remove functions.
91148         (STREQ): Remove macro.
91149         (is_cjk_encoding): Remove function.
91150         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
91151         (uc_width, u8_width, u16_width, u32_width): Remove functions.
91152         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
91153         * NEWS: Document the change.
91155 2007-09-01  Bruno Haible  <bruno@clisp.org>
91157         * lib/streq.h: Add double-inclusion guard.
91159 2007-09-01  Karl Berry  <karl@gnu.org>
91161         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
91163 2007-08-28  Jim Meyering  <jim@meyering.net>
91165         Rename mreadlink_with_size to areadlink_with_size.
91166         * NEWS: Document the change.
91167         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
91168         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
91169         * lib/mreadlink.h: Rename this to...
91170         * lib/areadlink.h: ...this.
91171         * modules/mreadlink-with-size: Rename this to...
91172         * modules/areadlink-with-size: ...this.
91173         * lib/canonicalize.c: Reflect the renaming.
91174         * modules/canonicalize: Likewise.
91176 2007-08-26  Bruno Haible  <bruno@clisp.org>
91178         * gnulib-tool (func_import): When deciding which files to remove,
91179         consider also dangling symbolic links.
91180         Reported by Eric Blake.
91182 2007-08-26  Bruno Haible  <bruno@clisp.org>
91184         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
91186 2007-08-23  Simon Josefsson  <simon@josefsson.org>
91188         * lib/readline.c: Don't include getline.h, the prototype is now
91189         found in stdio.h.
91191 2007-08-23  Jim Meyering  <jim@meyering.net>
91193         Getdelim touchup.
91194         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
91195         around the funlockfile call, since funlockfile never sets errno.
91196         Don't set errno upon failed realloc.
91198 2007-08-22  Eric Blake  <ebb9@byu.net>
91200         Getline touchups.
91201         * lib/getdelim.c (getdelim): Revert regression that required *n to
91202         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
91203         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
91204         getdelim, rather than whether implementation is missing.
91205         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
91206         * lib/stdio_.h (getline): Also declare if replacement is
91207         required.
91208         * doc/functions/getdelim.texi: New file.
91209         * doc/functions/getline.texi: Likewise.
91210         * doc/gnulib.texi (Function Substitutes): Add new files.
91211         Reported by Bruno Haible.
91213 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
91215         * users.txt: Add Guile.
91217 2007-08-22  Eric Blake  <ebb9@byu.net>
91219         * tests/test-getdelim.c (main): Use remove, not unlink.
91220         * tests/test-getline.c (main): Likewise.
91222         Move getline and getdelim into stdio.h, per POSIX 200x.
91223         * modules/getline (Files): Remove getline.h.
91224         (Depends-on): Add stdio.
91225         (configure.ac): Add module indicator.
91226         * modules/getdelim (Files): Remove getdelim.h.
91227         (Depends-on): Add stdio.
91228         (configure.ac): Add module indicator.
91229         * modules/stdio (Makefile.am): Work with new indicators.
91230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
91231         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
91232         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
91233         * lib/getdelim.h: Delete.
91234         * lib/getline.h: Delete.
91235         * lib/stdio_.h (getdelim, getline): Declare.
91236         * modules/getdelim-tests: New module.
91237         * modules/getline-tests: Likewise.
91238         * tests/test-getdelim.c: New file.
91239         * tests/test-getline.c: Likewise.
91240         * NEWS: Document the change.
91241         * lib/getline.c: Update choice of header.
91242         * lib/csharpcomp.c: Likewise.
91243         * lib/getpass.c: Likewise.
91244         * lib/javacomp.c: Likewise.
91245         * lib/javaversion.c: Likewise.
91246         * lib/yesno.c: Likewise.
91247         * lib/getdelim.c: Likewise.
91248         (getdelim): Set errno on failure, and avoid memory leak.
91250 2007-08-19  Bruno Haible  <bruno@clisp.org>
91252         * modules/closein (Depends-on): Add freadahead.
91253         * lib/closein.c: Include freadahead.h.
91254         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
91255         is zero.
91257 2007-08-19  Bruno Haible  <bruno@clisp.org>
91259         * modules/freadahead-tests: New file.
91260         * tests/test-freadahead.sh: New file.
91261         * tests/test-freadahead.c: New file.
91263         * modules/freadahead: New file.
91264         * lib/freadahead.h: New file.
91265         * lib/freadahead.c: New file.
91266         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
91267         fbufmode, fpurge, freadable, fwritable.
91269 2007-08-19  Eric Blake  <ebb9@byu.net>
91271         Test yesno in combination with closein.
91272         * lib/yesno.c (yesno): Document use of stdin.
91273         * modules/yesno-tests (Files): New module.
91274         * tests/test-yesno.c (main): New file.
91275         * tests/test-yesno.sh: Likewise.
91277 2007-08-19  Bruno Haible  <bruno@clisp.org>
91279         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
91280         * lib/fseeko.c (rpl_fseeko): Likewise.
91281         * lib/fseterr.c (fseterr): Likewise.
91283 2007-08-19  Bruno Haible  <bruno@clisp.org>
91285         * tests/test-lseek.c (main): Disable a test for BeOS.
91286         * doc/functions/lseek.texi: Document the BeOS bug.
91288 2007-08-19  Bruno Haible  <bruno@clisp.org>
91289             Eric Blake  <ebb9@byu.net>
91291         * lib/lseek.c: Include <sys/stat.h>.
91292         (rpl_lseek): Add workaround code also for Unix platforms.
91293         Needed for BeOS.
91294         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
91295         * doc/functions/lseek.texi: Document BeOS definiency.
91297 2007-08-18  Bruno Haible  <bruno@clisp.org>
91299         * modules/fstrcmp-tests: New file.
91300         * tests/test-fstrcmp.c: New file.
91302 2007-08-18  Bruno Haible  <bruno@clisp.org>
91304         * modules/fstrcmp: New file, from GNU gettext with modifications.
91305         * lib/fstrcmp.h: New file, from GNU gettext.
91306         * lib/fstrcmp.c: New file, from GNU gettext.
91307         * MODULES.html.sh (String handling): Add fstrcmp.
91309 2007-08-18  Bruno Haible  <bruno@clisp.org>
91311         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
91312         'bool'.
91313         (diag, compareseq): Remove const from the ctxt argument.
91314         (USE_HEURISTIC): Undefine at the end.
91316 2007-08-18  Jim Meyering  <jim@meyering.net>
91318         New file: lib/idcache.h
91319         * NEWS: Mention the addition.
91320         * modules/idcache (Files): Add lib/idcache.h
91321         * lib/idcache.c: Include "idcache.h".
91322         Don't include <sys/types.h>.
91323         Add a FIXME comment.
91324         Move file-scoped "static" declarations to the top.
91325         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
91327 2007-08-17  Bruno Haible  <bruno@clisp.org>
91328         and Paul Eggert  <eggert@cs.ucla.edu>
91330         * MODULES.html.sh: Add diffseq.
91331         * modules/diffseq: New file.
91332         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
91333         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
91335 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
91337         Import changes from coreutils for bootstrap script.
91339         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
91341         * build-aux/bootstrap (slurp): Work even in environments where
91342         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
91343         current code does not slurp files whose names start with ".", and
91344         this looks like it might be a troublesome area.
91346         2007-07-11  Jim Meyering  <jim@meyering.net>
91348         If there's a GPL vN copyright comment, require that N == 3.
91350         2007-07-08  Jim Meyering  <jim@meyering.net>
91352         Run the coreutils-specific code only if tests/Makefile.am.in exists.
91353         * build-aux/bootstrap (mam_template): Move definition out of loop.
91355         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
91357         * build-aux/bootstrap (symlink_to_dir): Rename function from
91358         symlink_to_gnulib.  Add a directory parameter.  Update all
91359         callers.
91360         (cp_mark_as_generated): Also check for -- and link to -- files in
91361         gl/.
91363         2007-07-08  Jim Meyering  <jim@meyering.net>
91365         Adapt to deeper hierarchy in gnulib.
91366         * build-aux/bootstrap (symlink_to_dir): If the destination
91367         directory doesn't exist, create it. This is required at least for
91368         "lib/uniwidth/cjk.h".
91370         2007-05-15  Jim Meyering  <jim@meyering.net>
91372         * build-aux/bootstrap: Now that generated Makefile.am files
91373         are no longer under version control, they must be created at
91374         bootstrap time.
91376 2007-08-14  Ben Pfaff  <blp@gnu.org>
91378         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
91380 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
91382         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
91383         given the changes below.
91384         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
91385         even on hosts that have padding bits beyond the supported 64.
91387 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
91389         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
91390         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
91391         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
91392         depends on it.
91393         (xstrtol_error): Remove.
91394         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
91395         but with a different signature.
91396         (ATTRIBUTE_NORETURN, __attribute__): New macros.
91397         * lib/xstrtol-error.c: Include exitfail.h.
91398         (xstrtol_fatal): New function, with a different signature from the
91399         old xstrtol_error, so that the caller need not worry about passing
91400         in an exit status, or about storage management of the option argument.
91401         (xstrtol_error): Now a static function.  Redo signature to
91402         implement xstrtol_fatal.  Output the correct number of hyphens in
91403         front of the option so that the caller need not worry about
91404         storage management.
91405         (N_): New macro.
91406         (_): Remove; not used now.
91407         * modules/xstrtol: Depend on getopt.
91408         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
91409         of old STRTOL_FATAL_ERROR macro.
91410         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
91411         of test program.
91412         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
91413         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
91415 2007-08-08  Eric Blake  <ebb9@byu.net>
91417         * lib/xstrtol-error.c: Add missing include.
91419         Move xstrtol messages into gnulib domain, when --pobase is used.
91420         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
91421         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
91422         * modules/xstrtol (Files): Distribute new file.
91423         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
91424         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
91425         * tests/test-xstrtol.c: ...into new file.
91426         * tests/test-xstrtoul.c: Also test xstrtoul.
91427         * tests/test-xstrtoimax.c: Also test xstrtoimax.
91428         * tests/test-xstrtoumax.c: Also test xstrtoumax.
91429         * tests/test-xstrtol.sh: Drive the tests.
91430         * tests/test-xstrtoimax.sh: Likewise.
91431         * tests/test-xstrtoumax.sh: Likewise.
91432         * modules/xstrtol-tests: New module.
91433         * modules/xstrtoimax-tests: Likewise.
91434         * modules/xstrtoumax-tests: Likewise.
91436 2007-08-08  Jim Meyering  <jim@meyering.net>
91438         New function: mfile_name_concat.
91439         * lib/filenamecat.c (mfile_name_concat): New function, just like
91440         file_name_concat, but return NULL upon failure rather than exiting
91441         with a diagnostic.
91442         * lib/filenamecat.h: Declare it.
91444 2007-08-07  Bruno Haible  <bruno@clisp.org>
91446         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
91447         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
91448         warning from gcc.
91449         Reported by Eric Blake.
91451 2007-08-07  Simon Josefsson  <simon@josefsson.org>
91453         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
91454         * modules/crypto/arcfour (License): Likewise.
91455         * modules/crypto/des-tests (License): Likewise.
91456         * modules/crypto/gc-arctwo-tests (License): Likewise.
91457         * modules/crypto/gc-des-tests (License): Likewise.
91458         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
91459         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
91460         * modules/crypto/gc-md2-tests (License): Likewise.
91461         * modules/crypto/gc-md4-tests (License): Likewise.
91462         * modules/crypto/gc-md5-tests (License): Likewise.
91463         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
91464         * modules/crypto/gc-rijndael-tests (License): Likewise.
91465         * modules/crypto/gc-sha1-tests (License): Likewise.
91466         * modules/crypto/gc-tests (License): Likewise.
91467         * modules/crypto/hmac-md5 (License): Likewise.
91468         * modules/crypto/hmac-sha1 (License): Likewise.
91469         * modules/crypto/md2-tests (License): Likewise.
91470         * modules/crypto/md4-tests (License): Likewise.
91471         * modules/crypto/md5 (License): Likewise.
91472         * modules/crypto/rijndael (License): Likewise.
91473         * modules/crypto/sha1 (License): Likewise.
91474         * modules/memxor (License): Likewise.
91476 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
91477         and Bruno Haible  <bruno@clisp.org>
91479         * NEWS: Describe interface changes to human, xstrtol.
91480         * lib/human.h: Include <xstrtol.h>.
91481         (human_options): Return enum strtol_error, not int.  Remove
91482         bool arg; take int * instead.
91483         * lib/human.c: Don't include "gettext.h".
91484         (_): Remove; no longer used.
91485         Don't include <xstrtol.h>, since human.h does it.
91486         (human_options): Adjust to abovementioned interface changes.
91487         Do not report error to stderr; that's now the caller's
91488         responsibility.
91489         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
91490         interface change.
91491         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
91492         Str, Argument_type_string.  All uses changed.  Put " argument"
91493         in diagnostics to make them clearer.  Change wording of suffix
91494         message for clarity.
91495         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
91496         Argument_type_string.
91497         (STRTOL_FATAL_WARN): Remove; no longer used.
91498         * modules/human (Depends-on): Remove gettext-h.
91500 2007-08-06  Simon Josefsson  <simon@josefsson.org>
91502         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
91504 2007-07-31  Bruno Haible  <bruno@clisp.org>
91506         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
91507         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
91508         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
91510 2007-07-31  Bruno Haible  <bruno@clisp.org>
91512         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
91513         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
91515 2007-07-30  Bruno Haible  <bruno@clisp.org>
91517         * modules/base64 (License): Use the synonymous term "LGPLv2+".
91518         * modules/c-ctype (License): Likewise.
91519         * modules/c-strcase (License): Likewise.
91520         * modules/check-version (License): Likewise.
91521         * modules/iconv (License): Likewise.
91522         * modules/iconv_open (License): Likewise.
91523         * modules/read-file (License): Likewise.
91524         * modules/striconv (License): Likewise.
91525         * modules/strverscmp (License): Likewise.
91526         * modules/vasprintf (License): Likewise.
91527         * modules/crypto/des (License): Likewise.
91528         * modules/crypto/gc (License): Likewise.
91529         * modules/crypto/gc-arcfour (License): Likewise.
91530         * modules/crypto/gc-arctwo (License): Likewise.
91531         * modules/crypto/gc-des (License): Likewise.
91532         * modules/crypto/gc-hmac-md5 (License): Likewise.
91533         * modules/crypto/gc-hmac-sha1 (License): Likewise.
91534         * modules/crypto/gc-md2 (License): Likewise.
91535         * modules/crypto/gc-md4 (License): Likewise.
91536         * modules/crypto/gc-md5 (License): Likewise.
91537         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
91538         * modules/crypto/gc-random (License): Likewise.
91539         * modules/crypto/gc-rijndael (License): Likewise.
91540         * modules/crypto/gc-sha1 (License): Likewise.
91541         * modules/crypto/md2 (License): Likewise.
91542         * modules/crypto/md4 (License): Likewise.
91544 2007-07-30  Jim Meyering  <jim@meyering.net>
91546         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
91547         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
91548         it has valid stat data.  This bug would cause du not to count the
91549         sizes of inaccessible directories.
91550         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
91551         in <http://bugzilla.redhat.com/250077>.
91553 2007-07-25  Peter O'Gorman  <peter@pogma.com>
91554             Bruno Haible  <bruno@clisp.org>
91556         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
91557         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
91558         #include_next, gives a diagnostic about it, but reports no error in
91559         the exit code.
91560         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
91562 2007-07-24  Ben Pfaff  <blp@gnu.org>
91564         Improve name: "count-one-bits" is better than "popcount".
91565         * MODULES.html.sh: Update name.
91566         * lib/popcount.h: Renamed lib/count-one-bits.h.
91567         (popcount): Renamed count_one_bits.
91568         (popcountl): Renamed count_one_bits_l.
91569         (popcountll): Renamed count_one_bits_ll.
91570         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
91571         * modules/popcount: Renamed module/count-one-bits.
91572         * modules/popcount-tests: Renamed module/count-one-bits-tests.
91573         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
91575 2007-07-23  Ben Pfaff  <blp@gnu.org>
91577         * lib/popcount.h (popcount32): Reduce size of constants, to allow
91578         better code generation, and add U to large constants to avoid
91579         warnings, in non-GCC case.
91580         Suggested by Bruno Haible.
91582 2007-07-23  Ben Pfaff  <blp@gnu.org>
91584         * lib/popcount.h: Use verify_true instead of if...abort.
91585         * modules/popcount: Depend on verify module.
91586         Suggested by Jim Meyering.
91588 2007-07-23  Bruno Haible  <bruno@clisp.org>
91590         * gnulib-tool (func_import): Create a .cvsignore file also when the
91591         directory is not yet in CVS but the toplevel directory is. When
91592         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
91593         Reported by Karl Berry.
91595 2007-07-22  Ben Pfaff  <blp@gnu.org>
91597         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
91598         case.
91599         Suggested by Eric Blake.
91601 2007-07-22  Ben Pfaff  <blp@gnu.org>
91603         New module: popcount.
91604         * MODULES.html.sh: Add popcount.
91605         * modules/popcount: New file.
91606         * modules/popcount-tests: New file.
91607         * tests/test-popcount.c: New file.
91608         * lib/popcount.h: New file.
91609         * m4/popcount.m4: New file.
91611 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
91613         * build-aux/announce-gen: Update to GPLv3.
91615         * build-aux/config.guess: Update from config.
91617 2007-07-21  Bruno Haible  <bruno@clisp.org>
91619         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
91620         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
91622 2007-07-20  Jim Meyering  <jim@meyering.net>
91624         * check-module: Diagnose a self-dependency.
91626 2007-07-19  Bruno Haible  <bruno@clisp.org>
91628         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
91629         empty.
91630         Reported by Eric Blake.
91632 2007-07-18  Bruno Haible  <bruno@clisp.org>
91634         * gnulib-tool: New options --po-base, --po-domain.
91635         (func_usage): Document them.
91636         (pobase, po_domain): New variables.
91637         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
91638         DEFAULT_TEXT_DOMAIN.
91639         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
91640         (func_import): Consider pobase and po_domain. Create a po/ directory.
91641         (func_create_testdir): Set pobase and po_domain to empty.
91642         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
91643         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
91645 2007-07-18  Bruno Haible  <bruno@clisp.org>
91647         * gnulib-tool (func_get_automake_snippet): Synthesize also an
91648         EXTRA_DIST augmentation for files in build-aux/.
91650 2007-07-16  Bruno Haible  <bruno@clisp.org>
91652         * modules/lseek (License): Use the synonymous term "LGPLv2+".
91653         * modules/getdelim (License): Likewise.
91655 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91657         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
91658         * modules/d-type (License): Likewise.
91659         * modules/extensions (License): Likewise.
91660         * modules/fnmatch (License): Likewise.
91661         * modules/fseeko (License): Likewise.
91662         * modules/getaddrinfo (License): Likewise.
91663         * modules/getline (License): Likewise.
91664         * modules/getlogin_r (License): Likewise.
91665         * modules/getpass (License): Likewise.
91666         * modules/gettimeofday (License): Likewise.
91667         * modules/glob (License): Likewise.
91668         * modules/inet_ntop (License): Likewise.
91669         * modules/malloc (License): Likewise.
91670         * modules/malloca (License): Likewise.
91671         * modules/memmem (License): Likewise.
91672         * modules/mempcpy (License): Likewise.
91673         * modules/memset (License): Likewise.
91674         * modules/minmax (License): Likewise.
91675         * modules/mktime (License): Likewise.
91676         * modules/netinet_in (License): Likewise.
91677         * modules/pathmax (License): Likewise.
91678         * modules/poll (License): Likewise.
91679         * modules/regex (License): Likewise.
91680         * modules/snprintf (License): Likewise.
91681         * modules/stdbool (License): Likewise.
91682         * modules/stdint (License): Likewise.
91683         * modules/stdio (License): Likewise.
91684         * modules/strcase (License): Likewise.
91685         * modules/strcasestr (License): Likewise.
91686         * modules/strdup (License): Likewise.
91687         * modules/string (License): Likewise.
91688         * modules/strndup (License): Likewise.
91689         * modules/strnlen (License): Likewise.
91690         * modules/strpbrk (License): Likewise.
91691         * modules/strptime (License): Likewise.
91692         * modules/strsep (License): Likewise.
91693         * modules/sys_select (License): Likewise.
91694         * modules/sys_socket (License): Likewise.
91695         * modules/sys_stat (License): Likewise.
91696         * modules/sys_time (License): Likewise.
91697         * modules/time (License): Likewise.
91698         * modules/time_r (License): Likewise.
91699         * modules/timegm (License): Likewise.
91700         * modules/unistd (License): Likewise.
91701         * modules/vsnprintf (License): Likewise.
91702         * modules/wctype (License): Likewise.
91704 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91706         * modules/argz (License): LGPLv2+.
91708 2007-07-15  Karl Berry  <karl@gnu.org>
91710         * doc/gnulib.texi: revise node structure per new fdl.texi.
91712 2007-07-14  Bruno Haible  <bruno@clisp.org>
91714         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
91715         the output file.
91716         * lib/uniname/uninames.h: Regenerated.
91718 2007-07-14  Karl Berry  <karl@gnu.org>
91720         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
91721         omitting sectioning and index commands.
91723 2007-07-13  Bruno Haible  <bruno@clisp.org>
91725         New gnulib-tool option --more-symlinks.
91726         * gnulib-tool (func_usage): Document --more-symlinks.
91727         (do_copyrights): New variable.
91728         Recognize option --more-symlinks.
91729         (func_import): Don't add a copyright notice transform to
91730         sed_transform_lib_file if do_copyrights is empty.
91732 2007-07-13  Bruno Haible  <bruno@clisp.org>
91734         * lib/vasnprintf.c (decimal_point_char): Define also if
91735         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
91736         && !NEED_PRINTF_DIRECTIVE_A.
91737         Reported by Clemens Koller <clemens.koller@anagramm.de> via
91738         Gary V. Vaughan <gary@gnu.org>.
91740 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
91742         * lib/inttypes_.h: Undo previous change, since it was fixed
91743         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
91745 2007-07-13  Bruno Haible  <bruno@clisp.org>
91747         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
91748         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
91750 2007-07-13  Jim Meyering  <jim@meyering.net>
91752         df: Don't fail for Tru64's "file-on-file mount".
91753         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
91754         so we fall through and use statfs instead.  Details here:
91755         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
91756         Reported by Albert Chin.
91758 2007-07-13  Bruno Haible  <bruno@clisp.org>
91760         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
91761         * modules/configmake (License): Likewise.
91762         * modules/gettext (License): Likewise.
91763         * modules/gettext-h (License): Likewise.
91764         * modules/include_next (License): Likewise.
91765         * modules/link-warning (License): Likewise.
91766         * modules/localcharset (License): Likewise.
91767         * modules/localename (License): Likewise.
91768         * modules/lock (License): Likewise.
91769         * modules/relocatable-lib-lgpl (License): Likewise.
91770         * modules/size_max (License): Likewise.
91771         * modules/vasnprintf (License): Likewise.
91772         * modules/wchar (License): Likewise.
91773         * modules/xsize (License): Likewise.
91775 2007-07-13  Bruno Haible  <bruno@clisp.org>
91777         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
91778         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
91780 2007-07-12  Bruno Haible  <bruno@clisp.org>
91782         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
91783         in the modules files.
91785 2007-07-11  Karl Berry  <karl@gnu.org>
91787         * MODULES.html.sh (func_module): use
91788          sed -e '\|^'"${includefile}"'$|d'
91789          instead of /.../d, to avoid errors on $includefile's containing /.
91791 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
91793         * gnulib-tool (func_import): Avoid duplication of --avoid
91794         statements
91795         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
91796         names to `_' in variable names.
91798 2007-07-10  Eric Blake  <ebb9@byu.net>
91800         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
91801         * NEWS: Document this change.
91803 2007-07-08  Bruno Haible  <bruno@clisp.org>
91805         Update to Unicode 5.0.
91806         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
91807         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
91808         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
91809         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
91810         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
91811         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
91812         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
91813         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
91814         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
91815         U+10A3F, U+1D242..U+1D244.
91816         (nonspacing_table_ind): Update.
91817         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
91818         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
91820 2007-07-08  Bruno Haible  <bruno@clisp.org>
91822         Update to Unicode 5.0.
91823         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
91824         code transform. Extend the name index field of unicode_name_to_code and
91825         unicode_code_to_name from 16 to 24 bits.
91826         * lib/uniname/uniname.c (unicode_character_name,
91827         unicode_name_character): Add the range 0x12xxx to the code transform.
91828         * lib/uniname/uninames.h: Regenerated.
91829         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
91831 2007-07-07  Bruno Haible  <bruno@clisp.org>
91833         * modules/wcwidth-tests: New file.
91834         * tests/test-wcwidth.c: New file.
91836         Work around MacOS X wcwidth() bug.
91837         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
91838         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
91839         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
91840         original wcwidth in non-UTF-8 locales.
91841         * modules/wcwidth (Depends-on): Add localcharset, streq,
91842         uniwidth/width.
91843         * doc/functions/wcwidth.texi: Update.
91845 2007-07-07  Bruno Haible  <bruno@clisp.org>
91847         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
91848         (wcwidth): New declaration.
91849         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
91850         macros.
91851         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
91852         here. Prepare for creating <wchar.h> unconditionally.
91853         * modules/wchar (Depends-on): Add link-warning.
91854         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
91855         REPLACE_WCWIDTH, and GL_LINK_WARNING.
91856         * lib/wcwidth.h: Remove file.
91857         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
91858         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
91859         * modules/wcwidth (Files): Remove lib/wcwidth.h.
91860         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
91861         (Include): Replace wcwidth.h with <wchar.h>.
91862         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
91863         * lib/mbchar.h: Don't include wcwidth.h.
91864         * lib/mbswidth.c: Likewise.
91865         * NEWS: Mention the change.
91867 2007-07-07  Bruno Haible  <bruno@clisp.org>
91869         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
91870         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
91871         definition with an external declaration.
91872         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
91873         defined as a function. Remove AC_C_INLINE requirement.
91874         * modules/wcwidth (Files): Add lib/wcwidth.c.
91875         (Makefile.am): Remove redundant statement.
91877 2007-07-07  Bruno Haible  <bruno@clisp.org>
91879         * MODULES.html.sh (Unicode string functions): Add the new modules.
91881         * tests/uniwidth/test-u32-strwidth.c: New file.
91882         * modules/uniwidth/u32-strwidth-tests: New file.
91884         * lib/uniwidth/u32-strwidth.c: New file.
91885         * modules/uniwidth/u32-strwidth: New file.
91887         * tests/uniwidth/test-u16-strwidth.c: New file.
91888         * modules/uniwidth/u16-strwidth-tests: New file.
91890         * lib/uniwidth/u16-strwidth.c: New file.
91891         * modules/uniwidth/u16-strwidth: New file.
91893         * tests/uniwidth/test-u8-strwidth.c: New file.
91894         * modules/uniwidth/u8-strwidth-tests: New file.
91896         * lib/uniwidth/u8-strwidth.c: New file.
91897         * modules/uniwidth/u8-strwidth: New file.
91899         * tests/uniwidth/test-u32-width.c: New file.
91900         * modules/uniwidth/u32-width-tests: New file.
91902         * lib/uniwidth/u32-width.c: New file.
91903         * modules/uniwidth/u32-width: New file.
91905         * tests/uniwidth/test-u16-width.c: New file.
91906         * modules/uniwidth/u16-width-tests: New file.
91908         * lib/uniwidth/u16-width.c: New file.
91909         * modules/uniwidth/u16-width: New file.
91911         * tests/uniwidth/test-u8-width.c: New file.
91912         * modules/uniwidth/u8-width-tests: New file.
91914         * lib/uniwidth/u8-width.c: New file.
91915         * modules/uniwidth/u8-width: New file.
91917         * tests/uniwidth/test-uc_width.c: New file.
91918         * modules/uniwidth/width-tests: New file.
91920         * lib/uniwidth/width.c: New file, from GNU libiconv.
91921         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
91922         * modules/uniwidth/width: New file.
91924         * lib/uniwidth.h: New file, from GNU libiconv.
91925         * modules/uniwidth/base: New file.
91927 2007-07-07  Bruno Haible  <bruno@clisp.org>
91929         * lib/uniname.h: New file, from GNU gettext.
91930         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
91931         * lib/uniname/uninames.h: New file, from GNU gettext.
91932         * lib/uniname/uniname.c: New file, from GNU gettext.
91933         * tests/uniname/test-uninames.sh: New file.
91934         * tests/uniname/test-uninames.c: New file, from GNU gettext.
91935         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
91936         * modules/uniname/base: New file.
91937         * modules/uniname/uniname: New file.
91938         * modules/uniname/uniname-tests: New file.
91939         * MODULES.html.sh (Unicode string functions): Add the new modules.
91941 2007-07-06  Bruno Haible  <bruno@clisp.org>
91943         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
91945 2007-07-06  Bruno Haible  <bruno@clisp.org>
91947         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
91948         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
91949         includes <cygwin/sys_time.h> which includes <sys/select.h> which
91950         include <sys/time.h>.
91951         Reported by Eric Blake.
91953 2007-07-06  Eric Blake  <ebb9@byu.net>
91955         Fix testing canonicalize on cygwin.
91956         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
91957         Revert patch from 2007-06-19.
91958         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
91959         canonicalize module is also in use.
91960         * tests/test-canonicalize.c: New file.
91961         * tests/test-canonicalize.sh: Likewise.
91962         * modules/canonicalize-tests: Likewise.
91964 2007-07-06  Jim Meyering  <jim@meyering.net>
91966         * lib/getugroups.c (getugroups): Detect getgrent failure.
91967         Adjust comment to reflect reality: this function may return -1.
91969 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
91971         * build-aux/bootstrap (TP_URL,get_translations): Update to use
91972         the new TP address.
91973         (usage): Fix typo
91974         (gnulib_mk): New variable.
91976 2007-07-05  Jim Meyering  <jim@meyering.net>
91978         Don't let endgrent clobber errno, no matter how improbable.
91979         * lib/getugroups.c (getugroups): Save and restore errno around
91980         endgrent call.
91982         Close the group DB even when failing with 2^31 or more members.
91983         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
91985 2007-07-04  Jim Meyering  <jim@meyering.net>
91987         * lib/getugroups.h: New file.
91988         * lib/getugroups.c: Include "getugroups.h".
91989         Remove uses of "register" keyword.
91990         Move local variable, "cp", down into scope where used.
91991         Give "username" parameter the "const" attribute.
91992         * modules/getugroups (Files): Add lib/getugroups.h
91994 2007-07-04  Karl Berry  <karl@gnu.org>
91996         * MODULES.html.sh (func_all_modules): Complete rename of
91997         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
91999 2007-07-02  Bruno Haible  <bruno@clisp.org>
92001         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
92002         mode, when inttypes.h comes from gnulib.
92003         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
92005 2007-07-02  Simon Josefsson  <simon@josefsson.org>
92007         * NEWS: Mention lgpl module name change.
92009         * modules/lgpl-2.1: Renamed from lgpl.
92011         * NEWS: Mention gpl module name change.
92013         * modules/gpl-3.0: New file, based on gpl-2.0.
92015         * modules/gpl-2.0: Renamed from gpl.
92017         * modules/gpl: Fix filename, doc/gpl.texi is now found at
92018         doc/gpl-2.0.texi.
92020 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
92022         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
92023         #define __STDC_LIMIT_MACROS temporarily while including
92024         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
92025         Problem reported by Joel E. Denny in
92026         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
92028 2007-07-01  Bruno Haible  <bruno@clisp.org>
92030         * lib/unistdio.h: New file.
92031         * lib/unistdio/u-asnprintf.h: New file.
92032         * lib/unistdio/u-asprintf.h: New file.
92033         * lib/unistdio/u-printf-args.c: New file.
92034         * lib/unistdio/u-printf-args.h: New file.
92035         * lib/unistdio/u-printf-parse.h: New file.
92036         * lib/unistdio/u-snprintf.h: New file.
92037         * lib/unistdio/u-sprintf.h: New file.
92038         * lib/unistdio/u-vasprintf.h: New file.
92039         * lib/unistdio/u-vsnprintf.h: New file.
92040         * lib/unistdio/u-vsprintf.h: New file.
92041         * lib/unistdio/ulc-asnprintf.c: New file.
92042         * lib/unistdio/ulc-asprintf.c: New file.
92043         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
92044         * lib/unistdio/ulc-printf-parse.c: New file.
92045         * lib/unistdio/ulc-snprintf.c: New file.
92046         * lib/unistdio/ulc-sprintf.c: New file.
92047         * lib/unistdio/ulc-vasnprintf.c: New file.
92048         * lib/unistdio/ulc-vasprintf.c: New file.
92049         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
92050         * lib/unistdio/ulc-vsnprintf.c: New file.
92051         * lib/unistdio/ulc-vsprintf.c: New file.
92052         * lib/unistdio/u8-asnprintf.c: New file.
92053         * lib/unistdio/u8-asprintf.c: New file.
92054         * lib/unistdio/u8-printf-parse.c: New file.
92055         * lib/unistdio/u8-snprintf.c: New file.
92056         * lib/unistdio/u8-sprintf.c: New file.
92057         * lib/unistdio/u8-vasnprintf.c: New file.
92058         * lib/unistdio/u8-vasprintf.c: New file.
92059         * lib/unistdio/u8-vsnprintf.c: New file.
92060         * lib/unistdio/u8-vsprintf.c: New file.
92061         * lib/unistdio/u8-u8-asnprintf.c: New file.
92062         * lib/unistdio/u8-u8-asprintf.c: New file.
92063         * lib/unistdio/u8-u8-snprintf.c: New file.
92064         * lib/unistdio/u8-u8-sprintf.c: New file.
92065         * lib/unistdio/u8-u8-vasnprintf.c: New file.
92066         * lib/unistdio/u8-u8-vasprintf.c: New file.
92067         * lib/unistdio/u8-u8-vsnprintf.c: New file.
92068         * lib/unistdio/u8-u8-vsprintf.c: New file.
92069         * lib/unistdio/u16-asnprintf.c: New file.
92070         * lib/unistdio/u16-asprintf.c: New file.
92071         * lib/unistdio/u16-printf-parse.c: New file.
92072         * lib/unistdio/u16-snprintf.c: New file.
92073         * lib/unistdio/u16-sprintf.c: New file.
92074         * lib/unistdio/u16-vasnprintf.c: New file.
92075         * lib/unistdio/u16-vasprintf.c: New file.
92076         * lib/unistdio/u16-vsnprintf.c: New file.
92077         * lib/unistdio/u16-vsprintf.c: New file.
92078         * lib/unistdio/u16-u16-asnprintf.c: New file.
92079         * lib/unistdio/u16-u16-asprintf.c: New file.
92080         * lib/unistdio/u16-u16-snprintf.c: New file.
92081         * lib/unistdio/u16-u16-sprintf.c: New file.
92082         * lib/unistdio/u16-u16-vasnprintf.c: New file.
92083         * lib/unistdio/u16-u16-vasprintf.c: New file.
92084         * lib/unistdio/u16-u16-vsnprintf.c: New file.
92085         * lib/unistdio/u16-u16-vsprintf.c: New file.
92086         * lib/unistdio/u32-asnprintf.c: New file.
92087         * lib/unistdio/u32-asprintf.c: New file.
92088         * lib/unistdio/u32-printf-parse.c: New file.
92089         * lib/unistdio/u32-snprintf.c: New file.
92090         * lib/unistdio/u32-sprintf.c: New file.
92091         * lib/unistdio/u32-vasnprintf.c: New file.
92092         * lib/unistdio/u32-vasprintf.c: New file.
92093         * lib/unistdio/u32-vsnprintf.c: New file.
92094         * lib/unistdio/u32-vsprintf.c: New file.
92095         * lib/unistdio/u32-u32-asnprintf.c: New file.
92096         * lib/unistdio/u32-u32-asprintf.c: New file.
92097         * lib/unistdio/u32-u32-snprintf.c: New file.
92098         * lib/unistdio/u32-u32-sprintf.c: New file.
92099         * lib/unistdio/u32-u32-vasnprintf.c: New file.
92100         * lib/unistdio/u32-u32-vasprintf.c: New file.
92101         * lib/unistdio/u32-u32-vsnprintf.c: New file.
92102         * lib/unistdio/u32-u32-vsprintf.c: New file.
92103         * tests/unistdio/test-ulc-asnprintf1.c: New file.
92104         * tests/unistdio/test-ulc-asnprintf1.h: New file.
92105         * tests/unistdio/test-ulc-printf1.h: New file.
92106         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
92107         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
92108         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
92109         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
92110         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
92111         * tests/unistdio/test-ulc-vasprintf1.c: New file.
92112         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
92113         * tests/unistdio/test-ulc-vsprintf1.c: New file.
92114         * tests/unistdio/test-u8-asnprintf1.c: New file.
92115         * tests/unistdio/test-u8-asnprintf1.h: New file.
92116         * tests/unistdio/test-u8-printf1.h: New file.
92117         * tests/unistdio/test-u8-vasnprintf1.c: New file.
92118         * tests/unistdio/test-u8-vasnprintf2.c: New file.
92119         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
92120         * tests/unistdio/test-u8-vasnprintf3.c: New file.
92121         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
92122         * tests/unistdio/test-u8-vasprintf1.c: New file.
92123         * tests/unistdio/test-u8-vsnprintf1.c: New file.
92124         * tests/unistdio/test-u8-vsprintf1.c: New file.
92125         * tests/unistdio/test-u16-asnprintf1.c: New file.
92126         * tests/unistdio/test-u16-asnprintf1.h: New file.
92127         * tests/unistdio/test-u16-printf1.h: New file.
92128         * tests/unistdio/test-u16-vasnprintf1.c: New file.
92129         * tests/unistdio/test-u16-vasnprintf2.c: New file.
92130         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
92131         * tests/unistdio/test-u16-vasnprintf3.c: New file.
92132         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
92133         * tests/unistdio/test-u16-vasprintf1.c: New file.
92134         * tests/unistdio/test-u16-vsnprintf1.c: New file.
92135         * tests/unistdio/test-u16-vsprintf1.c: New file.
92136         * tests/unistdio/test-u32-asnprintf1.c: New file.
92137         * tests/unistdio/test-u32-asnprintf1.h: New file.
92138         * tests/unistdio/test-u32-printf1.h: New file.
92139         * tests/unistdio/test-u32-vasnprintf1.c: New file.
92140         * tests/unistdio/test-u32-vasnprintf2.c: New file.
92141         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
92142         * tests/unistdio/test-u32-vasnprintf3.c: New file.
92143         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
92144         * tests/unistdio/test-u32-vasprintf1.c: New file.
92145         * tests/unistdio/test-u32-vsnprintf1.c: New file.
92146         * tests/unistdio/test-u32-vsprintf1.c: New file.
92147         * modules/unistdio/base: New file.
92148         * modules/unistdio/u-printf-args: New file.
92149         * modules/unistdio/ulc-asnprintf: New file.
92150         * modules/unistdio/ulc-asprintf: New file.
92151         * modules/unistdio/ulc-fprintf: New file.
92152         * modules/unistdio/ulc-printf-parse: New file.
92153         * modules/unistdio/ulc-snprintf: New file.
92154         * modules/unistdio/ulc-sprintf: New file.
92155         * modules/unistdio/ulc-vasnprintf: New file.
92156         * modules/unistdio/ulc-vasprintf: New file.
92157         * modules/unistdio/ulc-vfprintf: New file.
92158         * modules/unistdio/ulc-vsnprintf: New file.
92159         * modules/unistdio/ulc-vsprintf: New file.
92160         * modules/unistdio/u8-asnprintf: New file.
92161         * modules/unistdio/u8-asprintf: New file.
92162         * modules/unistdio/u8-printf-parse: New file.
92163         * modules/unistdio/u8-snprintf: New file.
92164         * modules/unistdio/u8-sprintf: New file.
92165         * modules/unistdio/u8-vasnprintf: New file.
92166         * modules/unistdio/u8-vasprintf: New file.
92167         * modules/unistdio/u8-vsnprintf: New file.
92168         * modules/unistdio/u8-vsprintf: New file.
92169         * modules/unistdio/u8-u8-asnprintf: New file.
92170         * modules/unistdio/u8-u8-asprintf: New file.
92171         * modules/unistdio/u8-u8-snprintf: New file.
92172         * modules/unistdio/u8-u8-sprintf: New file.
92173         * modules/unistdio/u8-u8-vasnprintf: New file.
92174         * modules/unistdio/u8-u8-vasprintf: New file.
92175         * modules/unistdio/u8-u8-vsnprintf: New file.
92176         * modules/unistdio/u8-u8-vsprintf: New file.
92177         * modules/unistdio/u16-asnprintf: New file.
92178         * modules/unistdio/u16-asprintf: New file.
92179         * modules/unistdio/u16-printf-parse: New file.
92180         * modules/unistdio/u16-snprintf: New file.
92181         * modules/unistdio/u16-sprintf: New file.
92182         * modules/unistdio/u16-vasnprintf: New file.
92183         * modules/unistdio/u16-vasprintf: New file.
92184         * modules/unistdio/u16-vsnprintf: New file.
92185         * modules/unistdio/u16-vsprintf: New file.
92186         * modules/unistdio/u16-u16-asnprintf: New file.
92187         * modules/unistdio/u16-u16-asprintf: New file.
92188         * modules/unistdio/u16-u16-snprintf: New file.
92189         * modules/unistdio/u16-u16-sprintf: New file.
92190         * modules/unistdio/u16-u16-vasnprintf: New file.
92191         * modules/unistdio/u16-u16-vasprintf: New file.
92192         * modules/unistdio/u16-u16-vsnprintf: New file.
92193         * modules/unistdio/u16-u16-vsprintf: New file.
92194         * modules/unistdio/u32-asnprintf: New file.
92195         * modules/unistdio/u32-asprintf: New file.
92196         * modules/unistdio/u32-printf-parse: New file.
92197         * modules/unistdio/u32-snprintf: New file.
92198         * modules/unistdio/u32-sprintf: New file.
92199         * modules/unistdio/u32-vasnprintf: New file.
92200         * modules/unistdio/u32-vasprintf: New file.
92201         * modules/unistdio/u32-vsnprintf: New file.
92202         * modules/unistdio/u32-vsprintf: New file.
92203         * modules/unistdio/u32-u32-asnprintf: New file.
92204         * modules/unistdio/u32-u32-asprintf: New file.
92205         * modules/unistdio/u32-u32-snprintf: New file.
92206         * modules/unistdio/u32-u32-sprintf: New file.
92207         * modules/unistdio/u32-u32-vasnprintf: New file.
92208         * modules/unistdio/u32-u32-vasprintf: New file.
92209         * modules/unistdio/u32-u32-vsnprintf: New file.
92210         * modules/unistdio/u32-u32-vsprintf: New file.
92211         * modules/unistdio/ulc-asnprintf-tests: New file.
92212         * modules/unistdio/ulc-vasnprintf-tests: New file.
92213         * modules/unistdio/ulc-vasprintf-tests: New file.
92214         * modules/unistdio/ulc-vsnprintf-tests: New file.
92215         * modules/unistdio/ulc-vsprintf-tests: New file.
92216         * modules/unistdio/u8-asnprintf-tests: New file.
92217         * modules/unistdio/u8-vasnprintf-tests: New file.
92218         * modules/unistdio/u8-vasprintf-tests: New file.
92219         * modules/unistdio/u8-vsnprintf-tests: New file.
92220         * modules/unistdio/u8-vsprintf-tests: New file.
92221         * modules/unistdio/u16-asnprintf-tests: New file.
92222         * modules/unistdio/u16-vasnprintf-tests: New file.
92223         * modules/unistdio/u16-vasprintf-tests: New file.
92224         * modules/unistdio/u16-vsnprintf-tests: New file.
92225         * modules/unistdio/u16-vsprintf-tests: New file.
92226         * modules/unistdio/u32-asnprintf-tests: New file.
92227         * modules/unistdio/u32-vasnprintf-tests: New file.
92228         * modules/unistdio/u32-vasprintf-tests: New file.
92229         * modules/unistdio/u32-vsnprintf-tests: New file.
92230         * modules/unistdio/u32-vsprintf-tests: New file.
92231         * MODULES.html.sh (Unicode string functions): Add the new modules.
92233 2007-07-01  Bruno Haible  <bruno@clisp.org>
92235         * lib/sprintf.c (sprintf): Limit the available length estimation,
92236         to avoid address wraparound.
92237         * lib/vsprintf.c (vsprintf): Likewise.
92238         * modules/sprintf-posix (Dependencies): Add stdint.
92239         * modules/vsprintf-posix (Dependencies): Likewise.
92241 2007-07-01  Bruno Haible  <bruno@clisp.org>
92243         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
92244         Windows PATH as well. Conservative double-quoting. Comments.
92246 2007-07-01  Bruno Haible  <bruno@clisp.org>
92247             Eric Blake  <ebb9@byu.net>
92248             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92250         * gnulib-tool (self_abspathname): Fix algorithm to cope with
92251         empty components in $PATH, denoting '.'.
92253 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92255         * gnulib-tool: Fix indentation.
92256         (func_create_megatestdir): Likewise.
92257         Report by Bruno Haible.
92259 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92261         Sync from Automake.
92262         * build-aux/gnupload: Fix shell portability issues with for loops.
92263         Report by Karl Berry.
92265 2007-06-29  Simon Josefsson  <simon@josefsson.org>
92267         * build-aux/maint.mk (POURL): Use translationproject.org.
92269 2007-06-27  Simon Josefsson  <simon@josefsson.org>
92270             Bruno Haible  <bruno@clisp.org>
92272         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
92273         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
92274         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
92275         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
92276         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
92278 2007-06-27  Bruno Haible  <bruno@clisp.org>
92280         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
92281         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
92283 2007-06-26  Karl Berry  <karl@gnu.org>
92285         * MODULES.html.sh: remove xreadlink-with-size.
92287 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
92289         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
92290         method that I hope also handles the double-include problem noted
92291         by Bruno Haible in
92292         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
92294 2007-06-23  Bruno Haible  <bruno@clisp.org>
92296         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
92297         Don't let the 'mostlyclean' target fail if the last subdirectory could
92298         not be removed.
92299         Reported by Karl Berry.
92301 2007-06-23  Bruno Haible  <bruno@clisp.org>
92303         * gnulib-tool (echo): Add a speedier workaround for ksh.
92304         * tests/test-echo.sh: Likewise.
92306 2007-06-23  Bruno Haible  <bruno@clisp.org>
92308         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
92309         * tests/test-echo.sh: Likewise.
92311 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92313         * gnulib-tool (IFS): Initialize early, so we don't set it to
92314         empty later.
92315         (self_abspathname): Rewrite algorithm to set it, reindent.
92316         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
92317         (func_create_megatestdir): Merge some sed scripts.
92319 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
92321         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
92322         exposed by Sun Studio 11 cc on Solaris 8.
92324 2007-06-22  Bruno Haible  <bruno@clisp.org>
92326         * gnulib-tool (echo): Ensure the echo primitive does not interpret
92327         backslashes.
92328         * tests/test-echo.sh: New file.
92330 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92332         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
92333         simplify `sed_replace_build_aux' scripts, they are portable but
92334         echoing them with `echo' is not.
92335         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
92337 2007-06-21  Karl Berry  <karl@gnu.org>
92339         * config/srclist.txt: guess we can't handle the licenses via
92340         srclist at the moment.
92342 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
92344         * MODULES.html.sh: Add include_next.
92345         * modules/include_next: New file.
92347 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
92349         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
92350         INCLUDE_NEXT.
92351         (gl_CHECK_NEXT_HEADERS): New macro.
92352         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
92353         the obsolescent gl_ABSOLUTE_HEADER.
92354         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
92355         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
92356         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
92357         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
92358         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
92359         * m4/math_h.m4 (gl_MATH_H): Likewise.
92360         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
92361         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
92362         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
92363         * m4/stdint.m4 (gl_STDINT_H): Likewise.
92364         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
92365         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
92366         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
92367         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
92368         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
92369         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
92370         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
92371         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
92372         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
92373         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
92374         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
92375         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
92376         * m4/inttypes.m4 (gl_INTTYPES_H): Define
92377         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
92378         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
92379         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
92380         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
92381         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
92382         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
92383         * lib/float_.h: Likewise.
92384         * lib/inttypes_.h: Likewise.
92385         * lib/math_.h: Likewise.
92386         * lib/search_.h: Likewise.
92387         * lib/signal_.h: Likewise.
92388         * lib/stdint_.h: Likewise.
92389         * lib/stdio_.h: Likewise.
92390         * lib/stdlib_.h: Likewise.
92391         * lib/string_.h: Likewise.
92392         * lib/sys_stat_.h: Likewise.
92393         * lib/sys_time_.h: Likewise.
92394         * lib/time_.h: Likewise.
92395         * lib/unistd_.h: Likewise.
92396         * lib/wchar_.h: Likewise.
92397         * lib/wctype_.h: Likewise.
92398         * lib/dirent_.h: Likewise.
92399         * lib/iconv_.h: Likewise.
92400         * lib/locale_.h: Likewise.
92401         * lib/netinet_in_.h: Likewise.
92402         * lib/sys_select_.h: Likewise.
92403         * lib/sys_socket_.h: Likewise.
92404         * lib/sysexits_.h: Likewise.
92405         * modules/fcntl (Depends-on): Depend on include_next, not
92406         absolute_header.
92407         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
92408         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
92409         * modules/fchdir: Likewise.
92410         * modules/float: Likewise.
92411         * modules/iconv_open: Likewise.
92412         * modules/inttypes: Likewise.
92413         * modules/locale: Likewise.
92414         * modules/math: Likewise.
92415         * modules/netinet_in: Likewise.
92416         * modules/search: Likewise.
92417         * modules/signal: Likewise.
92418         * modules/stdint: Likewise.
92419         * modules/stdio: Likewise.
92420         * modules/stdlib: Likewise.
92421         * modules/string: Likewise.
92422         * modules/sys_select: Likewise.
92423         * modules/sys_socket: Likewise.
92424         * modules/sys_stat: Likewise.
92425         * modules/sys_time: Likewise.
92426         * modules/sysexits: Likewise.
92427         * modules/time: Likewise.
92428         * modules/unistd: Likewise.
92429         * modules/wchar: Likewise.
92430         * modules/wctype: Likewise.
92431         * modules/sys_stat: Change maintainer to "all".
92432         * modules/unistd: Likewise.
92434 2007-06-20  Karl Berry  <karl@gnu.org>
92436         * config/srclist.txt: track www changes in license files.
92438 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
92440         * build-aux/bootstrap: Remove stray dot.
92441         Make sure build_aux settings are honored when linking
92442         gnulib_extra_files.
92444 2007-06-19  Eric Blake  <ebb9@byu.net>
92446         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
92447         Allow compilation on cygwin.
92449 2007-06-19  Jim Meyering  <jim@meyering.net>
92451         xreadlink-with-size: Remove module.  No longer used.
92452         Ex-callers now use xreadlink or mreadlink-with-size.
92453         * modules/xreadlink-with-size: Remove module.
92454         * lib/xreadlink-with-size.c: Remove file.
92455         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
92456         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
92457         just before the function definition *is* accurate.
92459         Eliminate one way canonicalize_filename_mode could exit.
92460         * lib/canonicalize.c (canonicalize_filename_mode):
92461         Use mreadlink_with_size, not xreadlink_with_size.
92463 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
92465         Detect porting problems to FreeBSD/arm, which has time_t wider than
92466         long int.  Original problem reported for GNU diff by Xin Li in
92467         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
92468         * modules/getdate (Depends-on): Add intprops, verify.
92469         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
92470         is an integer type no wider than long int.
92472 2007-06-18  Jim Meyering  <jim@meyering.net>
92474         New module: mreadlink-with-size.
92475         * MODULES.html.sh: Add mreadlink-with-size.
92476         * modules/mreadlink-with-size: New module
92477         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
92478         not xreadlink-with-size.
92479         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
92481 2007-06-16  Bruno Haible  <bruno@clisp.org>
92483         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
92484         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
92485         Reported by Gary V. Vaughan <gary@gnu.org>.
92487 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
92489         Revamp lchown so that it lives in unistd.h where it belongs.
92490         * lib/lchown.h: Remove.
92491         * lib/dirchownmod.c: Don't include lib/lchown.h.
92492         * lib/fchownat.c: Likewise.
92493         * lib/openat.c: Likewise.
92494         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
92495         does not follow symlinks.
92496         (EOPNOTSUPP): Define if not defined.
92497         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
92498         is defined to 0.
92499         (lchown): New decl.
92500         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
92501         Do not check for lchown decl.
92502         Set REPLACE_LCHOWN.
92503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
92504         REPLACE_LCHOWN.
92505         * modules/chown: Make it clear it follows symlinks.
92506         * modules/lchown: Make it clear it doesn't follow symlinks.
92507         (Files): Remove lib/lchown.h
92508         (Depends-on): Add unistd.
92509         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
92510         (Include): Include <unistd.h>, not "lchown.h".
92511         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
92512         REPLACE_LCHOWN.
92514 2007-06-15  Jim Meyering  <jim@meyering.net>
92516         Change license (GPL to LGPL) of fsusage and dependents.
92517         * modules/fsusage (License): Change to LGPL.
92518         * modules/full-read (License): Likewise.
92519         * modules/full-write (License): Likewise.
92520         * modules/safe-read (License): Likewise.
92521         * modules/safe-write (License): Likewise.
92523 2007-06-14  Ben Pfaff  <blp@gnu.org>
92525         Missing part of allocsa -> malloca transition.
92526         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
92527         gl_MALLOCA.
92529 2007-06-12  Bruno Haible  <bruno@clisp.org>
92531         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
92532         to ia64, x86_64, i386.
92533         Reported by Eric Blake.
92535 2007-06-12  Bruno Haible  <bruno@clisp.org>
92537         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
92538         cross-compiling to x86_64.
92540 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
92542         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
92543         glitch reported by Ralf Wildenhues in
92544         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
92546         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
92547         Vin Shelton.
92549 2007-06-11  Bruno Haible  <bruno@clisp.org>
92551         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
92552         replacement string.
92553         Reported by Eric Blake.
92555 2007-06-10  Bruno Haible  <bruno@clisp.org>
92557         Prepare vasnprintf code for use with Unicode strings.
92558         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
92559         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
92560         TYPE_U32_STRING.
92561         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
92562         a_u32_string variants.
92563         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
92564         * lib/printf-args.c: Don't include config.h and the specification
92565         header if PRINTF_FETCHARGS is already defined.
92566         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
92567         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
92568         TYPE_U16_STRING, TYPE_U32_STRING.
92569         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
92570         u16_directive, u16_directives, u32_directive, u32_directives): New
92571         types.
92572         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
92573         New declarations.
92574         * lib/printf-parse.c: Don't include config.h and the specification
92575         header if PRINTF_PARSE is already defined. Eliminate the set of
92576         parameters for WIDE_CHAR_VERSION; the user of this file must provide
92577         them now. Include c-ctype.h.
92578         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
92579         directive and CHAR_T_ONLY_ASCII.
92580         * lib/vasnprintf.c: Don't include config.h and the specification header
92581         if VASNPRINTF is already defined.
92582         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
92583         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
92584         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
92585         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
92586         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
92587         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
92588         code accordingly.
92589         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
92590         pad_ourselves also in this case, with the 'c' and 's' directives, and
92591         with a different notion of "width".
92592         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
92594 2007-06-10  Bruno Haible  <bruno@clisp.org>
92596         * modules/unistr/u32-mbsnlen: New file.
92597         * lib/unistr/u32-mbsnlen.c: New file.
92599         * modules/unistr/u16-mbsnlen: New file.
92600         * lib/unistr/u16-mbsnlen.c: New file.
92602         * modules/unistr/u8-mbsnlen: New file.
92603         * lib/unistr/u8-mbsnlen.c: New file.
92605         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
92606         declarations.
92608 2007-06-10  Bruno Haible  <bruno@clisp.org>
92610         * lib/string_.h (mbsnlen): New declaration.
92611         * lib/mbsnlen.c: New file.
92612         * m4/mbsnlen.m4: New file.
92613         * modules/mbsnlen: New file.
92614         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
92615         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
92616         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
92618 2007-06-10  Bruno Haible  <bruno@clisp.org>
92620         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
92622 2007-06-10  Bruno Haible  <bruno@clisp.org>
92624         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
92625         * lib/mbuiter.h: Likewise.
92627 2007-06-10  Bruno Haible  <bruno@clisp.org>
92629         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
92630         declaration.
92632 2007-06-10  Karl Berry  <karl@gnu.org>
92634         * config/srclist.txt: remove gettext entries, Bruno prefers
92635         to update individually.
92637 2007-06-10  Bruno Haible  <bruno@clisp.org>
92639         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
92640         'maxlen'. Ensure only length + width bytes are allocated, not
92641         length + 1 + width.
92643 2007-06-09  Bruno Haible  <bruno@clisp.org>
92645         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
92646         (CHAR_T): Remove macro.
92647         (VASNPRINTF): Update.
92649 2007-06-09  Bruno Haible  <bruno@clisp.org>
92651         * MODULES.html.sh (Unicode string functions): Add the new modules.
92653         * modules/uniconv/u32-conv-to-enc: New file.
92654         * lib/uniconv/u32-conv-to-enc.c: New file.
92655         * modules/uniconv/u32-conv-to-enc-tests: New file.
92656         * tests/uniconv/test-u32-conv-to-enc.c: New file.
92658         * modules/uniconv/u16-conv-to-enc: New file.
92659         * lib/uniconv/u16-conv-to-enc.c: New file.
92660         * lib/uniconv/u-conv-to-enc.h: New file.
92661         * modules/uniconv/u16-conv-to-enc-tests: New file.
92662         * tests/uniconv/test-u16-conv-to-enc.c: New file.
92664         * modules/uniconv/u8-conv-to-enc: New file.
92665         * lib/uniconv/u8-conv-to-enc.c: New file.
92666         * modules/uniconv/u8-conv-to-enc-tests: New file.
92667         * tests/uniconv/test-u8-conv-to-enc.c: New file.
92669         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
92670         u32_conv_to_encoding): New declarations.
92672 2007-06-09  Bruno Haible  <bruno@clisp.org>
92674         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
92676 2007-06-09  Bruno Haible  <bruno@clisp.org>
92678         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
92679         * modules/malloca: Renamed from modules/allocsa, updated.
92680         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
92681         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
92682         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
92683         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
92684         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
92685         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
92686         * modules/xmalloca: Renamed from modules/xallocsa, updated.
92687         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
92688         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
92689         * modules/c-strcasestr (Depends-on): Update.
92690         * lib/c-strcasestr.c: Update.
92691         * modules/c-strstr (Depends-on): Update.
92692         * lib/c-strstr.c: Update.
92693         * modules/canonicalize-lgpl (Depends-on): Update.
92694         * lib/canonicalize-lgpl.c: Update.
92695         * modules/clean-temp (Depends-on): Update.
92696         * lib/clean-temp.c: Update.
92697         * modules/csharpcomp (Depends-on): Update.
92698         * lib/csharpcomp.c: Update.
92699         * modules/csharpexec (Depends-on): Update.
92700         * lib/csharpexec.c: Update.
92701         * modules/javacomp (Depends-on): Update.
92702         * lib/javacomp.c: Update.
92703         * modules/javaexec (Depends-on): Update.
92704         * lib/javaexec.c: Update.
92705         * modules/mbscasestr (Depends-on): Update.
92706         * lib/mbscasestr.c: Update.
92707         * modules/mbsstr (Depends-on): Update.
92708         * lib/mbsstr.c: Update.
92709         * modules/setenv (Depends-on): Update.
92710         * lib/setenv.c: Update.
92711         * modules/strcasestr (Depends-on): Update.
92712         * lib/strcasestr.c: Update.
92713         * modules/striconveha (Depends-on): Update.
92714         * lib/striconveha.c: Update.
92715         * modules/relocatable-prog-wrapper (Files): Update.
92716         * lib/relocwrapper.c: Update.
92717         * build-aux/install-reloc: Update.
92718         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
92720 2007-06-08  Bruno Haible  <bruno@clisp.org>
92722         Port to uClibc.
92723         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
92724         * lib/fpurge.c (fpurge): Likewise.
92725         * lib/freading.c (freading): Likewise.
92726         * lib/fseeko.c (rpl_fseeko): Likewise.
92727         * lib/fseterr.c (fseterr): Likewise.
92728         * lib/fwriting.c (fwriting): Likewise.
92729         * tests/test-fflush.c (main): Avoid a failure on uClibc.
92731 2007-06-08  Bruno Haible  <bruno@clisp.org>
92733         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
92734         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
92735         * modules/gettext (Files): Add m4/intlmacosx.m4.
92737 2007-06-07  Bruno Haible  <bruno@clisp.org>
92739         * modules/localename-tests: New file.
92740         * tests/test-localename.c: New file.
92742         New module 'localename'.
92743         * lib/localename.h: New file.
92744         * lib/localename.c: New file, from GNU gettext.
92745         * m4/localename.m4: New file.
92746         * modules/localename: New file.
92748 2007-06-07  Bruno Haible  <bruno@clisp.org>
92750         Work around the lack of <wchar.h> on some builds of uClibc.
92751         * doc/headers/wchar.texi: Update.
92752         * lib/wchar_.h: Include <wchar.h> only if it exists.
92753         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
92754         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
92755         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
92756         doesn't exist.
92757         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
92758         * modules/mbfile (Depends-on): Add wchar.
92759         * modules/mbiter (Depends-on): Likewise.
92760         * modules/mbuiter (Depends-on): Likewise.
92761         Reported by Simon Josefsson.
92763 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
92765         Work around problem reported by Steven M. Schweda in
92766         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
92767         Tru64 5.1B with the Compaq compiler environment installed declares
92768         an 'isblank' function but does not define it in the C library.
92769         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
92770         * lib/regex_internal.h (isblank): Likewise.
92771         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
92772         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
92774 2007-06-05  Bruno Haible  <bruno@clisp.org>
92776         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
92777         ia64.
92778         * modules/printf-safe: New file.
92779         * modules/fprintf-posix (Depends-on): Add printf-safe.
92780         * modules/printf-posix (Depends-on): Likewise.
92781         * modules/snprintf-posix (Depends-on): Likewise.
92782         * modules/sprintf-posix (Depends-on): Likewise.
92783         * modules/vasnprintf-posix (Depends-on): Likewise.
92784         * modules/vasprintf-posix (Depends-on): Likewise.
92785         * modules/vfprintf-posix (Depends-on): Likewise.
92786         * modules/vprintf-posix (Depends-on): Likewise.
92787         * modules/vsnprintf-posix (Depends-on): Likewise.
92788         * modules/vsprintf-posix (Depends-on): Likewise.
92789         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
92790         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
92791         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
92792         "no" on i386, x86_64, ia64.
92793         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
92794         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
92795         on i386, x86_64, ia64.
92796         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
92797         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
92798         on i386, x86_64, ia64.
92799         * tests/test-vasnprintf-posix.c: Include float.h.
92800         (LDBL80_WORDS): New macro.
92801         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
92802         on i386, x86_64, ia64.
92803         * tests/test-vasprintf-posix.c: Include float.h.
92804         (LDBL80_WORDS): New macro.
92805         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
92806         on i386, x86_64, ia64.
92807         * tests/test-snprintf-posix.c: Include float.h.
92808         * tests/test-sprintf-posix.c: Likewise.
92809         * tests/test-vsnprintf-posix.c: Likewise.
92810         * tests/test-vsprintf-posix.c: Likewise.
92812 2007-06-05  Bruno Haible  <bruno@clisp.org>
92814         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
92815         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
92816         non-IEEE numbers on i386, x86_64, ia64.
92817         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
92818         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
92819         * tests/test-isnanl.h: Include float.h.
92820         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
92822 2007-06-05  Bruno Haible  <bruno@clisp.org>
92824         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
92825         also the %a / %A. Handle the %a / %A code before this extra handling.
92827 2007-06-05  Bruno Haible  <bruno@clisp.org>
92829         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
92830         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
92832 2007-06-05  Bruno Haible  <bruno@clisp.org>
92834         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
92835         typo in variable name.
92837 2007-06-05  Eric Blake  <ebb9@byu.net>
92839         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
92840         Reported by Simon Josefsson.
92842 2007-06-04  Bruno Haible  <bruno@clisp.org>
92844         Avoid test failures on some PowerPC platforms.
92845         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
92846         Define differently for PowerPC.
92847         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
92848         Reported by Gary V. Vaughan <gary@gnu.org>.
92850 2007-06-02  Bruno Haible  <bruno@clisp.org>
92852         Fix test-stdint failure on FreeBSD/ia64.
92853         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
92854         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
92855         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
92856         * doc/headers/stdint.texi: Update.
92858 2007-06-01  Bruno Haible  <bruno@clisp.org>
92860         * tests/test-binary-io.c (main): Pass a third argument to open().
92861         Reported by Gary V. Vaughan <gary@gnu.org>.
92863 2007-06-01  Bruno Haible  <bruno@clisp.org>
92865         * doc/functions/frexpl.texi: Update for mingw.
92867 2007-06-01  Bruno Haible  <bruno@clisp.org>
92869         * tests/test-lseek.c (main): Disable test of errno for invalid third
92870         argument.
92871         * doc/functions/lseek.texi: Update.
92872         Reported by Gary V. Vaughan <gary@gnu.org>.
92874 2007-05-28  Bruno Haible  <bruno@clisp.org>
92876         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
92878 2007-05-31  Eric Blake  <ebb9@byu.net>
92880         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
92881         cross compiling.
92883 2007-05-30  Eric Blake  <ebb9@byu.net>
92884         and Bruno Haible  <bruno@clisp.org>
92886         Work around mingw test failures exposed by m4-1.4.9b.
92887         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
92888         * tests/test-unistd.c: Disable uid_t and git_t tests for the
92889         moment.
92891 2007-05-30  Bruno Haible  <bruno@clisp.org>
92893         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
92894         assuming that they are closed. Needed on HP-UX 11.
92896 2007-05-29  Bruno Haible  <bruno@clisp.org>
92898         Fix a problem with #include_next.
92899         * lib/dirent_.h: Split the double-inclusion guard.
92900         * lib/fcntl_.h: Likewise.
92901         * lib/float_.h: Likewise.
92902         * lib/iconv_.h: Likewise.
92903         * lib/inttypes_.h: Likewise.
92904         * lib/locale_.h: Likewise.
92905         * lib/math_.h: Likewise.
92906         * lib/netinet_in_.h: Likewise.
92907         * lib/search_.h: Likewise.
92908         * lib/signal_.h: Likewise.
92909         * lib/stdint_.h: Likewise.
92910         * lib/stdio_.h: Likewise.
92911         * lib/stdlib_.h: Likewise.
92912         * lib/string_.h: Likewise.
92913         * lib/sys_select_.h: Likewise.
92914         * lib/sys_socket_.h: Likewise.
92915         * lib/sys_stat_.h: Likewise.
92916         * lib/sys_time_.h: Likewise.
92917         * lib/sysexits_.h: Likewise.
92918         * lib/time_.h: Likewise.
92919         * lib/unistd_.h: Likewise.
92920         * lib/wchar_.h: Likewise.
92921         * lib/wctype_.h: Likewise.
92923 2007-05-29  Bruno Haible  <bruno@clisp.org>
92925         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
92926         for the moment.
92928 2007-05-29  Bruno Haible  <bruno@clisp.org>
92930         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
92931         invocation.
92932         Reported by Eric Blake.
92934 2007-05-29  Bruno Haible  <bruno@clisp.org>
92936         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
92937         compiling case.
92939 2007-05-29  Eric Blake  <ebb9@byu.net>
92940             Bruno Haible  <bruno@clisp.org>
92942         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
92943         cross compiles.
92945 2007-05-28  Eric Blake  <ebb9@byu.net>
92947         * modules/closein-tests (test_closein_LDADD): Support test on
92948         cygwin with libtool.
92950 2007-05-28  Bruno Haible  <bruno@clisp.org>
92952         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
92953         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
92954         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
92955         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
92956         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
92957         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
92958         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
92959         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
92960         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
92962 2007-05-28  Eric Blake  <ebb9@byu.net>
92964         Unconditionally include <config.h> in unit tests.
92965         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
92966         * tests/test-allocsa.c, tests/test-arcfour.c,
92967         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
92968         tests/test-array_list.c, tests/test-array_oset.c,
92969         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
92970         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
92971         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
92972         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
92973         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
92974         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
92975         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
92976         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
92977         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
92978         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
92979         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
92980         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
92981         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
92982         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
92983         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
92984         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
92985         test-md5.c, test-memmem.c, test-printf-posix.c,
92986         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
92987         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
92988         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
92989         test-strcasestr.c, test-striconv.c, test-striconveh.c,
92990         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
92991         test-vasnprintf-posix2.c, test-vasnprintf.c,
92992         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
92993         test-vfprintf-posix.c, test-vprintf-posix.c,
92994         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
92995         test-xvasprintf.c: Likewise.
92997 2007-05-28  Bruno Haible  <bruno@clisp.org>
92999         * gnulib-tool (func_import): Remember the --with-tests command-line
93000         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
93001         Reported by Eric Blake.
93003 2007-05-28  Bruno Haible  <bruno@clisp.org>
93005         * modules/ftell-tests: New file.
93006         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
93007         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
93009         * lib/ftell.c: New file.
93010         * modules/ftell: New file.
93011         * m4/ftell.m4: New file.
93012         * doc/functions/ftell.texi: Update.
93013         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
93014         REPLACE_FTELL.
93015         * lib/stdio_.h (rpl_ftell): New declaration.
93016         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
93017         REPLACE_FTELL.
93019 2007-05-28  Eric Blake  <ebb9@byu.net>
93021         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
93023 2007-05-28  Bruno Haible  <bruno@clisp.org>
93025         * modules/fseek-tests: New file.
93026         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
93027         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
93029         * lib/fseek.c: New file.
93030         * modules/fseek: New file.
93031         * m4/fseek.m4: New file.
93032         * doc/functions/fseek.texi: Update.
93033         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
93034         REPLACE_FSEEK.
93035         * lib/stdio_.h (rpl_fseek): New declaration.
93036         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
93037         REPLACE_FSEEK.
93039 2007-05-28  Bruno Haible  <bruno@clisp.org>
93041         * lib/stdio_.h (fflush): More comments.
93043 2007-05-28  Bruno Haible  <bruno@clisp.org>
93045         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
93046         runtime test.
93048 2007-05-28  Eric Blake  <ebb9@byu.net>
93050         Improve lseek module.
93051         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
93052         * lib/unistd_.h (lseek): Scale back link warning message.
93053         * tests/test-lseek.c: Beef up test.
93054         * tests/test-lseek.sh: Exercise more facets of lseek.
93055         Reported by Bruno Haible.
93057 2007-05-28  Bruno Haible  <bruno@clisp.org>
93059         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
93060         to define.
93062 2007-05-27  Bruno Haible  <bruno@clisp.org>
93064         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
93066 2007-05-27  Bruno Haible  <bruno@clisp.org>
93068         * modules/openmp: New file.
93069         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
93070         Noah Misch.
93072 2007-05-26  Bruno Haible  <bruno@clisp.org>
93074         * modules/chdir-long (Depends-on): Add fchdir.
93075         * modules/chdir-safer (Depends-on): Likewise.
93076         * modules/fts (Depends-on): Likewise.
93077         * modules/fts-lgpl (Depends-on): Likewise.
93078         * modules/openat (Depends-on): Likewise.
93079         * modules/savewd (Depends-on): Likewise.
93081 2007-05-24  Eric Blake  <ebb9@byu.net>
93083         Fix lseek on mingw.
93084         * modules/lseek: New module.
93085         * m4/lseek.m4: New file.
93086         * lib/lseek.c: New file.
93087         * modules/lseek-tests: New file.
93088         * tests/test-lseek.c: New file.
93089         * tests/test-lseek.sh: New file.
93090         * MODULES.html.sh: Document lseek module.
93091         * modules/fflush (Depends-on): Add lseek, fseeko.
93092         * modules/fseeko (Depends-on): Likewise.
93093         * modules/ftello (Depends-on): Likewise.
93094         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
93095         broken.
93096         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
93097         broken.
93098         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
93099         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
93100         * lib/ftello.c (rpl_ftello): Likewise.
93101         * tests/test-fseeko.c (main): Test this.
93102         * tests/test-fseeko.sh: Likewise.
93103         * tests/test-ftello.c (main): Likewise.
93104         * tests/test-ftello.sh: Likewise.
93105         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
93106         implies replacing fseek.
93107         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
93108         HAVE_FTELLO.
93109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
93110         * modules/unistd (Makefile.am): Likewise.
93111         * lib/unistd_.h (lseek): Declare a replacement.
93112         * doc/functions/lseek.texi (lseek): Document this fix.
93113         * doc/functions/fseek.texi (fseek): Likewise.
93114         * doc/functions/ftell.texi (ftell): Likewise.
93116 2007-05-24  Bruno Haible  <bruno@clisp.org>
93118         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
93119         in the printed representation of a NaN.
93120         * tests/test-vasprintf-posix.c (test_function): Likewise.
93121         * tests/test-snprintf-posix.h (test_function): Likewise.
93122         * tests/test-sprintf-posix.h (test_function): Likewise.
93123         Reported by Eric Blake.
93125 2007-05-23  Eric Blake  <ebb9@byu.net>
93127         Fix fseeko/ftello on cygwin 1.5.24.
93128         * doc/functions/fseeko.texi (fseeko): Document the fix.
93129         * doc/functions/ftello.texi (ftello): Document the fix.
93130         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
93131         * doc/functions/stdout.text (stdout): New file.
93132         * doc/functions/stderr.text (stderr): New file.
93133         * doc/gnulib.texi (Function Substitutes): Use new files.
93134         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
93135         prior to 1.7.0.
93136         * tests/test-ftello.c (main): Likewise for ftello.
93137         * tests/test-fseeko.sh: New file.
93138         * tests/test-ftello.sh: New file.
93139         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
93140         with seekable stdin.
93141         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
93142         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
93143         (gl_REPLACE_FSEEKO): New macro.
93144         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
93145         * modules/fseeko (Files): Distribute fseeko.c.
93146         * modules/ftello (Files): Distribute ftello.c.
93147         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
93148         mode.
93149         * lib/ftello.c (rpl_ftello): New file.
93150         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
93151         fseeko, ftello.
93152         (gl_STDIN_LARGE_OFFSET): New macro.
93153         * modules/stdio (Makefile.am): Perform the replacement.
93154         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
93156 2007-05-23  Bruno Haible  <bruno@clisp.org>
93158         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
93159         GNULIB_POSIXCHECK is defined.
93161 2007-05-21  Bruno Haible  <bruno@clisp.org>
93163         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
93164         Check also the output for NaN arguments. When cross-compiling, guess
93165         no on IRIX.
93166         * lib/vasnprintf.c: Update comments.
93167         * tests/test-vasnprintf-posix.c (strisnan): New function.
93168         (test_function): Use it.
93169         * tests/test-vasprintf-posix.c (strisnan): New function.
93170         (test_function): Use it.
93171         * tests/test-snprintf-posix.h (strisnan): New function.
93172         (test_function): Use it.
93173         * tests/test-sprintf-posix.h (strisnan): New function.
93174         (test_function): Use it.
93175         Reported by Eric Blake.
93177 2007-05-20  Bruno Haible  <bruno@clisp.org>
93179         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
93180         numbers that fails on BeOS.
93181         * doc/functions/frexpl.texi: Update.
93183 2007-05-20  Jim Meyering  <jim@meyering.net>
93185         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
93186         forced upon us by glibc-2.6.
93188 2007-05-20  Bruno Haible  <bruno@clisp.org>
93190         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
93191         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
93192         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
93193         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
93194         NEED_PRINTF_INFINITE.
93195         (is_infinitel): New function.
93196         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
93197         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
93198         gl_PREREQ_VASNPRINTF_INFINITE.
93199         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
93200         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
93201         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
93202         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
93203         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
93204         gl_PREREQ_VASNPRINTF_INFINITE.
93205         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
93206         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
93207         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
93208         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
93209         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
93210         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93211         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
93212         * doc/functions/fprintf.texi: Update.
93213         * doc/functions/printf.texi: Update.
93214         * doc/functions/snprintf.texi: Update.
93215         * doc/functions/sprintf.texi: Update.
93216         * doc/functions/vfprintf.texi: Update.
93217         * doc/functions/vprintf.texi: Update.
93218         * doc/functions/vsnprintf.texi: Update.
93219         * doc/functions/vsprintf.texi: Update.
93221 2007-05-20  Bruno Haible  <bruno@clisp.org>
93223         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
93224         was not found in libc.
93225         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
93227 2007-05-20  Bruno Haible  <bruno@clisp.org>
93229         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
93230         printed as "-nan" instead of "nan".
93231         * tests/test-vasprintf-posix.c (test_function): Likewise.
93232         * tests/test-snprintf-posix.h (test_function): Likewise.
93233         * tests/test-sprintf-posix.h (test_function): Likewise.
93234         Needed for HP-UX 11.
93236 2007-05-20  Jim Meyering  <jim@meyering.net>
93238         Fix buggy test for the fchownat-deref bug.
93239         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
93240         symlink required for the run-test.  Without it, this test would
93241         always declare that fchownat doesn't work, and client code would
93242         unnecessarily use the replacement function with fixed libc.
93243         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
93244         Reported by Greg Schafer.
93246 2007-05-19  Bruno Haible  <bruno@clisp.org>
93248         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
93249         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
93250         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
93251         Needed for IRIX 6.5 and Solaris 2.5.1.
93253 2007-05-19  Bruno Haible  <bruno@clisp.org>
93255         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
93256         (test_function): Skip tests involving -0.0 on platforms where
93257         -0.0 = 0.0.
93258         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
93259         (test_function): Skip tests involving -0.0 on platforms where
93260         -0.0 = 0.0.
93261         * tests/test-snprintf-posix.h (have_minus_zero): New function.
93262         (test_function): Skip tests involving -0.0 on platforms where
93263         -0.0 = 0.0.
93264         * tests/test-sprintf-posix.h (have_minus_zero): New function.
93265         (test_function): Skip tests involving -0.0 on platforms where
93266         -0.0 = 0.0.
93267         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
93268         tests.
93269         * tests/test-printf-posix.h (test_function): Likewise.
93270         * tests/test-printf-posix.output: Remove all -0.0 related results.
93271         Needed for IRIX 6.5.
93273 2007-05-19  Bruno Haible  <bruno@clisp.org>
93275         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
93276         printed as "nan0x7fffffff" instead of "nan".
93277         * tests/test-vasprintf-posix.c (test_function): Likewise.
93278         * tests/test-snprintf-posix.h (test_function): Likewise.
93279         * tests/test-sprintf-posix.h (test_function): Likewise.
93280         * tests/test-fprintf-posix.h (NaN): Remove macro.
93281         (test_function): Remove all NaN related tests.
93282         * tests/test-printf-posix.h (NaN): Remove macro.
93283         (test_function): Remove all NaN related tests.
93284         * tests/test-printf-posix.output: Remove all NaN related results.
93285         Needed for IRIX 6.5.
93287 2007-05-19  Bruno Haible  <bruno@clisp.org>
93289         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
93290         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
93292 2007-05-19  Bruno Haible  <bruno@clisp.org>
93294         * lib/float_.h: New file.
93295         * m4/float_h.m4: New file.
93296         * modules/float: New file.
93297         * modules/isnanl (Dependencies): Add float.
93298         * modules/isnanl-nolibm (Dependencies): Likewise.
93299         * modules/mathl (Dependencies): Likewise.
93300         * modules/printf-frexpl (Dependencies): Likewise.
93301         * modules/signbit (Dependencies): Likewise.
93302         * modules/vasnprintf (Dependencies): Likewise.
93303         * doc/headers/float.texi: Update.
93305 2007-05-19  Jim Meyering  <jim@meyering.net>
93307         * lib/utimens.c (gl_futimens): Rename from futimens,
93308         now that glibc-2.6 declares futimens.
93309         * lib/utimens.h: Likewise.
93311 2007-05-19  Bruno Haible  <bruno@clisp.org>
93313         Avoid test failures on mingw.
93314         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
93315         * tests/test-printf-posix.sh: Likewise.
93316         * tests/test-vfprintf-posix.sh: Likewise.
93317         * tests/test-vprintf-posix.sh: Likewise.
93319 2007-05-19  Bruno Haible  <bruno@clisp.org>
93321         Fix *printf result for NaN, Inf, -0.0 on mingw.
93322         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
93323         * lib/vasnprintf.c: Include math.h and isnan.h.
93324         (is_infinite_or_zero): New function.
93325         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
93326         values in the %f, %F, %e, %E, %g, %G directives.
93327         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
93328         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
93329         gl_PRINTF_INFINITE and test its result. Invoke
93330         gl_PREREQ_VASNPRINTF_INFINITE.
93331         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
93332         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
93333         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
93334         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
93335         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
93336         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93337         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
93338         * doc/functions/fprintf.texi: Update.
93339         * doc/functions/printf.texi: Update.
93340         * doc/functions/snprintf.texi: Update.
93341         * doc/functions/sprintf.texi: Update.
93342         * doc/functions/vfprintf.texi: Update.
93343         * doc/functions/vprintf.texi: Update.
93344         * doc/functions/vsnprintf.texi: Update.
93345         * doc/functions/vsprintf.texi: Update.
93347 2007-05-19  Bruno Haible  <bruno@clisp.org>
93349         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
93350         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
93351         Instead of multiplying with 10^k, set extra_zeroes to k.
93352         (scale10_round_long_double): Remove function.
93354 2007-05-18  Bruno Haible  <bruno@clisp.org>
93356         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
93357         introduced on 2007-05-06.
93359 2007-05-18  Bruno Haible  <bruno@clisp.org>
93361         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
93362         %g directives.
93363         * tests/test-vasprintf-posix.c (test_function): Likewise.
93364         * tests/test-snprintf-posix.h (test_function): Likewise.
93365         * tests/test-sprintf-posix.h (test_function): Likewise.
93367 2007-05-18  Bruno Haible  <bruno@clisp.org>
93369         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
93370         (strmatch): New function.
93371         (test_function): Test the %f directive on numbers of various exponents.
93372         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
93373         (strmatch): New function.
93374         (test_function): Test the %f directive on numbers of various exponents.
93375         * tests/test-snprintf-posix.h (strmatch): New function.
93376         (test_function): Test the %f directive on numbers of various exponents.
93377         * tests/test-sprintf-posix.h (strmatch): New function.
93378         (test_function): Test the %f directive on numbers of various exponents.
93379         * tests/test-snprintf-posix.c (SIZEOF): New macro.
93380         * tests/test-sprintf-posix.c (SIZEOF): New macro.
93381         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
93382         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
93384 2007-05-18  Bruno Haible  <bruno@clisp.org>
93386         Add support for 'long double' number output.
93387         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
93388         * lib/vasnprintf.c: Include math.h and float+.h.
93389         (mp_limb_t): New type.
93390         (GMP_LIMB_BITS): New macro.
93391         (mp_twolimb_t): New type.
93392         (GMP_TWOLIMB_BITS): New macro.
93393         (mpn_t): New type.
93394         (multiply, divide, convert_to_decimal, decode_long_double,
93395         scale10_round_long_double, scale10_round_decimal_long_double,
93396         floorlog10l): New functions.
93397         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
93398         for the %f, %F, %e, %E, %g, %G directives.
93399         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
93400         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
93401         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
93402         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
93403         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
93404         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
93405         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
93406         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
93407         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
93408         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93409         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
93410         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
93411         * modules/snprintf-posix (Depends-on): Likewise.
93412         * modules/sprintf-posix (Depends-on): Likewise.
93413         * modules/vasnprintf-posix (Depends-on): Likewise.
93414         * modules/vasprintf-posix (Depends-on): Likewise.
93415         * modules/vfprintf-posix (Depends-on): Likewise.
93416         * modules/vsnprintf-posix (Depends-on): Likewise.
93417         * modules/vsprintf-posix (Depends-on): Likewise.
93418         * modules/vasnprintf (Files): Add lib/float+.h.
93419         * doc/functions/fprintf.texi: Update.
93420         * doc/functions/printf.texi: Update.
93421         * doc/functions/snprintf.texi: Update.
93422         * doc/functions/sprintf.texi: Update.
93423         * doc/functions/vfprintf.texi: Update.
93424         * doc/functions/vprintf.texi: Update.
93425         * doc/functions/vsnprintf.texi: Update.
93426         * doc/functions/vsprintf.texi: Update.
93428 2007-05-18  Bruno Haible  <bruno@clisp.org>
93430         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
93432 2007-05-18  Bruno Haible  <bruno@clisp.org>
93434         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
93435         for printing 64-bit integers. Needed for mingw.
93437 2007-05-18  Bruno Haible  <bruno@clisp.org>
93439         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
93440         gl_FUNC_FREXPL_WORKS.
93441         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
93443 2007-05-18  Bruno Haible  <bruno@clisp.org>
93445         * modules/frexpl-nolibm-tests: New file.
93447         * modules/frexpl-nolibm: New file.
93448         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
93450 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
93452         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
93453         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
93454         GCC 4.2, which otherwise issues a lot of warnings.
93455         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
93456         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
93457         Likewise.
93458         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
93459         * modules/iconv_open (iconv.h): Likewise.
93460         * modules/locale (locale.h): Likewise.
93461         * modules/netinet_in (netinet/in.h): Likewise.
93462         * modules/sys_select (sys_select.h): Likewise.
93463         * modules/sys_socket (sys/socket.h): Likewise.
93464         * modules/sys_stat (sys/stat.h): Likewise.
93465         * modules/sysexits (sysexits.h): Likewise.
93466         * modules/unistd (unistd.h): Likewise.
93468 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93470         * modules/closein-tests (Makefile.am): Distribute
93471         `test-closein.sh'.
93473 2007-05-17  Bruno Haible  <bruno@clisp.org>
93475         * tests/test-printf-posix.output: Renamed from
93476         tests/test-fprintf-posix.out.
93477         * modules/fprintf-posix-tests: Update.
93478         * modules/printf-posix-tests: Update.
93479         * modules/vfprintf-posix-tests: Update.
93480         * modules/vprintf-posix-tests: Update.
93481         * tests/test-fprintf-posix.sh: Update.
93482         * tests/test-printf-posix.sh: Update.
93483         * tests/test-vfprintf-posix.sh: Update.
93484         * tests/test-vprintf-posix.sh: Update.
93485         Reported by Ralf Wildenhues.
93487 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
93489         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
93490         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
93491         GCC 4.2, which otherwise issues a lot of warnings.
93492         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
93493         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
93494         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
93495         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
93496         it should no longer be needed.
93497         * lib/string_.h: Likewise.
93498         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
93499         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
93500         * modules/inttypes (inttypes.h): Likewise.
93501         * modules/math (math.h): Likewise.
93502         * modules/search (search.h): Likewise.
93503         * modules/signal (signal.h): Likewise.
93504         * modules/stdint (stdint.h): Likewise.
93505         * modules/stdio (stdio.h): Likewise.
93506         * modules/stdlib (stdlib.h): Likewise.
93507         * modules/string (string.h): Likewise.
93508         * modules/sys_time (sys/time.h): Likewise.
93509         * modules/time (time.h): Likewise.
93510         * modules/wchar (wchar.h): Likewise.
93511         * modules/wctype (wtype.h): Likewise.
93513 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
93515         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
93517 2007-05-13  Bruno Haible  <bruno@clisp.org>
93519         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
93520         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
93521         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
93522         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
93523         (gl_PREREQ_STRTOK_R): Don't require it here.
93525 2007-05-13  Bruno Haible  <bruno@clisp.org>
93527         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
93528         when used in C++ mode.
93530 2007-05-12  Bruno Haible  <bruno@clisp.org>
93532         * lib/linebuffer.h: Tweak doc.
93533         * lib/linebuffer.c: Likewise.
93535 2007-05-12  James Youngman  <jay@gnu.org>
93537         * lib/linebuffer.c (readlinebuffer_delim): New function,
93538         like readlinebuffer, but use a caller-specified delimiter.
93539         (readlinebuffer): Just call readlinebuffer_delim with '\n'
93540         as the delimiter.
93541         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
93543 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
93545         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
93546         * modules/openat (Files): Remove openat-die.c.
93547         (Depends-on): Add openat-die.
93548         * modules/openat-die: New module.
93550 2007-05-06  Bruno Haible  <bruno@clisp.org>
93552         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
93553         Update with info about Cygwin.
93554         * doc/functions/fprintf.texi: Update.
93555         * doc/functions/printf.texi: Update.
93556         * doc/functions/snprintf.texi: Update.
93557         * doc/functions/sprintf.texi: Update.
93558         * doc/functions/vfprintf.texi: Update.
93559         * doc/functions/vprintf.texi: Update.
93560         * doc/functions/vsnprintf.texi: Update.
93561         * doc/functions/vsprintf.texi: Update.
93562         Reported by Eric Blake.
93564 2007-05-06  Bruno Haible  <bruno@clisp.org>
93566         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
93567         padding ourselves for the floating-point directives.
93568         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
93569         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
93570         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
93571         gl_PRINTF_FLAG_ZERO and test its result. Invoke
93572         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
93573         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
93574         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
93575         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
93576         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
93577         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
93578         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93579         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
93580         * tests/test-snprintf-posix.h (test_function): Also check the width
93581         and some flags in the %f directive.
93582         * tests/test-sprintf-posix.h (test_function): Likewise.
93583         * tests/test-vasnprintf-posix.c (test_function): Likewise.
93584         * tests/test-vasprintf-posix.c (test_function): Likewise.
93585         * doc/functions/fprintf.texi: Update.
93586         * doc/functions/printf.texi: Update.
93587         * doc/functions/snprintf.texi: Update.
93588         * doc/functions/sprintf.texi: Update.
93589         * doc/functions/vfprintf.texi: Update.
93590         * doc/functions/vprintf.texi: Update.
93591         * doc/functions/vsnprintf.texi: Update.
93592         * doc/functions/vsprintf.texi: Update.
93594 2007-05-06  Bruno Haible  <bruno@clisp.org>
93596         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
93597         pass the ' flag character to sprintf or snprintf.
93598         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
93599         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
93600         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
93601         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
93602         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
93603         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
93604         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
93605         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
93606         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
93607         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
93608         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93609         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
93610         * tests/test-snprintf-posix.h (test_function): Also check the grouping
93611         flag.
93612         * tests/test-sprintf-posix.h (test_function): Likewise.
93613         * tests/test-vasnprintf-posix.c (test_function): Likewise.
93614         * tests/test-vasprintf-posix.c (test_function): Likewise.
93615         * doc/functions/fprintf.texi: Update.
93616         * doc/functions/printf.texi: Update.
93617         * doc/functions/snprintf.texi: Update.
93618         * doc/functions/sprintf.texi: Update.
93619         * doc/functions/vfprintf.texi: Update.
93620         * doc/functions/vprintf.texi: Update.
93621         * doc/functions/vsnprintf.texi: Update.
93622         * doc/functions/vsprintf.texi: Update.
93624 2007-05-01  Bruno Haible  <bruno@clisp.org>
93626         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
93628 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
93630         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
93631         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
93633 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
93635         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
93636         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
93637         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
93639 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
93641         * lib/argp-help.c (struct hol_entry): New member `ord'.
93642         (HOL_ENTRY_PTRCMP): Use ord for comparison
93643         (hol_sort): Initialize ord.
93645 2007-05-01  Bruno Haible  <bruno@clisp.org>
93647         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
93648         Reported by Eric Blake.
93649         * doc/gnulib.texi (Function Substitutes): Update.
93651 2007-05-01  Bruno Haible  <bruno@clisp.org>
93653         * doc/functions.texi: Remove file, now redundant through
93654         doc/functions/*.texi.
93656 2007-05-01  Bruno Haible  <bruno@clisp.org>
93658         * modules/argp (Depends-on): Add sleep.
93660 2007-05-01  Bruno Haible  <bruno@clisp.org>
93662         * modules/sleep-tests: New file.
93663         * tests/test-sleep.c: New file.
93665         * modules/sleep: New file.
93666         * lib/sleep.c: New file.
93667         * m4/sleep.m4: New file.
93668         * lib/unistd_.h (sleep): New declaration.
93669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
93670         HAVE_SLEEP.
93671         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
93672         * doc/functions/sleep.texi: Document the sleep module.
93674 2007-05-01  Bruno Haible  <bruno@clisp.org>
93676         * lib/sigprocmask.h: Remove file.
93677         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
93678         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
93679         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
93680         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
93681         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
93682         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
93683         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
93684         HAVE_SIGSET_T as a shell variable.
93685         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
93686         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
93687         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
93688         (Depends-on): Add signal. Remove verify.
93689         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
93690         (Include): Mention <signal.h> instead of sigprocmask.h.
93691         * NEWS: Mention the change.
93692         * lib/fatal-signal.c: Don't include sigprocmask.h.
93694 2007-05-01  Bruno Haible  <bruno@clisp.org>
93696         * modules/signal: New file.
93697         * lib/signal_.h: New file.
93698         * m4/signal_h.m4: New file.
93700 2007-05-01  Bruno Haible  <bruno@clisp.org>
93702         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
93703         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
93704         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
93705         HAVE_WCTYPE_CTMP_BUG into wctype.h.
93707 2007-05-01  Bruno Haible  <bruno@clisp.org>
93709         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
93710         configure time.
93711         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
93712         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
93713         * modules/sys_stat (Makefile.am): Substitute their values into
93714         sys/stat.h.
93716 2007-05-01  Bruno Haible  <bruno@clisp.org>
93718         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
93719         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
93720         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
93722 2007-05-01  Bruno Haible  <bruno@clisp.org>
93724         * doc/header/assert.texi: Undo last change: don't mention the gnulib
93725         'assert' module here.
93727 2007-05-01  Bruno Haible  <bruno@clisp.org>
93729         * doc/functions/*.texi: New files.
93730         * doc/functions/google-ranking.txt: New file.
93731         * doc/gnulib.texi (Function Substitutes): New chapter.
93732         (ctime, inet_ntoa): Remove sections.
93733         * doc/ctime.texi: Remove file.
93734         * doc/inet_ntoa.texi: Remove file.
93735         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
93736         dependencies.
93737         (%.info): New rule, specifying a --reference-limit.
93739 2007-05-01  Bruno Haible  <bruno@clisp.org>
93741         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
93743 2007-05-01  Bruno Haible  <bruno@clisp.org>
93745         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
93746         the portability of 'mkdir' to mingw systems.
93748 2007-05-01  Bruno Haible  <bruno@clisp.org>
93750         * doc/headers/google-ranking.txt: New file.
93752 2007-04-30  Eric Blake  <ebb9@byu.net>
93754         Prefer fseeko to fseek.
93755         * modules/getpass (Depends-on): Add fseeko.
93756         * lib/getpass.c (getpass): Use fseeko, not fseek.
93758 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
93760         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
93761         assumes the sorting is stable, while most qsort implementations
93762         are not.  Use argument addresses to ensure they never compare as
93763         equal.
93765         * tests/test-argp-2.sh (usage-indent test): Fix output
93766         (func_compare): Restore diff options
93767         * tests/test-argp.c: Restore #include "progname.h"
93769 2007-04-29  Bruno Haible  <bruno@clisp.org>
93771         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
93772         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
93773         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
93774         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93775         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
93776         (configure.ac): Define CHECK_SNPRINTF_POSIX.
93777         (TESTS, check_PROGRAMS): Add test-snprintf.
93778         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
93779         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
93780         (TESTS, check_PROGRAMS): Add test-vsnprintf.
93781         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
93782         assertions that fail on HP-UX, OSF/1, or IRIX.
93783         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
93785 2007-04-29  Bruno Haible  <bruno@clisp.org>
93787         * MODULES.html.sh (posix_functions): Remove 'contents'.
93789 2007-04-29  Karl Berry  <karl@gnu.org>
93791         * config/srclist.txt (gendocs_template_min): new entry.
93793 2007-04-29  Bruno Haible  <bruno@clisp.org>
93795         Work around fpurge bug on BSD systems.
93796         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
93797         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
93798         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
93799         fpurge to rpl_fpurge if the system already has this function.
93800         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
93801         the case where the system already has this function. Correct invariants
93802         on BSD systems.
93803         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
93804         BSD systems.
93806 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
93808         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
93809         proposed by Sven Verdoolaege.
93811         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
93812         options.
93813         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
93814         (usage and help tests): Update
93816 2007-04-29  Bruno Haible  <bruno@clisp.org>
93818         * tests/test-fflush.c (main): Use a file of size 17, not 10.
93819         Print more information in case of failure. Disable a test on BeOS.
93821 2007-04-29  Bruno Haible  <bruno@clisp.org>
93823         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
93824         This helps debugging on systems on which no gdb is available.
93826 2007-04-29  Bruno Haible  <bruno@clisp.org>
93828         * lib/freading.h: Improve comments.
93829         * lib/fwriting.h: Likewise.
93830         * tests/test-freading.c (main): Don't check freading immediately after
93831         repositioning. Needed for glibc.
93833 2007-04-29  Bruno Haible  <bruno@clisp.org>
93835         * lib/freading.c (freading): Trivial simplification.
93837 2007-04-28  Bruno Haible  <bruno@clisp.org>
93839         * tests/test-fwriting.c (main): Also test the interaction between
93840         fflush and fwriting.
93841         * modules/fwriting-tests (Depends-on): Add fflush.
93843         * tests/test-freading.c (main): Also test the interaction between
93844         fflush and freading.
93845         * modules/freading-tests (Depends-on): Add fflush.
93847 2007-04-28  Bruno Haible  <bruno@clisp.org>
93849         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
93850         fseeko and ftello.
93851         Suggested by Eric Blake.
93853 2007-04-28  Jim Meyering  <jim@meyering.net>
93855         Avoid false-negative in gl_STDINT_H's C99 conformance test.
93856         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
93857         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
93859 2007-04-27  Eric Blake  <ebb9@byu.net>
93861         * doc/headers/assert.texi (assert.h): Document assert module use.
93863 2007-04-27  Bruno Haible  <bruno@clisp.org>
93865         * doc/headers/*.texi: New files.
93866         * doc/gnulib.texi (Header File Substitutes): New chapter.
93867         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
93868         dependencies.
93869         (standards.info ,standards.html, standards.dvi): Update dependencies.
93870         (mostlyclean, clean): New targets.
93872 2007-04-27  Bruno Haible  <bruno@clisp.org>
93874         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
93875         * modules/sysexits (Files, Makefile.am): Update.
93877         * lib/sys_socket_.h: Renamed from lib/socket_.h.
93878         * modules/sys_socket (Files, Makefile.am): Update.
93880         * lib/sys_stat_.h: Renamed from lib/stat_.h.
93881         * modules/sys_stat (Files, Makefile.am): Update.
93883 2007-04-27  Eric Blake  <ebb9@byu.net>
93885         * lib/freading.h: Improve comments.
93886         * lib/fwriting.h: Likewise.
93887         * lib/fflush.c: Likewise.
93889         Fix closein for mingw.
93890         * modules/closein-tests: Add tests for closein.
93891         * tests/test-closein.c: New file.
93892         * tests/test-closein.sh: Likewise.
93893         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
93894         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
93896 2007-04-27  Bruno Haible  <bruno@clisp.org>
93898         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
93899         version is < 6.
93900         * lib/math_.h [__DECC]: Likewise.
93901         * lib/stdio_.h [__DECC]: Likewise.
93902         * lib/stdlib_.h [__DECC]: Likewise.
93903         * lib/string_.h [__DECC]: Likewise.
93904         * lib/time_.h [__DECC]: Likewise.
93905         * lib/wchar_.h [__DECC]: Likewise.
93906         * lib/wctype_.h [__DECC]: Likewise.
93908 2007-04-27  Bruno Haible  <bruno@clisp.org>
93910         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
93912 2007-04-27  Bruno Haible  <bruno@clisp.org>
93914         * lib/fflush.c: Add comments.
93915         * modules/fpurge-tests (Depends-on): Add fflush.
93916         * modules/freadable-tests (Depends-on): Likewise.
93917         * modules/fwritable-tests (Depends-on): Likewise.
93919 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
93921         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
93922         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
93923         Report by Bruno Haible <bruno@clisp.org>.
93925 2007-04-26  Eric Blake  <ebb9@byu.net>
93927         Fix fflush on mingw.
93928         * modules/fflush (Depends-on): Add freading.
93929         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
93930         but unread data.
93932 2007-04-26  Eric Blake  <ebb9@byu.net>
93933         and Bruno Haible  <bruno@clisp.org>
93935         Implement freading and fwriting.
93936         * lib/freading.c: New file.
93937         * lib/freading.h: Likewise.
93938         * m4/freading.m4: Likewise.
93939         * modules/freading: Likewise.
93940         * modules/freading-tests: Likewise.
93941         * tests/test-freading.c: Likewise.
93942         * lib/fwriting.c: New file.
93943         * lib/fwriting.h: Likewise.
93944         * m4/fwriting.m4: Likewise.
93945         * modules/fwriting: Likewise.
93946         * modules/fwriting-tests: Likewise.
93947         * tests/test-fwriting.c: Likewise.
93948         * MODULES.html.sh (File stream based Input/Output): Mention them.
93950 2007-04-26  Bruno Haible  <bruno@clisp.org>
93952         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
93953         'long' when we assume it.
93954         Suggested by Eric Blake.
93956 2007-04-26  Bruno Haible  <bruno@clisp.org>
93958         Ensure fseeko, ftello are declared on glibc systems.
93959         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
93960         * modules/fseeko (configure.ac-early): Likewise.
93961         * modules/ftello (configure.ac-early): Likewise.
93962         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
93963         AC_FUNC_FSEEKO for this.
93964         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
93965         (gl_CHECK_FSEEKO): Remove macro.
93967 2007-04-26  Bruno Haible  <bruno@clisp.org>
93969         * tests/test-fflush.c (main): Also check the ftell result after
93970         fflush and fseek/fseeko.
93971         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
93972         file descriptor position cache in the stream.
93973         * lib/fseeko.c (rpl_fseeko): Likewise.
93975 2007-04-26  Bruno Haible  <bruno@clisp.org>
93977         * modules/fflush-tests (Depends-on): Add fseeko.
93979 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
93980             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93982         * lib/argz_.h: ensure error_t definition is obtained in same
93983         mechanism system argz.h would have.
93984         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
93985         argz facilities are known bad.  Err on the side of caution if
93986         cross-compiling.
93988 2007-04-25  Eric Blake  <ebb9@byu.net>
93990         * lib/fpurge.c (includes): Use stdlib.h for free.
93991         * tests/test-fflush.c (main): Also test fflush-fseeko.
93993 2007-04-25  Bruno Haible  <bruno@clisp.org>
93995         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
93996         * lib/fseeko.c: New file.
93997         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
93998         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
93999         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
94000         gl_FUNC_FSEEKO.
94001         (gl_FUNC_FSEEKO): Invoke it.
94002         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
94003         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
94004         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
94006 2007-04-25  Bruno Haible  <bruno@clisp.org>
94008         * modules/fflush (Depends-on): Add ftello.
94010 2007-04-25  Bruno Haible  <bruno@clisp.org>
94012         * modules/ftello-tests: New file.
94013         * tests/test-ftello.c: New file.
94015         * modules/ftello: New file.
94016         * m4/ftello.m4: New file.
94017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
94018         HAVE_FTELLO.
94019         * lib/stdio_.h (ftello): New declaration.
94020         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
94021         HAVE_FTELLO.
94023 2007-04-25  Bruno Haible  <bruno@clisp.org>
94025         * modules/fseeko-tests: New file.
94026         * tests/test-fseeko.c: New file.
94028         * modules/fseeko: New file.
94029         * m4/fseeko.m4: New file.
94030         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
94031         HAVE_FSEEKO.
94032         * lib/stdio_.h (fseeko): New declaration.
94033         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
94034         HAVE_FSEEKO.
94036 2007-04-25  Bruno Haible  <bruno@clisp.org>
94038         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
94040 2007-04-25  Bruno Haible  <bruno@clisp.org>
94042         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
94043         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
94044         * tests/test-unistd.c: Likewise.
94045         * tests/test-fcntl.c: Likewise.
94047 2007-04-23  Eric Blake  <ebb9@byu.net>
94049         * lib/fflush.c: Fix missing include.
94050         Reported by Bruno Haible.
94052 2007-04-23  Bruno Haible  <bruno@clisp.org>
94054         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
94055         Reported by Eric Blake.
94057 2007-04-23  Bruno Haible  <bruno@clisp.org>
94059         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
94061 2007-04-23  Bruno Haible  <bruno@clisp.org>
94063         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
94065 2007-04-23  Bruno Haible  <bruno@clisp.org>
94067         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
94068         Needed on HP-UX 11.
94070 2007-04-16  Eric Blake  <ebb9@byu.net>
94072         Make fflush rely on fpurge.
94073         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
94074         open coding all variants.
94075         * modules/fflush (Depends-on): Add fpurge and unistd.
94076         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
94077         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
94079         Fix --with-tests compilation on cygwin.
94080         * modules/argmatch-tests (Makefile.am): List gnulib library first
94081         in LDADD.
94082         * modules/argp-tests (Makefile.am): Likewise.
94083         * modules/array-list-tests (Makefile.am): Likewise.
94084         * modules/array-oset-tests (Makefile.am): Likewise.
94085         * modules/avltree-list-tests (Makefile.am): Likewise.
94086         * modules/avltree-oset-tests (Makefile.am): Likewise.
94087         * modules/avltreehash-list-tests (Makefile.am): Likewise.
94088         * modules/carray-list-tests (Makefile.am): Likewise.
94089         * modules/dirname-tests (Makefile.am): Likewise.
94090         * modules/frexp-tests (Makefile.am): Likewise.
94091         * modules/isnanl-tests (Makefile.am): Likewise.
94092         * modules/linked-list-tests (Makefile.am): Likewise.
94093         * modules/linkedhash-list-tests (Makefile.am): Likewise.
94094         * modules/lock-tests (Makefile.am): Likewise.
94095         * modules/rbtree-list-tests (Makefile.am): Likewise.
94096         * modules/rbtree-oset-tests (Makefile.am): Likewise.
94097         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
94098         * modules/tls-tests (Makefile.am): Likewise.
94099         * modules/tsearch-tests (Makefile.am): Likewise.
94100         * modules/xvasprintf-tests (Makefile.am): Likewise.
94102         Fix fpurge for cygwin.
94103         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
94104         value.
94105         * modules/fpurge-tests (Depends-on): Clean up trash.
94107 2007-04-16  Simon Josefsson  <simon@josefsson.org>
94109         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
94111         * m4/autobuild.m4: Re-indent.
94113 2007-04-13  Bruno Haible  <bruno@clisp.org>
94115         * modules/fpurge-tests: New file.
94116         * tests/test-fpurge.c: New file.
94118         * modules/fpurge: New file.
94119         * lib/fpurge.h: New file.
94120         * lib/fpurge.c: New file.
94121         * m4/fpurge.m4: New file.
94123 2007-04-13  Bruno Haible  <bruno@clisp.org>
94125         * modules/fbufmode-tests: New file.
94126         * tests/test-fbufmode.c: New file.
94128         * modules/fbufmode: New file.
94129         * lib/fbufmode.h: New file.
94130         * lib/fbufmode.c: New file.
94131         * m4/fbufmode.m4: New file.
94133 2007-04-13  Bruno Haible  <bruno@clisp.org>
94135         * modules/fwritable-tests: New file.
94136         * tests/test-fwritable.c: New file.
94138         * modules/fwritable: New file.
94139         * lib/fwritable.h: New file.
94140         * lib/fwritable.c: New file.
94141         * m4/fwritable.m4: New file.
94143 2007-04-13  Bruno Haible  <bruno@clisp.org>
94145         * modules/freadable-tests: New file.
94146         * tests/test-freadable.c: New file.
94148         * modules/freadable: New file.
94149         * lib/freadable.h: New file.
94150         * lib/freadable.c: New file.
94151         * m4/freadable.m4: New file.
94153 2007-04-13  Bruno Haible  <bruno@clisp.org>
94155         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
94156         MOSTLYCLEANFILES.
94158 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
94160         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
94161         gzip bootstrap.conf to avoid dragging in i18n machinery.
94162         (gnulib_tool_option): Use it.
94164 2007-04-13  Bruno Haible  <bruno@clisp.org>
94166         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
94167         %F directives.
94168         * tests/test-vasprintf-posix.c (test_function): Likewise.
94169         * tests/test-snprintf-posix.h (test_function): Likewise.
94170         * tests/test-sprintf-posix.h (test_function): Likewise.
94171         * tests/test-fprintf-posix.h (test_function): Likewise.
94172         * tests/test-printf-posix.h (test_function): Likewise.
94173         * tests/test-fprintf-posix.out: Likewise.
94175 2007-04-13  Bruno Haible  <bruno@clisp.org>
94177         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
94178         * modules/tls-tests (configure.ac): Likewise.
94179         Reported by Arto C. Nirkko <anirkko@insel.ch>.
94181 2007-04-13  Bruno Haible  <bruno@clisp.org>
94183         * lib/tls.c (glthread_tls_get): Fix return type.
94184         Patch by Arto C. Nirkko <anirkko@insel.ch>.
94186 2007-04-12  Eric Blake  <ebb9@byu.net>
94188         * modules/gettime (Depends-on): Remove gettime.
94189         Reported by Dmitry V. Levin.
94191 2007-04-12  Bruno Haible  <bruno@clisp.org>
94193         * modules/fflush (Include): Mention <stdio.h>.
94194         * modules/strtoimax (Include): Mention <inttypes.h>.
94195         * modules/strtoumax (Include): Likewise.
94197 2007-04-12  Eric Blake  <ebb9@byu.net>
94199         * .cvsignore: New file.
94200         * .gitignore: Likewise.
94202 2007-04-12  Bruno Haible  <bruno@clisp.org>
94204         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
94205         not before, since $(LDADD) often contains libgnu.a.
94206         * modules/striconv-tests (test_striconv_LDADD): Likewise.
94207         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
94208         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
94209         Needed on Cygwin.
94211 2007-04-12  Eric Blake  <ebb9@byu.net>
94213         Work around glibc's failure to flush stdin on fclose.
94214         * lib/closein.c (close_stdin): Flush stdin before closing.
94216         Work around glibc's failure to reset seekable stdin on exit.
94217         * modules/closein: New module.
94218         * lib/closein.c: New file.
94219         * lib/closein.h: Likewise.
94220         * m4/closein.m4: Likewise.
94221         * MODULES.html.sh (File stream based Input/Output): Document it.
94223 2007-04-12  Simon Josefsson  <simon@josefsson.org>
94225         * gnulib-tool: Rename generated 'autobuild' script to
94226         'do-autobuild' in --create-megatestdir output.
94228         * doc/gnulib.texi (Build robot for gnulib): Fix.
94230 2007-04-12  Simon Josefsson  <simon@josefsson.org>
94232         * modules/sysexits (Depends-on): Add absolute-header.
94234 2007-04-12  Eric Blake  <ebb9@byu.net>
94236         No need to preserve errno on success.
94237         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
94238         Reported by Bruno Haible.
94240 2007-04-12  Simon Josefsson  <simon@josefsson.org>
94242         * MODULES.html.sh (Support for maintaining and releasing
94243         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
94245 2007-04-12  Simon Josefsson  <simon@josefsson.org>
94247         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
94249 2007-04-12  Simon Josefsson  <simon@josefsson.org>
94251         * modules/autobuild: New module.
94253         * m4/autobuild.m4: New file.
94255 2007-04-11  Bruno Haible  <bruno@clisp.org>
94257         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
94258         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
94259         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
94260         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
94261         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
94262         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
94263         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
94264         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
94265         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
94266         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
94267         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_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/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_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/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_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/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_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/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_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/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_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         Reported by Eric Blake.
94287 2007-04-11  Bruno Haible  <bruno@clisp.org>
94289         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
94291 2007-04-10  Bruno Haible  <bruno@clisp.org>
94293         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
94294         for NaN and Infinity. Needed on FreeBSD 6.1.
94295         * tests/test-vasnprintf-posix.c (test_function): Undo last change
94296         regarding results for "%010a" of Infinity and NaN.
94297         * tests/test-vasprintf-posix.c (test_function): Likewise.
94298         * tests/test-snprintf-posix.h (test_function): Likewise.
94299         * tests/test-sprintf-posix.h (test_function): Likewise.
94300         * tests/test-fprintf-posix.h (test_function): Likewise.
94301         * tests/test-printf-posix.h (test_function): Likewise.
94302         * tests/test-fprintf-posix.out: Likewise.
94304 2007-04-10  Bruno Haible  <bruno@clisp.org>
94306         * modules/locale-tests: New file.
94307         * tests/test-locale.c: New file.
94309         * modules/locale: New file.
94310         * lib/locale_.h: New file.
94311         * m4/locale_h.m4: New file.
94313 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
94314             Bruno Haible  <bruno@clisp.org>
94316         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
94317         be determined, test for availability of the copysignf, copysign,
94318         copysignl functions.
94319         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
94320         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
94321         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
94323 2007-04-09  Eric Blake  <ebb9@byu.net>
94325         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
94326         * modules/stdio (Makefile.am): Support fflush.
94327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
94328         * modules/fflush: New file.
94329         * lib/fflush.c: Likewise.
94330         * m4/fflush.m4: Likewise.
94331         * modules/fflush-tests: New test.
94332         * tests/test-fflush.c: Likewise.
94333         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
94335 2007-04-06  Bruno Haible  <bruno@clisp.org>
94337         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
94338         (VASNPRINTF): Use signbit for faster determination whether to print a
94339         minus sign.
94340         * modules/vasnprintf (Files): Remove lib/float+.h.
94341         * modules/fprintf-posix (Depends-on): Add signbit.
94342         * modules/snprintf-posix (Depends-on): Likewise.
94343         * modules/sprintf-posix (Depends-on): Likewise.
94344         * modules/vasnprintf-posix (Depends-on): Likewise.
94345         * modules/vasprintf-posix (Depends-on): Likewise.
94346         * modules/vfprintf-posix (Depends-on): Likewise.
94347         * modules/vsnprintf-posix (Depends-on): Likewise.
94348         * modules/vsprintf-posix (Depends-on): Likewise.
94350 2007-04-06  Bruno Haible  <bruno@clisp.org>
94352         * tests/test-frexp.c (main): Test also the sign bit of zero results.
94353         * tests/test-frexpl.c (main): Likewise.
94354         * tests/test-ldexpl.c (main): Likewise.
94355         * modules/frexp-tests (Depends-on): Add signbit.
94356         * modules/frexpl-tests (Depdends-on): Likewise.
94357         * modules/ldexpl-tests (Depdends-on): Likewise.
94359 2007-04-06  Bruno Haible  <bruno@clisp.org>
94361         * modules/signbit-tests: New file.
94362         * tests/test-signbit.c: New file.
94364         * modules/signbit: New file.
94365         * lib/signbitf.c: New file.
94366         * lib/signbitd.c: New file.
94367         * lib/signbitl.c: New file.
94368         * m4/signbit.m4: New file.
94369         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
94370         (signbit): New macro.
94371         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
94372         REPLACE_SIGNBIT.
94373         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
94374         REPLACE_FREXPL into math.h.
94376 2007-04-06  Bruno Haible  <bruno@clisp.org>
94378         * modules/isnanf-nolibm-tests: New file.
94379         * tests/test-isnanf.c: New file.
94381         * modules/isnanf-nolibm: New file.
94382         * lib/isnanf.h: New file.
94383         * lib/isnanf.c: New file.
94384         * lib/isnan.c: Consider the USE_FLOAT macro.
94385         * m4/isnanf.m4: New file.
94387 2007-04-06  Bruno Haible  <bruno@clisp.org>
94389         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
94390         (Link): New section.
94392         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
94394 2007-04-06  Bruno Haible  <bruno@clisp.org>
94396         Assume the 'long double' type.
94397         * m4/longdouble.m4: Remove file.
94398         * config/srclist.txt: Don't mention longdouble.m4.
94399         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
94400         * lib/float+.h: Likewise.
94401         * lib/frexp.c: Likewise.
94402         * lib/printf-args.h: Likewise.
94403         * lib/printf-args.c: Likewise.
94404         * lib/printf-frexp.c: Likewise.
94405         * lib/printf-parse.c: Likewise.
94406         * lib/vasnprintf.c: Likewise.
94407         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
94408         * m4/intl.m4: Likewise.
94409         * m4/isnanl.m4: Likewise.
94410         * m4/printf.m4: Likewise.
94411         * m4/printf-frexpl.m4: Likewise.
94412         * m4/vasnprintf.m4: Likewise.
94413         * modules/allocsa (Files): Remove m4/longdouble.m4.
94414         * modules/gettext (Files): Likewise.
94415         * modules/relocatable-prog-wrapper (Files): Likewise.
94416         * modules/vasnprintf (Files): Likewise.
94417         * modules/isnanl (Files): Likewise.
94418         (Include): Simplify.
94419         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
94420         (Include): Simplify.
94421         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
94422         (Include): Simplify.
94423         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
94424         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
94425         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
94426         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
94427         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
94428         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
94429         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
94430         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
94431         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
94432         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
94433         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
94434         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
94435         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
94436         * tests/test-isnanl.c: Likewise.
94437         * tests/test-snprintf-posix.h: Likewise.
94438         * tests/test-sprintf-posix.h: Likewise.
94439         * tests/test-vasnprintf-posix.c: Likewise.
94440         * tests/test-vasnprintf-posix2.c: Likewise.
94441         * tests/test-vasprintf-posix.c: Likewise.
94443 2007-04-06  Bruno Haible  <bruno@clisp.org>
94445         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
94446         * lib/math_.h [__DECC]: Include the overridden include file through
94447         #include_next, outside the double-inclusion guard.
94448         * lib/stdio_.h [__DECC]: Likewise.
94449         * lib/stdlib_.h [__DECC]: Likewise.
94450         * lib/string_.h [__DECC]: Likewise.
94451         * lib/time_.h [__DECC]: Likewise.
94452         * lib/wchar_.h [__DECC]: Likewise.
94453         * lib/wctype_.h [__DECC]: Likewise.
94454         * lib/inttypes_.h [__DECC]: Likewise.
94455         Reported by Albert Chin <china@thewrittenword.com> in
94456         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
94458 2007-04-04  Eric Blake  <ebb9@byu.net>
94460         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
94461         1.5.x.
94463 2007-04-04  Bruno Haible  <bruno@clisp.org>
94465         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
94466         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
94468 2007-04-04  Bruno Haible  <bruno@clisp.org>
94470         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
94471         results for "%010a" of Infinity and NaN.
94472         * tests/test-vasprintf-posix.c (test_function): Likewise.
94473         * tests/test-snprintf-posix.h (test_function): Likewise.
94474         * tests/test-sprintf-posix.h (test_function): Likewise.
94475         * tests/test-fprintf-posix.h (test_function): Remove these tests.
94476         * tests/test-printf-posix.h (test_function): Likewise.
94477         * tests/test-fprintf-posix.out: Update.
94478         Needed for FreeBSD 6.1.
94480 2007-04-04  Bruno Haible  <bruno@clisp.org>
94482         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
94483         directly used by the gnulib modules nor by gnulib-tool.
94485 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
94487         * DEPENDENCIES: Give overall description of version dependency
94488         desirability.  Use more-typical names for apps.
94489         Add shell, coreutils, diffutils, grep, tar, gzip.
94491 2007-04-04  Simon Josefsson  <simon@josefsson.org>
94493         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
94495 2007-04-04  Karl Berry  <karl@gnu.org>
94497         * MODULES.html.sh (func_module): missing '.
94499 2007-04-03  Bruno Haible  <bruno@clisp.org>
94501         * modules/argmatch-tests (Makefile.am): New variable
94502         test_argmatch_LDADD.
94503         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
94504         * modules/array-list-tests (Makefile.am): New variable
94505         test_array_list_LDADD.
94506         * modules/array-oset-tests (Makefile.am): New variable
94507         test_array_oset_LDADD.
94508         * modules/avltree-list-tests (Makefile.am): New variable
94509         test_avltree_list_LDADD.
94510         * modules/avltree-oset-tests (Makefile.am): New variable
94511         test_avltree_oset_LDADD.
94512         * modules/avltreehash-list-tests (Makefile.am): New variable
94513         test_avltreehash_list_LDADD.
94514         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
94515         test_canonicalize_lgpl_LDADD.
94516         * modules/carray-list-tests (Makefile.am): New variable
94517         test_carray_list_LDADD.
94518         * modules/dirname-tests (Makefile.am): New variable
94519         test_dirname_LDADD.
94520         * modules/linked-list-tests (Makefile.am): New variable
94521         test_linked_list_LDADD.
94522         * modules/linkedhash-list-tests (Makefile.am): New variable
94523         test_linkedhash_list_LDADD.
94524         * modules/rbtree-list-tests (Makefile.am): New variable
94525         test_rbtree_list_LDADD.
94526         * modules/rbtree-oset-tests (Makefile.am): New variable
94527         test_rbtree_oset_LDADD.
94528         * modules/rbtreehash-list-tests (Makefile.am): New variable
94529         test_rbtreehash_list_LDADD.
94530         * modules/xvasprintf-tests (Makefile.am): New variable
94531         test_xvasprintf_LDADD.
94532         Reported by Eric Blake.
94534 2007-04-03  Eric Blake  <ebb9@byu.net>
94536         * DEPENDENCIES: Weaken m4 requirements.
94538 2007-04-03  Bruno Haible  <bruno@clisp.org>
94540         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
94541         * modules/isnanl-tests (configure.ac): Likewise.
94543 2007-04-03  Ben Pfaff  <blp@gnu.org>
94545         * modules/iconv_open: Add $(srcdir)/ to source directory
94546         references in Makefile fragments that call gperf, to fix VPATH
94547         builds.
94549 2007-04-03  Bruno Haible  <bruno@clisp.org>
94551         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
94552         * lib/ldexpl.c: Undo last change.
94554 2007-04-03  Bruno Haible  <bruno@clisp.org>
94556         * modules/printf-frexpl (Depends-on): Undo last change.
94557         (Files): Add m4/ldexpl.m4.
94559 2007-04-03  Bruno Haible  <bruno@clisp.org>
94561         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
94562         * modules/isnanl (Link): New section.
94564         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
94565         * modules/frexp (Link): New section.
94567         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
94568         * modules/frexpl (Link): New section.
94570         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
94571         * modules/ldexpl (Link): New section.
94573 2007-04-03  Bruno Haible  <bruno@clisp.org>
94575         * modules/TEMPLATE-EXTENDED: New file.
94576         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
94578 2007-04-03  Bruno Haible  <bruno@clisp.org>
94580         * DEPENDENCIES: New file.
94581         Suggested by Simon Josefsson.
94583 2007-04-03  Bruno Haible  <bruno@clisp.org>
94585         * doc/gnulib.texi: Escape @.
94587 2007-04-03  James Youngman  <jay@gnu.org>
94588         and Paul Eggert  <eggert@cs.ucla.edu>
94590         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
94591         birthtime on all systems that have birthtime, not just those which
94592         use st_birthtimensec rather than st_birthtim.  Putting zero in
94593         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
94594         that the birth time is not available for files on an NFS mount.
94596 2007-04-03  Simon Josefsson  <simon@josefsson.org>
94598         * modules/memxor: Move back from crypto/, suggested by Bruno.
94599         * modules/crypto/hmac-sha1: Fix memxor dependency.
94601         * modules/crypto/gc: Moved from ../.
94603 2007-04-02  Eric Blake  <ebb9@byu.net>
94605         * lib/ldexpl.c (includes): Avoid libm.
94607         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
94609 2007-04-02  Bruno Haible  <bruno@clisp.org>
94611         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
94612         on IRIX.
94614 2007-04-02  Bruno Haible  <bruno@clisp.org>
94616         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
94617         x86 or x86_64 platforms running MacOS X.
94618         Reported by Ryan Schmidt <@ryandesign.com>.
94620 2007-04-02  Bruno Haible  <bruno@clisp.org>
94622         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
94623         i386.
94625 2007-04-01  Simon Josefsson  <simon@josefsson.org>
94627         * modules/crypto/arcfour: Moved from ../.
94628         * modules/crypto/arcfour-tests: Moved from ../.
94629         * modules/crypto/arctwo: Moved from ../.
94630         * modules/crypto/arctwo-tests: Moved from ../.
94631         * modules/crypto/des: Moved from ../.
94632         * modules/crypto/des-tests: Moved from ../.
94633         * modules/crypto/gc-arcfour: Moved from ../.
94634         * modules/crypto/gc-arcfour-tests: Moved from ../.
94635         * modules/crypto/gc-arctwo: Moved from ../.
94636         * modules/crypto/gc-arctwo-tests: Moved from ../.
94637         * modules/crypto/gc-des: Moved from ../.
94638         * modules/crypto/gc-des-tests: Moved from ../.
94639         * modules/crypto/gc-hmac-md5: Moved from ../.
94640         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
94641         * modules/crypto/gc-hmac-sha1: Moved from ../.
94642         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
94643         * modules/crypto/gc-md2: Moved from ../.
94644         * modules/crypto/gc-md2-tests: Moved from ../.
94645         * modules/crypto/gc-md4: Moved from ../.
94646         * modules/crypto/gc-md4-tests: Moved from ../.
94647         * modules/crypto/gc-md5: Moved from ../.
94648         * modules/crypto/gc-md5-tests: Moved from ../.
94649         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
94650         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
94651         * modules/crypto/gc-random: Moved from ../.
94652         * modules/crypto/gc-rijndael: Moved from ../.
94653         * modules/crypto/gc-rijndael-tests: Moved from ../.
94654         * modules/crypto/gc-sha1: Moved from ../.
94655         * modules/crypto/gc-sha1-tests: Moved from ../.
94656         * modules/crypto/gc-tests: Moved from ../.
94657         * modules/crypto/hmac-md5: Moved from ../.
94658         * modules/crypto/hmac-md5-tests: Moved from ../.
94659         * modules/crypto/hmac-sha1: Moved from ../.
94660         * modules/crypto/hmac-sha1-tests: Moved from ../.
94661         * modules/crypto/md2: Moved from ../.
94662         * modules/crypto/md2-tests: Moved from ../.
94663         * modules/crypto/md4: Moved from ../.
94664         * modules/crypto/md4-tests: Moved from ../.
94665         * modules/crypto/md5: Moved from ../.
94666         * modules/crypto/md5-tests: Moved from ../.
94667         * modules/crypto/memxor: Moved from ../.
94668         * modules/crypto/rijndael: Moved from ../.
94669         * modules/crypto/rijndael-tests: Moved from ../.
94670         * modules/crypto/sha1: Moved from ../.
94672 2007-03-30  James Youngman  <jay@gnu.org>
94674         * tests/test-stat-time.c (prepare_test): use chmod() rather than
94675         rename() to change the ctime of a file (because ctime is unaffected
94676         by rename on jfs2 on AIX 5.1).
94677         (main): Start by doing cleanup, in case a previous run failed leaving
94678         test files behind.
94680 2007-03-31  Bruno Haible  <bruno@clisp.org>
94682         Support old proprietary implementations of iconv.
94683         * modules/iconv_open: New file.
94684         * lib/iconv_.h: New file.
94685         * m4/iconv_h.m4: New file.
94686         * lib/iconv_open.c: New file.
94687         * lib/iconv_open-aix.gperf: New file.
94688         * lib/iconv_open-hpux.gperf: New file.
94689         * lib/iconv_open-irix.gperf: New file.
94690         * lib/iconv_open-osf.gperf: New file.
94691         * m4/iconv_open.m4: New file.
94692         * modules/linebreak (Depends-on): Add iconv_open.
94693         * modules/striconv (Depends-on): Likewise.
94694         * modules/striconveh (Depends-on): Likewise.
94695         * modules/unicodeio (Depends-on): Likewise.
94696         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
94697         (iconv_t)(-1).
94698         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
94699         conversion if cd is (iconv_t)(-1).
94700         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
94701         is not possible.
94703 2007-03-31  Bruno Haible  <bruno@clisp.org>
94705         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
94706         work on Solaris either. Protect also second use of "autodetect_jp".
94708 2007-03-31  Bruno Haible  <bruno@clisp.org>
94710         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
94711         the function is not present.
94713 2007-03-31  Bruno Haible  <bruno@clisp.org>
94715         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
94716         the function is not present.
94718 2007-03-31  Bruno Haible  <bruno@clisp.org>
94720         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
94721         a bug in HP-UX iconv_open().
94723 2007-03-31  Bruno Haible  <bruno@clisp.org>
94725         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
94726         (Mathematics <math.h>): New section, add fpieee.
94727         (Input/output <stdio.h>): Add fseterr.
94728         (Mathematics <math.h>): New section, add printf-frexp.
94729         (Container data structures): Add sublist.
94730         (Core language properties): Add fpucw, inline.
94731         (Functions for greatest-width integer types <inttypes.h>): Add
94732         imaxabs, imaxdiv, inttypes.
94733         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
94734         isnanl-nolibm, ldexp.
94735         (Mathematics <math.h>): New section, add printf-frexpl.
94736         (Support for systems lacking POSIX:2001): Add fprintf-posix,
94737         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
94738         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
94739         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
94740         (Unicode string functions): Add unistr/u*-mbtoucr.
94741         (Java): Add javacomp-script, javaexec-script.
94742         (C#): Add csharpcomp-script, csharpexec-script.
94743         (Support for building libraries and executables): Add havelib,
94744         relocatable-*.
94745         (Support for maintaining and releasing projects): Renamed from
94746         'Support for maintaining and release projects'. Add announce-gen.
94748 2007-03-31  Bruno Haible  <bruno@clisp.org>
94750         * README: Talk primarily about git.
94751         (git and CVS): Renamed from CVS.
94752         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
94753         gnulib is available through git.
94754         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
94756 2007-03-30  Bruno Haible  <bruno@clisp.org>
94758         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
94759         * lib/poll_.h: Likewise.
94760         * lib/stat_.h: Likewise.
94761         * lib/sys_time_.h: Likewise.
94762         * lib/sysexit_.h: Likewise.
94763         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
94764         * lib/stdbool_.h: Likewise.
94765         * lib/byteswap_.h: Add double-inclusion guard.
94767 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
94769         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
94771 2007-03-30  Karl Berry  <karl@gnu.org>
94773         * config/srclist-update: double space after USA in the license
94774         substitution, since that's how it's usually (?) written.
94776 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
94778         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
94779         reported by Bruno Haible.
94781 2007-03-29  Bruno Haible  <bruno@clisp.org>
94783         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
94784         a bug in AIX iconv().
94786 2007-03-29  Bruno Haible  <bruno@clisp.org>
94788         * modules/ldexpl-tests: New file.
94789         * tests/test-ldexpl.c: New file.
94791 2007-03-29  Bruno Haible  <bruno@clisp.org>
94793         * lib/ldexpl.c: Include fpucw.h.
94794         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
94795         multiplication.
94796         * modules/ldexpl (Depends-on): Add fpucw.
94798 2007-03-29  Bruno Haible  <bruno@clisp.org>
94800         * modules/ldexpl: New file.
94801         * m4/ldexpl.m4: New file.
94802         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
94803         set.
94804         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
94805         REPLACE_LDEXPL.
94806         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
94807         REPLACE_LDEXPL.
94808         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
94809         gl_FUNC_LDEXPL_WORKS.
94810         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
94811         * modules/mathl (Files): Remove lib/ldexpl.c.
94812         (Depends-on): Add ldexpl.
94814 2007-03-29  Bruno Haible  <bruno@clisp.org>
94816         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
94818 2007-03-29  Bruno Haible  <bruno@clisp.org>
94820         * tests/test-striconveh.c (main): Don't assume that a direct conversion
94821         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
94822         and possibly also HP-UX.
94823         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
94824         work on AIX, IRIX, HP-UX, OSF/1.
94825         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
94826         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
94827         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
94828         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
94829         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
94830         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
94832 2007-03-29  Bruno Haible  <bruno@clisp.org>
94834         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
94836 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
94838         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
94839         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
94841 2007-03-29  Eric Blake  <ebb9@byu.net>
94843         * lib/acl-internal.h: Remove redundant include.
94844         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
94845         Cygwin when a file is locked.
94847 2007-03-29  Bruno Haible  <bruno@clisp.org>
94849         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
94850         file.
94851         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
94853 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
94855         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
94856         try to remove a parent directory if the child couldn't be removed
94857         (except for the first rmdir, which could fail because the child
94858         doesn't exist).  Problem reported by Jeff Blaine in
94859         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
94861 2007-03-28  Bruno Haible  <bruno@clisp.org>
94863         * lib/striconveh.c (utf8conv_carefully): New function.
94864         (mem_cd_iconveh_internal): Invoke it.
94866 2007-03-28  Bruno Haible  <bruno@clisp.org>
94868         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
94869         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
94870         input.
94871         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
94872         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
94873         unistr/u8-uctomb.
94875 2007-03-28  Bruno Haible  <bruno@clisp.org>
94877         * modules/unistr/u8-mbtoucr: New file.
94878         * lib/unistr/u8-mbtoucr.c: New file.
94879         * modules/unistr/u16-mbtoucr: New file.
94880         * lib/unistr/u16-mbtoucr.c: New file.
94881         * modules/unistr/u16-mbtoucr: New file.
94882         * lib/unistr/u16-mbtoucr.c: New file.
94883         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
94885 2007-03-27  Simon Josefsson  <simon@josefsson.org>
94886             Bruno Haible  <bruno@clisp.org>
94888         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
94889         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
94890         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
94892         * m4/stdio_h.m4: Add stubs for vasprintf too.
94894         * modules/stdio: Support vasprintf in sed command.
94896         * modules/vasprintf: Depend on stdio for prototypes.  Remove
94897         vasprintf.h.  Add stdio module indicator.
94899         * lib/stdio_.h: Declare asprintf and vasprintf, based on
94900         vasprintf.h.
94902         * lib/vasprintf.h: File removed.
94904         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
94905         * lib/vasprintf.c: Ditto.
94906         * lib/xvasprintf.c: Ditto.
94907         * tests/test-vasprintf-posix.c: Ditto.
94908         * tests/test-vasprintf.c: Ditto.
94910 2007-03-27  Bruno Haible  <bruno@clisp.org>
94912         Make vasnprintf multithread-safe.
94913         * lib/vasnprintf.c (decimal_point_char): New function.
94914         (VASNPRINTF): Use it.
94915         Suggested by Simon Josefsson.
94917 2007-03-27  Eric Blake  <ebb9@byu.net>
94919         Support sub-second birthtime on cygwin.
94920         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
94921         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
94922         (get_stat_birthtime): Also work with st_birthtim.
94924 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
94926         * lib/stat-time.h (USE_BIRTHTIME): Remove.
94927         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
94928         (get_stat_birthtime_ns): Do not try to use "spare" fields.
94929         (get_stat_birthtime_ns): Simplify compile-time tests.
94930         (get_stat_birthtime): Change the API to look like
94931         get_stat_mtime etc., except return a negative tv_nsec on error.
94932         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
94933         Don't check for "spare" fields.
94934         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
94935         or for struct stat.st_birthtime, as these tests aren't used.
94936         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
94938 2007-03-27  Bruno Haible  <bruno@clisp.org>
94940         * lib/stat-time.h: Include <sys/stat.h>.
94942 2007-03-27  James Youngman  <jay@gnu.org>
94944         * lib/stat-time.h (get_stat_birthtime): New function for
94945           retrieving st_birthtime as provided by UFS2 (hence *BSD).
94946         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
94947           and its variants.
94948         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
94949         * modules/stat-time-test: New file.
94950         * tests/test-stat-time.c: New test, devised by Bruno Haible.
94952 2007-03-26  Bruno Haible  <bruno@clisp.org>
94954         Better support of signalling NaNs.
94955         * lib/atanl.c: Include isnanl.h.
94956         (atanl): Perform test for NaN at the beginning of the function and
94957         through a call to isnanl.
94958         * lib/cosl.c: Include isnanl.h.
94959         (cosl): Perform test for NaN at the beginning of the function and
94960         through a call to isnanl.
94961         * lib/ldexpl.c: Include isnanl.h.
94962         (ldexpl): Perform test for NaN through a call to isnanl.
94963         * lib/logl.c: Include isnanl.h.
94964         (logl): Perform test for NaN at the beginning of the function and
94965         through a call to isnanl.
94966         * lib/sinl.c: Include isnanl.h.
94967         (sinl): Perform test for NaN at the beginning of the function and
94968         through a call to isnanl.
94969         * lib/sqrtl.c: Include isnanl.h.
94970         (sqrtl): Perform test for NaN at the beginning of the function and
94971         through a call to isnanl.
94972         * lib/tanl.c: Include isnanl.h.
94973         (tanl): Perform test for NaN at the beginning of the function and
94974         through a call to isnanl.
94975         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
94976         * modules/mathl (Depends-on): Add isnanl.
94978 2007-03-26  Eric Blake  <ebb9@byu.net>
94980         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
94981         regression in logic sense of previous patch.
94983 2007-03-26  Bruno Haible  <bruno@clisp.org>
94985         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
94986         unportable shell command "if ! ...".
94987         Reported by Ralf Wildenhues.
94989 2007-03-25  Bruno Haible  <bruno@clisp.org>
94991         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
94992         <sysexits.h> file, and only add EX_CONFIG.
94993         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
94994         absolute file name and whether it is sufficient. Substitute also
94995         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
94996         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
94997         ABSOLUTE_SYSEXITS_H into sysexits.h.
94999 2007-03-25  Bruno Haible  <bruno@clisp.org>
95001         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
95002         hints is NULL.
95004 2007-03-25  Bruno Haible  <bruno@clisp.org>
95006         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
95007         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
95009 2007-03-25  Bruno Haible  <bruno@clisp.org>
95011         * lib/vasnprintf.c: Include langinfo.h.
95012         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
95013         multithread-safe.
95014         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
95015         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
95016         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95017         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95018         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95019         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95020         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95021         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
95022         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95023         Reported by Simon Josefsson.
95025 2007-03-25  Bruno Haible  <bruno@clisp.org>
95027         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
95028         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
95029         * modules/vasnprintf (Depends-on): Add stdint.
95031 2007-03-25  Bruno Haible  <bruno@clisp.org>
95033         * modules/fpieee: New file.
95034         * m4/fpieee.m4: New file.
95035         * modules/isnan-nolibm (Depends-on): Add fpieee.
95036         * modules/isnanl-nolibm (Depends-on): Add fpieee.
95037         * modules/isnanl (Depends-on): Add fpieee.
95039 2007-03-25  Bruno Haible  <bruno@clisp.org>
95041         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
95043 2007-03-25  Bruno Haible  <bruno@clisp.org>
95045         Avoid test failures on IRIX 6.5.
95046         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
95047         (main): Use it.
95048         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
95049         macros.
95050         (main): Use them.
95052 2007-03-25  Bruno Haible  <bruno@clisp.org>
95054         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
95055         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
95056         exists but doesn't work.
95057         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
95058         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
95059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
95060         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
95061         math.h.
95063 2007-03-25  Bruno Haible  <bruno@clisp.org>
95065         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
95066         returns inf. Needed on IRIX 6.5.
95068 2007-03-25  Bruno Haible  <bruno@clisp.org>
95070         * tests/test-frexpl.c: Include isnanl-nolibm.h.
95071         (main): Use isnanl instead of x != x idiom.
95072         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
95074         * tests/test-frexp.c: Include isnan.h.
95075         (main): Use isnan instead of x != x idiom.
95076         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
95078 2007-03-25  Bruno Haible  <bruno@clisp.org>
95080         * tests/test-frexp.c (NaN): New function/macro.
95081         (main): Use it instead of 0.0 / 0.0.
95082         * tests/test-isnan.c (NaN): New function/macro.
95083         (main): Use it instead of 0.0 / 0.0.
95084         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
95085         (test_function): Use it instead of 0.0 / 0.0.
95086         * tests/test-vasprintf-posix.c (NaN): New function/macro.
95087         (test_function): Use it instead of 0.0 / 0.0.
95088         * tests/test-snprintf-posix.h (NaN): New function/macro.
95089         (test_function): Use it instead of 0.0 / 0.0.
95090         * tests/test-sprintf-posix.h (NaN): New function/macro.
95091         (test_function): Use it instead of 0.0 / 0.0.
95092         * tests/test-fprintf-posix.h (NaN): New function/macro.
95093         (test_function): Use it instead of 0.0 / 0.0.
95094         * tests/test-printf-posix.h (NaN): New function/macro.
95095         (test_function): Use it instead of 0.0 / 0.0.
95097         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
95099 2007-03-25  Bruno Haible  <bruno@clisp.org>
95101         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
95103 2007-03-25  Bruno Haible  <bruno@clisp.org>
95105         * lib/regexec.c (merge_state_with_log): Make static.
95107 2007-03-25  Bruno Haible  <bruno@clisp.org>
95109         * lib/trigl.c (kernel_rem_pio2): Make static.
95111 2007-03-25  Bruno Haible  <bruno@clisp.org>
95113         * lib/sincosl.c (sincosl_table): Make static.
95115 2007-03-25  Bruno Haible  <bruno@clisp.org>
95117         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
95118         if the compiler does not support C99.
95120 2007-03-25  Bruno Haible  <bruno@clisp.org>
95122         * modules/time (Makefile.am): Ensure all rule action lines start with a
95123         tab.
95125 2007-03-24  Bruno Haible  <bruno@clisp.org>
95127         * modules/tsearch-tests: New file.
95128         * tests/test-tsearch.sh: New file.
95129         * tests/test-tsearch.c: New file, mostly copied from glibc.
95131         * modules/search-tests: New file.
95132         * tests/test-search.c: New file.
95134         * modules/search: New file.
95135         * lib/search_.h: New file, incorporating lib/tsearch.h.
95136         * m4/search_h.m4: New file.
95137         * lib/tsearch.h: Remove file.
95138         * lib/tsearch.c: Include search.h instead of tsearch.h.
95139         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
95140         HAVE_TSEARCH.
95141         * modules/tsearch (Files): Remove lib/tsearch.h.
95142         (Depends-on): Add search.
95143         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
95144         (Include): Change tsearch.h into search.h.
95146 2007-03-24  Bruno Haible  <bruno@clisp.org>
95148         * modules/fpucw: New file.
95149         * lib/fpucw.h: New file.
95150         * lib/frexp.c: Include fpucw.h.
95151         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
95152         (FUNC): Use them.
95153         * lib/printf-frexp.c: Include fpucw.h.
95154         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
95155         (FUNC): Use them.
95156         * lib/vasnprintf.c: Include fpucw.h.
95157         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
95158         'long double' calculations.
95159         * tests/test-frexpl.c: Include fpucw.h.
95160         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
95161         * tests/test-printf-frexpl.c: Include fpucw.h.
95162         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
95163         * modules/frexpl (Depends-on): Add fpucw.
95164         * modules/printf-frexpl (Depends-on): Likewise.
95165         * modules/fprintf-posix (Depends-on): Likewise.
95166         * modules/snprintf-posix (Depends-on): Likewise.
95167         * modules/sprintf-posix (Depends-on): Likewise.
95168         * modules/vasnprintf-posix (Depends-on): Likewise.
95169         * modules/vasprintf-posix (Depends-on): Likewise.
95170         * modules/vfprintf-posix (Depends-on): Likewise.
95171         * modules/vsnprintf-posix (Depends-on): Likewise.
95172         * modules/vsprintf-posix (Depends-on): Likewise.
95173         * modules/frexpl-tests (Depends-on): Likewise.
95174         * modules/printf-frexpl-tests (Depends-on): Likewise.
95176 2007-03-24  Bruno Haible  <bruno@clisp.org>
95178         * lib/float+.h: New file.
95179         * lib/isnan.c: Include float+.h.
95180         (SIZE): New macro.
95181         (FUNC): Compare only SIZE bytes of the value.
95182         * lib/vasnprintf.c: Include float+.h.
95183         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
95184         SIZEOF_LDBL or SIZEOF_DBL bytes.
95185         * modules/isnan-nolibm (Files): Add lib/float+.h.
95186         * modules/isnanl-nolibm (Files): Add lib/float+.h.
95187         * modules/isnanl (Files): Add lib/float+.h.
95188         * modules/vasnprintf (Files): Add lib/float+.h.
95190 2007-03-24  Bruno Haible  <bruno@clisp.org>
95192         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
95193         include isnanl-nolibm.h.
95195 2007-03-24  Bruno Haible  <bruno@clisp.org>
95197         * tests/test-read-file.c (main): Don't produce spurious output for
95198         expected situations. Make the test fail if it encountered unexpected
95199         results.
95201 2007-03-24  Bruno Haible  <bruno@clisp.org>
95203         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
95204         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
95206 2007-03-24  Bruno Haible  <bruno@clisp.org>
95208         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
95210 2007-03-24  Bruno Haible  <bruno@clisp.org>
95212         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
95213         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
95215         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
95216         * modules/utf8-ucs4: Turn into a symbolic link to module
95217         unistr/u8-mbtouc.
95219         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
95220         utf8-ucs4-unsafe.
95221         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
95222         unistr/u8-mbtouc-unsafe.
95224         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
95225         * modules/utf16-ucs4: Turn into a symbolic link to module
95226         unistr/u16-mbtouc.
95228         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
95229         utf16-ucs4-unsafe.
95230         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
95231         unistr/u16-mbtouc-unsafe.
95233         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
95234         * modules/ucs4-utf8: Turn into a symbolic link to module
95235         unistr/u8-ubtomb.
95237         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
95238         * modules/ucs4-utf16: Turn into a symbolic link to module
95239         unistr/u16-ubtomb.
95241 2007-03-24  Bruno Haible  <bruno@clisp.org>
95243         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
95244         Enable the function only if HAVE_INLINE.
95245         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
95246         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
95247         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
95248         Enable the function only if HAVE_INLINE.
95249         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
95250         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
95251         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
95252         Enable the function only if HAVE_INLINE.
95253         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
95254         Enable the function only if HAVE_INLINE.
95255         * modules/utf8-ucs4: Update.
95256         * modules/utf8-ucs4-unsafe: Update.
95257         * modules/utf16-ucs4: Update.
95258         * modules/utf16-ucs4-unsafe: Update.
95259         * modules/ucs4-utf8: Update.
95260         * modules/ucs4-utf16: Update.
95262 2007-03-24  Bruno Haible  <bruno@clisp.org>
95264         * lib/utf8-ucs4.h: Remove file.
95265         * lib/utf8-ucs4-unsafe.h: Remove file.
95266         * lib/utf16-ucs4.h: Remove file.
95267         * lib/utf16-ucs4-unsafe.h: Remove file.
95268         * lib/ucs4-utf8.h: Remove file.
95269         * lib/ucs4-utf16.h: Remove file.
95270         * lib/unistr.h: Include their previous contents.
95271         * m4/utf-ucs4.m4: Remove file.
95272         * m4/ucs4-utf.m4: Remove file.
95273         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
95274         (Depends-on): Add unistr/base.
95275         (configure.ac): Remove gl_UTF_UCS4.
95276         (Makefile.am): Update.
95277         (Include): Change to unistr.h.
95278         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
95279         (Depends-on): Add unistr/base.
95280         (configure.ac): Remove gl_UTF_UCS4.
95281         (Makefile.am): Update.
95282         (Include): Change to unistr.h.
95283         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
95284         (Depends-on): Add unistr/base.
95285         (configure.ac): Remove gl_UTF_UCS4.
95286         (Makefile.am): Update.
95287         (Include): Change to unistr.h.
95288         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
95289         (Depends-on): Add unistr/base.
95290         (configure.ac): Remove gl_UTF_UCS4.
95291         (Makefile.am): Update.
95292         (Include): Change to unistr.h.
95293         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
95294         (Depends-on): Add unistr/base.
95295         (configure.ac): Remove gl_UCS4_UTF.
95296         (Makefile.am): Update.
95297         (Include): Change to unistr.h.
95298         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
95299         (Depends-on): Add unistr/base.
95300         (configure.ac): Remove gl_UCS4_UTF.
95301         (Makefile.am): Update.
95302         (Include): Change to unistr.h.
95303         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
95304         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
95305         utf8-ucs4-unsafe.h.
95306         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
95307         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
95308         utf16-ucs4-unsafe.h.
95309         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
95310         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
95311         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
95312         * lib/unistr/u8-strchr.c: Likewise.
95313         * lib/unistr/u8-strrchr.c: Likewise.
95314         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
95315         * lib/unistr/u16-strchr.c: Likewise.
95316         * lib/unistr/u16-strrchr.c: Likewise.
95317         * lib/striconveh.c: Update.
95318         * lib/linebreak.c: Update.
95320 2007-03-24  Bruno Haible  <bruno@clisp.org>
95322         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
95323         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
95325 2007-03-22  Bruno Haible  <bruno@clisp.org>
95327         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
95329 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
95331         * MODULES.html.sh (File system functions): New module write-any-file.
95332         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
95333         * m4/write-any-file.m4: New files.
95335 2007-03-23  Eric Blake  <ebb9@byu.net>
95337         * gnulib-tool: Rearrange space-tab sequences, since some editors
95338         like to eat them.
95340 2007-03-23  Eric Blake  <ebb9@byu.net>
95342         * lib/version-etc.c (version_etc_va): Update license wording to
95343         be more concise.  Recommended by Richard Stallman.
95345 2007-03-22  Bruno Haible  <bruno@clisp.org>
95347         * lib/poll.c (MSG_PEEK): New fallback definition.
95349 2007-03-22  Bruno Haible  <bruno@clisp.org>
95351         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
95352         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
95353         (main): Update.
95354         Fixes a compilation error on BeOS.
95356 2007-03-22  Bruno Haible  <bruno@clisp.org>
95358         * modules/frexpl-tests: New file.
95359         * tests/test-frexpl.c: New file.
95361         * modules/frexpl: New file.
95362         * m4/frexpl.m4: New file.
95363         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
95364         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
95365         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
95366         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
95367         (Depends-on): Add frexpl. Remove isnanl-nolibm.
95368         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
95370 2007-03-22  Bruno Haible  <bruno@clisp.org>
95372         * lib/frexpl.c: Share code with lib/frexp.c.
95373         * modules/mathl (Files): Add lib/frexp.c.
95374         (Depends-on): Add isnanl-nolibm.
95376 2007-03-22  Bruno Haible  <bruno@clisp.org>
95378         * modules/printf-frexp (Files): Add m4/frexp.m4.
95379         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
95380         only if the found frexp function actually works.
95382 2007-03-22  Bruno Haible  <bruno@clisp.org>
95384         * lib/frexp.c: Remove older implementation that uses divisions.
95386 2007-03-21  Bruno Haible  <bruno@clisp.org>
95388         * modules/frexp-tests: New file.
95389         * tests/test-frexp.c: New file.
95391         * modules/frexp: New file.
95392         * lib/frexp.c: New file.
95393         * m4/frexp.m4: New file.
95394         * lib/math_.h (frexp): New declaration.
95395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
95396         REPLACE_FREXP.
95397         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
95399 2007-03-21  Bruno Haible  <bruno@clisp.org>
95401         * modules/isnanl-tests: New file.
95402         * tests/test-isnanl.c: New file.
95404         * modules/isnanl: New file.
95405         * lib/isnanl.h: New file.
95406         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
95407         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
95408         gl_FUNC_ISNANL_WORKS.
95409         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
95410         New macros.
95412 2007-03-21  Bruno Haible  <bruno@clisp.org>
95414         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
95415         lib/isnanl.h.
95416         (Include): Update.
95417         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
95418         * lib/vasnprintf.c: Update.
95419         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
95420         tests/test-isnanl.h, remove tests/test-isnanl.c.
95421         (Makefile.am): Update.
95422         * tests/test-isnanl-nolibm.c: New file.
95423         * tests/test-isnanl.h: New file.
95424         * tests/test-isnanl.c: Remove file.
95426 2007-03-21  Jim Meyering  <jim@meyering.net>
95428         When trying to open ".", treat ESTALE like EACCES.
95429         * lib/savewd.c (savewd_save): Resort to forking not just upon
95430         failure with EACCES, but also when errno is ESTALE.
95432 2007-03-20  Bruno Haible  <bruno@clisp.org>
95434         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
95435         Needed on AIX 5.1. Reported by Matthew Woehlke.
95437 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
95439         Suggestions by Bruno Haible:
95440         * lib/acl-internal.h: Include "gettext.h" rather than rolling
95441         our own.
95442         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
95443         * modules/acl (Depends-on): Add gettext.
95445 2007-03-19  Bruno Haible  <bruno@clisp.org>
95447         * modules/iconvme: Remove file.
95448         * lib/iconvme.h: Remove file.
95449         * lib/iconvme.c: Remove file.
95450         * m4/iconvme.m4: Remove file.
95452 2007-03-19  Bruno Haible  <bruno@clisp.org>
95454         * doc/relocatable-maint.texi: Break long shell script line.
95455         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
95457 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
95459         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
95460         handle file_has_acl.
95461         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
95462         * lib/acl.c: Move header inclusions and related macro defns into
95463         lib/acl-internal.h.
95464         (S_ISLNK): Remove defn, since that's now done for us.
95465         (file_has_acl): Move to lib/file-has-acl.c.
95466         Call acl_trivial if available.  This is the crucial part of the fix.
95467         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
95468         shared within the library.  Rewrite a bit, partly to make it compatible
95469         with the GNU coding style.
95470         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
95471         Remove unnecessary double-quotes.
95472         Don't test for acl_to_text; the build will catch that.
95473         Replace acl_entries if it doesn't exist and it is needed.
95474         Check for -lsec and acl_trivial (as used on Solaris 10).
95475         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
95476         lib/file-has-acl.c.
95477         (Depends-on): Add sys_stat, for S_ISLNK.
95479 2007-03-19  Ben Pfaff  <blp@gnu.org>
95481         * doc/gnulib.texi: Fix typos.
95482         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
95484 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
95486         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
95487         If size is zero here, buf must be zero.
95489 2007-03-19  Simon Josefsson  <simon@josefsson.org>
95491         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
95492         <bruno@clisp.org>.
95494 2007-03-18  Bruno Haible  <bruno@clisp.org>
95496         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
95497         Suggested by Eric Blake.
95499 2007-03-18  Ben Pfaff  <blp@gnu.org>
95501         * doc/relocatable.texi: Recommend using as prefix a directory
95502         that does not exist and will never be created.  Based on
95503         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
95504         and others.
95506 2007-03-17  Bruno Haible  <bruno@clisp.org>
95508         * lib/fchownat.c: Include lchown.h.
95510 2007-03-17  Bruno Haible  <bruno@clisp.org>
95512         Fix endless loop when the given allocated size was > INT_MAX.
95513         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
95514         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
95515         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
95516         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
95517         * lib/sprintf.c (sprintf): Likewise.
95519 2007-03-17  Bruno Haible  <bruno@clisp.org>
95521         * tests/test-argp-2.sh (func_compare): Output a context diff.
95523 2007-03-17  Bruno Haible  <bruno@clisp.org>
95525         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
95526         locale's decimal-point character.
95528 2007-03-17  Bruno Haible  <bruno@clisp.org>
95530         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
95531         before comparing it. Needed because on some platforms (e.g. x86) a
95532         'long double' occupies less bytes than sizeof (long double).
95534 2007-03-17  Bruno Haible  <bruno@clisp.org>
95536         * tests/test-crc.c (main): Make printf statements 64-bit clean.
95537         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
95538         * tests/test-getaddrinfo.c (simple): Likewise.
95539         * tests/test-read-file.c (main): Likewise.
95541 2007-03-17  Bruno Haible  <bruno@clisp.org>
95543         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
95545 2007-03-17  Bruno Haible  <bruno@clisp.org>
95547         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
95548         unused variable.
95550 2007-03-17  Bruno Haible  <bruno@clisp.org>
95552         * tests/test-c-strcasecmp.c: Include c-strcase.h.
95553         * tests/test-c-strncasecmp.c: Likewise.
95555 2007-03-17  Bruno Haible  <bruno@clisp.org>
95557         * modules/stdlib (Depends-on): Add unistd.
95558         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
95559         Needed for MacOS X 10.3.
95561 2007-03-17  Bruno Haible  <bruno@clisp.org>
95563         * lib/unistr/u-strdup.h: Include <stdlib.h>.
95565 2007-03-17  Bruno Haible  <bruno@clisp.org>
95567         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
95569 2007-03-17  Bruno Haible  <bruno@clisp.org>
95571         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
95572         to reflect files copied from gnulib (with or without modifications).
95573         Suggested by Jim Meyering.
95575 2007-03-17  Eric Blake  <ebb9@byu.net>
95577         * NEWS: Document stdlib change from 2007-02-18.
95579 2007-03-17  Jim Meyering  <jim@meyering.net>
95581         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
95582         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
95583         someone uses a name containing shell meta-characters.
95584         Reported by Alfred M. Szmidt.
95586         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
95588 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
95590         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
95591         and copy gettext configuration files only if configure.ac contains
95592         a use of AM_GNU_GETTEXT_VERSION.
95594 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
95596         * build-aux/bootstrap (gnulib_name): New variable.
95597         (gnulib_tool_options): Use it.
95599 2007-03-13  Simon Josefsson  <simon@josefsson.org>
95601         * tests/test-des.c: Use new namespace.
95603 2007-03-15  Bruno Haible  <bruno@clisp.org>
95605         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
95606         Reported by James Youngman <jay@gnu.org>.
95608 2007-03-15  Bruno Haible  <bruno@clisp.org>
95610         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
95611         declared prototype. Needed with cc on OSF/1 5.1.
95613 2007-03-15  Bruno Haible  <bruno@clisp.org>
95615         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
95616         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
95617         (struct gl_list_implementation): Add dispose_fn argument to the
95618         'create_empty', 'create' methods.
95619         (struct gl_list_impl_base): Add field 'dispose_fn'.
95620         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
95621         argument.
95622         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
95623         dispose_fn argument.
95624         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
95625         dispose_fn on the dropped values.
95626         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
95627         dispose_fn argument.
95628         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
95629         dropped values.
95630         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
95631         (gl_tree_remove_node): Call dispose_fn on the dropped value.
95632         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
95633         (gl_tree_remove_node): Call dispose_fn on the dropped value.
95634         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
95635         argument.
95636         (gl_tree_list_free): Call dispose_fn on the dropped values.
95637         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
95638         the dropped values.
95639         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
95640         Add dispose_fn argument.
95641         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
95642         Call dispose_fn on the dropped values.
95643         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
95644         Add dispose_fn argument.
95645         (gl_sublist_create): Initialize the 'dispose_fn' field.
95646         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
95647         * tests/test-array_list.c (main): Update.
95648         * tests/test-carray_list.c (main): Update.
95649         * tests/test-avltree_list.c (main): Update.
95650         * tests/test-rbtree_list.c (main): Update.
95651         * tests/test-avltreehash_list.c (main): Update.
95652         * tests/test-rbtreehash_list.c (main): Update.
95653         * tests/test-linked_list.c (main): Update.
95654         * tests/test-linkedhash_list.c (main): Update.
95655         * tests/test-array_oset.c (main): Update.
95657 2007-03-15  Bruno Haible  <bruno@clisp.org>
95659         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
95660         (gl_oset_create_empty): Add dispose_fn argument.
95661         (struct gl_oset_implementation): Add dispose_fn argument to
95662         'create_empty' method.
95663         (struct gl_oset_impl_base): Add dispose_fn field.
95664         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
95665         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
95666         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
95667         values.
95668         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
95669         (gl_tree_oset_free): Call dispose_fn on the dropped values.
95670         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
95671         dropped value.
95672         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
95673         dropped value.
95674         * tests/test-array_oset.c (main): Update.
95675         * tests/test-avltree_oset.c (main): Update.
95676         * tests/test-rbtree_oset.c (main): Update.
95677         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
95679 2007-03-13  Bruno Haible  <bruno@clisp.org>
95681         * tests/test-stdbool.c (i): Update after last patch.
95683 2007-03-12  Bruno Haible  <bruno@clisp.org>
95685         * lib/quotearg.c: Include <wctype.h> early, before the definition of
95686         the iswprint macro. Needed on Solaris 2.5.1.
95688 2007-03-12  Bruno Haible  <bruno@clisp.org>
95690         * tests/test-printf-frexp.c (main): Declare x as volatile.
95692 2007-03-12  Simon Josefsson  <simon@josefsson.org>
95694         * doc/gnulib.texi (Build robot for gnulib): New section.
95696 2007-03-12  Jim Meyering  <jim@meyering.net>
95698         * build-aux/bootstrap: New file.
95699         * build-aux/bootstrap.conf: New file, from coreutils.
95701 2007-03-11  Bruno Haible  <bruno@clisp.org>
95703         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
95705 2007-03-12  Simon Josefsson  <simon@josefsson.org>
95707         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
95708         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
95709         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
95711 2007-03-11  Bruno Haible  <bruno@clisp.org>
95713         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
95714         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
95716 2007-03-11  Bruno Haible  <bruno@clisp.org>
95718         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
95719         formula. Needed for SunPRO C 5.0.
95721 2007-03-11  Bruno Haible  <bruno@clisp.org>
95723         * modules/long-options (Depends-on): Add getopt.
95725 2007-03-11  Bruno Haible  <bruno@clisp.org>
95727         * modules/modechange (Depends-on): Add stdbool.
95729 2007-03-11  Bruno Haible  <bruno@clisp.org>
95731         * modules/i-ring (Depends-on): Add stdbool.
95733 2007-03-11  Bruno Haible  <bruno@clisp.org>
95735         * modules/gc-des (Depends-on): Add stdbool.
95737 2007-03-11  Bruno Haible  <bruno@clisp.org>
95739         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
95741 2007-03-11  Bruno Haible  <bruno@clisp.org>
95743         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
95745 2007-03-11  Bruno Haible  <bruno@clisp.org>
95747         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
95749 2007-03-11  Bruno Haible  <bruno@clisp.org>
95751         * lib/vasnprintf.c (sprintf): Undefine.
95753 2007-03-11  Bruno Haible  <bruno@clisp.org>
95755         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
95756         initializers in SunPRO C and Compaq C compilers.
95758 2007-03-11  Bruno Haible  <bruno@clisp.org>
95760         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
95761         decrementing code ANSI C compliant.
95763 2007-03-11  Bruno Haible  <bruno@clisp.org>
95765         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
95766         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
95768 2007-03-11  Bruno Haible  <bruno@clisp.org>
95770         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
95771         <stdbool.h> substitute doesn't pass.
95773 2007-03-11  Bruno Haible  <bruno@clisp.org>
95775         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
95777 2007-03-11  Bruno Haible  <bruno@clisp.org>
95779         * gnulib-tool (func_create_megatestdir): Create also an autobuild
95780         script, for submission to autobuild.josefsson.org.
95782 2007-03-10  Bruno Haible  <bruno@clisp.org>
95784         * modules/canonicalize-lgpl-tests: New file.
95785         * tests/test-canonicalize-lgpl.sh: New file.
95786         * tests/test-canonicalize-lgpl.c: New file.
95788         * modules/c-strcase-tests: New file.
95789         * tests/test-c-strcase.sh: New file.
95790         * tests/test-c-strcasecmp.c: New file.
95791         * tests/test-c-strncasecmp.c: New file.
95793         * modules/atexit-tests: New file.
95794         * tests/test-atexit.sh: New file.
95795         * tests/test-atexit.c: New file.
95797 2007-03-10  Bruno Haible  <bruno@clisp.org>
95799         * tests/test-binary-io.sh: Use temporary filenames that are not so
95800         likely to clash with those of other tests (in a parallel make).
95801         * tests/test-binary-io.c: Likewise.
95803 2007-03-10  Bruno Haible  <bruno@clisp.org>
95805         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
95806         fallback; use #error instead.
95807         Suggested by Simon Josefsson.
95809 2007-03-10  Bruno Haible  <bruno@clisp.org>
95811         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
95812         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
95813         first and the last.
95815 2007-03-10  Bruno Haible  <bruno@clisp.org>
95817         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
95819 2007-03-10  Bruno Haible  <bruno@clisp.org>
95821         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
95822         "make distcheck".
95823         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
95824         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
95825         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
95827 2007-03-10  Bruno Haible  <bruno@clisp.org>
95829         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
95830         variable.
95831         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
95832         variable.
95834 2007-03-09  Eric Blake  <ebb9@byu.net>
95835         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
95837         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
95838         types are not being provided by gnulib.
95839         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
95840         types are supported.
95842 2007-03-10  Bruno Haible  <bruno@clisp.org>
95844         * lib/stdio_.h (__attribute__): New macro.
95845         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
95846         vsprintf): Specify __attribute__ __format__ for GCC.
95847         Suggested by Eric Blake.
95849 2007-03-09  Bruno Haible  <bruno@clisp.org>
95851         * modules/printf-posix-tests: New file.
95852         * tests/test-printf-posix.sh: New file.
95853         * tests/test-printf-posix.c: New file.
95855         * modules/printf-posix: New file.
95856         * lib/printf.c: New file.
95857         * m4/printf-posix-rpl.m4: New file.
95858         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
95859         REPLACE_PRINTF.
95860         * lib/stdio_.h (printf): New declaration.
95861         (format, __format__, ____printf____, ____scanf____, ____strftime____,
95862         ____strfmon____): New macros.
95863         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
95864         REPLACE_PRINTF.
95866 2007-03-09  Bruno Haible  <bruno@clisp.org>
95868         * tests/test-vasnprintf-posix2.sh: New file.
95869         * tests/test-vasnprintf-posix2.c: New file.
95870         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
95871         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
95872         (Makefile.am): Activate test-vasnprintf-posix2.sh.
95874         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
95875         a locale dependent decimal point, rather than always '.'.
95877 2007-03-09  Eric Blake  <ebb9@byu.net>
95879         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
95880         spite of platforms like Tandem/NSK that define it to -1.
95882 2007-03-08  Bruno Haible  <bruno@clisp.org>
95884         * modules/vprintf-posix-tests: New file.
95885         * tests/test-vprintf-posix.sh: New file.
95886         * tests/test-vprintf-posix.c: New file.
95887         * tests/test-printf-posix.h: New file.
95889         * modules/vprintf-posix: New file.
95890         * lib/vprintf.c: New file.
95891         * m4/vprintf-posix.m4: New file.
95892         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
95893         REPLACE_VPRINTF.
95894         * lib/stdio_.h (vprintf): New declaration.
95895         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
95896         REPLACE_VPRINTF.
95898 2007-03-08  Bruno Haible  <bruno@clisp.org>
95900         * modules/fprintf-posix-tests: New file.
95901         * tests/test-fprintf-posix.sh: New file.
95902         * tests/test-fprintf-posix.c: New file.
95904         * modules/fprintf-posix: New file.
95905         * lib/fprintf.c: New file.
95906         * m4/fprintf-posix.m4: New file.
95907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
95908         REPLACE_FPRINTF.
95909         * lib/stdio_.h (fprintf): New declaration.
95910         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
95911         REPLACE_FPRINTF.
95913 2007-03-08  Bruno Haible  <bruno@clisp.org>
95915         * modules/vfprintf-posix-tests: New file.
95916         * tests/test-vfprintf-posix.sh: New file.
95917         * tests/test-vfprintf-posix.c: New file.
95918         * tests/test-fprintf-posix.h: New file.
95919         * tests/test-fprintf-posix.out: New file.
95921         * modules/vfprintf-posix: New file.
95922         * lib/vfprintf.c: New file.
95923         * m4/vfprintf-posix.m4: New file.
95924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
95925         REPLACE_VFPRINTF.
95926         * lib/stdio_.h (vfprintf): New declaration.
95927         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
95928         REPLACE_VFPRINTF.
95930 2007-03-08  Bruno Haible  <bruno@clisp.org>
95932         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
95934 2007-03-08  Bruno Haible  <bruno@clisp.org>
95936         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
95937         instead of 'expr' invocations.
95938         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95939         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95940         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95941         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95942         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95943         Suggested by Paul Eggert.
95945 2007-03-08  Bruno Haible  <bruno@clisp.org>
95947         * modules/fseterr-tests: New file.
95948         * tests/test-fseterr.c: New file.
95950         * modules/fseterr: New file.
95951         * lib/fseterr.h: New file.
95952         * lib/fseterr.c: New file.
95954 2007-03-08  Bruno Haible  <bruno@clisp.org>
95956         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
95957         * lib/getopt_.h: Likewise.
95958         * lib/mbswidth.h: Likewise.
95959         * lib/setenv.h: Likewise.
95960         * lib/vasnprintf.h: Likewise.
95961         * lib/vasprintf.h: Likewise.
95962         * lib/verror.h: Likewise.
95963         * lib/xsetenv.h: Likewise.
95964         * lib/xvasprintf.h: Likewise.
95966 2007-03-08  Jim Meyering  <jim@meyering.net>
95968         * users.txt: Add parted.
95970         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
95972 2007-03-07  Bruno Haible  <bruno@clisp.org>
95974         * m4/printf.m4: Make the shell script snippets copy&pastable.
95976 2007-03-02  Bruno Haible  <bruno@clisp.org>
95978         * lib/netinet_in_.h: New file.
95979         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
95980         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
95981         * modules/netinet_in (Files): Add lib/netinet_in_.h.
95982         (Depends-on): Add absolute-header.
95983         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
95984         into netinet/in.h.
95986 2007-03-03  Bruno Haible  <bruno@clisp.org>
95988         * lib/sys_select_.h: New file.
95989         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
95990         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
95991         * modules/sys_select (Files): Add lib/sys_select_.h.
95992         (Depends-on): Add absolute-header.
95993         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
95994         into sys/select.h.
95996 2007-03-02  Bruno Haible  <bruno@clisp.org>
95998         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
95999         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
96000         values.
96001         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
96002         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
96003         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
96004         * modules/sys_socket (Depends-on): Add absolute-header.
96005         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
96006         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
96007         (Include): Remove requirement of inclusion of <sys/types.h>.
96009 2007-03-02  Bruno Haible  <bruno@clisp.org>
96011         * lib/byteswap_.h (bswap_32): Fix formula.
96013 2007-03-06  Bruno Haible  <bruno@clisp.org>
96015         * modules/sprintf-posix-tests: New file.
96016         * tests/test-sprintf-posix.c: New file.
96018         * modules/sprintf-posix: New file.
96019         * lib/sprintf.c: New file.
96020         * m4/sprintf-posix.m4: New file.
96021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
96022         REPLACE_SPRINTF.
96023         * lib/stdio_.h (sprintf): New declaration.
96024         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
96025         REPLACE_SPRINTF.
96027 2007-03-06  Bruno Haible  <bruno@clisp.org>
96029         * modules/vsprintf-posix-tests: New file.
96030         * tests/test-vsprintf-posix.c: New file.
96031         * tests/test-sprintf-posix.h: New file.
96033         * modules/vsprintf-posix: New file.
96034         * lib/vsprintf.c: New file.
96035         * m4/vsprintf-posix.m4: New file.
96036         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
96037         REPLACE_VSPRINTF.
96038         * lib/stdio_.h (vsprintf): New declaration.
96039         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
96040         REPLACE_VSPRINTF.
96042 2007-03-06  Bruno Haible  <bruno@clisp.org>
96044         * modules/vsnprintf (Depend-on): Remove minmax.
96046 2007-03-06  Bruno Haible  <bruno@clisp.org>
96048         * modules/snprintf-posix-tests: New file.
96049         * tests/test-snprintf-posix.c: New file.
96051         * modules/snprintf-posix: New file.
96052         * m4/snprintf-posix.m4: New file.
96053         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
96054         gl_FUNC_SNPRINTF.
96055         (gl_FUNC_SNPRINTF): Invoke it.
96056         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
96057         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
96058         is set.
96059         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
96061 2007-03-06  Bruno Haible  <bruno@clisp.org>
96063         * modules/vsnprintf-posix-tests: New file.
96064         * tests/test-vsnprintf-posix.c: New file.
96065         * tests/test-snprintf-posix.h: New file.
96067         * modules/vsnprintf-posix: New file.
96068         * m4/vsnprintf-posix.m4: New file.
96069         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
96070         gl_FUNC_VSNPRINTF.
96071         (gl_FUNC_VSNPRINTF): Invoke it.
96072         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
96073         * lib/stdio_.h (vsnprintf): Define as a replacement if
96074         REPLACE_VSNPRINTF is set.
96075         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
96077 2007-03-06  Bruno Haible  <bruno@clisp.org>
96079         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
96080         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
96082 2007-03-06  Bruno Haible  <bruno@clisp.org>
96084         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
96085         (asinl): Declare also if HAVE_DECL_ASINL is set.
96086         (atanl): Declare also if HAVE_DECL_ATANL is set.
96087         (ceill): Declare also if HAVE_DECL_CEILL is set.
96088         (cosl): Declare also if HAVE_DECL_COSL is set.
96089         (expl): Declare also if HAVE_DECL_EXPL is set.
96090         (floorl): Declare also if HAVE_DECL_FLOORL is set.
96091         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
96092         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
96093         (logl): Declare also if HAVE_DECL_LOGL is set.
96094         (sinl): Declare also if HAVE_DECL_SINL is set.
96095         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
96096         (tanl): Declare also if HAVE_DECL_TANL is set.
96097         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
96098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
96099         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
96100         declaration of frexpl, ldexpl.
96101         * modules/printf-frexpl (Depends-on): Add math.
96102         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
96104 2007-03-05  Bruno Haible  <bruno@clisp.org>
96106         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
96107         frexpl and ldexpl are declared.
96108         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
96110 2007-03-05  Bruno Haible  <bruno@clisp.org>
96112         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
96113         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
96115 2007-03-05  Bruno Haible  <bruno@clisp.org>
96117         * lib/stdio_.h: Include <stddef.h>.
96119 2007-03-05  Bruno Haible  <bruno@clisp.org>
96121         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
96123 2007-03-05  Bruno Haible  <bruno@clisp.org>
96125         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
96126         NetBSD 4, from Ralf Wildenhues.
96128 2007-03-04  Bruno Haible  <bruno@clisp.org>
96130         * lib/vasprintf.h: Update #if logic for the case when the functions
96131         exist but are overridden.
96133 2007-03-04  Bruno Haible  <bruno@clisp.org>
96135         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
96136         implementations: glibc-2.4 and MacOS X 10.3.
96137         * tests/test-vasnprintf-posix.c (test_function): Test also the case
96138         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
96139         * tests/test-vasprintf-posix.c (test_function): Likewise.
96141 2007-03-04  Bruno Haible  <bruno@clisp.org>
96143         * modules/vasprintf-posix-tests: New file.
96144         * tests/test-vasprintf-posix.c: New file.
96146         * modules/vasprintf-posix: New file.
96147         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
96148         defined.
96149         * m4/vasprintf-posix.m4: New file.
96150         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
96151         gl_FUNC_VASPRINTF.
96152         (gl_FUNC_VASPRINTF): Invoke it.
96153         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
96154         here.
96155         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
96157 2007-03-04  Bruno Haible  <bruno@clisp.org>
96159         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
96160         REPLACE_GETTIMEOFDAY.
96161         * modules/sys_time (Makefile.am): Likewise.
96162         * m4/sys_time_h.m4: Likewise.
96163         * m4/gettimeofday.m4: Likewise.
96165 2007-03-04  Bruno Haible  <bruno@clisp.org>
96167         * modules/vasnprintf-posix-tests: New file.
96168         * tests/test-vasnprintf-posix.c: New file.
96170         * modules/vasnprintf-posix: New file.
96171         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
96172         printf-frexpl.h.
96173         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
96174         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
96175         REPLACE_VASNPRINTF is defined.
96176         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
96177         gl_FUNC_VASNPRINTF.
96178         (gl_FUNC_VASNPRINTF): Invoke it.
96179         * m4/vasnprintf-posix.m4: New file.
96180         * m4/printf.m4: New file.
96182 2007-03-04  Bruno Haible  <bruno@clisp.org>
96184         Compile progreloc.c only if --enable-relocatable is specified.
96185         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
96186         if --enable-relocatable was specified.
96187         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
96188         lib_SOURCES.
96190 2007-03-04  Jim Meyering  <jim@meyering.net>
96192         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
96193         Use it consistently, rather than enumerating errno constants.
96195 2007-03-04  Bruno Haible  <bruno@clisp.org>
96197         * modules/xvasprintf-tests: New file.
96198         * tests/test-xvasprintf.c: New file.
96200         * modules/vasprintf-tests: New file.
96201         * tests/test-vasprintf.c: New file.
96203         * modules/vasnprintf-tests: New file.
96204         * tests/test-vasnprintf.c: New file.
96206         * modules/vsnprintf-tests: New file.
96207         * tests/test-vsnprintf.c: New file.
96209         * modules/snprintf-tests: New file.
96210         * tests/test-snprintf.c: New file.
96212 2007-03-04  Bruno Haible  <bruno@clisp.org>
96214         Compile relocatable.c only if --enable-relocatable is specified.
96215         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
96216         gl_RELOCATABLE_LIBRARY.
96217         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
96218         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
96219         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
96220         gl_RELOCATABLE_LIBRARY.
96221         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
96222         (Makefile.am): Remove lib_SOURCES.
96223         * modules/relocatable-lib-lgpl (configure.ac): Invoke
96224         gl_RELOCATABLE_LIBRARY.
96225         (Makefile.am): Remove lib_SOURCES.
96226         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
96227         always.
96228         * modules/relocatable-prog-wrapper (configure.ac): Invoke
96229         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
96231 2007-03-04  Bruno Haible  <bruno@clisp.org>
96233         * modules/argmatch-tests: New file.
96234         * tests/test-argmatch.c: New file.
96236         * tests/test-allocsa.c (main): Halve the number of loop runs.
96238         * modules/alloca-opt-tests: New file.
96239         * tests/test-alloca-opt.c: New file.
96241 2007-03-04  Jim Meyering  <jim@meyering.net>
96243         Work around difference between Linux ACLs and Solaris 10 ZFS.
96244         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
96245         for EINVAL.
96247 2007-03-03  Bruno Haible  <bruno@clisp.org>
96249         * modules/relocatable-prog (Depends-on): Add back progreloc's
96250         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
96252 2007-03-03  Bruno Haible  <bruno@clisp.org>
96254         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
96255         * modules/relocatable-lib: New file.
96257 2007-03-03  Bruno Haible  <bruno@clisp.org>
96259         * modules/relocatable-prog: Renamed from modules/relocatable.
96260         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
96262 2007-03-03  Bruno Haible  <bruno@clisp.org>
96264         * modules/relocatable-script (Files): Add doc/relocatable.texi,
96265         m4/relocatable-lib.m4.
96266         (Depends-on): Remove 'relocatable'.
96267         (configure.ac): Add gl_RELOCATABLE_NOP.
96269 2007-03-03  Bruno Haible  <bruno@clisp.org>
96271         * modules/relocatable-prog-wrapper: New file.
96272         * modules/relocatable (Depends-on): Add it. Remove all other
96273         dependencies except progname.
96274         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
96276         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
96277         (gl_FUNC_STRERROR): Nop.
96278         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
96280         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
96281         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
96283         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
96284         (gl_FUNC_READLINK): Update.
96286         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
96288 2007-03-03  Bruno Haible  <bruno@clisp.org>
96290         * lib/xreadlink.c: Include <unistd.h> unconditionally.
96291         * modules/xreadlink (Depends-on): Add unistd.
96292         * modules/xreadlink-with-size (Depends-on): Likewise.
96294 2007-03-03  Bruno Haible  <bruno@clisp.org>
96296         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
96297         extracted from gt_FUNC_SETENV.
96298         (gt_FUNC_SETENV): Remove macro.
96299         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
96300         remove gt_FUNC_SETENV.
96302 2007-03-03  Bruno Haible  <bruno@clisp.org>
96304         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
96305         ENABLE_RELOCATABLE here.
96306         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
96308 2007-03-03  Bruno Haible  <bruno@clisp.org>
96310         * modules/rbtreehash-list-tests (Depends-on): Add progname.
96311         * tests/test-rbtreehash_list.c: Include progname.h.
96312         (main): Call set_program_name.
96314         * modules/rbtree-oset-tests (Depends-on): Add progname.
96315         * tests/test-rbtree_oset.c: Include progname.h.
96316         (main): Call set_program_name.
96318         * modules/rbtree-list-tests (Depends-on): Add progname.
96319         * tests/test-rbtree_list.c: Include progname.h.
96320         (main): Call set_program_name.
96322         * modules/linked-list-tests (Depends-on): Add progname.
96323         * tests/test-linked_list.c: Include progname.h.
96324         (main): Call set_program_name.
96326 2007-03-03  Bruno Haible  <bruno@clisp.org>
96328         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
96329         All uses of __restrict changed to _Restrict_.
96330         * lib/glob_.h (__restrict): Remove macro.
96332 2007-03-02  Bruno Haible  <bruno@clisp.org>
96334         * modules/gettext (configure.ac): Require gettext infrastructure
96335         from version 0.16.1.
96337 2007-03-02  Bruno Haible  <bruno@clisp.org>
96339         * modules/linkedhash-list-tests (Depends-on): Add progname.
96340         * tests/test-linkedhash_list.c: Include progname.h.
96341         (main): Call set_program_name.
96343         * modules/carray-list-tests (Depends-on): Add progname.
96344         * tests/test-carray_list.c: Include progname.h.
96345         (main): Call set_program_name.
96347         * modules/avltreehash-list-tests (Depends-on): Add progname.
96348         * tests/test-avltreehash_list.c: Include progname.h.
96349         (main): Call set_program_name.
96351         * modules/avltree-oset-tests (Depends-on): Add progname.
96352         * tests/test-avltree_oset.c: Include progname.h.
96353         (main): Call set_program_name.
96355         * modules/avltree-list-tests (Depends-on): Add progname.
96356         * tests/test-avltree_list.c: Include progname.h.
96357         (main): Call set_program_name.
96359         * modules/array-oset-tests (Depends-on): Add progname.
96360         * tests/test-array_oset.c: Include progname.h.
96361         (main): Call set_program_name.
96363         * modules/array-list-tests (Depends-on): Add progname.
96364         * tests/test-array_list.c: Include progname.h.
96365         (main): Call set_program_name.
96367         * modules/argp-tests (Depends-on): Add progname.
96368         * tests/test-argp.c: Include argp.h first. Include progname.h.
96369         (main): Call set_program_name.
96371 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
96373         * doc/gnulib-tool.texi (Initial import): Reword description of
96374         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
96375         limited effect even if defined after the first system include.
96377 2007-03-01  Bruno Haible  <bruno@clisp.org>
96379         * build-aux/config.libpath: Update to libtool-1.5.22.
96380         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
96382 2007-03-01  Bruno Haible  <bruno@clisp.org>
96384         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
96385         foo_CFLAGS.
96386         Reported by Ralf Wildenhues.
96388 2007-03-01  Bruno Haible  <bruno@clisp.org>
96390         * build-aux/install-reloc: Remove object files left over by some
96391         compilers.
96392         Reported by Ralf Wildenhues.
96394 2007-03-01  Bruno Haible  <bruno@clisp.org>
96396         * build-aux/install-reloc: Break long lines.
96398 2007-03-01  Bruno Haible  <bruno@clisp.org>
96400         * doc/relocatable.texi: Document that it may not work on OpenBSD.
96401         Reported by Ralf Wildenhues.
96403 2007-03-01  Bruno Haible  <bruno@clisp.org>
96405         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
96406         include ordering constraints.
96408 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
96410         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
96411         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
96412         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
96413         as another example.
96414         * lib/time_.h: Fix misspelling.
96415         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
96416         Require gl_HEADER_TIME_H_DEFAULTS.
96417         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
96418         * m4/time_r.m4 (gl_TIME_R): Likewise.
96419         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
96421 2007-03-01  Bruno Haible  <bruno@clisp.org>
96423         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
96424         * m4/utimens.m4 (gl_UTIMENS): Likewise.
96426 2007-03-01  Jim Meyering  <jim@meyering.net>
96428         * modules/xreadlink (Maintainer): Add my name.
96429         * modules/xreadlink-with-size (Depends-on): Alphabetize.
96431 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
96432             Bruno Haible  <bruno@clisp.org>
96434         * build-aux/install-reloc: Compile also c-ctype.c.
96435         * build-aux/relocatable.sh.in: New file.
96436         * doc/relocatable.texi: New file.
96437         * doc/relocatable-maint.texi: New file.
96438         * doc/gnulib.texi: Include relocatable-maint.texi.
96439         * lib/progreloc.c: Include unistd.h unconditionally.
96440         * lib/relocwrapper.c: Include unistd.h unconditionally.
96441         Include c-ctype.h.
96442         (add_dotbin): Use c_tolower.
96443         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
96444         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
96445         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
96446         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
96447         to m4/relocatable-lib.m4.
96448         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
96449         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
96450         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
96451         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
96452         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
96453         * modules/relocatable: New file.
96454         * modules/relocatable-lib: New file.
96455         * modules/relocatable-script: New file.
96457 2007-02-28  Bruno Haible  <bruno@clisp.org>
96459         Import --enable-relocatable infrastructure.
96460         * build-aux/config.libpath: New file, from GNU gettext.
96461         * build-aux/install-reloc: New file, from GNU gettext.
96462         * build-aux/reloc-ldflags: New file, from GNU gettext.
96463         * lib/relocatable.h: New file, from GNU gettext.
96464         * lib/relocatable.c: New file, from GNU gettext.
96465         * lib/relocwrapper.c: New file, from GNU gettext.
96466         * m4/relocatable.m4: New file, from GNU gettext.
96468 2007-02-28  Bruno Haible  <bruno@clisp.org>
96470         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
96472         * modules/xreadlink: New file, from GNU gettext with modifications.
96473         * lib/xreadlink.c: New file, from GNU gettext.
96474         * lib/xreadlink.h: Add comments.
96475         (xreadlink): New declaration.
96477         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
96478         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
96479         lib/xreadlink-with-size.c.
96480         (configure.ac): Remove gl_XREADLINK invocation.
96481         (Makefile.am): Augment lib_SOURCES.
96482         * m4/xreadlink.m4: Remove file.
96483         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
96484         (xreadlink_with_size): Renamed from xreadink.
96485         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
96486         * modules/canonicalize (Depends-on): Replace xreadlink with
96487         xreadlink-with-size.
96488         * lib/canonicalize.c (canonicalize_filename_mode): Update.
96490 2007-02-25  Jim Meyering  <jim@meyering.net>
96492         * build-aux/announce-gen: When complaining about excess arguments,
96493         list them.
96495 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
96497         * README: Document signed integer overflow situation more
96498         accurately.
96500 2007-02-25  Bruno Haible  <bruno@clisp.org>
96502         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
96503         'a' or 'A' conversion.
96505 2007-02-25  Bruno Haible  <bruno@clisp.org>
96507         * modules/filename: Renamed from modules/pathname.
96508         (Files): Replace lib/pathname.h with lib/filename.h. Replace
96509         lib/concatpath.c with lib/concat-filename.c.
96510         (Makefile.am): Update.
96511         (Include): Replace pathname.h with filename.h.
96512         * lib/filename.h: Renamed from lib/pathname.h.
96513         (concatenated_filename): Renamed from concatenated_pathname.
96514         * lib/concat-filename.c: Renamed from lib/concatpath.c.
96515         (concatenated_filename): Renamed from concatenated_pathname.
96516         * lib/findprog.c: Include filename.h instead of pathname.h.
96517         (find_in_path): Update.
96518         * lib/javacomp.c: Include filename.h instead of pathname.h.
96519         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
96520         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
96521         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
96522         is_oldgcj_14_13_usable, is_javac_usable): Update.
96523         * lib/javaexec.c: Include filename.h instead of pathname.h.
96524         (execute_java_class): Update.
96525         * modules/findprog: Update.
96526         * modules/javacomp: Update.
96527         * modules/javaexec: Update.
96528         * MODULES.html.sh (File system functions): Add 'filename', remove
96529         'pathname'.
96531 2007-02-25  Bruno Haible  <bruno@clisp.org>
96533         * modules/printf-frexpl-tests: New file.
96534         * tests/test-printf-frexpl.c: New file.
96536         * modules/printf-frexpl: New file.
96537         * lib/printf-frexpl.h: New file.
96538         * lib/printf-frexpl.c: New file.
96539         * m4/printf-frexpl.m4: New file.
96541 2007-02-25  Bruno Haible  <bruno@clisp.org>
96543         * modules/printf-frexp-tests: New file.
96544         * tests/test-printf-frexp.c: New file.
96546         * modules/printf-frexp: New file.
96547         * lib/printf-frexp.h: New file.
96548         * lib/printf-frexp.c: New file.
96549         * m4/printf-frexp.m4: New file.
96551 2007-02-25  Bruno Haible  <bruno@clisp.org>
96553         Assume automake >= 1.10 for the tests.
96554         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
96555         * modules/arctwo-tests: Likewise.
96556         * modules/argp-tests: Likewise.
96557         * modules/avltree-list-tests: Likewise.
96558         * modules/avltree-oset-tests: Likewise.
96559         * modules/avltreehash-list-tests: Likewise.
96560         * modules/carray-list-tests: Likewise.
96561         * modules/crc-tests: Likewise.
96562         * modules/des-tests: Likewise.
96563         * modules/gc-arcfour-tests: Likewise.
96564         * modules/gc-arctwo-tests: Likewise.
96565         * modules/gc-des-tests: Likewise.
96566         * modules/gc-hmac-md5-tests: Likewise.
96567         * modules/gc-hmac-sha1-tests: Likewise.
96568         * modules/gc-md2-tests: Likewise.
96569         * modules/gc-md4-tests: Likewise.
96570         * modules/gc-md5-tests: Likewise.
96571         * modules/gc-pbkdf2-sha1-tests: Likewise.
96572         * modules/gc-rijndael-tests: Likewise.
96573         * modules/gc-sha1-tests: Likewise.
96574         * modules/gc-tests: Likewise.
96575         * modules/getaddrinfo-tests: Likewise.
96576         * modules/hmac-md5-tests: Likewise.
96577         * modules/hmac-sha1-tests: Likewise.
96578         * modules/linked-list-tests: Likewise.
96579         * modules/linkedhash-list-tests: Likewise.
96580         * modules/lock-tests: Likewise.
96581         * modules/md2-tests: Likewise.
96582         * modules/md4-tests: Likewise.
96583         * modules/md5-tests: Likewise.
96584         * modules/rbtree-list-tests: Likewise.
96585         * modules/rbtree-oset-tests: Likewise.
96586         * modules/rbtreehash-list-tests: Likewise.
96587         * modules/read-file-tests: Likewise.
96588         * modules/rijndael-tests: Likewise.
96589         * modules/stdint-tests: Likewise.
96590         * modules/tls-tests: Likewise.
96592 2007-02-24  Bruno Haible  <bruno@clisp.org>
96594         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
96595         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
96596         function; instead check whether isnan with a double argument links.
96597         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
96598         function; instead check whether isnan with a 'long double' argument
96599         links.
96600         Reported by Eric Blake <ebb9@byu.net>.
96602 2007-02-24  Bruno Haible  <bruno@clisp.org>
96604         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
96605         defined.
96606         * lib/isnanl.c: Remove all code. Just include isnan.c.
96607         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
96609 2007-02-25  Jim Meyering  <jim@meyering.net>
96611         Avoid conflicting types for 'unsetenv' on FreeBSD.
96612         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
96613         conflicting with FreeBSD's (5.0 and 6.1) function declaration
96614         in stdlib.h.
96616 2007-02-24  Bruno Haible  <bruno@clisp.org>
96618         * modules/isnanl-nolibm-tests: New file.
96619         * tests/test-isnanl.c: New file.
96621         * modules/isnanl-nolibm: New file.
96622         * lib/isnanl.h: New file.
96623         * lib/isnanl.c: New file.
96624         * m4/isnanl.m4: New file.
96626 2007-02-24  Bruno Haible  <bruno@clisp.org>
96628         * modules/isnan-nolibm-tests: New file.
96629         * tests/test-isnan.c: New file.
96631         * modules/isnan-nolibm: New file.
96632         * lib/isnan.h: New file.
96633         * lib/isnan.c: New file.
96634         * m4/isnan.m4: New file.
96636 2007-02-24  Bruno Haible  <bruno@clisp.org>
96638         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
96639         assume that an exponent fits in 20 bits.
96641 2007-02-24  Jim Meyering  <jim@meyering.net>
96643         * m4/regex.m4: Update the description of the configure-time option,
96644         --without-included-regex, to state accurately what the defaults are,
96645         and perhaps to give people an idea why using this option is risky.
96647 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
96649         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
96650         loops on small arguments.  This attempts to avoid the problem
96651         Bruno Haible reported for AIX 4.3.2 in
96652         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
96654 2007-02-23  Bruno Haible  <bruno@clisp.org>
96656         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
96657         Needed for help2man.
96659 2007-02-23  Karl Berry  <karl@gnu.org>
96661         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
96662         exists, foo.h should be cvs-ignored, not committed.
96664 2007-02-23  Eric Blake  <ebb9@byu.net>
96666         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
96667         * lib/stat-time.h (includes): Likewise.
96668         * lib/utimecmp.c (includes): Likewise.
96669         * lib/utimens.h (includes): Likewise.
96670         * lib/getdate.y (includes): Also include "timespec.h" for use
96671         internal to the module.
96672         * modules/utimens (Depends-on): Revert yesterday's patch.
96673         * modules/nanosleep (Depends-on): Add missing dependency.
96675 2007-02-22  Bruno Haible  <bruno@clisp.org>
96677         * lib/glob.c: Don't include getlogin_r.h.
96679 2007-02-22  Jim Meyering  <jim@meyering.net>
96681         * modules/utimens (Depends-on): Add timespec, required for
96682         utimens.h's inclusion of timespec.h.
96684 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
96686         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
96687         long unreadable paths in GNU/Linux.  Problem reported by Andreas
96688         Schwab in
96689         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
96690         I'll try to think of a better way to fix the Solaris problem.
96692         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
96693         like glibc; on Solaris 10, it fails with errno == EINVAL.
96694         POSIX says the behavior is unspecified if the first argument is NULL,
96695         so play it safe and never pass NULL to the system getcwd.
96697 2007-02-21  Jim Meyering  <jim@meyering.net>
96699         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
96700         of gettimeofday.  It would conflict with the one now always
96701         provided via sys_time_.h.  Reported by Matthew Woehlke, as
96702         an IRIX 6.5 build failure.
96704 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
96706         Minor fixups to port to Solaris 10 with Sun C 5.8.
96707         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
96708         * modules/getcwd (Depends-on): Add dirfd.
96709         * lib/putenv.c (putenv): #undef it.
96710         (rpl_putenv): New decl.
96711         (malloc, free): Include <stdlib.h> rather than prototyping separately.
96713 2007-02-20  Bruno Haible  <bruno@clisp.org>
96715         * modules/stdio-tests: New file.
96716         * tests/test-stdio.c: New file.
96718         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
96719         (Depends-on): Add stdio.
96720         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
96721         (Include): Use <stdio.h> instead of vsnprintf.h.
96722         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
96723         HAVE_DECL_VSNPRINTF.
96724         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
96726         * modules/snprintf (Files): Remove lib/snprintf.h.
96727         (Depends-on): Add stdio.
96728         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
96729         (Include): Use <stdio.h> instead of snprintf.h.
96730         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
96731         HAVE_DECL_SNPRINTF.
96732         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
96733         * lib/getaddrinfo.c: Likewise.
96735         * modules/stdio: New file.
96736         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
96737         * lib/snprintf.h: Remove file.
96738         * lib/vsnprintf.h: Remove file.
96739         * lib/.cppi-disable: Remove snprintf.h.
96740         * m4/stdio_h.m4: New file.
96741         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
96743 2007-02-20  Jim Meyering  <jim@meyering.net>
96745         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
96746         used by e.g., mingw.  From Bruno Haible.
96748 2007-02-19  Bruno Haible  <bruno@clisp.org>
96750         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
96751         warnings.
96752         Reported by Ben Pfaff <blp@cs.stanford.edu>.
96754 2007-02-19  Bruno Haible  <bruno@clisp.org>
96756         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
96757         from mingw users.
96759 2007-02-19  Bruno Haible  <bruno@clisp.org>
96761         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
96762         warnings.
96763         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
96765 2007-02-19  Jim Meyering  <jim@meyering.net>
96767         Don't use FD after a successful "fdopendir (fd)".
96768         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
96769         Reset it by calling dirfd on the just-obtained DIR*.
96771         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
96772         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
96774 2007-02-18  Bruno Haible  <bruno@clisp.org>
96776         * lib/readlink.c: Include <unistd.h>.
96777         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
96778         HAVE_READLINK.
96779         * modules/readlink (Depends-on): Add unistd.
96780         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
96781         (Include): Add <unistd.h>.
96783         * lib/getlogin_r.h: Remove file.
96784         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
96785         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
96786         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
96787         HAVE_DECL_GETLOGIN_R.
96788         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
96789         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
96790         (Include): Use <unistd.h> instead of getlogin_r.h.
96792         * lib/getcwd.h: Remove file.
96793         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
96794         * lib/xgetcwd.c: Likewise.
96795         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
96796         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
96797         * modules/getcwd (Files): Remove lib/getcwd.h.
96798         (Depends-on): Add unistd.
96799         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
96800         (Include): Use <unistd.h> instad of getcwd.h.
96802         * lib/ftruncate.c: Include <unistd.h> first.
96803         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
96804         Set HAVE_FTRUNCATE.
96805         * modules/ftruncate (Depends-on): Add unistd.
96806         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
96808         * lib/fchdir.c: Include <unistd.h> first.
96809         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
96810         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
96811         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
96812         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
96813         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
96815         * lib/dup2.c: Include <unistd.h> first.
96816         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
96817         HAVE_DUP2.
96818         * modules/dup2 (Depends-on): Add unistd.
96819         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
96821         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
96822         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
96823         REPLACE_CHOWN. Don't define chown as a macro here.
96824         * modules/chown (Depends-on): Add unistd.
96825         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
96827         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
96828         Add definition for GL_LINK_WARNING.
96829         (chown, dup2): New declarations.
96830         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
96831         link warning.
96832         (ftruncate): New declaration.
96833         (getcwd): New declaration, taken from old getcwd.h.
96834         (getlogin_r): New declaration, taken from old getlogin_r.h.
96835         (readlink): New declaration.
96836         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
96837         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
96838         (gl_PREREQ_UNISTD): Remove macro.
96839         (gl_UNISTD_MODULE_INDICATOR): New macro.
96840         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
96841         many new variables. Don't set UNISTD_H.
96842         * modules/unistd (Description): Change.
96843         (Depends-on): Add link-warning.
96844         (configure.ac): Update.
96845         (Makefile.am): Create unistd.h always. Substitute many new variables
96846         into it.
96848 2007-02-18  Bruno Haible  <bruno@clisp.org>
96850         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
96851         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
96852         HAVE_GETSUBOPT.
96853         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
96854         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
96855         * lib/getsubopt.h: Remove file.
96856         * modules/getsubopt (Files): Remove lib/getsubopt.h.
96857         (Depends-on): Add stdlib.
96858         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
96859         (Includes): Use <stdlib.h> instead of getsubopt.h.
96860         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
96861         Set HAVE_GETSUBOPT.
96862         * lib/getsubopt.c: Don't include getsubopt.h.
96864 2007-02-18  Bruno Haible  <bruno@clisp.org>
96866         * modules/fchdir (Depends-on): Add dup2.
96868 2007-02-18  Bruno Haible  <bruno@clisp.org>
96870         * lib/stdlib_.h: Handle glibc's special invocation convention
96871         specially.
96873 2007-02-18  Bruno Haible  <bruno@clisp.org>
96875         * modules/stdlib-tests: New file.
96876         * tests/test-stdlib.c: New file.
96878         * modules/mkstemp (Files): Remove lib/mkstemp.h.
96879         (Depends-on): Add stdlib.
96880         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
96881         (Includes): Use <stdlib.h> instead of mkstemp.h.
96882         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
96883         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
96884         * lib/mkstemp.c: Don't include mkstemp.h.
96885         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
96886         * lib/stdlib--.h: Don't include mkstemp.h.
96888         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
96889         (Depends-on): Add stdlib.
96890         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
96891         (Includes): Use <stdlib.h> instead of mkdtemp.h.
96892         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
96893         HAVE_MKDTEMP.
96894         * lib/mkdtemp.c: Don't include mkdtemp.h.
96895         * lib/clean-temp.c: Don't include mkdtemp.h.
96897         * modules/exit (Files): Remove lib/exit.h.
96898         (Depends-on): Add stdlib.
96899         (Makefile.am): Remove lib_SOURCES.
96900         (Include): Use <stdlib.h> instead of exit.h.
96901         * lib/argmatch.c: Don't include exit.h.
96902         * lib/execute.c: Likewise.
96903         * lib/pagealign_alloc.c: Likewise.
96904         * lib/pipe.c: Likewise.
96905         * lib/wait-process.c: Likewise.
96906         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
96907         * lib/exitfail.c: Likewise.
96908         * lib/savewd.c: Likewise.
96909         * lib/xsetenv.c: Likewise.
96911         * modules/stdlib: New file.
96912         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
96913         and extra comments about mkstemp().
96914         * lib/exit.h: Remove file.
96915         * lib/mkdtemp.h: Remove file.
96916         * lib/mkstemp.h: Remove file.
96917         * m4/stdlib_h.m4: New file.
96918         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
96920 2007-02-18  Bruno Haible  <bruno@clisp.org>
96922         * modules/math-tests: New file.
96923         * tests/test-math.c: New file.
96925         * modules/math: New file.
96926         * modules/mathl (Files): Remove lib/mathl.h.
96927         (Depends-on): Add math.
96928         (Makefile.am): Don't mention mathl.h.
96929         (Include): Use <math.h> instead of mathl.h.
96930         * lib/math_.h: New file.
96931         * lib/mathl.h: Remove file.
96932         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
96933         mathl.h.
96934         * lib/asinl.c: Likewise.
96935         * lib/atanl.c: Likewise.
96936         * lib/ceill.c: Likewise.
96937         * lib/cosl.c: Likewise.
96938         * lib/expl.c: Likewise.
96939         * lib/floorl.c: Likewise.
96940         * lib/frexpl.c: Likewise.
96941         * lib/ldexpl.c: Likewise.
96942         * lib/logl.c: Likewise.
96943         * lib/sincosl.c: Likewise.
96944         * lib/sinl.c: Likewise.
96945         * lib/sqrtl.c: Likewise.
96946         * lib/tanl.c: Likewise.
96947         * lib/trigl.c: Likewise.
96948         * m4/math_h.m4: New file.
96949         * MODULES.html.sh (Mathematics): Add math.
96951 2007-02-17  Bruno Haible  <bruno@clisp.org>
96953         * modules/wctype-tests: New file.
96954         * tests/test-wctype.c: New file.
96956         * modules/wchar-tests: New file.
96957         * tests/test-wchar.c: New file.
96959         * modules/unistd-tests: New file.
96960         * tests/test-unistd.c: New file.
96962         * modules/time-tests: New file.
96963         * tests/test-time.c: New file.
96965         * modules/sysexits-tests: New file.
96966         * tests/test-sysexits.c: New file.
96968         * modules/sys_time-tests: New file.
96969         * tests/test-sys_time.c: New file.
96971         * modules/sys_stat-tests: New file.
96972         * tests/test-sys_stat.c: New file.
96974         * modules/sys_socket-tests: New file.
96975         * tests/test-sys_socket.c: New file.
96977         * modules/sys_select-tests: New file.
96978         * tests/test-sys_select.c: New file.
96980         * modules/string-tests: New file.
96981         * tests/test-string.c: New file.
96983         * modules/stdbool-tests: New file.
96984         * tests/test-stdbool.c: New file.
96986         * modules/netinet_in-tests: New file.
96987         * tests/test-netinet_in.c: New file.
96989         * modules/inttypes-tests: New file.
96990         * tests/test-inttypes.c: New file.
96992         * modules/fcntl-tests: New file.
96993         * tests/test-fcntl.c: New file.
96995         * modules/byteswap-tests: New file.
96996         * tests/test-byteswap.c: New file.
96998         * modules/arpa_inet-tests: New file.
96999         * tests/test-arpa_inet.c: New file.
97001 2007-02-17  Bruno Haible  <bruno@clisp.org>
97003         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
97004         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
97005         if the corresponding module is not enabled. Emit link warnings if
97006         the function is used nevertheless.
97007         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
97008         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
97009         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
97010         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
97011         * modules/inttypes (Depends-on): Add link-warning.
97012         (Makefile.am): Copy the contents of build-aux/link-warning.h into
97013         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
97014         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
97015         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
97016         * modules/imaxdiv (configure.ac): Likewise.
97017         * modules/strtoimax (configure.ac): Likewise.
97018         * modules/strtoumax (configure.ac): Likewise.
97020 2007-02-17  Bruno Haible  <bruno@clisp.org>
97022         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
97023         gl_STRING_MODULE_INDICATOR_DEFAULTS.
97024         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
97025         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
97027 2007-02-17  Bruno Haible  <bruno@clisp.org>
97029         * modules/link-warning: New file.
97030         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
97031         * lib/string_.h (GL_LINK_WARNING): Remove definition.
97032         * modules/string (Depends-on): Add link-warning.
97033         (Makefile.am): Copy the contents of build-aux/link-warning.h into
97034         string.h.
97035         * MODULES.html.sh (Support for building libraries and executables): Add
97036         link-warning.
97038 2007-02-17  Bruno Haible  <bruno@clisp.org>
97040         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
97041         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
97042         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
97043         long lines.
97045 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
97046             Bruno Haible  <bruno@clisp.org>
97048         * modules/tmpfile: New file.
97049         * lib/tmpfile.c: New file.
97050         * m4/tmpfile.m4: New file.
97051         * MODULES.html.sh (func_all_modules): New section "Input/output".
97053 2007-02-15  Bruno Haible  <bruno@clisp.org>
97055         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
97056         (supports_delete_on_close): New function.
97057         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
97059 2007-02-14  Bruno Haible  <bruno@clisp.org>
97061         * modules/mbspcasecmp-tests: New file.
97062         * tests/test-mbspcasecmp.sh: New file.
97063         * tests/test-mbspcasecmp.c: New file.
97065         New module mbspcasecmp.
97066         * modules/mbspcasecmp: New file.
97067         * lib/mbspcasecmp.c: New file.
97068         * lib/string_.h (strncasecmp): Change warning message.
97069         (mbspcasecmp): New declaration.
97070         * m4/mbspcasecmp.m4: New file.
97071         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97072         GNULIB_MBSPCASECMP.
97073         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
97074         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
97076 2007-02-14  Bruno Haible  <bruno@clisp.org>
97078         * modules/mbsncasecmp-tests: New file.
97079         * tests/test-mbsncasecmp.sh: New file.
97080         * tests/test-mbsncasecmp.c: New file.
97082         New module mbsncasecmp.
97083         * modules/mbsncasecmp: New file.
97084         * lib/mbsncasecmp.c: New file.
97085         * lib/string_.h (mbsncasecmp): New declaration.
97086         * m4/mbsncasecmp.m4: New file.
97087         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97088         GNULIB_MBSNCASECMP.
97089         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
97090         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
97092 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
97094         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
97095         Verify that it doesn't overlap with our flags.
97096         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
97097         do not have the desired effect in multibyte locales; instead, use
97098         mbscasecmp.
97099         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
97100         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
97101         we don't require GNU fnmatch ourselves (if our users require it, they
97102         should do so explicitly).
97104         Fix regex code so it doesn't rely on strcasecmp.
97105         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
97106         Otherwise, include gnulib's langinfo.h.
97107         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
97108         undesirable behavior in non-C locales.  Instead, rely on localecharset.
97109         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
97110         * modules/regex (FILES): Remove m4/codeset.m4.
97111         (Depends-on): Add localcharset.  Remove strcase.
97113 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97115         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
97116         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
97118 2007-02-13  Bruno Haible  <bruno@clisp.org>
97120         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
97121         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97123 2007-02-12  Bruno Haible  <bruno@clisp.org>
97125         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
97126         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
97127         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
97128         time warning rather than a link error.
97130 2007-02-12  Bruno Haible  <bruno@clisp.org>
97132         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
97133         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
97134         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97136 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
97138         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
97139         args, not 2.
97141 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
97143         New module 'time', so that apps can include <time.h> as per
97144         POSIX and GNU instead of separate include files like time_r.h
97145         and timegm.h.  This implementation tries out a simpler approach
97146         for replacing decls in standard include files (as compared to
97147         the string module), somewhat as an experiment.
97149         * config/srclist.txt: Comment out mktime.c for now.
97150         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
97151         since it doesn't apply any more.  Use generic wording instead.
97152         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
97153         'time'.
97154         * lib/time_.h, m4/time_h.m4, modules/time: New files.
97155         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
97156         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
97157         Don't include <sys/types.h>; no longer needed since we assume C89.
97158         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
97159         * lib/strftime.c: Likewise.
97160         * lib/time_r.c: Likewise.
97161         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
97162         * lib/nanosleep.c: Include <time.h> first, to check interface.
97163         * lib/strptime.c: Likewise.
97164         * lib/time_r.c: Likewise.
97165         * lib/timegm.c: Likewise.
97166         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
97167         needed.
97168         * lib/timegm.c: Don't include timegm.h; no longer needed.
97169         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
97170         time.h now handles any problems in that area.
97171         (struct timespec, nanosleep): Remove; time.h now arranges for these.
97172         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
97173         that time.h defines struct timespec.
97174         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
97175         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
97176         handles that.
97177         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
97178         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
97179         needed.  Set REPLACE_LOCALTIME.
97180         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
97181         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
97182         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
97183         nanosleep; time_h.m4 now does that.  Don't require
97184         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
97185         module handles this now.
97186         * modules/getdate (Depends-on): Remove timespec.  Add time.
97187         * modules/nanosleep (Depends-on): Likewise.
97188         * modules/stat-time (Depends-on): Likewise.
97189         * modules/nanosleep (Include): Include time.h, not timespec.h.
97190         * modules/strptime (Files): Remove lib/strptime.h.
97191         (Depends-on): Add extensions, time.
97192         (Include): Include time.h, not strptime.h.
97193         * modules/time_r (Files): Remove lib/time_r.h.
97194         (Depends-on): Add time.
97195         (Include): Include time.h, not time_r.h.
97196         * modules/timegm: Likewise.
97197         * modules/timespec (Description): Now does timespec-related decls
97198         of our own, instead of struct timespec itself.
97199         (Depends-on): Add time; remove extensions.
97200         (Maintainer): Add self.
97201         * modules/utimecmp (Depends-on): Add time; remove timespec.
97202         * modules/utimens (Depends-on): Likewise.
97203         * modules/xnanosleep (Depends-on): Likewise.
97205 2007-02-11  Bruno Haible  <bruno@clisp.org>
97207         * lib/c-strstr.c: Include allocsa.h.
97208         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
97209         * lib/c-strcasestr.c: Include allocsa.h.
97210         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
97211         * lib/strcasestr.c: Include allocsa.h.
97212         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
97213         * lib/mbsstr.c: Include allocsa.h.
97214         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
97215         allocsa/freesa instead of malloc/free.
97216         * lib/mbscasestr.c: Include allocsa.h.
97217         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
97218         allocsa/freesa instead of malloc/free.
97219         * modules/c-strstr (Depends-on): Add allocsa.
97220         * modules/c-strcasestr (Depends-on): Likewise.
97221         * modules/strcasestr (Depends-on): Likewise.
97222         * modules/mbsstr (Depends-on): Likewise.
97223         * modules/mbscasestr (Depends-on): Likewise.
97225 2007-02-11  Bruno Haible  <bruno@clisp.org>
97227         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
97229         * modules/mbsspn-tests: New file.
97230         * tests/test-mbsspn.sh: New file.
97231         * tests/test-mbsspn.c: New file.
97233 2007-02-11  Bruno Haible  <bruno@clisp.org>
97235         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
97237         * modules/mbspbrk-tests: New file.
97238         * tests/test-mbspbrk.sh: New file.
97239         * tests/test-mbspbrk.c: New file.
97241 2007-02-11  Bruno Haible  <bruno@clisp.org>
97243         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
97244         unneeded cast.
97246         * modules/mbscspn-tests: New file.
97247         * tests/test-mbscspn.sh: New file.
97248         * tests/test-mbscspn.c: New file.
97250 2007-02-11  Bruno Haible  <bruno@clisp.org>
97252         * modules/mbscasecmp-tests: New file.
97253         * tests/test-mbscasecmp.sh: New file.
97254         * tests/test-mbscasecmp.c: New file.
97256 2007-02-11  Bruno Haible  <bruno@clisp.org>
97258         Ensure O(n) worst-case complexity of mbscasestr.
97259         * lib/mbscasestr.c: Include stdbool.h.
97260         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
97261         functions.
97262         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
97263         the bookkeeping indicates that it's worth it.
97264         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
97266         * modules/mbscasestr-tests: New file.
97267         * tests/test-mbscasestr1.c: New file.
97268         * tests/test-mbscasestr2.sh: New file.
97269         * tests/test-mbscasestr2.c: New file.
97270         * tests/test-mbscasestr3.sh: New file.
97271         * tests/test-mbscasestr3.c: New file.
97272         * tests/test-mbscasestr4.sh: New file.
97273         * tests/test-mbscasestr4.c: New file.
97274         * m4/locale-tr.m4: New file.
97276 2007-02-11  Bruno Haible  <bruno@clisp.org>
97278         Ensure O(n) worst-case complexity of mbsstr.
97279         * lib/mbsstr.c: Include stdbool.h.
97280         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
97281         functions.
97282         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
97283         bookkeeping indicates that it's worth it.
97284         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
97286         * modules/mbsstr-tests: New file.
97287         * tests/test-mbsstr1.c: New file.
97288         * tests/test-mbsstr2.sh: New file.
97289         * tests/test-mbsstr2.c: New file.
97290         * tests/test-mbsstr3.sh: New file.
97291         * tests/test-mbsstr3.c: New file.
97292         * m4/locale-fr.m4: New file.
97294 2007-02-11  Bruno Haible  <bruno@clisp.org>
97296         * lib/mbsrchr.c (mbsrchr): Fix bug.
97298         * modules/mbsrchr-tests: New file.
97299         * tests/test-mbsrchr.sh: New file.
97300         * tests/test-mbsrchr.c: New file.
97302 2007-02-11  Bruno Haible  <bruno@clisp.org>
97304         * lib/mbschr.c (mbschr): Fix bug.
97306         * modules/mbschr-tests: New file.
97307         * tests/test-mbschr.sh: New file.
97308         * tests/test-mbschr.c: New file.
97309         * m4/locale-zh.m4: New file.
97311 2007-02-11  Bruno Haible  <bruno@clisp.org>
97313         Support for copying multibyte string iterators.
97314         * lib/mbiter.h: Include <string.h>.
97315         (mbiter_multi_copy): New function.
97316         (mbi_copy): New macro.
97317         * lib/mbuiter.h: Include <string.h>.
97318         (mbuiter_multi_copy): New function.
97319         (mbui_copy): New macro.
97321 2007-02-11  Bruno Haible  <bruno@clisp.org>
97323         New module mbslen.
97324         * modules/mbslen: New file.
97325         * lib/mbslen.c: New file.
97326         * lib/string_.h (mbslen): New declaration.
97327         * m4/mbslen.m4: New file.
97328         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97329         GNULIB_MBSLEN.
97330         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
97331         * MODULES.html.sh (Internationalization functions): Add mbslen.
97333 2007-02-11  Bruno Haible  <bruno@clisp.org>
97335         Ensure O(n) worst-case complexity of strcasestr substitute.
97336         * lib/strcasestr.c: Include stdbool.h.
97337         (knuth_morris_pratt): New function.
97338         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
97339         bookkeeping indicates that it's worth it.
97340         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
97342         * modules/strcasestr-tests: New file.
97343         * tests/test-strcasestr.c: New file.
97345 2007-02-11  Bruno Haible  <bruno@clisp.org>
97347         Ensure O(n) worst-case complexity of c_strcasestr.
97348         * lib/c-strcasestr.c: Include stdbool.h, string.h.
97349         (knuth_morris_pratt): New function.
97350         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
97351         the bookkeeping indicates that it's worth it.
97352         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
97354         * modules/c-strcasestr-tests: New file.
97355         * tests/test-c-strcasestr.c: New file.
97357 2007-02-11  Bruno Haible  <bruno@clisp.org>
97359         Ensure O(n) worst-case complexity of c_strstr.
97360         * lib/c-strstr.c: Include stdbool.h, string.h.
97361         (knuth_morris_pratt): New function.
97362         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
97363         bookkeeping indicates that it's worth it.
97364         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
97366         * lib/c-strstr.c: Complete rewrite for maintainability.
97368         * modules/c-strstr-tests: New file.
97369         * tests/test-c-strstr.c: New file.
97371 2007-02-11  Bruno Haible  <bruno@clisp.org>
97373         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
97374         5.2.1 and earlier, whereby \055 was treated just like the range
97375         delimiter '-'.
97376         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
97378 2007-02-08  Bruno Haible  <bruno@clisp.org>
97380         * modules/regex (Depends-on): Add stdbool.
97381         Reported by Dalibor Topic <robilad@kaffe.org>.
97383 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
97385         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
97386         Prefer returning from main to exiting from it.
97387         Remove unnecessary parens after sizeof.
97389 2007-02-05  Bruno Haible  <bruno@clisp.org>
97391         New module mbssep.
97392         * modules/mbssep: New file.
97393         * lib/mbssep.c: New file.
97394         * lib/string_.h (strsep): Add a conditional link warning.
97395         (mbssep): New declaration.
97396         * m4/mbssep.m4: New file.
97397         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97398         GNULIB_MBSSEP.
97399         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
97400         * MODULES.html.sh (Internationalization functions): Add mbssep.
97402 2007-02-05  Bruno Haible  <bruno@clisp.org>
97404         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
97405         Optimize search in case of 1 delimiter.
97407 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
97409         * lib/acl.h: Include sys/types.h before sys/acl.h.
97411 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
97413         Merge upstream fix for glibc bugzilla #3957:
97415         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
97417         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
97418         bit for RE_HAT_LISTS_NOT_NEWLINE.
97419         (build_charclass_op): Remove bogus comment.
97421 2007-02-05  Simon Josefsson  <simon@josefsson.org>
97423         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
97425 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
97427         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
97428         * lib/memmem.c [!defined _LIBC]: Include config.h.
97430 2007-02-04  Bruno Haible  <bruno@clisp.org>
97432         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
97433         warning message.
97435 2007-02-04  Bruno Haible  <bruno@clisp.org>
97437         New module mbstok_r.
97438         * modules/mbstok_r: New file.
97439         * lib/mbstok_r.c: New file.
97440         * lib/string_.h (strtok_r): Change argument names to match the
97441         comments. Add a conditional link warning.
97442         (mbstok_r): New declaration.
97443         * m4/mbstok_r.m4: New file.
97444         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97445         GNULIB_MBSTOK_R.
97446         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
97447         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
97449 2007-02-04  Bruno Haible  <bruno@clisp.org>
97451         New module mbsspn.
97452         * modules/mbsspn: New file.
97453         * lib/mbsspn.c: New file.
97454         * lib/string_.h (strspn): Add a conditional link warning.
97455         (mbsspn): New declaration.
97456         * m4/mbsspn.m4: New file.
97457         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97458         GNULIB_MBSSPN.
97459         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
97460         * MODULES.html.sh (Internationalization functions): Add mbsspn.
97462 2007-02-04  Bruno Haible  <bruno@clisp.org>
97464         New module mbspbrk.
97465         * modules/mbspbrk: New file.
97466         * lib/mbspbrk.c: New file.
97467         * lib/string_.h (strpbrk): Add a conditional link warning.
97468         (mbspbrk): New declaration.
97469         * m4/mbspbrk.m4: New file.
97470         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97471         GNULIB_MBSPBRK.
97472         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
97473         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
97475 2007-02-04  Bruno Haible  <bruno@clisp.org>
97477         New module mbscspn.
97478         * modules/mbscspn: New file.
97479         * lib/mbscspn.c: New file.
97480         * lib/string_.h (strcspn): Add a conditional link warning.
97481         (mbscspn): New declaration.
97482         * m4/mbscspn.m4: New file.
97483         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97484         GNULIB_MBSCSPN.
97485         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
97486         * MODULES.html.sh (Internationalization functions): Add mbscspn.
97488 2007-02-04  Bruno Haible  <bruno@clisp.org>
97490         New module mbscasestr, reduced goal of strcasestr.
97491         * modules/mbscasestr: New file.
97492         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
97493         (mbscasestr): Renamed from strcasestr.
97494         * lib/strcasestr.c: Don't include mbuiter.h.
97495         (strcasestr): Remove support for multibyte locales.
97496         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
97497         Change the conditional link warning.
97498         (mbscasestr): New declaration.
97499         * m4/mbscasestr.m4: New file.
97500         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
97501         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
97502         REPLACE_STRCASESTR.
97503         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
97504         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
97505         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
97506         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
97507         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
97508         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
97509         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
97510         (Depends-on): Remove mbuiter.
97511         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
97513 2007-02-04  Bruno Haible  <bruno@clisp.org>
97515         Simplify handling of strncasecmp.
97516         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
97517         the conditional link warning.
97518         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
97519         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
97520         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
97521         * modules/strcase (configure.ac): Don't invoke
97522         gl_STRING_MODULE_INDICATOR.
97523         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
97525 2007-02-04  Bruno Haible  <bruno@clisp.org>
97527         New module mbscasecmp, reduced goal of strcasecmp.
97528         * modules/mbscasecmp: New file.
97529         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
97530         (mbscasecmp): Renamed from strcasecmp.
97531         * lib/strcasecmp.c: Don't include mbuiter.h.
97532         (strcasecmp): Remove support for multibyte locales.
97533         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
97534         Change the conditional link warning.
97535         (mbscasecmp): New declaration.
97536         * m4/mbscasecmp.m4: New file.
97537         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
97538         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
97539         REPLACE_STRCASECMP.
97540         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
97541         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97542         GNULIB_MBSCASECMP.
97543         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
97544         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
97545         * modules/strcase (Files): Remove m4/mbrtowc.m4.
97546         (Depends-on): Remove mbuiter.
97547         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
97549 2007-02-04  Bruno Haible  <bruno@clisp.org>
97551         New module mbsstr. Remove module strstr.
97552         * modules/mbsstr: New file.
97553         * modules/strstr: Remove file.
97554         * lib/mbsstr.c: Renamed from lib/strstr.c.
97555         (mbsstr): Renamed from strstr.
97556         * lib/string_.h (strstr): Remove declaration. Change the conditional
97557         link warning.
97558         (mbsstr): New declaration.
97559         * m4/mbsstr.m4: New file.
97560         * m4/strstr.m4: Remove file.
97561         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
97562         REPLACE_STRSTR.
97563         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
97564         Don't initialize GNULIB_STRSTR.
97565         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
97566         substitute GNULIB_STRSTR and REPLACE_STRSTR.
97567         * MODULES.html.sh (Internationalization functions): Add mbsstr.
97568         (Support for systems lacking ANSI C 89): Remove strstr.
97570 2007-02-04  Bruno Haible  <bruno@clisp.org>
97572         New module mbsrchr.
97573         * modules/mbsrchr: New file.
97574         * lib/mbsrchr.c: New file.
97575         * lib/string_.h (strrchr): Add a conditional link warning.
97576         (mbsrchr): New declaration.
97577         * m4/mbsrchr.m4: New file.
97578         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97579         GNULIB_MBSRCHR.
97580         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
97581         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
97583 2007-02-04  Bruno Haible  <bruno@clisp.org>
97585         New module mbschr.
97586         * modules/mbschr: New file.
97587         * lib/mbschr.c: New file.
97588         * lib/string_.h (strchr): Add a conditional link warning.
97589         (mbschr): New declaration.
97590         * m4/mbschr.m4: New file.
97591         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97592         GNULIB_MBSCHR.
97593         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
97594         * MODULES.html.sh (Internationalization functions): Add mbschr.
97596 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
97598         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
97600         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
97602 2007-02-04  Bruno Haible  <bruno@clisp.org>
97604         New module description section 'configure.ac-early'.
97605         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
97606         (func_get_autoconf_early_snippet): New function.
97607         (func_import, func_create_testdir): Use it. Remove special cases for
97608         modules 'extensions' and 'lock'.
97609         * modules/extensions (configure.ac-early): Require
97610         gl_USE_SYSTEM_EXTENSIONS.
97611         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
97613 2007-02-04  Bruno Haible  <bruno@clisp.org>
97615         Make use of gcj-4.3's -fsource and -ftarget option.
97616         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
97617         and if so try the options -fsource and -ftarget.
97618         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
97619         source_version, ftarget_option, target_version arguments.
97620         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
97621         (is_envjavac_oldgcj_14_14_usable): Renamed from
97622         is_envjavac_gcj_14_14_usable.
97623         (is_envjavac_oldgcj_14_13_usable): Renamed from
97624         is_envjavac_gcj_14_13_usable.
97625         (is_gcj_present): Update.
97626         (is_gcj_43, is_gcj43_usable): New functions.
97627         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
97628         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
97629         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
97630         try the options -fsource and -ftarget.
97632 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
97634         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
97635         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
97636         larger value.
97638 2007-02-03  Jim Meyering  <jim@meyering.net>
97640         Give tools a better chance to allocate space for very large buffers.
97641         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
97643         Make pwd and readlink work also when run with an unreadable parent dir
97644         on systems with openat support.
97645         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
97646         provided getcwd function, even when we have openat support.
97647         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
97649 2007-02-02  Bruno Haible  <bruno@clisp.org>
97651         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
97652         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
97653         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
97654         portability problems if one of these functions is only used on specific
97655         platforms.
97656         Reported by Paul Eggert.
97658 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
97660         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
97661         is causing more trouble than it's curing.
97662         * lib/regex_internal.h (__mempcpy): Remove.
97663         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
97664         (and make the code a tad smaller to boot).
97665         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
97667 2007-02-02  Jim Meyering  <jim@meyering.net>
97669         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
97670         section, not in the Makefile.am: one.
97672 2007-02-02  Eric Blake  <ebb9@byu.net>
97674         * lib/strchrnul.c: Always include config.h first.
97676         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
97677         gnulib strstr is not necessary here.
97679 2007-02-02  Simon Josefsson  <simon@josefsson.org>
97681         * m4/socklen.m4: Fix typo.
97683 2007-02-02  Eric Blake  <ebb9@byu.net>
97685         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
97686         * modules/netinet_in (Makefile.am): Likewise.
97688 2007-02-01  Bruno Haible  <bruno@clisp.org>
97690         * lib/string_.h (GL_LINK_WARNING): New macro.
97691         (strcasecmp, strstr, strcasestr): If provided by the system,
97692         conditionally define as a macro that leads to a warning instead of to
97693         an error.
97694         (strncasecmp): Conditionally define as a macro that leads to a warning.
97696 2007-02-01  Karl Berry  <karl@gnu.org>
97698         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
97700 2007-02-01  Bruno Haible  <bruno@clisp.org>
97702         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
97703         renamings.
97705 2007-02-01  Eric Blake  <ebb9@byu.net>
97707         * modules/regex (Depends-on): Revert dependence on mempcpy.
97708         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
97709         module's definition of mempcpy.
97710         Reported by Paul Eggert.
97712 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
97714         * lib/string_.h: If the gnulib module XYZ is not present, undefine
97715         the symbol XYZ before redefining it.  This fixes a problem with
97716         programs that don't use XYZ, when compiled on systems that define
97717         XYZ to something else.
97719 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
97721         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
97722         occurs when "mkdir -m foo" creates a setgid directory that is (1)
97723         writeable to group or other and (2) is intended to have a special
97724         mode bit that is set or cleared.  In such a case, the directory
97725         should be neither group- nor other-writeable until the special
97726         mode bits are right.
97728 2007-01-31  Eric Blake  <ebb9@byu.net>
97730         * modules/mountlist (Depends-on): Add strstr.
97732         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
97733         bug.
97734         * modules/string (Makefile.am): Remove redundant replacement.
97735         * modules/regex (Depends-on): Add mempcpy.
97737 2007-01-31  Bruno Haible  <bruno@clisp.org>
97739         New module description field 'Link'.
97740         * gnulib-tool (func_usage): Document --extract-link-directive.
97741         (sed_extract_prog): Recognize 'Link' directive.
97742         (func_get_link_directive): New function.
97743         (func_import): Show summary of link directives.
97744         Handle --extract-link-directive option.
97745         * modules/acl (Link): New section.
97746         * modules/clock-time (Link): New section.
97747         * modules/euidaccess (Link): New section.
97748         * modules/gettext (Link): New section.
97749         * modules/iconv (Link): New section.
97750         * modules/lock (Link): New section.
97751         * modules/nanosleep (Link): New section.
97752         * modules/readline (Link): New section.
97754 2007-01-27  Bruno Haible  <bruno@clisp.org>
97756         Enforce the use of gnulib modules for unportable <string.h> functions.
97757         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
97758         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
97759         (gl_HEADER_STRING_H_BODY): Require it.
97760         * lib/string_.h: If the gnulib module XYZ is not present, redefine
97761         the symbol XYZ to one that gives a link error.
97762         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
97763         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
97764         * modules/mempcpy (configure.ac): Likewise.
97765         * modules/memrchr (configure.ac): Likewise.
97766         * modules/stpcpy (configure.ac): Likewise.
97767         * modules/stpncpy (configure.ac): Likewise.
97768         * modules/strcase (configure.ac): Likewise.
97769         * modules/strcasestr (configure.ac): Likewise.
97770         * modules/strchrnul (configure.ac): Likewise.
97771         * modules/strdup (configure.ac): Likewise.
97772         * modules/strndup (configure.ac): Likewise.
97773         * modules/strnlen (configure.ac): Likewise.
97774         * modules/strpbrk (configure.ac): Likewise.
97775         * modules/strsep (configure.ac): Likewise.
97776         * modules/strstr (configure.ac): Likewise.
97777         * modules/strtok_r (configure.ac): Likewise.
97779 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
97781         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
97783 2007-01-30  Jim Meyering  <jim@meyering.net>
97785         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
97787 2007-01-29  Bruno Haible  <bruno@clisp.org>
97789         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
97790         * lib/execute.c: Likewise.
97791         * lib/pipe.c: Likewise.
97792         * lib/printf-args.h: Likewise.
97793         * lib/printf-args.c: Likewise.
97794         * lib/printf-parse.c: Likewise.
97795         * lib/vasnprintf.c: Likewise.
97797 2007-01-29  Eric Blake  <ebb9@byu.net>
97799         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
97800         declaration.
97802 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
97804         * lib/strptime.h (strptime): Use 'restrict' for args where
97805         POSIX requires this.
97806         * lib/strptime.c (strptime): Likewise.
97807         Change license notice from LGPL to GPL, since gnulib-tool will
97808         change this as needed.
97809         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
97810         defined.
97811         Include "strptime.h" first, to check interface.
97812         Do not #undef _LIBC and _NL_CURRENT.
97813         Do not include <stdlib.h>; no longer needed.
97814         Include "time_r.h" and declare ptime_locale_status
97815         only if _LIBC is not defined.
97816         (__P): Remove unused macro.
97817         (match_string): Bring back glibc version, but use it only if _LIBC
97818         is defined.
97819         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
97820         Remove unnecessary assertion and abort() call.
97821         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
97822         * m4/strptime.m4: Fix serial number comment.
97823         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
97824         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
97825         (Depends-on): Add time_r.
97827 2007-01-29  Bruno Haible  <bruno@clisp.org>
97829         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
97830         strptime.
97831         * modules/strptime (Depends-on): Add stdbool.
97832         * lib/strptime.h: Include <time.h> always. Add comments.
97834 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
97836         * modules/strptime: New file.
97837         * lib/strptime.h: New file.
97838         * lib/strptime.c: New file.
97839         * m4/strptime.m4: New file.
97841 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
97843         * MODULES.html.sh: New module mpsort.
97844         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
97846         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
97847         a circularity problem with HP-UX ia64 reported by Bob Proulx in
97848         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
97849         All uses changed.
97850         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
97851         All uses changed.
97852         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
97853         to _Restrict_.
97854         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
97855         the parameter matches the prototype.
97857 2007-01-28  Jim Meyering  <jim@meyering.net>
97859         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
97860         sys/time.h here, reverting that part of the previous patch:
97861         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
97863 2007-01-28  Bruno Haible  <bruno@clisp.org>
97865         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
97866         value of $(SYS_TIME_H).
97867         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
97868         remove it conditionally, too. [added by Jim Meyering]
97869         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
97870         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
97871         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
97872         GETTIMEOFDAY_REPLACEMENT to 1.
97874 2007-01-28  Bruno Haible  <bruno@clisp.org>
97876         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
97877         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
97878         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
97879         Set UNISTD_H instead of UNISTD_H2.
97880         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
97882 2007-01-28  Bruno Haible  <bruno@clisp.org>
97884         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
97885         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
97887 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97889         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
97890         (func_create_testdir): Ensure C locale for `grep' and `tr'
97891         character ranges.
97892         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
97893         ACLOCAL_AMFLAGS parsing state machine.
97895 2007-01-27  Bruno Haible  <bruno@clisp.org>
97897         * modules/unistr/base: Update.
97899 2007-01-27  Bruno Haible  <bruno@clisp.org>
97901         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
97902         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
97903         * modules/unistr/u32-mbtouc-unsafe: Renamed from
97904         modules/unistr/u32-mbtouc.
97905         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
97906         * lib/unistr.h: Update.
97907         * lib/linebreak.c: Update.
97908         * modules/unistr/u32-mbtouc: Renamed from
97909         modules/unistr/u32-mbtouc-safe.
97910         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
97911         * lib/unistr.h: Update.
97912         * lib/unistr/u32-to-u8.c: Update.
97913         * lib/unistr/u32-to-u16.c: Update.
97915 2007-01-27  Bruno Haible  <bruno@clisp.org>
97917         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
97918         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
97919         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
97920         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
97921         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
97922         * modules/unistr/u16-mbtouc-unsafe: Renamed from
97923         modules/unistr/u16-mbtouc.
97924         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
97925         * lib/unistr.h: Update.
97926         * lib/linebreak.c: Update.
97927         * modules/linebreak: Update.
97928         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
97929         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
97930         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
97931         * modules/unistr/u16-mbtouc: Renamed from
97932         modules/unistr/u16-mbtouc-safe.
97933         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
97934         * lib/unistr.h: Update.
97935         * lib/unistr/u16-to-u8.c: Update.
97936         * modules/unistr/u16-to-u8: Update.
97937         * lib/unistr/u16-to-u32.c: Update.
97938         * modules/unistr/u16-to-u32: Update.
97940 2007-01-27  Bruno Haible  <bruno@clisp.org>
97942         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
97943         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
97944         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
97945         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
97946         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
97947         * modules/unistr/u8-mbtouc-unsafe: Renamed from
97948         modules/unistr/u8-mbtouc.
97949         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
97950         * lib/unistr.h: Update.
97951         * lib/striconveh.c: Update.
97952         * modules/striconveh: Update.
97953         * lib/linebreak.c: Update.
97954         * modules/linebreak: Update.
97955         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
97956         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
97957         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
97958         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
97959         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
97960         * lib/unistr.h: Update.
97961         * lib/striconveh.c: Update.
97962         * modules/striconveh: Update.
97963         * lib/unistr/u8-to-u16.c: Update.
97964         * modules/unistr/u8-to-u16: Update.
97965         * lib/unistr/u8-to-u32.c: Update.
97966         * modules/unistr/u8-to-u32: Update.
97968 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97970         Sync from Libtool.
97971         * lib/argz.c: Do not include strings.h nor memory.h, include
97972         string.h unconditionally.  Patch by Simon Josefsson.
97974 2007-01-27  Bruno Haible  <bruno@clisp.org>
97976         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
97977         from gl_HEADER_STRING_H_BODY.
97978         (gl_HEADER_STRING_H_BODY): Require it.
97979         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
97980         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
97981         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
97982         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
97983         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
97984         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
97985         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
97986         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
97987         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
97988         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
97989         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
97990         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
97991         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
97992         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
97993         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
97995 2007-01-27  Bruno Haible  <bruno@clisp.org>
97997         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
97998         check_PROGRAMS into noinst_PROGRAMS.
97999         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
98000         check_PROGRAMS in this case.
98001         (func_import): Set for_test to false.
98002         (func_create_testdir): Set for_test to true.
98004 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98005             Bruno Haible  <bruno@clisp.org>
98007         * modules/strcasestr (Files): Remove lib/strcasestr.h.
98008         (Depends-on): Add string.
98009         (Includes): Use <string.h> instead of strcasestr.h.
98010         * modules/string (Makefile.am): Also substitute the value of
98011         REPLACE_STRCASESTR.
98012         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
98013         assume strcasestr is declared in <string.h> not <strings.h>. Also
98014         set REPLACE_STRCASESTR.
98015         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
98016         REPLACE_STRCASESTR.
98017         * lib/strcasestr.h: Remove file.
98018         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
98019         * lib/string_.h (strcasestr): New declaration.
98021 2007-01-27  Bruno Haible  <bruno@clisp.org>
98023         * lib/string_.h: Use 'extern'.
98025 2007-01-27  Jim Meyering  <jim@meyering.net>
98027         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
98028         of set-but-not-used local, "q".
98030         * lib/mempcpy.c: Include <config.h> before <string.h>.
98031         This fixes a compilation error on HP-UX, due to the system's
98032         "restrict"-using mempcpy prototype.
98034 2007-01-26  Bruno Haible  <bruno@clisp.org>
98036         Small optimization.
98037         * lib/javacomp.c: Include c-strstr.h.
98038          (is_envjavac_gcj): Use c_strstr instead of strstr.
98039         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
98041 2007-01-26  Bruno Haible  <bruno@clisp.org>
98043         * MODULES.html.sh (Unicode string functions): Add the new modules.
98045         * modules/uniconv/u32-strconv-to-locale: New file.
98046         * lib/uniconv/u32-strconv-to-locale.c: New file.
98048         * modules/uniconv/u16-strconv-to-locale: New file.
98049         * lib/uniconv/u16-strconv-to-locale.c: New file.
98051         * modules/uniconv/u8-strconv-to-locale: New file.
98052         * lib/uniconv/u8-strconv-to-locale.c: New file.
98054         * modules/uniconv/u32-strconv-from-locale: New file.
98055         * lib/uniconv/u32-strconv-from-locale.c: New file.
98057         * modules/uniconv/u16-strconv-from-locale: New file.
98058         * lib/uniconv/u16-strconv-from-locale.c: New file.
98060         * modules/uniconv/u8-strconv-from-locale: New file.
98061         * lib/uniconv/u8-strconv-from-locale.c: New file.
98063         * modules/uniconv/u32-strconv-to-enc: New file.
98064         * lib/uniconv/u32-strconv-to-enc.c: New file.
98065         * modules/uniconv/u32-strconv-to-enc-tests: New file.
98066         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
98068         * modules/uniconv/u16-strconv-to-enc: New file.
98069         * lib/uniconv/u16-strconv-to-enc.c: New file.
98070         * lib/uniconv/u-strconv-to-enc.h: New file.
98071         * modules/uniconv/u16-strconv-to-enc-tests: New file.
98072         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
98074         * modules/uniconv/u8-strconv-to-enc: New file.
98075         * lib/uniconv/u8-strconv-to-enc.c: New file.
98076         * modules/uniconv/u8-strconv-to-enc-tests: New file.
98077         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
98079         * modules/uniconv/u32-strconv-from-enc: New file.
98080         * lib/uniconv/u32-strconv-from-enc.c: New file.
98081         * modules/uniconv/u32-strconv-from-enc-tests: New file.
98082         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
98084         * modules/uniconv/u16-strconv-from-enc: New file.
98085         * lib/uniconv/u16-strconv-from-enc.c: New file.
98086         * modules/uniconv/u16-strconv-from-enc-tests: New file.
98087         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
98089         * modules/uniconv/u8-strconv-from-enc: New file.
98090         * lib/uniconv/u8-strconv-from-enc.c: New file.
98091         * lib/uniconv/u-strconv-from-enc.h: New file.
98092         * modules/uniconv/u8-strconv-from-enc-tests: New file.
98093         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
98095         * modules/uniconv/u32-conv-from-enc: New file.
98096         * lib/uniconv/u32-conv-from-enc.c: New file.
98097         * modules/uniconv/u32-conv-from-enc-tests: New file.
98098         * tests/uniconv/test-u32-conv-from-enc.c: New file.
98100         * modules/uniconv/u16-conv-from-enc: New file.
98101         * lib/uniconv/u16-conv-from-enc.c: New file.
98102         * lib/uniconv/u-conv-from-enc.h: New file.
98103         * modules/uniconv/u16-conv-from-enc-tests: New file.
98104         * tests/uniconv/test-u16-conv-from-enc.c: New file.
98106         * modules/uniconv/u8-conv-from-enc: New file.
98107         * lib/uniconv/u8-conv-from-enc.c: New file.
98108         * modules/uniconv/u8-conv-from-enc-tests: New file.
98109         * tests/uniconv/test-u8-conv-from-enc.c: New file.
98111         * modules/uniconv/base: New file.
98112         * lib/uniconv.h: New file.
98114 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
98116         * doc/gnulib-tool.texi (Initial import): Update to match current
98117         behavior with strdup module.
98118         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
98119         * lib/memmem.h: Remove; all uses removed.  This is now done
98120         by <string.h>.
98121         * lib/mempcpy.h: Likewise.
98122         * lib/memrchr.h: Likewise.
98123         * lib/stpcpy.h: Likewise.
98124         * lib/stpncpy.h: Likewise.
98125         * lib/strcase.h: Likewise.
98126         * lib/strchrnul.h: Likewise.
98127         * lib/strdup.h: Likewise.
98128         * lib/strndup.h: Likewise.
98129         * lib/strnlen.h: Likewise.
98130         * lib/strpbrk.h: Likewise.
98131         * lib/strsep.h: Likewise.
98132         * lib/strstr.h: Likewise.
98133         * lib/strtok_r.h: Likewise.
98134         * lib/string_.h: New file.
98135         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
98136         Rely on <string.h> instead.
98137         * lib/canon-host.c: Likewise.
98138         * lib/chdir-long.c: Likewise.
98139         * lib/concatpath.c: Likewise.
98140         * lib/exclude.c: Likewise.
98141         * lib/fchdir.c: Likewise.
98142         * lib/getaddrinfo.c: Likewise.
98143         * lib/getcwd.c: Likewise.
98144         * lib/getsubopt.c: Likewise.
98145         * lib/glob.c: Likewise.
98146         * lib/hard-locale.c: Likewise.
98147         * lib/iconvme.c: Likewise.
98148         * lib/javacomp.c: Likewise.
98149         * lib/mempcpy.c: Likewise.
98150         * lib/memrchr.c: Likewise.
98151         * lib/regex_internal.h: Likewise.
98152         * lib/stpncpy.c: Likewise.
98153         * lib/strcasecmp.c: Likewise.
98154         * lib/strchrnul.c: Likewise.
98155         * lib/strdup.c: Likewise.
98156         * lib/striconv.c: Likewise.
98157         * lib/striconveh.c: Likewise.
98158         * lib/striconveha.c: Likewise.
98159         * lib/strncasecmp.c: Likewise.
98160         * lib/strndup.c: Likewise.
98161         * lib/strnlen.c: Likewise.
98162         * lib/strsep.c: Likewise.
98163         * lib/strstr.c: Likewise.
98164         * lib/strtok_r.c: Likewise.
98165         * lib/userspec.c: Likewise.
98166         * lib/w32spawn.h: Likewise.
98167         * lib/xstrndup.c: Likewise.
98168         * lib/mountlist.c (strstr): Remove decl.
98169         * m4/string_h.m4: New file.
98170         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
98171         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
98172         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
98173         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
98174         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
98175         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
98176         Set REPLACE_STRCASECMP if necessary.
98177         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
98178         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
98179         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
98180         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
98181         HAVE_DECL_STRDUP if necessary.
98182         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
98183         since gl_FUNC_STRNDUP does that now.
98184         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
98185         Check for decl here...
98186         (gl_PREREQ_STRNLEN): ... not here.
98187         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
98188         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
98189         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
98190         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
98191         necessary.
98192         * modules/string: New file.
98193         * modules/memmem (Files): Remove special-purpose include file.
98194         (Depends-on): Add string.
98195         (Include): Include <string.h>, not the removed file.
98196         * modules/mempcpy: Likewise.
98197         * modules/memrchr: Likewise.
98198         * modules/stpcpy: Likewise.
98199         * modules/stpncpy: Likewise.
98200         * modules/strcase: Likewise.
98201         * modules/strchrnul: Likewise.
98202         * modules/strdup: Likewise.
98203         * modules/strndup: Likewise.
98204         * modules/strnlen: Likewise.
98205         * modules/strpbrk: Likewise.
98206         * modules/strsep: Likewise.
98207         * modules/strstr: Likewise.
98208         * modules/strtok_r: Likewise.
98209         * tests/test-dirname.c: Don't include "strdup.h", since
98210         <string.h> now suffices.
98211         * tests/test-memmem.c: Don't include "memmem.h", since
98212         <string.h> now suffices.
98214 2007-01-25  Bruno Haible  <bruno@clisp.org>
98216         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
98217         *resultp is 0.
98219         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
98220         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
98221         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
98222         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
98224         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
98225         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
98226         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
98227         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
98228         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
98229         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
98231 2007-01-24  Bruno Haible  <bruno@clisp.org>
98233         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
98234         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
98235         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
98236         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
98237         gl_FUNC_FTS_CORE.
98238         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
98239         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
98240         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98241         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
98242         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
98243         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
98244         gl_FUNC_FCHOWNAT.
98245         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
98246         gl_FUNC_STRFTIME.
98247         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
98248         Reported by Ralf Wildenhues.
98250 2007-01-24  Bruno Haible  <bruno@clisp.org>
98252         Drop AC_REQUIRE calls that are redundant with the module dependencies.
98253         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
98254         gl_GETADDRINFO.
98255         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
98256         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
98257         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
98259 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
98261         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
98262         Don't use 'exit'; just return from 'main'.
98263         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
98265         * lib/fnmatch_.h: Readjust white space and comments to match
98266         glibc, to avoid spurious diffs.
98268 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
98270         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
98271         2004-12-01 change by Jakub Jelinek, since this code won't compile
98272         if !LIBC.  Problem reported by Bob Proulx.
98274 2007-01-23  Bruno Haible  <bruno@clisp.org>
98276         * lib/striconveh.c: Include c-strcaseeq.h.
98277         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
98278         * modules/striconveh (Depends-on): Add c-strcaseeq.
98280 2007-01-23  Bruno Haible  <bruno@clisp.org>
98282         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
98284         * modules/c-strcaseeq: New file.
98285         * lib/c-strcaseeq.h: New file.
98287         * modules/streq: New file.
98288         * lib/streq.h: New file.
98290 2007-01-23  Bruno Haible  <bruno@clisp.org>
98292         * modules/striconveha-tests: New file.
98293         * tests/test-striconveha.c: New file.
98295         * lib/striconveha.h: Include <stdbool.h>.
98296         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
98297         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
98298         (mem_iconveha_notranslit): Renamed from mem_iconveha.
98299         (mem_iconveha): New function.
98300         (str_iconveha_notranslit): Renamed from str_iconveha.
98301         (str_iconveha): New function.
98302         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
98303         c-strcase.
98305 2007-01-23  Bruno Haible  <bruno@clisp.org>
98307         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
98308         encodings without forgiving before trying any encoding with handler.
98309         (str_iconveha): Try all encodings without forgiving before trying any
98310         encoding with handler.
98312 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
98314         Import the following changes from libc.
98316         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
98318         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
98320         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
98322         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
98323         normal_bracket label.
98325         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
98327         [BZ #361]
98328         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
98329         to normal_bracket after fetching the next character.
98331 2007-01-22  Bruno Haible  <bruno@clisp.org>
98333         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
98334         argument.
98335         * lib/striconveh.c (iconv_carefully_1): New function.
98336         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
98337         argument.
98338         (str_cd_iconveh): Update.
98339         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
98340         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
98341         * tests/test-striconveh.c (MAGIC): New macro.
98342         (new_offsets): New function.
98343         (main): Test call with and without offsets.
98345 2007-01-22  Bruno Haible  <bruno@clisp.org>
98347         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
98348         * modules/sys_select (Makefile.am): Likewise.
98349         * modules/sys_socket (Makefile.am): Likewise.
98350         * modules/sys_time (Makefile.am): Likewise.
98352 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
98354         * modules/gettimeofday (License): Change from GPL to LGPL, since
98355         gettimeofday is a library function.
98357 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98359         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
98361 2007-01-21  Bruno Haible  <bruno@clisp.org>
98363         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
98365 2007-01-21  Bruno Haible  <bruno@clisp.org>
98367         * modules/striconveha: New file.
98368         * lib/striconveha.h: New file.
98369         * lib/striconveha.c: New file.
98370         * MODULES.html.sh (Internationalization functions): Add striconveha.
98371         * lib/striconv.c (str_iconv): Optimize the case of an empty input
98372         string.
98373         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
98375 2007-01-21  Bruno Haible  <bruno@clisp.org>
98377         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
98378         * lib/striconveh.c (str_iconveh): Likewise.
98380 2007-01-21  Bruno Haible  <bruno@clisp.org>
98382         * lib/striconveh.h (mem_iconveh): New declaration.
98383         * lib/striconveh.c (mem_iconveh): New function.
98384         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
98386 2007-01-21  Bruno Haible  <bruno@clisp.org>
98388         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
98390         * lib/striconveh.h (mem_cd_iconveh): Change specification.
98391         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
98392         original result buffer.
98393         (str_cd_iconveh): Update.
98394         * tests/test-striconveh.c (main): Update.
98396         * lib/striconv.h (mem_cd_iconv): Change specification.
98397         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
98398         result buffer.
98399         (str_cd_iconv): Update.
98400         * tests/test-striconv.c (main): Update.
98402 2007-01-21  Bruno Haible  <bruno@clisp.org>
98404         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
98406 2007-01-20  Jim Meyering  <jim@meyering.net>
98408         * lib/userspec.c (parse_with_separator): If a user or group string
98409         starts with "+", skip the corresponding name-to-ID look-up, since
98410         such a look-up must fail: user and group names may not include "+".
98412 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
98414         * lib/poll.c: Include sys/time.h and time.h unconditionally,
98415         since we now assume the sys_time module.
98416         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
98417         check for sys/time.h; no longer needed.
98418         * modules/poll (Depends-on): Depend on sys_time.
98420 2007-01-18  Bruno Haible  <bruno@clisp.org>
98422         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
98423         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
98425         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
98426         gettimeofday.
98428         * tests/test-gettimeofday.c: Include <time.h>.
98429         (dummy): Remove variable.
98431         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
98432         gl_HEADER_SYS_TIME_H.
98433         (gl_HEADER_SYS_TIME_H): New macro.
98435         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
98436         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
98437         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
98438         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
98439         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
98440         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
98441         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
98442         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
98443         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
98444         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
98445         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
98447         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
98448         last change; it caused a compilation error when cross-compiling to
98449         Cygwin.
98451 2007-01-18  Jim Meyering  <jim@meyering.net>
98453         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
98454         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
98455         than the race-prone "test -d sys || mkdir sys".
98456         (configure.ac): Use AC_PROG_MKDIR_P.
98457         * modules/sys_select: Likewise.
98458         * modules/sys_socket: Likewise.
98459         * modules/sys_time: Likewise.
98461 2007-01-18  Eric Blake  <ebb9@byu.net>
98463         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
98464         replace gettimeofday.
98465         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
98466         name, to avoid infinite recursion.
98468 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
98470         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
98471         module sys_time.
98472         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
98473         assume timespec.h defines struct timeval.
98474         * lib/settime.c: Likewise.
98475         * lib/utimens.c: Likewise.
98476         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
98477         since we now assume the gettimeofday module.
98478         * lib/tempname.c (__gen_tempname): Likewise.
98479         * lib/gettimeofday.h: Remove.
98480         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
98481         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
98482         Include <time.h>, for 'time()'.
98483         (localtime_buffer_addr): Also use this workaround if
98484         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
98485         to simplify the uses.  All uses changed.
98486         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
98487         that #undef is inside {}, and 'const' follows type name consistently.
98488         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
98489         (gettimeofday): Do not use the maximum possible value for
98490         tv->tv_usec, since that might break usages other than ls.c.
98491         Instead, we'll leave ls.c alone.  This undoes today's patch
98492         by Bruno.  Add a compile-time warning for 1s-clock resolution;
98493         we've never observed the problem but might as well keep the
98494         canary.
98495         * lib/nanosleep.c: Include timespec.h first, for interface check.
98496         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
98497         now assume the sys_time module.
98498         * lib/tempname.c: Likewise.
98499         * lib/timespec.h: Likewise.
98500         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
98501         needed.
98502         * lib/strftime.c: Likewise.
98503         * lib/timespec.h: Likewise.
98504         * lib/posixtm.c: Include posixtm.h first, for interface check.
98505         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
98506         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
98507         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
98508         * lib/sys_time_.h: New file.
98509         * lib/timespec.h (struct timespec): Use long int, not long.
98510         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
98511         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
98512         Remove obsolescent call to AC_HEADER_TIME.
98513         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
98514         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
98515         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
98516         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
98517         Likewise.
98518         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
98519         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
98520         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
98521         into the sys_time module.  Check for gettimeofday just once.
98522         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
98523         for gettimeofday signature to just check the signature.  Merely
98524         compile it, since linking doesn't test signature.  Improve test for
98525         whether gettimeofday.o is actually needed.
98526         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
98527         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
98528         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
98529         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
98530         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
98531         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
98532         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
98533         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
98534         than worrying about sys/time.h.
98535         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
98536         Don't bother worrying about TIME_WITH_SYS_TIME.
98537         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
98538         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
98539         * m4/sys_time_h.m4: New file.
98540         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
98541         Don't include sys/time.h.  Return from main rather than exiting.
98542         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
98543         all uses changed.
98544         * modules/gethrxtime (Depends-on): Add sys_time.
98545         * modules/gettime (Depends-on): Likewise.
98546         * modules/gettimeofday (Depends-on): Likewise.
98547         * modules/nanosleep (Depends-on): Likewise.
98548         * modules/settime (Depends-on): Likewise.
98549         * modules/tempname (Depends-on): Likewise.
98550         * modules/utimens (Depends-on): Likewise.
98551         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
98552         (Include): Change back to <sys/time.h>.
98553         (Maintainer): Add self.
98554         * modules/sys_time: New file.
98555         * modules/tempname (Depends-on): Add gettimeofday.
98556         * tests/test-gettimeofday.c: Include <sys/time.h>
98557         rather than gettimeofday.h.
98559 2007-01-17  Bruno Haible  <bruno@clisp.org>
98561         * gnulib-tool (func_get_license): Revert last patch. Instead, let
98562         the license default to GPL.
98563         (func_create_testdir): Don't complain if a module is LGPL and its
98564         tests module depends on GPLed modules.
98566 2007-01-17  Bruno Haible  <bruno@clisp.org>
98568         * lib/gettimeofday.c (gettimeofday): Add code for the case
98569         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
98570         maximum possible value for tv->tv_usec, rather than the minimum one.
98572 2005-10-08  Martin Lambers  <marlam@marlam.de>
98573 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
98574 2007-01-16  Bruno Haible  <bruno@clisp.org>
98576         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
98577         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
98578         gl_FUNC_GETTIMEOFDAY.
98579         (Include): Add gettimeofday.h.
98580         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
98581         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
98582         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
98583         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
98584         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
98585         * lib/gettimeofday.h: New file.
98586         * lib/gettimeofday.c: Include <sys/timeb.h>.
98587         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
98588         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
98589         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
98590         fall back on time().
98592         * tests/test-gettimeofday.c: New file.
98593         * modules/gettimeofday-tests: New file.
98595 2007-01-16  Eric Blake  <ebb9@byu.net>
98597         * modules/fnmatch (Depends-on): Depend on wchar.
98598         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
98599         * m4/fnmatch.m4: Likewise.
98600         * modules/mbchar (Makefile.am): Assume <wchar.h>.
98601         * m4/mbchar.m4: Likewise.
98602         * modules/mbswidth (Depends-on): Depend on wchar.
98603         * lib/mbswidth.c: Assume <wchar.h>.
98604         * m4/mbswidth.m4: Likewise.
98605         * modules/quotearg (Depends-on): Depend on wchar.
98606         * lib/quotearg.c: Assume <wchar.h>.
98607         * m4/quotearg.m4: Likewise.
98608         * modules/regex (Depends-on): Depend on wchar.
98609         * lib/regex_internal.h: Assume <wchar.h>.
98610         * m4/regex.m4: Likewise.
98611         * modules/stdint (Depends-on): Depend on wchar.
98612         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
98613         * m4/stdint.m4: Likewise.
98614         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
98615         * modules/strftime (Depends-on): Depend on wchar.
98616         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
98617         * modules/strtol (Depends-on): Depend on wchar.
98618         * lib/strtol.c: Assume <wchar.h>.
98619         * modules/wcwidth (Depends-on): Depend on wchar.
98620         * lib/wcwidth.h: Assume <wchar.h>.
98621         * m4/wcwidth.m4: Likewise.
98623 2007-01-16  Bruno Haible  <bruno@clisp.org>
98625         * modules/csharpexec-script: New, created from...
98626         * modules/csharpexec: ... this.
98628 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
98630         * modules/javaexec-script: New, created from...
98631         * modules/javaexec: ... this.
98633 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98635         * modules/poll (Dependencies): Add sys_select.
98637 2007-01-15  Jim Meyering  <jim@meyering.net>
98639         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
98640         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
98641         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
98642         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
98644 2007-01-15  Bruno Haible  <bruno@clisp.org>
98646         * modules/striconveh: New file.
98647         * lib/striconveh.h: New file.
98648         * lib/striconveh.c: New file.
98649         * MODULES.html.sh (Internationalization functions): Add striconveh.
98651         * modules/striconveh-tests: New file.
98652         * tests/test-striconveh.c: New file.
98654 2007-01-15  Bruno Haible  <bruno@clisp.org>
98656         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
98657         not from GNU libiconv or GNU libc.
98659 2007-01-15  Bruno Haible  <bruno@clisp.org>
98661         * doc/gnulib-intro.texi (Copyright): Explain the different license
98662         terms for module descriptions, autoconf macros, tests, documentation.
98664 2007-01-14  Bruno Haible  <bruno@clisp.org>
98666         * modules/striconv-tests: New file.
98667         * tests/test-striconv.c: New file.
98669 2007-01-14  Bruno Haible  <bruno@clisp.org>
98671         * modules/iconv-tests: New file.
98672         * tests/test-iconv.c: New file.
98674 2007-01-14  Bruno Haible  <bruno@clisp.org>
98676         * gnulib-tool (func_get_license): For test modules, use the license of
98677         the main module.
98679 2007-01-14  Bruno Haible  <bruno@clisp.org>
98681         * modules/iconv (Include): Clarify that <iconv.h> can only be included
98682         if iconv is found to exist.
98684 2007-01-14  Bruno Haible  <bruno@clisp.org>
98686         * modules/c-ctype-tests: New file.
98687         * tests/test-c-ctype.c: New file.
98689 2007-01-14  Bruno Haible  <bruno@clisp.org>
98691         * modules/binary-io-tests: New file.
98692         * tests/test-binary-io.sh: New file.
98693         * tests/test-binary-io.c: New file.
98695 2007-01-14  Bruno Haible  <bruno@clisp.org>
98697         * modules/array-oset-tests: New file.
98698         * tests/test-array_oset.c: New file.
98700 2007-01-14  Bruno Haible  <bruno@clisp.org>
98702         * modules/array-list-tests: New file.
98703         * tests/test-array_list.c: New file.
98705 2007-01-14  Bruno Haible  <bruno@clisp.org>
98707         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
98708         and make.
98709         Reported by Simon Josefsson in
98710         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
98712 2007-01-14  Bruno Haible  <bruno@clisp.org>
98714         * modules/allocsa-tests: New file.
98715         * tests/test-allocsa.c: New file.
98717 2007-01-14  Bruno Haible  <bruno@clisp.org>
98719         * modules/fchdir (Depends-on): Add absolute-header.
98720         * modules/unistd (Depends-on): Likewise.
98722 2006-12-30  Bruno Haible  <bruno@clisp.org>
98724         * modules/fchdir: New file.
98725         * modules/unistd (Files): Add lib/unistd_.h.
98726         (Makefile.am): Generate unistd.h from unistd_.h.
98727         * lib/fchdir.c: New file.
98728         * lib/dirent_.h: New file.
98729         * lib/unistd_.h: New file.
98730         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
98731         * m4/fchdir.m4: New file.
98732         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
98733         (gl_HEADER_UNISTD): Invoke it.
98734         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
98735         function.
98736         * lib/backupfile.c (opendir, closedir): Undefine.
98737         * lib/chown.c (open, close): Undefine.
98738         * lib/clean-temp.c (open, close): Undefine.
98739         * lib/copy-file.c (open, close): Undefine.
98740         * lib/execute.c (open, close): Undefine.
98741         * lib/fsusage.c (open, close): Undefine.
98742         * lib/gc-gnulib.c (open, close): Undefine.
98743         * lib/getcwd.c (opendir, closedir): Undefine.
98744         * lib/glob.c (opendir, closedir): Undefine.
98745         * lib/javacomp.c (open, close): Undefine.
98746         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
98747         * lib/openat-proc.c (open, close): Undefine.
98748         * lib/pagealign_alloc.c (open, close): Undefine.
98749         * lib/pipe.c (open, close): Undefine.
98750         * lib/progreloc.c (open, close): Undefine.
98751         * lib/savedir.c (opendir, closedir): Undefine.
98752         * lib/utime.c (open, close): Undefine.
98753         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
98755 2007-01-10  Bruno Haible  <bruno@clisp.org>
98757         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
98759 2007-01-12  Eric Blake  <ebb9@byu.net>
98761         Provide a robust <wchar.h>.  Further simplifications are now
98762         possible in other modules, but not included here.
98763         * modules/wchar: New module.
98764         * m4/wchar.m4: New file.
98765         * lib/wchar_.h: Likewise.
98766         * modules/mbchar (Depends-on): Depend on wchar, as the first use
98767         of the new module.
98768         * MODULES.html.sh (Extended multibyte and wide character utilities):
98769         New section.
98771 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
98773         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
98774         to a reasonable default for memory allocation.
98775         (xreadlink): Don't allocate a huge buffer, to work around a buggy
98776         file system that reports garbage st_size values for symlinks.
98777         Problem reported by Liyang Hu.
98779 2007-01-11  Simon Josefsson  <simon@josefsson.org>
98781         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
98782         Emacs .#* auto-save files).
98784 2007-01-11  Bruno Haible  <bruno@clisp.org>
98786         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
98787         directory.
98789 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
98791         Use @...@ consistently in lib/wctype_.h.
98792         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
98793         on it being set to 1 or 0.
98794         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
98795         go back to AC_SUBSTing it.
98796         * modules/wctype (Makefile.am): Undo previous change.
98798 2007-01-10  Eric Blake  <ebb9@byu.net>
98800         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
98801         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
98802         * modules/wctype (Makefile.am): Likewise.
98803         Reported by Chris McGuire.
98805 2007-01-10  Jim Meyering  <jim@meyering.net>
98807         fts.c: a small readability/maintainability improvement
98808         * lib/fts.c (fts_read): Make this code slightly more readable and
98809         maintainable by hoisting the "sp->fts_cur = p" assignments to
98810         immediately follow the statements that set P.  Derived from
98811         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
98813 2007-01-10  Eric Blake  <ebb9@byu.net>
98815         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
98816         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
98817         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
98818         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
98819         Reported by Chris McGuire.
98821 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98823         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
98824         in sed script.
98826 2007-01-09  Bruno Haible  <bruno@clisp.org>
98828         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
98829         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
98830         variables.
98831         (func_module): Use them.
98833 2007-01-09  Bruno Haible  <bruno@clisp.org>
98835         * modules/unistr/base: New file.
98836         * lib/unistr.h: New file.
98838         * modules/unistr/u8-to-u16: New file.
98839         * lib/unistr/u8-to-u16.c: New file.
98841         * modules/unistr/u8-to-u32: New file.
98842         * lib/unistr/u8-to-u32.c: New file.
98844         * modules/unistr/u16-to-u8: New file.
98845         * lib/unistr/u16-to-u8.c: New file.
98847         * modules/unistr/u16-to-u32: New file.
98848         * lib/unistr/u16-to-u32.c: New file.
98850         * modules/unistr/u32-to-u8: New file.
98851         * lib/unistr/u32-to-u8.c: New file.
98853         * modules/unistr/u32-to-u16: New file.
98854         * lib/unistr/u32-to-u16.c: New file.
98856         * modules/unistr/u8-check: New file.
98857         * modules/unistr/u16-check: New file.
98858         * modules/unistr/u32-check: New file.
98859         * lib/unistr/u8-check.c: New file.
98860         * lib/unistr/u16-check.c: New file.
98861         * lib/unistr/u32-check.c: New file.
98863         * modules/unistr/u8-chr: New file.
98864         * modules/unistr/u16-chr: New file.
98865         * modules/unistr/u32-chr: New file.
98866         * lib/unistr/u8-chr.c: New file.
98867         * lib/unistr/u16-chr.c: New file.
98868         * lib/unistr/u32-chr.c: New file.
98870         * modules/unistr/u8-cmp: New file.
98871         * modules/unistr/u16-cmp: New file.
98872         * modules/unistr/u32-cmp: New file.
98873         * lib/unistr/u8-cmp.c: New file.
98874         * lib/unistr/u16-cmp.c: New file.
98875         * lib/unistr/u32-cmp.c: New file.
98877         * modules/unistr/u8-cpy: New file.
98878         * modules/unistr/u16-cpy: New file.
98879         * modules/unistr/u32-cpy: New file.
98880         * lib/unistr/u8-cpy.c: New file.
98881         * lib/unistr/u16-cpy.c: New file.
98882         * lib/unistr/u32-cpy.c: New file.
98883         * lib/unistr/u-cpy.h: New file.
98885         * modules/unistr/u8-cpy-alloc: New file.
98886         * modules/unistr/u16-cpy-alloc: New file.
98887         * modules/unistr/u32-cpy-alloc: New file.
98888         * lib/unistr/u8-cpy-alloc.c: New file.
98889         * lib/unistr/u16-cpy-alloc.c: New file.
98890         * lib/unistr/u32-cpy-alloc.c: New file.
98891         * lib/unistr/u-cpy-alloc.h: New file.
98893         * modules/unistr/u8-endswith: New file.
98894         * modules/unistr/u16-endswith: New file.
98895         * modules/unistr/u32-endswith: New file.
98896         * lib/unistr/u8-endswith.c: New file.
98897         * lib/unistr/u16-endswith.c: New file.
98898         * lib/unistr/u32-endswith.c: New file.
98899         * lib/unistr/u-endswith.h: New file.
98901         * modules/unistr/u8-mblen: New file.
98902         * modules/unistr/u16-mblen: New file.
98903         * modules/unistr/u32-mblen: New file.
98904         * lib/unistr/u8-mblen.c: New file.
98905         * lib/unistr/u16-mblen.c: New file.
98906         * lib/unistr/u32-mblen.c: New file.
98908         * modules/unistr/u8-mbtouc: New file.
98909         * modules/unistr/u16-mbtouc: New file.
98910         * modules/unistr/u32-mbtouc: New file.
98911         * lib/unistr/u8-mbtouc.c: New file.
98912         * lib/unistr/u16-mbtouc.c: New file.
98913         * lib/unistr/u32-mbtouc.c: New file.
98915         * modules/unistr/u8-mbtouc-safe: New file.
98916         * modules/unistr/u16-mbtouc-safe: New file.
98917         * modules/unistr/u32-mbtouc-safe: New file.
98918         * lib/unistr/u8-mbtouc-safe.c: New file.
98919         * lib/unistr/u16-mbtouc-safe.c: New file.
98920         * lib/unistr/u32-mbtouc-safe.c: New file.
98922         * modules/unistr/u8-move: New file.
98923         * modules/unistr/u16-move: New file.
98924         * modules/unistr/u32-move: New file.
98925         * lib/unistr/u8-move.c: New file.
98926         * lib/unistr/u16-move.c: New file.
98927         * lib/unistr/u32-move.c: New file.
98928         * lib/unistr/u-move.h: New file.
98930         * modules/unistr/u8-next: New file.
98931         * modules/unistr/u16-next: New file.
98932         * modules/unistr/u32-next: New file.
98933         * lib/unistr/u8-next.c: New file.
98934         * lib/unistr/u16-next.c: New file.
98935         * lib/unistr/u32-next.c: New file.
98937         * modules/unistr/u8-prev: New file.
98938         * modules/unistr/u16-prev: New file.
98939         * modules/unistr/u32-prev: New file.
98940         * lib/unistr/u8-prev.c: New file.
98941         * lib/unistr/u16-prev.c: New file.
98942         * lib/unistr/u32-prev.c: New file.
98944         * modules/unistr/u8-set: New file.
98945         * modules/unistr/u16-set: New file.
98946         * modules/unistr/u32-set: New file.
98947         * lib/unistr/u8-set.c: New file.
98948         * lib/unistr/u16-set.c: New file.
98949         * lib/unistr/u32-set.c: New file.
98950         * lib/unistr/u-set.h: New file.
98952         * modules/unistr/u8-startswith: New file.
98953         * modules/unistr/u16-startswith: New file.
98954         * modules/unistr/u32-startswith: New file.
98955         * lib/unistr/u8-startswith.c: New file.
98956         * lib/unistr/u16-startswith.c: New file.
98957         * lib/unistr/u32-startswith.c: New file.
98958         * lib/unistr/u-startswith.h: New file.
98960         * modules/unistr/u8-stpcpy: New file.
98961         * modules/unistr/u16-stpcpy: New file.
98962         * modules/unistr/u32-stpcpy: New file.
98963         * lib/unistr/u8-stpcpy.c: New file.
98964         * lib/unistr/u16-stpcpy.c: New file.
98965         * lib/unistr/u32-stpcpy.c: New file.
98966         * lib/unistr/u-stpcpy.h: New file.
98968         * modules/unistr/u8-stpncpy: New file.
98969         * modules/unistr/u16-stpncpy: New file.
98970         * modules/unistr/u32-stpncpy: New file.
98971         * lib/unistr/u8-stpncpy.c: New file.
98972         * lib/unistr/u16-stpncpy.c: New file.
98973         * lib/unistr/u32-stpncpy.c: New file.
98974         * lib/unistr/u-stpncpy.h: New file.
98976         * modules/unistr/u8-strcat: New file.
98977         * modules/unistr/u16-strcat: New file.
98978         * modules/unistr/u32-strcat: New file.
98979         * lib/unistr/u8-strcat.c: New file.
98980         * lib/unistr/u16-strcat.c: New file.
98981         * lib/unistr/u32-strcat.c: New file.
98982         * lib/unistr/u-strcat.h: New file.
98984         * modules/unistr/u8-strchr: New file.
98985         * modules/unistr/u16-strchr: New file.
98986         * modules/unistr/u32-strchr: New file.
98987         * lib/unistr/u8-strchr.c: New file.
98988         * lib/unistr/u16-strchr.c: New file.
98989         * lib/unistr/u32-strchr.c: New file.
98991         * modules/unistr/u8-strcmp: New file.
98992         * modules/unistr/u16-strcmp: New file.
98993         * modules/unistr/u32-strcmp: New file.
98994         * lib/unistr/u8-strcmp.c: New file.
98995         * lib/unistr/u16-strcmp.c: New file.
98996         * lib/unistr/u32-strcmp.c: New file.
98998         * modules/unistr/u8-strcpy: New file.
98999         * modules/unistr/u16-strcpy: New file.
99000         * modules/unistr/u32-strcpy: New file.
99001         * lib/unistr/u8-strcpy.c: New file.
99002         * lib/unistr/u16-strcpy.c: New file.
99003         * lib/unistr/u32-strcpy.c: New file.
99004         * lib/unistr/u-strcpy.h: New file.
99006         * modules/unistr/u8-strcspn: New file.
99007         * modules/unistr/u16-strcspn: New file.
99008         * modules/unistr/u32-strcspn: New file.
99009         * lib/unistr/u8-strcspn.c: New file.
99010         * lib/unistr/u16-strcspn.c: New file.
99011         * lib/unistr/u32-strcspn.c: New file.
99012         * lib/unistr/u-strcspn.h: New file.
99014         * modules/unistr/u8-strdup: New file.
99015         * modules/unistr/u16-strdup: New file.
99016         * modules/unistr/u32-strdup: New file.
99017         * lib/unistr/u8-strdup.c: New file.
99018         * lib/unistr/u16-strdup.c: New file.
99019         * lib/unistr/u32-strdup.c: New file.
99020         * lib/unistr/u-strdup.h: New file.
99022         * modules/unistr/u8-strlen: New file.
99023         * modules/unistr/u16-strlen: New file.
99024         * modules/unistr/u32-strlen: New file.
99025         * lib/unistr/u8-strlen.c: New file.
99026         * lib/unistr/u16-strlen.c: New file.
99027         * lib/unistr/u32-strlen.c: New file.
99028         * lib/unistr/u-strlen.h: New file.
99030         * modules/unistr/u8-strmblen: New file.
99031         * modules/unistr/u16-strmblen: New file.
99032         * modules/unistr/u32-strmblen: New file.
99033         * lib/unistr/u8-strmblen.c: New file.
99034         * lib/unistr/u16-strmblen.c: New file.
99035         * lib/unistr/u32-strmblen.c: New file.
99037         * modules/unistr/u8-strmbtouc: New file.
99038         * modules/unistr/u16-strmbtouc: New file.
99039         * modules/unistr/u32-strmbtouc: New file.
99040         * lib/unistr/u8-strmbtouc.c: New file.
99041         * lib/unistr/u16-strmbtouc.c: New file.
99042         * lib/unistr/u32-strmbtouc.c: New file.
99044         * modules/unistr/u8-strncat: New file.
99045         * modules/unistr/u16-strncat: New file.
99046         * modules/unistr/u32-strncat: New file.
99047         * lib/unistr/u8-strncat.c: New file.
99048         * lib/unistr/u16-strncat.c: New file.
99049         * lib/unistr/u32-strncat.c: New file.
99050         * lib/unistr/u-strncat.h: New file.
99052         * modules/unistr/u8-strncmp: New file.
99053         * modules/unistr/u16-strncmp: New file.
99054         * modules/unistr/u32-strncmp: New file.
99055         * lib/unistr/u8-strncmp.c: New file.
99056         * lib/unistr/u16-strncmp.c: New file.
99057         * lib/unistr/u32-strncmp.c: New file.
99059         * modules/unistr/u8-strncpy: New file.
99060         * modules/unistr/u16-strncpy: New file.
99061         * modules/unistr/u32-strncpy: New file.
99062         * lib/unistr/u8-strncpy.c: New file.
99063         * lib/unistr/u16-strncpy.c: New file.
99064         * lib/unistr/u32-strncpy.c: New file.
99065         * lib/unistr/u-strncpy.h: New file.
99067         * modules/unistr/u8-strnlen: New file.
99068         * modules/unistr/u16-strnlen: New file.
99069         * modules/unistr/u32-strnlen: New file.
99070         * lib/unistr/u8-strnlen.c: New file.
99071         * lib/unistr/u16-strnlen.c: New file.
99072         * lib/unistr/u32-strnlen.c: New file.
99073         * lib/unistr/u-strnlen.h: New file.
99075         * modules/unistr/u8-strpbrk: New file.
99076         * modules/unistr/u16-strpbrk: New file.
99077         * modules/unistr/u32-strpbrk: New file.
99078         * lib/unistr/u8-strpbrk.c: New file.
99079         * lib/unistr/u16-strpbrk.c: New file.
99080         * lib/unistr/u32-strpbrk.c: New file.
99081         * lib/unistr/u-strpbrk.h: New file.
99083         * modules/unistr/u8-strrchr: New file.
99084         * modules/unistr/u16-strrchr: New file.
99085         * modules/unistr/u32-strrchr: New file.
99086         * lib/unistr/u8-strrchr.c: New file.
99087         * lib/unistr/u16-strrchr.c: New file.
99088         * lib/unistr/u32-strrchr.c: New file.
99090         * modules/unistr/u8-strspn: New file.
99091         * modules/unistr/u16-strspn: New file.
99092         * modules/unistr/u32-strspn: New file.
99093         * lib/unistr/u8-strspn.c: New file.
99094         * lib/unistr/u16-strspn.c: New file.
99095         * lib/unistr/u32-strspn.c: New file.
99096         * lib/unistr/u-strspn.h: New file.
99098         * modules/unistr/u8-strstr: New file.
99099         * modules/unistr/u16-strstr: New file.
99100         * modules/unistr/u32-strstr: New file.
99101         * lib/unistr/u8-strstr.c: New file.
99102         * lib/unistr/u16-strstr.c: New file.
99103         * lib/unistr/u32-strstr.c: New file.
99104         * lib/unistr/u-strstr.h: New file.
99106         * modules/unistr/u8-strtok: New file.
99107         * modules/unistr/u16-strtok: New file.
99108         * modules/unistr/u32-strtok: New file.
99109         * lib/unistr/u8-strtok.c: New file.
99110         * lib/unistr/u16-strtok.c: New file.
99111         * lib/unistr/u32-strtok.c: New file.
99112         * lib/unistr/u-strtok.h: New file.
99114         * modules/unistr/u8-uctomb: New file.
99115         * modules/unistr/u16-uctomb: New file.
99116         * modules/unistr/u32-uctomb: New file.
99117         * lib/unistr/u8-uctomb.c: New file.
99118         * lib/unistr/u16-uctomb.c: New file.
99119         * lib/unistr/u32-uctomb.c: New file.
99121         * MODULES.html.sh (Unicode string functions): Add the new modules.
99123 2007-01-08  Bruno Haible  <bruno@clisp.org>
99125         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
99126         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
99127         subdirectories.
99129 2007-01-08  Karl Berry  <karl@gnu.org>
99131         * doc/error.texi: mention that main() fns must set program_name
99132         when progname is used.
99134 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
99136         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
99137         WCTYPE_H is empty, for the benefit of builds from non-distclean
99138         directories.  Problem reported by Eric Blake in
99139         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
99141 2007-01-08  Bruno Haible  <bruno@clisp.org>
99143         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
99144         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
99145         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
99146         PROVIDE_CANONICALIZE_FILENAME_MODE.
99147         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
99149 2007-01-08  Bruno Haible  <bruno@clisp.org>
99151         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
99152         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
99153         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
99154         * lib/fts.c: Likewise.
99155         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
99157 2006-12-25  Bruno Haible  <bruno@clisp.org>
99159         * modules/utf8-ucs4-safe: New file.
99160         * lib/utf8-ucs4-safe.h: New file.
99161         * lib/unistr/utf8-ucs4-safe.c: New file.
99163         * modules/utf16-ucs4-safe: New file.
99164         * lib/utf16-ucs4-safe.h: New file.
99165         * lib/unistr/utf16-ucs4-safe.c: New file.
99167         * MODULES.html.sh (Unicode string functions): Add the new modules.
99169 2007-01-08  Bruno Haible  <bruno@clisp.org>
99171         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
99172         (Depends-on): Add unitypes.
99173         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
99174         (u8_mbtouc_aux): Move out to separate file.
99175         (u8_mbtouc): Use ucs4_t, uint8_t types.
99176         * lib/unistr/utf8-ucs4.c: New file.
99178         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
99179         (Depends-on): Add unitypes.
99180         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
99181         (u16_mbtouc_aux): Move out to separate file.
99182         (u16_mbtouc): Use ucs4_t, uint16_t types.
99183         * lib/unistr/utf16-ucs4.c: New file.
99185         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
99186         (Depends-on): Add unitypes.
99187         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
99188         (u8_uctomb_aux): Move out to separate file.
99189         (u8_uctomb): Use ucs4_t, uint8_t types.
99190         * lib/unistr/ucs4-utf8.c: New file.
99192         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
99193         (Depends-on): Add unitypes.
99194         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
99195         (u16_uctomb_aux): Move out to separate file.
99196         (u16_uctomb): Use ucs4_t, uint16_t types.
99197         * lib/unistr/ucs4-utf16.c: New file.
99199 2006-12-25  Bruno Haible  <bruno@clisp.org>
99201         * modules/unitypes: New file.
99202         * lib/unitypes.h: New file.
99203         * MODULES.html.sh (func_all_modules): New section "Unicode string
99204         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
99205         this section. Add unitypes.
99207 2007-01-08  Bruno Haible  <bruno@clisp.org>
99209         Avoid variable names that conflict with those from libtool.
99210         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
99211         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
99212         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
99213         library_names_spec to acl_library_names_spec, hardcode_* to
99214         acl_hardcode_*.
99215         Reported by Ralf Wildenhues.
99217 2007-01-08  Bruno Haible  <bruno@clisp.org>
99219         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
99220         definition.
99221         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
99222         definition.
99223         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
99224         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
99225         definition.
99226         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
99227         definition.
99228         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
99229         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
99230         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
99231         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
99232         definition.
99233         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
99234         definition.
99235         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
99236         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
99237         GC_USE_<algorithm>.
99238         * lib/gc-libgcrypt.c: Likewise.
99239         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
99240         * modules/gc-arctwo (configure.ac): Likewise.
99241         * modules/gc-des (configure.ac): Likewise.
99242         * modules/gc-hmac-md5 (configure.ac): Likewise.
99243         * modules/gc-hmac-sha1 (configure.ac): Likewise.
99244         * modules/gc-md2 (configure.ac): Likewise.
99245         * modules/gc-md4 (configure.ac): Likewise.
99246         * modules/gc-md5 (configure.ac): Likewise.
99247         * modules/gc-random (configure.ac): Likewise.
99248         * modules/gc-rijndael (configure.ac): Likewise.
99249         * modules/gc-sha1 (configure.ac): Likewise.
99251 2007-01-08  Bruno Haible  <bruno@clisp.org>
99253         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
99254         macro definition.
99255         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
99256         definition.
99257         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
99258         definition.
99259         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
99260         * modules/fcntl-safer (configure.ac): Likewise.
99261         * modules/fopen-safer (configure.ac): Likewise.
99262         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
99263         GNULIB_FWRITEERROR macro definition.
99265 2007-01-08  Bruno Haible  <bruno@clisp.org>
99267         * m4/gnulib-common.m4: New file.
99268         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
99269         (func_get_filelist): Add m4/gnulib-common.m4.
99271 2007-01-08  Bruno Haible  <bruno@clisp.org>
99273         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
99274         command.
99276 2007-01-08  Jim Meyering  <jim@meyering.net>
99278         Use a more robust test for a "can't happen" condition.
99279         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
99280         narrowed the st_size value.  Presuming the "can't happen" condition
99281         is true, that narrowing could conceivably convert an invalid st_size
99282         value into a valid one.  Instead, use a change based on Matthew
99283         Woehlke's original patch.
99285         Slight readability improvement: use an assert-like macro
99286         in place of literal "abort ()" uses.
99287         * lib/fts.c (fts_assert): Define.
99288         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
99289         Use this macro instead of a bare 'abort'.
99291 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
99293         Don't worry about using IRIX 5.3's wctype.h broken definitions;
99294         simply work around them.
99295         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
99296         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
99297         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
99298         declaring.
99299         Don't bother to define as macros, since the standard doesn't require it.
99300         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
99301         longer worry about IRIX 5.3.
99302         (HAVE_WCTYPE_CTMP_BUG): Remove.
99304 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
99306         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
99307         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
99308         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
99309         Problems reported by Georg Schwarz for IRIX 5.3.
99311         * gnulib-tool (autoconf_minversion): Take the maximum version number
99312         found, not the minimum.  Problem reported by James Youngman.
99314 2007-01-03  Karl Berry  <karl@gnu.org>
99316         * doc/error.texi: new file, explaining interaction with progname.
99317         * doc/gnulib.texi: include it.  Update copyright.
99319 2007-01-03  Simon Josefsson  <simon@josefsson.org>
99321         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
99322         AC_CANONICAL_HOST, to improve autobuild outputs.
99324 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
99325             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
99327         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
99328         sockets, server sockets, and other file descriptors.  Count errors
99329         to compute the return value.  Reorder the code a bit to be easier
99330         to follow.  Don't set event bits that were not requested (except
99331         POLLERR and POLLHUP).
99333 2007-01-01  Bruno Haible  <bruno@clisp.org>
99335         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
99337 2007-01-03  Jim Meyering  <jim@meyering.net>
99339         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
99341 2007-01-02  Bruno Haible  <bruno@clisp.org>
99343         * modules/settime (Include): Require timespec.h.
99344         * modules/nanosleep (Include): Likewise.
99346 2007-01-01  Bruno Haible  <bruno@clisp.org>
99348         * gnulib-tool (func_emit_copyright_notice): Bump year.
99349         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
99351 2007-01-01  Bruno Haible  <bruno@clisp.org>
99353         Improve support for OpenBSD.
99354         * build-aux/config.rpath (libname_spec): Export.
99355         (library_names_spec): New variable. Export.
99356         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
99357         library_names_spec from the config.rpath output. Locate shared library
99358         through the name pattern in library_names_spec.
99360 2007-01-01  Eric Blake  <ebb9@byu.net>
99362         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
99364 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
99366         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
99367         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
99368         assume the C locale, and avoid an "eval" that could cause trouble.
99369         Problem with SORT reported by Bob Proulx.
99371         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
99372         Define.  Trivial patch from Henning Nielsen Lund, originally
99373         sent to bug-grep@gnu.org today.
99375 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
99377         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
99378         struct stat.  Problem reported by Henning Nielsen Lund.
99379         * lib/acl.c: Include acl.h first, to check interface.  Don't
99380         bother to include sys/types.h and sys/stat.h again.
99382 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
99384         Import the following change from libc; problem reported by
99385         Sven Verdoolaege.
99387         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
99389         [BZ #1373]
99390         * lib/argp.h: Remove __NTH for __argp_usage inline function.
99392 2006-12-28  Jim Meyering  <jim@meyering.net>
99394         * build-aux/announce-gen: Do not assume that the package
99395         builds any of tar.gz, tar.bz2, and .xdelta files.
99396         Suggestion from Simon Josefsson.
99398 2006-12-28  Simon Josefsson  <simon@josefsson.org>
99400         * modules/announce-gen: New file.
99402 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
99404         * lib/mbchar.h: Just include <wctype.h>; the wctype module
99405         handles its gotchas now.
99406         * lib/mbswidth.c: Likewise.
99407         * lib/wcwidth.h: Likewise.
99408         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
99409         and iswcntrl; the wctype module does this stuff now.
99410         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
99411         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
99412         * modules/mbchar (Depends-on): Add wctype.
99413         * modules/mbswidth (Depends-on): Likewise.
99414         * modules/wcwidth (Depends-on): Likewise.
99416 2006-12-27  Eric Blake  <ebb9@byu.net>
99418         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
99419         module uses more than what <wctype.h> is required to provide.
99421 2006-12-26  Eric Blake  <ebb9@byu.net>
99423         * gnulib-tool (sed_extract_prog): Avoid space-tab.
99425 2006-12-26  Eric Blake  <ebb9@byu.net>
99427         * modules/absolute-header: New module.
99428         * modules/fcntl (Depends-on): Depend on it.
99429         * modules/inttypes (Depends-on): Likewise.
99430         * modules/stdint (Depends-on): Likewise.
99431         * modules/sys_stat (Depends-on): Likewise.
99432         * modules/wctype (Depends-on): Likewise.
99433         * MODULES.html.sh (Support for building libraries and
99434         executables): Document it.
99436 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
99438         * gnulib-tool (SED): Remove, undoing previous change.
99439         The problem was that it broke coreutils on Solaris, because
99440         "sed --posix" leaked into a makefile.
99441         (sed): New alias, if 'alias' and GNU sed.
99443 2006-12-24  Jim Meyering  <jim@meyering.net>
99445         Work around an fchownat bug in glibc-2.4:
99446         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
99447         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
99448         in spite of the -P option.
99449         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
99450         New macros.
99451         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
99452         * modules/openat (Files): Add lib/fchownat.c.
99453         * lib/openat.c (fchownat): Don't define here.  Move to...
99454         * lib/fchownat.c: ...this new file.
99456 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
99458         Fix bug reported by Bruno Haible in
99459         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
99460         where quotearg.c didn't compile on Mac OS X 10.2 because it
99461         lacks <wchar.h> and wint_t.
99462         * lib/wctype_.h (__wctype_wint_t): New type.
99463         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
99464         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
99465         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
99466         Arg is now of type __wctype_wint_t, not wint_t.
99467         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
99468         substitute HAVE_WINT_T.
99469         * modules/wctype (Files): Add m4/wint_t.m4.
99470         (wctype.h): Substitute HAVE_WINT_T.
99472 2006-12-23  Bruno Haible  <bruno@clisp.org>
99474         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
99476 2006-12-23  Bruno Haible  <bruno@clisp.org>
99478         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
99479         S_ISLNK.
99480         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
99481         mingw.
99483 2006-12-22  Bruno Haible  <bruno@clisp.org>
99485         * lib/copy-file.c: Include acl.h.
99486         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
99487         Close the file descriptors only after being done with copy_acl.
99488         * modules/copy-file (Depends-on): Add acl.
99490 2006-12-22  Bruno Haible  <bruno@clisp.org>
99492         * gnulib-tool (SED): New variable.
99493         Use $SED instead of sed everywhere.
99495 2006-12-22  Bruno Haible  <bruno@clisp.org>
99497         * modules/no-c++: New file.
99498         * m4/no-c++.m4: New file.
99499         * MODULES.html.sh (Support for building libraries and executables):
99500         Add no-c++.
99502 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
99504         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
99505         Include <limits.h>, and use its INT_MAX to rewrite the
99506         j loop so that it does not overflow 'int'.  Problem reported by
99507         Ralf Wildenhues in
99508         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
99509         Play it safe by shifting left by 1 rather than multiplying by 2,
99510         as GCC is less likely to optimize this away when the value
99511         is signed (when it assumes overflow leads to undefined behavior).
99512         Also, don't assume time_t uses two's complement.
99514 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
99516         * MODULES.html.sh: New module wctype.
99517         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
99518         * lib/fnmatch.c: Don't bother to include <wchar.h> before
99519         <wctype.h>, since the new wctype module should fix this.
99520         * lib/quotearg.c: Include <wctype.h> unconditionally, since
99521         the wctype module should arrange for it.
99522         * lib/regex_internal.h: Likewise.
99523         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
99524         since the wctype module should handle this now.
99525         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
99526         * modules/fnmatch (Depends-on): Add wctype.
99527         * modules/quotearg (Depends-on): Likewise.
99528         * modules/regex (Depends-on): Likewise.
99530 2006-12-19  Bruno Haible  <bruno@clisp.org>
99532         * lib/strdup.h [C++]: Wrap definitions in extern "C".
99533         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
99535 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99537         * modules/savewd (Depends-on): Fix dependency on fcntl.
99539 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
99541         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
99542         conforms to C99, rather than relying on the user's environment
99543         setting of STDINT_H.
99545 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
99546         and Eric Blake  <ebb9@byu.net>
99548         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
99549         This is more consistent with the other defines here.
99550         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
99551         Port to z/OS.  Problem reported by Paul Gilmartin.
99552         Change local vars to use gl_ prefix rather than ac_.
99553         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
99554         with other defines.
99555         * modules/double-slash-root: New module.
99556         * modules/dirname (Files): Remove m4/double-slash-root.m4.
99557         (Depends-on): Add double-slash-root.
99558         * MODULES.html.sh (File system functions): Mention new module.
99560 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
99562         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
99563         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
99564         This is for the benefit of gzip, which doesn't do i18n.
99566 2006-12-12  Jim Meyering  <jim@meyering.net>
99568         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
99569         Reported by Andreas Schwab <schwab@suse.de>.
99571 2006-12-12  Bruno Haible  <bruno@clisp.org>
99573         Merge these changes.
99574         2006-09-05  Bruno Haible  <bruno@clisp.org>
99575         * lib/iconvme.c (iconv_string): No need to save and restore errno when
99576         iconv_alloc succeeded.
99577         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
99578         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
99579         test for " && dest " at the end - dest is always != NULL there. Call
99580         iconv with 4xNULL arguments initially, to reset the state. Call iconv
99581         with 2xNULL arguments, also to flush the state storage. Handle the
99582         IRIX iconv behaviour. Realloc the final result, to throw away unused
99583         memory.
99585 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
99587         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
99588         and fchmodat unconditionally, since glibc 2.4 has them.
99589         Problem reported by Arkadiusz Miskiewicz.
99591 2006-12-10  Bruno Haible  <bruno@clisp.org>
99593         * gnulib-tool (func_import): Show the include files only for those
99594         modules that are copied and specified.
99595         Reported by Karl Berry.
99597 2006-12-08  Jim Meyering  <jim@meyering.net>
99599         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
99600         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
99602         * build-aux/announce-gen: Add two new options, both optional:
99603         --bootstrap-tools=TOOL_LIST
99604               a comma-separated list of tools, e.g.,
99605               autoconf,automake,bison,gnulib
99606         --gnulib-snapshot-date=DATE
99607               if gnulib is in the bootstrap tool list,
99608               then report this as the snapshot date.
99609               If not specified, use the current date/time.
99610               If you specify a date here, be sure it's UTC.
99612 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99614         * tests/test-argp-2.sh: Fix test to match actual output.
99615         (func_compare): Fix sed script to be portable.
99617 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
99619         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
99620         workaround for this case.  It is not autoconfigured now; offhand
99621         it's hard to see how to autoconfigure it.
99623 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
99625         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
99626         a directory that is about to be chowned.  Such a directory's
99627         initial file permissions should permit the owner only and this
99628         should not be changed until after the chown, since the group and
99629         other bits would be incorrect if they granted permission before
99630         the chown.
99632         Fix porting problem for iswctype reported by Georg Schwarz in:
99633         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
99634         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
99635         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
99636         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
99637         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
99639 2006-12-03  Jim Meyering  <jim@meyering.net>
99641         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
99642         p->fts_statp may not yet be defined.
99643         (fts_read): Instead, set it in the caller, once p->fts_statp is
99644         sure to be defined, and corresponds to a top-level directory.
99645         This bug made du -x fail.  Here's the coreutils test case:
99646         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
99647         Reported by Mike Frysinger.
99649 2006-12-01  Jim Meyering  <jim@meyering.net>
99651         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
99652         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
99653         Reported by Simon Josefsson.
99655 2006-11-30  Jim Meyering  <jim@meyering.net>
99657         * m4/warning.m4: Use the all-permissive copyright notice
99658         recommended by RMS (rather than LGPL).
99659         * m4/vararrays.m4: Likewise.
99660         * m4/flexmember.m4: Likewise.
99662 2006-11-29  Bruno Haible  <bruno@clisp.org>
99664         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
99665         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
99666         using +=.
99667         Reported by Simon Josefsson <simon@josefsson.org>.
99669 2006-11-28  James Youngman  <jay@gnu.org>
99671         * README: Advise users that they might find the bug-gnulib@gnu.org
99672         and autotools-announce@gnu.org mailing lists useful.
99674 2006-11-28  Bruno Haible  <bruno@clisp.org>
99676         * m4/ptrdiff_max.m4: Remove file.
99678 2006-11-21  Bruno Haible  <bruno@clisp.org>
99680         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
99681         _AC_COMPUTE_INT.
99682         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
99683         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
99684         _AC_COMPUTE_INT.
99685         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
99686         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
99687         _AC_COMPUTE_INT.
99688         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
99690 2006-11-28  Jim Meyering  <jim@meyering.net>
99692         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
99693         warning from "gcc -Wshadow" about shadowing the builtin.
99695 2006-11-27  Bruno Haible  <bruno@clisp.org>
99697         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
99698         _AC_COMPUTE_INT.
99699         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
99701 2006-11-27  Bruno Haible  <bruno@clisp.org>
99702             Paul Eggert  <eggert@cs.ucla.edu>
99704         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
99706 2006-11-26  Bruno Haible  <bruno@clisp.org>
99708         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
99709         noinst_LTLIBRARIES.
99711 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
99712             Bruno Haible  <bruno@clisp.org>
99714         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
99715         if compiling with "gcc -ansi".
99717 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
99719         Fix some incompatibilities with gcc -ansi -pedantic.
99720         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
99721         if compiling pedantically with GCC, unless it's C99 or later.
99722         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
99723         it mishandles gcc -ansi -pedantic as well.
99724         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
99725         if gcc -pedantic.
99726         * lib/regexec.c (check_node_accept_bytes): Don't use auto
99727         initializers for struct if -pedantic, unless it's C99 or later.
99729 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
99731         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
99732         Don't close an fd more than once. Identical atimes indicate
99733         success, not failure.
99735 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
99737         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
99739 2006-11-23  Jim Meyering  <jim@meyering.net>
99741         * build-aux/announce-gen: New file.  From coreutils.
99743 2006-11-22  Jim Meyering  <jim@meyering.net>
99745         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
99746         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
99747         (fts_read): Use a temporary to narrow the overused st_size member
99748         before using it in a switch statement.  Reported by Matthew Woehlke.
99750         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
99751         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
99753 2006-11-20  Bruno Haible  <bruno@clisp.org>
99755         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
99756         changequote instead of pairs of brackets.
99757         Reported by Andreas Schwab <schwab@suse.de>.
99759 2006-11-21  Jim Meyering  <jim@meyering.net>
99761         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
99762         so as to remain compatible with older compilers.
99763         Patch from Michael Deutschmann.
99765 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
99767         * MODULES.html.sh (File system functions): Add openat.
99769         * lib/openat.h (rpl_fstatat): New macro, if
99770         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
99771         (fstatat): Define to rpl_fstatat under the same conditions,
99772         unless COMPILING_FSTATAT.
99773         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
99774         seems to have the bug.
99775         * lib/fstatat.c: New file.
99776         * modules/openat (Files): Add it.
99778 2006-11-20  Bruno Haible  <bruno@clisp.org>
99780         * Makefile: New file.
99782 2006-11-20  Jim Meyering  <jim@meyering.net>
99784         The beginnings of syntax-related checks for gnulib.
99785         * lib/Makefile: New file.
99786         * lib/t-idcache: New script.  Ensure that the two halves of
99787         idcache.c stay in sync.
99789         * lib/idcache.c: Adjust comments in user- and group- portions to
99790         be more accurate, and to be consistent with one another.
99792 2006-11-20  Jim Meyering  <jim@meyering.net>
99794         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
99795         continue using the flexible array member (thus, this module performs
99796         half as many malloc calls), with the addition that...
99797         (getgroup, getuser): Consistently record a non-match via an empty
99798         "name" string, and map an empty string match to a NULL return value.
99799         * modules/idcache (Depends-on): Re-add flexmember.
99801         * lib/idcache.c (getuser): Remove all uses of the register keyword.
99802         (getuidbyname, getgroup, getgidbyname): Likewise.
99804         Use cleaner syntax: NULL rather than 0.
99805         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
99807 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
99809         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
99810         It mishandled the case where the group was missing.
99811         Problem reported by Greg Schafer.
99812         * modules/idcache: Likewise.
99814 2006-11-18  Jim Meyering  <jim@meyering.net>
99816         * check-module (%exempt_header): Add exception for some
99817         conditionally-included headers.
99819         * modules/i-ring (Depends-on): Add verify.
99820         (License): Change to LGPL.
99822 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
99824         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
99825         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
99826         and inttostr.h.  Use snprintf rather than uinttostr, so that
99827         LGPLed code doesn't depend on GPLed.
99829 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
99831         * modules/inline (License): Change from GPL to LGPL.
99833 2006-11-17  Jim Meyering  <jim@meyering.net>
99835         * modules/d-type (License): Switch to LGPL.
99837 2006-11-15  Bruno Haible  <bruno@clisp.org>
99839         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
99841 2006-11-15  Eric Blake  <ebb9@byu.net>
99843         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
99844         the module dependency.
99846 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99847             Bruno Haible  <bruno@clisp.org>
99849         * gnulib-tool (func_create_testdir): Add license consistency check.
99851 2006-11-15  Eric Blake  <ebb9@byu.net>
99853         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
99854         random "(cached)" in configure output.
99856 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99858         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
99859         test for conforming inttypes.h is both announced and cached.
99861         * MODULES.html.sh (seen_modules, seen_files): New variables.
99862         (func_module): Rewrite to use a few less gnulib-tool and sed
99863         invocations.  Avoid a couple of quadratic algorithms for ...
99864         (missed_modules, missed_files): ... these, with ...
99865         (func_append, func_tmpdir): ... these new functions, from
99866         gnulib-tool.  Analogously, install traps for cleanup.
99868         * tests/test-gc.c (main): Remove unused variables.
99869         * tests/test-read-file.c: Include stdlib.h, for 'free'.
99871 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
99873         * modules/inttostr (License): Change to LGPL.
99875 2006-11-14  Eric Blake  <ebb9@byu.net>
99877         * modules/tempname (License): Change to LGPL.
99879 2006-11-14  Eric Blake  <ebb9@byu.net>
99881         * doc/functions.texi (Function Portability): *printf functions on
99882         Cygwin now understand all POSIX size specifiers.
99884 2006-11-14  Bruno Haible  <bruno@clisp.org>
99886         * modules/c-ctype (License): Change to LGPL.
99888 2006-11-12  Bruno Haible  <bruno@clisp.org>
99890         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
99891         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
99892         for GNOME libraries, for which the include files are installed in
99893         subdirectories of $prefix/include.
99895 2006-11-12  Bruno Haible  <bruno@clisp.org>
99897         * m4/lib-link.m4: Require at least autoconf-2.54.
99898         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
99899         name to underscores for the --with option.
99901 2006-11-13  Bruno Haible  <bruno@clisp.org>
99903         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
99904         the tests directory.
99905         Reported by Ralf Wildenhues.
99907 2006-11-13  Bruno Haible  <bruno@clisp.org>
99909         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
99910         (func_emit_initmacro_end): Undo the override here.
99911         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
99912         Works around the famous automake error in coreutils.
99914 2006-11-13  Eric Blake  <ebb9@byu.net>
99916         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
99917         element, not its node.
99919 2006-11-12  Bruno Haible  <bruno@clisp.org>
99921         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
99922         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
99924 2006-11-12  Bruno Haible  <bruno@clisp.org>
99926         * gnulib-tool: New option --local-symlink.
99927         (func_usage): Document it.
99928         (lsymbolic): New variable.
99929         (func_import, func_create_testdir): If --symlink was not specified,
99930         test whether --local-symlink was specified and the file comes from
99931         the local_gnulib_dir.
99933 2006-11-12  Bruno Haible  <bruno@clisp.org>
99935         * gnulib-tool (func_ln): New function.
99936         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
99938 2006-11-12  Bruno Haible  <bruno@clisp.org>
99940         Finish support for source files in subdirectories.
99941         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
99942         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
99943         AUTOMAKE_OPTIONS.
99944         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
99946 2006-11-12  Bruno Haible  <bruno@clisp.org>
99948         * gnulib-tool (func_get_automake_snippet): Synthesize also an
99949         EXTRA_lib_SOURCES augmentation.
99950         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
99952 2006-11-12  Jim Meyering  <jim@meyering.net>
99954         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
99955         file descriptors.  This also averts a failure on systems with
99956         native openat support when a traversed directory lacks "x" access.
99957         * lib/fts_.h: Include "i-ring.h"
99958         (struct FTS) [fts_fd_ring]: New member.
99959         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
99960         (FCHDIR): Add parentheses.
99961         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
99962         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
99963         When descending, rather than simply closing the previous
99964         fts_cwd_fd value, push that file descriptor onto the ring.
99965         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
99966         (fts_open): Initialize the new fd_ring member.
99967         (fts_close): Clear the ring.
99968         (fts_safe_changedir): When possible, use our new fd_ring to skip
99969         the diropen and fstat and dev/ino comparison that would normally
99970         accompany a virtual `chdir ("..")'.
99972         * modules/fts (Depends-on): Add i-ring.
99973         * modules/i-ring: New module.
99974         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
99975         * m4/i-ring.m4: New file.
99977 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99979         * gnulib-tool (func_create_testdir): Fix replacement of
99980         `build-aux' in configure.ac.  Run autotools in gltests
99981         subdirectory.
99982         (func_create_testdir, func_create_megatestdir, test): There is
99983         no need for '--force' in most autotool invocations in a new
99984         tree.  Actually fail the whole test if any of the tools, or the
99985         configure or make stages fail.
99987         Sync from Automake.
99988         * build-aux/gnupload: Revert last change.  Add pointer to upload
99989         instructions of the GNU Maintenance Instructions.
99990         Suggestion by Karl Berry.
99992 2006-11-10  Jim Meyering  <jim@meyering.net>
99994         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
99996 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
99998         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
99999         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
100000         (bind_textdomain_codeset) [! ENABLE_NLS]:
100001         Evaluate all the arguments.  That way, callers get compatible behavior
100002         if the arguments have side effects.  Also, it avoids some GCC
100003         diagnostics in some cases; Joel E. Denny reported problems when Bison
100004         was configured with --enable-gcc-warnigs.
100006 2006-11-10  Jim Meyering  <jim@meyering.net>
100008         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
100009         relevant options in CFLAGS (like -O, -fno-inline) are taken into
100010         account.
100012 2006-11-10  Jim Meyering  <jim@meyering.net>
100014         * modules/inline: New file/module.
100015         * modules/xalloc (Files): Remove m4/inline.m4.
100016         (Depends-on): Add inline, instead.
100017         * modules/oset: Likewise.
100018         * modules/list: Likewise.
100020 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
100022         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
100023         Problem reported by Matthew Woehlke.
100025 2006-11-09  Bruno Haible  <bruno@clisp.org>
100027         * lib/tempname.c (gen_tempname): Remove variant that invokes
100028         __gen_tempname.
100029         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
100030         __gen_tempname.
100032 2006-11-08  Bruno Haible  <bruno@clisp.org>
100034         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
100035         to 'yes' instead of 'cross-compiling'.
100037 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
100039         * lib/quotearg.h (quotearg_free): New decl.
100040         * lib/quotearg.c (quotearg_free): New function.
100041         (slot0, nslots, slotvec0, slotvec):
100042         Now file-scope so that quotearg_free can get at them.
100044 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100046         Sync from Automake.
100047         * build-aux/gnupload: Add missing 'gnu' to example URL.
100048         Report by Karl Berry.
100050 2006-11-08  Bruno Haible  <bruno@clisp.org>
100052         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
100053         Suggested by Paul Eggert.
100055 2006-11-08  Jim Meyering  <jim@meyering.net>
100057         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
100058         It's already included if !_LIBC.
100059         (fts_safe_changedir): Add a comment.
100061 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
100063         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
100064         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
100065         Matthew Woehlke.
100067         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
100068         definitions up, to avoid colliding with change below.
100069         (static_inline) [HAVE_INLINE]: New macro.
100070         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
100071         Provide extern decls when !HAVE_INLINE.  Do not define unless
100072         static_inline is defined, either by us or by xmalloc.c.  Use
100073         static_inline rather than static inline.
100074         (XCALLOC): Optimize sizeof(T) = 1 case.
100075         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
100077 2006-11-07  Bruno Haible  <bruno@clisp.org>
100079         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
100080         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
100081         AC_C_INLINE.
100082         * modules/xalloc (Files): Add m4/inline.m4.
100084 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100086         * README: Fix typo.
100087         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
100088         (Miscellanous Notes): ...from this.
100090 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
100092         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
100093         Mention that offsetof should be used instead of sizeof.
100094         From Bruno Haible.
100096 2006-11-07  Bruno Haible  <bruno@clisp.org>
100098         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
100100 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
100102         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
100103         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
100104         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
100105         (gl_tree_add_before, gl_tree_add_after):
100106         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
100107         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
100108         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
100109         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
100110         (gl_linked_add_after, gl_linked_add_at): Likewise.
100111         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
100112         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
100113         (gl_tree_add_before, gl_tree_add_after): Likewise.
100114         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
100115         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
100116         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
100118 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100120         * lib/gl_oset.h: Use C comment style, not C++ comment style.
100122 2006-11-06  Bruno Haible  <bruno@clisp.org>
100124         * m4/inline.m4: New file.
100125         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
100126         * modules/list (Files): Add m4/inline.m4.
100127         * modules/oset (Files): Likewise.
100129 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
100131         * lib/idcache.c: Include <stddef.h>, for offsetof.
100132         (struct userid.name): Change from char * to a flexible array member.
100133         All uses changed.
100134         * modules/idcache (Depends-on): Add flexmember.
100136         * MODULES.html.sh (Core language properties): New module flexmember.
100137         * modules/flexmember, m4/flexmember.m4: New files.
100139         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
100140         inline functions that are identical with the old xnmalloc_inline,
100141         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
100142         that we can avoid some unnecessary integer multiplications and
100143         divisions in the common case where the element size is known at
100144         compile time.
100145         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
100146         needed.
100147         (xnboundedmalloc): Remove.
100148         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
100149         arguments, for consistency with rest of this header.
100150         (xcharalloc): Rewrite using XNMALLOC.
100151         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
100152         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
100153         versions have been moved to lib/xalloc.h and renamed to be the
100154         non-*_inline versions.
100155         (xmalloc, xrealloc): Implement without reference to the xnmalloc
100156         and xnrealloc functions, since those functions are now inline and
100157         now call us.
100158         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
100159         renaming described above.
100160         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
100161         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
100162         captures the dependency in AC_C_INLINE.
100164         New module canonicalize-lgpl, proposed by Charles Wilson in
100165         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
100166         with a few small changes afterwards.
100167         * MODULES.html.sh (File system functions): New module
100168         canonicalize-lgpl.
100169         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
100170         and canonicalize_file_name.
100171         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
100172         * modules/canonicalize-lgpl: New files.
100174 2006-11-05  Bruno Haible  <bruno@clisp.org>
100176         * gnulib-tool (func_import, func_create_testdir): Create directories
100177         also for files in subdirectories of lib/.
100179 2006-11-05  Bruno Haible  <bruno@clisp.org>
100181         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
100182         ANSI C compliant.
100184 2006-11-03  Bruno Haible  <bruno@clisp.org>
100186         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
100187         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
100188         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
100189         (xnboundedmalloc): New inline function.
100190         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
100191         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
100192         xmalloc.
100193         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
100194         xmalloc.
100195         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
100196         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
100197         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
100198         xmalloc.
100199         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
100200         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
100201         xmalloc.
100202         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
100203         gl_tree_add_after): Use XMALLOC instead of xmalloc.
100204         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
100205         xmalloc.
100206         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
100207         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
100208         gl_tree_add_after): Use XMALLOC instead of xmalloc.
100209         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
100210         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
100211         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
100212         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
100214 2006-11-03  Bruno Haible  <bruno@clisp.org>
100216         * lib/c-ctype.h [C++]: Define functions without name mangling.
100217         * lib/fwriteerror.h [C++]: Likewise.
100218         * lib/gcd.h [C++]: Likewise.
100219         * lib/linebreak.h [C++]: Likewise.
100221 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
100223         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
100224         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
100225         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
100226         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
100227         Check for functions and headers just once.
100228         Check for declaration of canonicalize_file_name.
100229         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
100231 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
100233         * gnulib-tool (func_import): Fix typo in actioncmd.
100235 2006-11-02  Bruno Haible  <bruno@clisp.org>
100237         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
100238         newline sequence in the Makefile.am snippet as a space, like "make"
100239         does.
100240         Reported by Roger Persson <perrog@gmail.com>.
100242 2006-11-01  Bruno Haible  <bruno@clisp.org>
100244         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
100245         already declared in <string.h>.
100246         * lib/strcase.h (strncasecmp): Don't declare it if yes.
100248 2006-11-01  Bruno Haible  <bruno@clisp.org>
100250         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
100251         * lib/strcase.h: Include <string.h>.
100252         (strcasecmp): Define to rpl_strcasecmp here.
100254 2006-11-01  Bruno Haible  <bruno@clisp.org>
100256         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
100258 2006-11-01  Eric Blake  <ebb9@byu.net>
100260         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
100262         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
100264 2006-10-29  Bruno Haible  <bruno@clisp.org>
100266         Make it compile in C++ mode.
100267         * lib/full-write.c (full_rw): Add a cast.
100269 2006-11-01  Bruno Haible  <bruno@clisp.org>
100271         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
100272         be POSIX compliant.
100273         Reported by Roger Persson <perrog@gmail.com>.
100275 2006-11-01  Eric Blake  <ebb9@byu.net>
100277         * lib/getopt_.h: Fix comments.
100279 2006-10-31  Eric Blake  <ebb9@byu.net>
100281         * modules/tmpdir (Depends-on): Add sys_stat.
100282         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
100283         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
100284         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
100285         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
100286         tempname.
100288 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
100290         Avoid some C++ diagnostics reported by Bruno Haible.
100291         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
100292         xmalloc.
100293         (quotearg_alloc): Use xcharalloc rather than xmalloc.
100294         (struct slotvec): Move to top level.
100295         (quotearg_n_options): Rewrite to avoid xmalloc.
100296         * lib/xalloc.h (xcharalloc): New function.
100297         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
100298         [defined __cplusplus]: Add function template that provides result
100299         type propagation.  This part of the change is from Bruno Haible.
100301 2006-10-29  Bruno Haible  <bruno@clisp.org>
100303         Make it compile in C++ mode.
100304         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
100305         * lib/strnlen1.c (strnlen1): Cast memchr result.
100306         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
100307         * lib/clean-temp.c (string_equals, string_hash): Add casts.
100308         (create_temp_dir): Rename local variable 'template'.
100309         (compile_csharp_using_sscli): Add cast.
100310         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
100311         * lib/findprog.c (find_in_path): Likewise.
100312         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
100313         * lib/wait-process.c (register_slave_subprocess): Likewise.
100315 2006-10-22  Bruno Haible  <bruno@clisp.org>
100317         * modules/tsearch: New file.
100318         * lib/tsearch.h: New file.
100319         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
100320         * m4/tsearch.m4: New file.
100321         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
100323 2006-10-29  Eric Blake  <ebb9@byu.net>
100325         * lib/arcfour.c: Assume config.h.
100326         * lib/arctwo.c: Likewise.
100327         * lib/base64.c: Likewise.
100328         * lib/check-version.c: Likewise.
100329         * lib/crc.c: Likewise.
100330         * lib/des.c: Likewise.
100331         * lib/gc-gnulib.c: Likewise.
100332         * lib/gc-libgcrypt.c: Likewise.
100333         * lib/gc-pbkdf2-sha1.c: Likewise.
100334         * lib/getaddrinfo.c: Likewise.
100335         * lib/getdelim.c: Likewise.
100336         * lib/getline.c: Likewise.
100337         * lib/hmac-md5.c: Likewise.
100338         * lib/hmac-sha1.c: Likewise.
100339         * lib/iconvme.c: Likewise.
100340         * lib/md2.c: Likewise.
100341         * lib/md4.c: Likewise.
100342         * lib/memxor.c: Likewise.
100343         * lib/read-file.c: Likewise.
100344         * lib/readline.c: Likewise.
100345         * lib/rijndael-alg-fst.c: Likewise.
100346         * lib/rijndael-api-fst.c: Likewise.
100347         * lib/xgetdomainname.c: Likewise.
100349 2006-10-28  Eric Blake  <ebb9@byu.net>
100351         * lib/xstrndup.c: Assume config.h.
100353 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
100355         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
100356         stat-macros.h is now for our own macros, whereas stat_h is for
100357         macros in the <sys/stat.h> name space.
100358         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
100359         (STAT_MACROS_H): Remove.
100360         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
100361         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
100362         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
100363         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
100364         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
100365         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
100366         Move these macros to ...
100367         * lib/stat_.h: here.  Don't include stat-macros.h.
100368         * lib/canonicalize.c: Don't include stat-macros.h.
100369         * lib/chown.c: Likewise.
100370         * lib/euidaccess.c: Likewise.
100371         * lib/file-type.c: Likewise.
100372         * lib/filemode.c: Likewise.
100373         * lib/glob.c: Likewise.
100374         * lib/isapipe.c: Likewise.
100375         * lib/lchown.c: Likewise.
100376         * lib/lstat.c: Likewise.
100377         * lib/mkdir-p.c: Likewise.
100378         * lib/rmdir.c: Likewise.
100379         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
100380         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
100381         unless mkdir isn't declared, to speed up 'configure'.
100382         Always create sys/stat.h, since it's unlikely any real sys/stat.h
100383         would define all the S_* symbols.
100384         * modules/canonicalize (Depends-on):
100385         Depend on sys_stat, not stat-macros.
100386         * modules/chown: Likewise.
100387         * modules/euidaccess: Likewise.
100388         * modules/filemode: Likewise.
100389         * modules/file-type: Likewise.
100390         * modules/glob: Likewise.
100391         * modules/isapipe: Likewise.
100392         * modules/lchown: Likewise.
100393         * modules/lstat: Likewise.
100394         * modules/mkancesdirs: Likewise.
100395         * modules/rmdir: Likewise.
100396         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
100397         * modules/modechange: Likewise.
100398         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
100399         (configure.ac): Remove gl_STAT_MACROS.
100400         * modules/sys_stat (Depends-on): Remove stat-macros.
100402 2006-10-27  Bruno Haible  <bruno@clisp.org>
100404         * m4/signed.m4: Remove file.
100405         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
100406         invocation.
100407         * modules/vasnprintf (Files): Remove m4/signed.m4.
100409 2006-10-27  Bruno Haible  <bruno@clisp.org>
100411         Update to GNU gettext 0.16.
100412         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
100413         m4/inttypes-h.m4, m4/signed.m4.
100414         * m4/gettext.m4: Update to GNU gettext 0.16.
100415         * m4/intl.m4: New file, from GNU gettext.
100416         * m4/intldir.m4: New file, from GNU gettext.
100417         * config/srclist.txt: Update
100419 2006-10-27  Eric Blake  <ebb9@byu.net>
100421         * MODULES.html.sh: Document tempname.
100422         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
100423         dependencies.
100424         (Files): Move lib/tempname.c...
100425         * modules/tempname: ...to this new module.
100426         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
100427         (gl_PREREQ_TEMPNAME): Move...
100428         * m4/tempname.m4: ...to this new file.
100429         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
100430         * modules/sys_stat (Depends-on): Add stat-macros.
100431         * lib/stat_.h (includes): Pick up stat macros.
100432         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
100433         if stat macros are broken.
100434         * lib/tempname.c (includes): No need to include "stat-macros.h".
100435         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
100436         (direxists, __path_search) [!_LIBC]: Don't compile these in
100437         gnulib; the tmpdir module covers that.
100438         * lib/tempname.h: New file.
100440 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
100442         * COPYING: Explain how gnulib-tool converts licence headers.
100443         Almost all wording by Eric Blake.
100445 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
100447         * lib/mbchar.h (is_basic_table): Make read-only.
100448         * lib/mbchar.c (is_basic_table): Likewise.
100449         Reported by John Darrington.
100451 2006-10-25  Bruno Haible  <bruno@clisp.org>
100453         * lib/progname.h (set_program_name): Undefine before defining.
100455 2006-10-25  Bruno Haible  <bruno@clisp.org>
100457         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
100458         false for non-gcc C++ compilers.
100459         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
100461 2006-10-24  Bruno Haible  <bruno@clisp.org>
100463         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
100464         iconv implementations like Irix iconv.
100466 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
100468         * modules/vararrays: New file.
100469         * m4/vararrays.m4: New file, taken from diffutils.
100470         * MODULES.html.sh: New module vararrays.
100472 2006-10-24  Karl Berry  <karl@gnu.org>
100474         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
100475         Don't call GNU Unix.
100477 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100479         * users.txt: Add Libtool.
100481         Sync from Libtool:
100483         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
100485         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
100486         to gnulib's policy of including config.h unconditionally.
100488 2006-10-24  Bruno Haible  <bruno@clisp.org>
100490         * modules/wcwidth (Files): Add m4/wint_t.m4.
100491         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
100492         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
100494 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
100496         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
100497         to pacify GCC with some -W flags enabled.  Problem reported by
100498         Bruno Haible.
100500 2006-10-24  Jim Meyering  <jim@meyering.net>
100502         * MODULES.html.sh: Remove uinttostr.  It's not a module.
100503         Reported by Karl Berry.
100505 2006-10-23  Bruno Haible  <bruno@clisp.org>
100507         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
100509 2006-10-24  Bruno Haible  <bruno@clisp.org>
100511         * lib/gl_list.h: Use C comment style, not C++ comment style.
100513 2006-10-23  Eric Blake  <ebb9@byu.net>
100515         * lib/getaddrinfo.c (includes): Add missing include.
100517 2006-10-23  Bruno Haible  <bruno@clisp.org>
100518             Paul Eggert  <eggert@cs.ucla.edu>
100520         Ability to rename obstack_free.
100521         * lib/obstack.h (__obstack_free): New macro. Declare instead of
100522         obstack_free.
100523         (obstack_free): Invoke the __obstack_free macro.
100524         * lib/obstack.c (obstack_free): Use __obstack_free macro.
100526 2006-10-23  Bruno Haible  <bruno@clisp.org>
100527             Paul Eggert  <eggert@cs.ucla.edu>
100529         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
100530         __argc, __argv from the declaration. (They are defined as macros on
100531         mingw.)
100533 2006-10-22  Bruno Haible  <bruno@clisp.org>
100535         * doc/gnulib-intro.texi: New file.
100536         * doc/gnulib.texi: Include it.
100538 2006-10-21  Bruno Haible  <bruno@clisp.org>
100540         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
100541         "Introduction", "Miscellanous Notes", "Particular Modules".
100543 2006-10-21  Bruno Haible  <bruno@clisp.org>
100545         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
100546         Change mostlyclean-local rule to avoid sh syntax error from bash
100547         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
100549 2006-10-23  Jim Meyering  <jim@meyering.net>
100551         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
100552         in place of snprintf.
100554         * modules/inttostr (Files): Add lib/uinttostr.c.
100555         * lib/uinttostr.c (inttostr): New file/function.
100556         * lib/inttostr.h (uinttostr): Declare.
100557         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
100558         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
100559         Add uinttostr.
100560         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
100562 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
100564         * lib/canonicalize.c (ELOOP): Define if not already defined.
100565         Problem reported by Bruno Haible in
100566         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
100568 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
100570         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
100571         Problem reported by Perry Smith and Ville Laurikari.
100573         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
100574         uses.
100576 2006-10-19  Bruno Haible  <bruno@clisp.org>
100578         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
100579         for mingw.
100581 2006-10-19  Bruno Haible  <bruno@clisp.org>
100583         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
100584         Needed for mingw.
100586 2006-10-19  Bruno Haible  <bruno@clisp.org>
100588         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
100590 2006-10-19  Bruno Haible  <bruno@clisp.org>
100592         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
100593         it.
100595 2006-10-19  Bruno Haible  <bruno@clisp.org>
100597         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
100598         invocation.
100600 2006-10-19  Bruno Haible  <bruno@clisp.org>
100602         * gnulib-tool (func_create_testdir): Don't include ftruncate and
100603         mountlist by default.
100605 2006-10-16  Bruno Haible  <bruno@clisp.org>
100607         * lib/c-strstr.c: Include c-strstr.h.
100609 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
100611         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
100612         in a slash.
100614 2006-10-18  Bruno Haible  <bruno@clisp.org>
100616         * lib/lock.h [C++]: Wrap definitions in extern "C".
100618 2006-10-18  Bruno Haible  <bruno@clisp.org>
100620         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
100621         gl_LIBOBJS list.
100623 2006-10-18  Bruno Haible  <bruno@clisp.org>
100625         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
100627 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
100629         * lib/xstrtol.h: Include gettext.h.
100630         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
100631         Problem reported by Eric Blake.
100632         * modules/xstrtol (Depends-on): Add gettext-h.
100634 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
100636         * lib/strftime.c (advance): New macro.
100637         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
100638         incomplete type, so you can't add 0 to it.  Problem and patch
100639         reported by Eelco Dolstra for dietlibc.
100641 2006-10-18  Jim Meyering  <jim@meyering.net>
100643         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
100644         type for a local, and rename it: s/up/user_proc/.
100646 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
100648         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
100649         READ_UTMP_USER_PROCESS.
100650         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
100652 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
100654         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
100655         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
100657 2006-10-17  Eric Blake  <ebb9@byu.net>
100659         * lib/sigprocmask.c (sigprocmask): Fix typo.
100661         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
100663         * modules/clean-temp (Makefile.am): Don't add to make output...
100664         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
100665         config.h.
100667 2006-10-17  Bruno Haible  <bruno@clisp.org>
100669         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
100670         differently if DEFAULT_TEXT_DOMAIN is set.
100672 2006-10-16  Bruno Haible  <bruno@clisp.org>
100674         * lib/clean-temp.c: Include fwriteerror.h.
100676 2006-10-16  Bruno Haible  <bruno@clisp.org>
100678         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
100680 2006-10-16  Bruno Haible  <bruno@clisp.org>
100682         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
100683         * lib/sigprocmask.h: Include <sys/types.h>.
100684         (sigset_t): Use the system's definition if present.
100686 2006-10-17  Eric Blake  <ebb9@byu.net>
100688         * lib/xvasprintf.c (includes): Assume config.h.
100689         * lib/xasprintf.c (includes): Likewise.
100691 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
100693         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
100694         at least as wide as intmax_t.
100696 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
100698         (Imported from Automake.)
100699         * build-aux/gnupload: Update to version 1.1 of directive file.
100701 2006-10-16  Eric Blake  <ebb9@byu.net>
100703         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
100704         match Automake 1.10a.
100706 2006-10-14  Bruno Haible  <bruno@clisp.org>
100708         * modules/sigprocmask: New file.
100709         * lib/sigprocmask.h: New file.
100710         * lib/sigprocmask.c: New file.
100711         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
100712         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
100713         request sigprocmask.o.
100714         (gl_PREREQ_SIGPROCMASK): New macro.
100715         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
100716         (Depends-on): Add sigprocmask.
100717         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
100718         gt_SIGNALBLOCKING. Test for 'raise' only once.
100719         * lib/fatal-signal.c: Include sigprocmask.h.
100720         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
100721         unblock_fatal_signals): Define always.
100722         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
100723         sigprocmask.
100725 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
100727         Sync from Automake.
100728         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
100729         which incorrectly sets the mode of an existing destination
100730         directory.  In some cases the unpatched install-sh could do the
100731         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
100732         system.  We hope this is rare in practice, but it's clearly worth
100733         fixing.  Problem reported by Alex Unleashed in
100734         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
100735         Also, don't bother to check for -m bugs unless we're using -m;
100736         suggested by Stepan Kasal.
100738 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100740         Sync from Automake.
100741         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
100742         `-c' flag, so they appear at the same position as in %FASTDEP%
100743         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
100744         which ignores unknown options only after the first non-option.
100745         Bug report against M4 by Nelson H. F. Beebe.
100747 2006-10-13  Jim Meyering  <jim@meyering.net>
100749         Fix a bug in yesterday's change.
100750         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
100751         p->fts_statp->st_dev would be used uninitialized.
100752         Ensures that we always call fts_stat on the very first entry.
100753         Miklos Szeredi reported that find -xdev stopped working.
100755 2006-10-12  Bruno Haible  <bruno@clisp.org>
100757         * gnulib-tool (func_get_automake_snippet): Append an automatically
100758         computed EXTRA_DIST augmentation.
100759         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
100760         * modules/alloca-opt (Makefile.am): Likewise.
100761         * modules/allocsa (Makefile.am): Likewise.
100762         * modules/arcfour (Makefile.am): Likewise.
100763         * modules/arctwo (Makefile.am): Likewise.
100764         * modules/argmatch (Makefile.am): Likewise.
100765         * modules/argz (Makefile.am): Likewise.
100766         * modules/atexit (Makefile.am): Likewise.
100767         * modules/backupfile (Makefile.am): Likewise.
100768         * modules/byteswap (Makefile.am): Likewise.
100769         * modules/c-strtod (Makefile.am): Likewise.
100770         * modules/c-strtold (Makefile.am): Likewise.
100771         * modules/calloc (Makefile.am): Likewise.
100772         * modules/canon-host (Makefile.am): Likewise.
100773         * modules/canonicalize (Makefile.am): Likewise.
100774         * modules/chdir-long (Makefile.am): Likewise.
100775         * modules/chdir-safer (Makefile.am): Likewise.
100776         * modules/check-version (Makefile.am): Likewise.
100777         * modules/chown (Makefile.am): Likewise.
100778         * modules/cloexec (Makefile.am): Likewise.
100779         * modules/close-stream (Makefile.am): Likewise.
100780         * modules/closeout (Makefile.am): Likewise.
100781         * modules/crc (Makefile.am): Likewise.
100782         * modules/csharpexec (Makefile.am): Likewise.
100783         * modules/cycle-check (Makefile.am): Likewise.
100784         * modules/des (Makefile.am): Likewise.
100785         * modules/dev-ino (Makefile.am): Likewise.
100786         * modules/dirfd (Makefile.am): Likewise.
100787         * modules/dirname (Makefile.am): Likewise.
100788         * modules/dup2 (Makefile.am): Likewise.
100789         * modules/eealloc (Makefile.am): Likewise.
100790         * modules/error (Makefile.am): Likewise.
100791         * modules/euidaccess (Makefile.am): Likewise.
100792         * modules/exclude (Makefile.am): Likewise.
100793         * modules/exitfail (Makefile.am): Likewise.
100794         * modules/fcntl-safer (Makefile.am): Likewise.
100795         * modules/fcntl (Makefile.am): Likewise.
100796         * modules/file-type (Makefile.am): Likewise.
100797         * modules/fileblocks (Makefile.am): Likewise.
100798         * modules/filemode (Makefile.am): Likewise.
100799         * modules/filenamecat (Makefile.am): Likewise.
100800         * modules/fnmatch (Makefile.am): Likewise.
100801         * modules/fopen-safer (Makefile.am): Likewise.
100802         * modules/fpending (Makefile.am): Likewise.
100803         * modules/fprintftime (Makefile.am): Likewise.
100804         * modules/free (Makefile.am): Likewise.
100805         * modules/fsusage (Makefile.am): Likewise.
100806         * modules/ftruncate (Makefile.am): Likewise.
100807         * modules/fts (Makefile.am): Likewise.
100808         * modules/gc-arcfour (Makefile.am): Likewise.
100809         * modules/gc-des (Makefile.am): Likewise.
100810         * modules/gc-hmac-md5 (Makefile.am): Likewise.
100811         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
100812         * modules/gc-md4 (Makefile.am): Likewise.
100813         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
100814         * modules/gc-sha1 (Makefile.am): Likewise.
100815         * modules/gc (Makefile.am): Likewise.
100816         * modules/getaddrinfo (Makefile.am): Likewise.
100817         * modules/getcwd (Makefile.am): Likewise.
100818         * modules/getdelim (Makefile.am): Likewise.
100819         * modules/getdomainname (Makefile.am): Likewise.
100820         * modules/getgroups (Makefile.am): Likewise.
100821         * modules/gethostname (Makefile.am): Likewise.
100822         * modules/gethrxtime (Makefile.am): Likewise.
100823         * modules/getline (Makefile.am): Likewise.
100824         * modules/getloadavg (Makefile.am): Likewise.
100825         * modules/getlogin_r (Makefile.am): Likewise.
100826         * modules/getndelim2 (Makefile.am): Likewise.
100827         * modules/getopt (Makefile.am): Likewise.
100828         * modules/getpagesize (Makefile.am): Likewise.
100829         * modules/getpass-gnu (Makefile.am): Likewise.
100830         * modules/getpass (Makefile.am): Likewise.
100831         * modules/getsubopt (Makefile.am): Likewise.
100832         * modules/gettime (Makefile.am): Likewise.
100833         * modules/gettimeofday (Makefile.am): Likewise.
100834         * modules/getugroups (Makefile.am): Likewise.
100835         * modules/getusershell (Makefile.am): Likewise.
100836         * modules/glob (Makefile.am): Likewise.
100837         * modules/group-member (Makefile.am): Likewise.
100838         * modules/hard-locale (Makefile.am): Likewise.
100839         * modules/hash (Makefile.am): Likewise.
100840         * modules/hmac-md5 (Makefile.am): Likewise.
100841         * modules/hmac-sha1 (Makefile.am): Likewise.
100842         * modules/human (Makefile.am): Likewise.
100843         * modules/idcache (Makefile.am): Likewise.
100844         * modules/imaxabs (Makefile.am): Likewise.
100845         * modules/imaxdiv (Makefile.am): Likewise.
100846         * modules/inet_ntop (Makefile.am): Likewise.
100847         * modules/inet_pton (Makefile.am): Likewise.
100848         * modules/intprops (Makefile.am): Likewise.
100849         * modules/inttostr (Makefile.am): Likewise.
100850         * modules/inttypes (Makefile.am): Likewise.
100851         * modules/isapipe (Makefile.am): Likewise.
100852         * modules/javaversion (Makefile.am): Likewise.
100853         * modules/lchmod (Makefile.am): Likewise.
100854         * modules/lchown (Makefile.am): Likewise.
100855         * modules/localcharset (Makefile.am): Likewise.
100856         * modules/long-options (Makefile.am): Likewise.
100857         * modules/lstat (Makefile.am): Likewise.
100858         * modules/malloc (Makefile.am): Likewise.
100859         * modules/mathl (Makefile.am): Likewise.
100860         * modules/mbchar (Makefile.am): Likewise.
100861         * modules/md2 (Makefile.am): Likewise.
100862         * modules/md4 (Makefile.am): Likewise.
100863         * modules/md5 (Makefile.am): Likewise.
100864         * modules/memcasecmp (Makefile.am): Likewise.
100865         * modules/memchr (Makefile.am): Likewise.
100866         * modules/memcmp (Makefile.am): Likewise.
100867         * modules/memcoll (Makefile.am): Likewise.
100868         * modules/memcpy (Makefile.am): Likewise.
100869         * modules/memmem (Makefile.am): Likewise.
100870         * modules/memmove (Makefile.am): Likewise.
100871         * modules/mempcpy (Makefile.am): Likewise.
100872         * modules/memrchr (Makefile.am): Likewise.
100873         * modules/memset (Makefile.am): Likewise.
100874         * modules/memxor (Makefile.am): Likewise.
100875         * modules/mkancesdirs (Makefile.am): Likewise.
100876         * modules/mkdir-p (Makefile.am): Likewise.
100877         * modules/mkdir (Makefile.am): Likewise.
100878         * modules/mkdtemp (Makefile.am): Likewise.
100879         * modules/mkstemp (Makefile.am): Likewise.
100880         * modules/mktime (Makefile.am): Likewise.
100881         * modules/modechange (Makefile.am): Likewise.
100882         * modules/mountlist (Makefile.am): Likewise.
100883         * modules/nanosleep (Makefile.am): Likewise.
100884         * modules/obstack (Makefile.am): Likewise.
100885         * modules/openat (Makefile.am): Likewise.
100886         * modules/pagealign_alloc (Makefile.am): Likewise.
100887         * modules/pathmax (Makefile.am): Likewise.
100888         * modules/physmem (Makefile.am): Likewise.
100889         * modules/poll (Makefile.am): Likewise.
100890         * modules/posixtm (Makefile.am): Likewise.
100891         * modules/posixver (Makefile.am): Likewise.
100892         * modules/putenv (Makefile.am): Likewise.
100893         * modules/quote (Makefile.am): Likewise.
100894         * modules/quotearg (Makefile.am): Likewise.
100895         * modules/raise (Makefile.am): Likewise.
100896         * modules/read-file (Makefile.am): Likewise.
100897         * modules/readline (Makefile.am): Likewise.
100898         * modules/readlink (Makefile.am): Likewise.
100899         * modules/readtokens (Makefile.am): Likewise.
100900         * modules/readutmp (Makefile.am): Likewise.
100901         * modules/realloc (Makefile.am): Likewise.
100902         * modules/regex (Makefile.am): Likewise.
100903         * modules/rename-dest-slash (Makefile.am): Likewise.
100904         * modules/rename (Makefile.am): Likewise.
100905         * modules/rijndael (Makefile.am): Likewise.
100906         * modules/rmdir (Makefile.am): Likewise.
100907         * modules/rpmatch (Makefile.am): Likewise.
100908         * modules/safe-read (Makefile.am): Likewise.
100909         * modules/safe-write (Makefile.am): Likewise.
100910         * modules/same-inode (Makefile.am): Likewise.
100911         * modules/same (Makefile.am): Likewise.
100912         * modules/save-cwd (Makefile.am): Likewise.
100913         * modules/savedir (Makefile.am): Likewise.
100914         * modules/setenv (Makefile.am): Likewise.
100915         * modules/settime (Makefile.am): Likewise.
100916         * modules/sha1 (Makefile.am): Likewise.
100917         * modules/sig2str (Makefile.am): Likewise.
100918         * modules/snprintf (Makefile.am): Likewise.
100919         * modules/stat-macros (Makefile.am): Likewise.
100920         * modules/stat-time (Makefile.am): Likewise.
100921         * modules/stdbool (Makefile.am): Likewise.
100922         * modules/stdint (Makefile.am): Likewise.
100923         * modules/stdlib-safer (Makefile.am): Likewise.
100924         * modules/stpcpy (Makefile.am): Likewise.
100925         * modules/stpncpy (Makefile.am): Likewise.
100926         * modules/strcase (Makefile.am): Likewise.
100927         * modules/strcasestr (Makefile.am): Likewise.
100928         * modules/strchrnul (Makefile.am): Likewise.
100929         * modules/strcspn (Makefile.am): Likewise.
100930         * modules/strdup (Makefile.am): Likewise.
100931         * modules/strerror (Makefile.am): Likewise.
100932         * modules/strftime (Makefile.am): Likewise.
100933         * modules/strndup (Makefile.am): Likewise.
100934         * modules/strnlen (Makefile.am): Likewise.
100935         * modules/strpbrk (Makefile.am): Likewise.
100936         * modules/strsep (Makefile.am): Likewise.
100937         * modules/strstr (Makefile.am): Likewise.
100938         * modules/strtod (Makefile.am): Likewise.
100939         * modules/strtoimax (Makefile.am): Likewise.
100940         * modules/strtok_r (Makefile.am): Likewise.
100941         * modules/strtol (Makefile.am): Likewise.
100942         * modules/strtoll (Makefile.am): Likewise.
100943         * modules/strtoul (Makefile.am): Likewise.
100944         * modules/strtoull (Makefile.am): Likewise.
100945         * modules/strtoumax (Makefile.am): Likewise.
100946         * modules/strverscmp (Makefile.am): Likewise.
100947         * modules/sys_socket (Makefile.am): Likewise.
100948         * modules/sys_stat (Makefile.am): Likewise.
100949         * modules/sysexits (Makefile.am): Likewise.
100950         * modules/time_r (Makefile.am): Likewise.
100951         * modules/timegm (Makefile.am): Likewise.
100952         * modules/timespec (Makefile.am): Likewise.
100953         * modules/tmpfile-safer (Makefile.am): Likewise.
100954         * modules/trim (Makefile.am): Likewise.
100955         * modules/unistd-safer (Makefile.am): Likewise.
100956         * modules/unlinkdir (Makefile.am): Likewise.
100957         * modules/unlocked-io (Makefile.am): Likewise.
100958         * modules/userspec (Makefile.am): Likewise.
100959         * modules/utime (Makefile.am): Likewise.
100960         * modules/utimecmp (Makefile.am): Likewise.
100961         * modules/utimens (Makefile.am): Likewise.
100962         * modules/vasnprintf (Makefile.am): Likewise.
100963         * modules/vasprintf (Makefile.am): Likewise.
100964         * modules/vsnprintf (Makefile.am): Likewise.
100965         * modules/xalloc (Makefile.am): Likewise.
100966         * modules/xgetcwd (Makefile.am): Likewise.
100967         * modules/xnanosleep (Makefile.am): Likewise.
100968         * modules/xreadlink (Makefile.am): Likewise.
100969         * modules/xstrtod (Makefile.am): Likewise.
100970         * modules/xstrtol (Makefile.am): Likewise.
100971         * modules/xstrtold (Makefile.am): Likewise.
100972         * modules/yesno (Makefile.am): Likewise.
100973         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
100975 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
100977         * modules/error (Makefile.am): Distribute files through
100978         EXTRA_DIST, not lib_SOURCES.
100980 2006-10-12  Eric Blake  <ebb9@byu.net>
100982         * modules/error (Makefile.am): Distribute files in /lib.
100983         * modules/obstack (Makefile.am): Likewise.
100985 2006-10-12  Bruno Haible  <bruno@clisp.org>
100987         * modules/acl (Makefile.am): Distribute all files in lib/ through
100988         EXTRA_DIST.
100989         * modules/arcfour (Makefile.am): Likewise.
100990         * modules/arctwo (Makefile.am): Likewise.
100991         * modules/argmatch (Makefile.am): Likewise.
100992         * modules/argz (Makefile.am): Likewise.
100993         * modules/atexit (Makefile.am): Likewise.
100994         * modules/backupfile (Makefile.am): Likewise.
100995         * modules/c-strtod (Makefile.am): Likewise.
100996         * modules/c-strtold (Makefile.am): Likewise.
100997         * modules/calloc (Makefile.am): Likewise.
100998         * modules/canon-host (Makefile.am): Likewise.
100999         * modules/canonicalize (Makefile.am): Likewise.
101000         * modules/chdir-long (Makefile.am): Likewise.
101001         * modules/chdir-safer (Makefile.am): Likewise.
101002         * modules/check-version (Makefile.am): Likewise.
101003         * modules/chown (Makefile.am): Likewise.
101004         * modules/cloexec (Makefile.am): Likewise.
101005         * modules/close-stream (Makefile.am): Likewise.
101006         * modules/closeout (Makefile.am): Likewise.
101007         * modules/crc (Makefile.am): Likewise.
101008         * modules/cycle-check (Makefile.am): Likewise.
101009         * modules/des (Makefile.am): Likewise.
101010         * modules/dirfd (Makefile.am): Likewise.
101011         * modules/dirname (Makefile.am): Likewise.
101012         * modules/dup2 (Makefile.am): Likewise.
101013         * modules/euidaccess (Makefile.am): Likewise.
101014         * modules/exclude (Makefile.am): Likewise.
101015         * modules/exitfail (Makefile.am): Likewise.
101016         * modules/fcntl-safer (Makefile.am): Likewise.
101017         * modules/file-type (Makefile.am): Likewise.
101018         * modules/fileblocks (Makefile.am): Likewise.
101019         * modules/filemode (Makefile.am): Likewise.
101020         * modules/filenamecat (Makefile.am): Likewise.
101021         * modules/fnmatch (Makefile.am): Likewise.
101022         * modules/fopen-safer (Makefile.am): Likewise.
101023         * modules/fpending (Makefile.am): Likewise.
101024         * modules/fprintftime (Makefile.am): Likewise.
101025         * modules/free (Makefile.am): Likewise.
101026         * modules/fsusage (Makefile.am): Likewise.
101027         * modules/ftruncate (Makefile.am): Likewise.
101028         * modules/fts (Makefile.am): Likewise.
101029         * modules/gc (Makefile.am): Likewise.
101030         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
101031         * modules/getaddrinfo (Makefile.am): Likewise.
101032         * modules/getcwd (Makefile.am): Likewise.
101033         * modules/getdelim (Makefile.am): Likewise.
101034         * modules/getdomainname (Makefile.am): Likewise.
101035         * modules/getgroups (Makefile.am): Likewise.
101036         * modules/gethostname (Makefile.am): Likewise.
101037         * modules/gethrxtime (Makefile.am): Likewise.
101038         * modules/getline (Makefile.am): Likewise.
101039         * modules/getloadavg (Makefile.am): Likewise.
101040         * modules/getlogin_r (Makefile.am): Likewise.
101041         * modules/getopt (Makefile.am): Likewise.
101042         * modules/getpass (Makefile.am): Likewise.
101043         * modules/getpass-gnu (Makefile.am): Likewise.
101044         * modules/getsubopt (Makefile.am): Likewise.
101045         * modules/gettime (Makefile.am): Likewise.
101046         * modules/gettimeofday (Makefile.am): Likewise.
101047         * modules/getugroups (Makefile.am): Likewise.
101048         * modules/getusershell (Makefile.am): Likewise.
101049         * modules/glob (Makefile.am): Likewise.
101050         * modules/group-member (Makefile.am): Likewise.
101051         * modules/hard-locale (Makefile.am): Likewise.
101052         * modules/hash (Makefile.am): Likewise.
101053         * modules/hmac-md5 (Makefile.am): Likewise.
101054         * modules/hmac-sha1 (Makefile.am): Likewise.
101055         * modules/human (Makefile.am): Likewise.
101056         * modules/idcache (Makefile.am): Likewise.
101057         * modules/imaxabs (Makefile.am): Likewise.
101058         * modules/imaxdiv (Makefile.am): Likewise.
101059         * modules/inet_ntop (Makefile.am): Likewise.
101060         * modules/inet_pton (Makefile.am): Likewise.
101061         * modules/inttostr (Makefile.am): Likewise.
101062         * modules/isapipe (Makefile.am): Likewise.
101063         * modules/lchown (Makefile.am): Likewise.
101064         * modules/long-options (Makefile.am): Likewise.
101065         * modules/lstat (Makefile.am): Likewise.
101066         * modules/malloc (Makefile.am): Likewise.
101067         * modules/mathl (Makefile.am): Likewise.
101068         * modules/mbchar (Makefile.am): Likewise.
101069         * modules/md2 (Makefile.am): Likewise.
101070         * modules/md4 (Makefile.am): Likewise.
101071         * modules/md5 (Makefile.am): Likewise.
101072         * modules/memcasecmp (Makefile.am): Likewise.
101073         * modules/memchr (Makefile.am): Likewise.
101074         * modules/memcmp (Makefile.am): Likewise.
101075         * modules/memcoll (Makefile.am): Likewise.
101076         * modules/memcpy (Makefile.am): Likewise.
101077         * modules/memmem (Makefile.am): Likewise.
101078         * modules/memmove (Makefile.am): Likewise.
101079         * modules/mempcpy (Makefile.am): Likewise.
101080         * modules/memrchr (Makefile.am): Likewise.
101081         * modules/memset (Makefile.am): Likewise.
101082         * modules/memxor (Makefile.am): Likewise.
101083         * modules/mkancesdirs (Makefile.am): Likewise.
101084         * modules/mkdir (Makefile.am): Likewise.
101085         * modules/mkdir-p (Makefile.am): Likewise.
101086         * modules/mkdtemp (Makefile.am): Likewise.
101087         * modules/mkstemp (Makefile.am): Likewise.
101088         * modules/mktime (Makefile.am): Likewise.
101089         * modules/modechange (Makefile.am): Likewise.
101090         * modules/mountlist (Makefile.am): Likewise.
101091         * modules/nanosleep (Makefile.am): Likewise.
101092         * modules/openat (Makefile.am): Likewise.
101093         * modules/pagealign_alloc (Makefile.am): Likewise.
101094         * modules/physmem (Makefile.am): Likewise.
101095         * modules/poll (Makefile.am): Likewise.
101096         * modules/posixtm (Makefile.am): Likewise.
101097         * modules/posixver (Makefile.am): Likewise.
101098         * modules/putenv (Makefile.am): Likewise.
101099         * modules/quote (Makefile.am): Likewise.
101100         * modules/quotearg (Makefile.am): Likewise.
101101         * modules/raise (Makefile.am): Likewise.
101102         * modules/read-file (Makefile.am): Likewise.
101103         * modules/readline (Makefile.am): Likewise.
101104         * modules/readlink (Makefile.am): Likewise.
101105         * modules/readtokens (Makefile.am): Likewise.
101106         * modules/readutmp (Makefile.am): Likewise.
101107         * modules/realloc (Makefile.am): Likewise.
101108         * modules/regex (Makefile.am): Likewise.
101109         * modules/rename (Makefile.am): Likewise.
101110         * modules/rename-dest-slash (Makefile.am): Likewise.
101111         * modules/rijndael (Makefile.am): Likewise.
101112         * modules/rmdir (Makefile.am): Likewise.
101113         * modules/rpmatch (Makefile.am): Likewise.
101114         * modules/safe-read (Makefile.am): Likewise.
101115         * modules/safe-write (Makefile.am): Likewise.
101116         * modules/same (Makefile.am): Likewise.
101117         * modules/save-cwd (Makefile.am): Likewise.
101118         * modules/savedir (Makefile.am): Likewise.
101119         * modules/setenv (Makefile.am): Likewise.
101120         * modules/settime (Makefile.am): Likewise.
101121         * modules/sha1 (Makefile.am): Likewise.
101122         * modules/sig2str (Makefile.am): Likewise.
101123         * modules/snprintf (Makefile.am): Likewise.
101124         * modules/stdlib-safer (Makefile.am): Likewise.
101125         * modules/stpcpy (Makefile.am): Likewise.
101126         * modules/stpncpy (Makefile.am): Likewise.
101127         * modules/strcase (Makefile.am): Likewise.
101128         * modules/strcasestr (Makefile.am): Likewise.
101129         * modules/strchrnul (Makefile.am): Likewise.
101130         * modules/strcspn (Makefile.am): Likewise.
101131         * modules/strdup (Makefile.am): Likewise.
101132         * modules/strerror (Makefile.am): Likewise.
101133         * modules/strftime (Makefile.am): Likewise.
101134         * modules/strndup (Makefile.am): Likewise.
101135         * modules/strnlen (Makefile.am): Likewise.
101136         * modules/strpbrk (Makefile.am): Likewise.
101137         * modules/strsep (Makefile.am): Likewise.
101138         * modules/strstr (Makefile.am): Likewise.
101139         * modules/strtod (Makefile.am): Likewise.
101140         * modules/strtoimax (Makefile.am): Likewise.
101141         * modules/strtok_r (Makefile.am): Likewise.
101142         * modules/strtol (Makefile.am): Likewise.
101143         * modules/strtoll (Makefile.am): Likewise.
101144         * modules/strtoul (Makefile.am): Likewise.
101145         * modules/strtoull (Makefile.am): Likewise.
101146         * modules/strtoumax (Makefile.am): Likewise.
101147         * modules/strverscmp (Makefile.am): Likewise.
101148         * modules/time_r (Makefile.am): Likewise.
101149         * modules/timegm (Makefile.am): Likewise.
101150         * modules/tmpfile-safer (Makefile.am): Likewise.
101151         * modules/unistd-safer (Makefile.am): Likewise.
101152         * modules/unlinkdir (Makefile.am): Likewise.
101153         * modules/userspec (Makefile.am): Likewise.
101154         * modules/utime (Makefile.am): Likewise.
101155         * modules/utimecmp (Makefile.am): Likewise.
101156         * modules/utimens (Makefile.am): Likewise.
101157         * modules/vasnprintf (Makefile.am): Likewise.
101158         * modules/vasprintf (Makefile.am): Likewise.
101159         * modules/vsnprintf (Makefile.am): Likewise.
101160         * modules/xalloc (Makefile.am): Likewise.
101161         * modules/xgetcwd (Makefile.am): Likewise.
101162         * modules/xnanosleep (Makefile.am): Likewise.
101163         * modules/xreadlink (Makefile.am): Likewise.
101164         * modules/xstrtod (Makefile.am): Likewise.
101165         * modules/xstrtol (Makefile.am): Likewise.
101166         * modules/xstrtold (Makefile.am): Likewise.
101167         * modules/yesno (Makefile.am): Likewise.
101169 2006-10-12  Jim Meyering  <jim@meyering.net>
101171         * m4/getloadavg.m4: Revert the change below.
101173         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
101174         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
101175         fail with a symlink, which is what coreutils' ./bootstrap now
101176         creates by default.
101178 2006-10-12  Bruno Haible  <bruno@clisp.org>
101180         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
101181         mingw.
101182         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
101183         MSVC and mingw explicitly.
101185 2006-10-11  Simon Josefsson  <jas@extundo.com>
101186             Bruno Haible  <bruno@clisp.org>
101188         Add support for multiple gnulib-tool invocations in the scope of a
101189         single configure.ac file.
101190         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
101191         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
101192         with the same contents as the _LIBADD variable.
101193         (func_emit_initmacro_start, func_emit_initmacro_end,
101194         func_emit_initmacro_done): New functions.
101195         (func_import, func_create_testdir): Invoke them. Allow the identifiers
101196         gl_LIBOBJS and gl_LTLIBOBJS.
101198 2006-10-11  Bruno Haible  <bruno@clisp.org>
101200         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
101201         (func_create_testdir): Don't create po/Makefile.am, don't invoke
101202         autoreconf. Instead, invoke autopoint explicitly but move back the
101203         *.m4 files from gnulib.
101205 2006-10-11  Bruno Haible  <bruno@clisp.org>
101207         * gnulib-tool (func_usage): Make module names after --create-testdir
101208         optional.
101209         (func_create_testdir): If no module was specified, use nearly all
101210         modules.
101212 2006-10-12  Jim Meyering  <jim@meyering.net>
101214         Big performance improvement for fts-based tools that use FTS_NOSTAT.
101215         Avoid spurious inode-mismatch problems on non-POSIX file systems.
101216         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
101217         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
101218         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
101219         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
101220         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
101221         (fts_set_stat_required): New function.
101222         (fts_open): Defer the calls to fts_stat, if possible or requested.
101223         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
101224         into fts_stat itself.
101225         (fts_read): Perform any required (deferred) fts_stat call.
101226         (fts_build): Likewise, for the directory we're about to open and read.
101227         In the readdir loop, carefully decide whether each entry will require
101228         an eventual call to fts_stat, using dirent.d_type info if available.
101229         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
101230         a command line argument into this function.  Update all callers.
101231         Map a return value of FTS_DOT to FTS_D for a command line argument.
101232         * modules/fts (Depends-on): Add d-type.  Alphabetize.
101233         Thanks to Miklos Szeredi for his tenacity and for the initial
101234         bug report about "find" failing on a FUSE-based file system.
101236         * lib/fts.c (fts_open): Use consistent indentation.
101238 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
101240         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
101241         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
101242         reported by Jim Meyering.  All uses of cache variables renamed
101243         to match Autoconf's.
101244         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
101245         the other one.
101247         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
101248         Fix misspelling in diagnostic.
101250 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
101252         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
101253         defined.  Problem reported by Matthew Woehlke.
101255         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
101256         Add support for Tandem NonStop R series.
101257         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
101258         Use new macro.
101260         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
101261         (has_trailing_slash): Omit size arg; all callers changed.
101262         Omit 'inline', since it doesn't help performance and we'd
101263         need to configure it.
101264         Don't count //, ///, etc. as having a trailing slash.
101265         As a side effect, this removes a C99ism reported by Matthew Woehlke.
101266         (rpl_rename_dest_slash): On failure, use rename's errno rather
101267         than (in some cases) an incorrect or junk errno.
101268         Simplify code by removing need to compute length; this does
101269         cause it to make two passes instead of one over the file name,
101270         but it's worth it.
101272         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
101273         change, since Autoconf's version may no longer be appropriate now
101274         that we are using CVS Autoconf's version.  Add support for Tandem.
101276 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
101277             Bruno Haible  <bruno@clisp.org>
101279         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
101280         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
101281         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
101282         gl_AC_TYPE_LONG_LONG.
101284         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
101285         instead of HAVE_LONG_LONG.
101286         * lib/printf-args.c (printf_fetchargs): Likewise.
101287         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
101288         * lib/vasnprintf.c (VASNPRINTF): Likewise.
101289         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
101290         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
101291         gl_AC_TYPE_LONG_LONG.
101293 2006-10-11  Bruno Haible  <bruno@clisp.org>
101295         * m4/longlong.m4: Add comments.
101296         * m4/ulonglong.m4: Likewise.
101298 2006-10-10  Bruno Haible  <bruno@clisp.org>
101300         Make it possible to #define stpcpy, strdup to aliases.
101301         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
101302         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
101304 2006-10-10  Bruno Haible  <bruno@clisp.org>
101306         Make it possible to #define gcd to an alias.
101307         * lib/gcd.c: Include config.h.
101309 2006-10-10  Bruno Haible  <bruno@clisp.org>
101311         Make it possible to #define c_isascii to an alias.
101312         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
101313         defined. Undefine the macros before defining them, to avoid gcc
101314         warnings.
101315         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
101316         define NO_C_CTYPE_MACROS early.
101318 2006-10-10  Bruno Haible  <bruno@clisp.org>
101320         Make it possible to #define set_program_name to an alias.
101321         * lib/progname.c: Don't undefine set_program_name; instead, undefine
101322         ENABLE_RELOCATABLE early.
101324 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
101326         Port to Tandem NSK OSS, which has 64-bit signed int but at most
101327         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
101328         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
101329         More generally, don't assume that 64-bit signed int is available
101330         if unsigned int is, and vice versa.
101331         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
101332         unsigned symbols, not on their signed counterparts.
101333         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
101334         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
101335         (UINT64_C, UINTMAX_C):
101336         Likewise.
101337         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
101338         unsigned counterparts.
101339         (Have_long_long, Unsigned): New macros.
101340         (Int): Renamed from INT.
101341         (strtoimax): Use the new macros.
101342         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
101343         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
101344         * modules/inttypes (inttypes.h): Substitute
101345         HAVE_UNSIGNED_LONG_LONG_INT.
101346         * modules/stdint (stdint.h): Likewise.
101347         (Files): Add m4/ulonglong.m4.
101349 2006-10-10  Bruno Haible  <bruno@clisp.org>
101351         Fix a gcc -Wshadow warning.
101352         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
101353         to 'bucket'.
101354         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
101355         gl_linked_indexof_from_to): Likewise.
101356         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
101357         Likewise.
101358         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
101359         Likewise.
101360         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
101361         Reported by Eric Blake.
101363 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
101365         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
101366         for NetBSD.  Problem reported by Bruno Haible.
101368 2006-10-09  Jim Meyering  <jim@meyering.net>
101370         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
101371         Patch from Bruno Haible.
101373 2006-10-09  Jim Meyering  <jim@meyering.net>
101375         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
101376         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
101377         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
101379 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
101381         Don't include <config.h> twice; this doesn't work in some cases,
101382         e.g., when config.h has "#define intmax_t long long int" and
101383         we include <config.h>, <inttypes.h>, <config.h> in that order.
101384         Problem reported by Matthew Woehlke in:
101385         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
101386         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
101387         * lib/fts-cycle.c: Don't include config.h.
101388         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
101389         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
101390         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
101391         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
101392         inttypes.h.
101393         * lib/xstrtoumax.c: Likewise.
101394         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
101395         __strtol and the like, so that this module is more like its siblings.
101396         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
101397         Remove; no longer needed now that we assume gnulib inttypes.h.
101399 2006-10-08  Bruno Haible  <bruno@clisp.org>
101401         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
101402         option.
101404 2006-10-07  Jim Meyering  <jim@meyering.net>
101406         * modules/inttypes (inttypes.h): Revert what seems to have been
101407         an inadvertent part of today's change: use "|", not "/" in the
101408         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
101410 2006-10-07  Bruno Haible  <bruno@clisp.org>
101412         * modules/sublist: New file.
101414 2006-10-07  Bruno Haible  <bruno@clisp.org>
101416         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
101417         * modules/argz (argz.h): Likewise.
101418         * modules/arpa_inet (arpa/inet.h): Likewise.
101419         * modules/byteswap (byteswap.h): Likewise.
101420         * modules/configmake (configmake.h): Likewise.
101421         * modules/fcntl (fcntl.h): Likewise.
101422         * modules/fnmatch (fnmatch.h): Likewise.
101423         * modules/getopt (getopt.h): Likewise.
101424         * modules/glob (glob.h): Likewise.
101425         * modules/inttypes (inttypes.h): Likewise.
101426         * modules/netinet_in (netinet/in.h): Likewise.
101427         * modules/poll (poll.h): Likewise.
101428         * modules/stdbool (stdbool.h): Likewise.
101429         * modules/stdint (stdint.h): Likewise.
101430         * modules/sys_select (sys/select.h): Likewise.
101431         * modules/sys_socket (sys/socket.h): Likewise.
101432         * modules/sys_stat (sys/stat.h): Likewise.
101433         * modules/sysexits (sysexits.h): Likewise.
101434         * modules/unistd (unistd.h): Likewise.
101435         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
101436         Add a "DO NOT EDIT" comment to the generated file.
101437         (func_import): Likewise for gnulib-comp.m4.
101439 2006-10-07  Bruno Haible  <bruno@clisp.org>
101441         * lib/gl_sublist.h: New file.
101442         * lib/gl_sublist.c: New file.
101444 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
101446         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
101447         name (relative to the original working directory) and the file
101448         name component (relative to the temporary working directory).  All
101449         callers changed.
101450         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
101451         * lib/mkdir-p.c (make_dir_parents): Likewise.
101452         * lib/mkdir-p.h (make_dir_parents): Likewise.
101454 2006-10-06  Eric Blake  <ebb9@byu.net>
101456         Define several macros for use by the clean-temp module.
101457         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
101458         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
101459         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
101461         * lib/clean-temp.h (close_stream_temp): New declaration.
101462         * lib/clean-temp.c (includes): Pull in headers according to what
101463         other modules are in use.
101464         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
101466 2006-10-06  Bruno Haible  <bruno@clisp.org>
101468         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
101469         instead of fopen, fwriteerror.
101471 2006-10-06  Bruno Haible  <bruno@clisp.org>
101473         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
101474         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
101475         int.
101476         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
101477         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
101478         Return an error indicator.
101479         Suggested by Eric Blake.
101481 2006-10-06  Bruno Haible  <bruno@clisp.org>
101483         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
101484         Reported by Eric Blake.
101486 2006-10-06  Bruno Haible  <bruno@clisp.org>
101488         * modules/closeout (Description): Mention stderr too.
101490 2006-10-06  Bruno Haible  <bruno@clisp.org>
101491         and Paul Eggert  <eggert@cs.ucla.edu>
101493         * lib/closeout.c (close_stdout): Also close stderr.
101494         * lib/closeout.h: Update comment.
101496 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
101498         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
101499         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
101500         * lib/dirchownmod.c: Include lchown.h.
101501         * lib/lchown.c: Don't include files that lchown.h now includes.
101502         Don't declare chown, since lchown.h now does that.
101503         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
101504         (lchown): Define to rpl_chown if lchown is declared but
101505         does not exist.  Declare using a prototype if lchown is not
101506         declared.  Add a copyright notice.
101507         * lib/mkstemp.h: Include <unistd.h>.
101508         * lib/openat.c: Include lchown.h.
101510         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
101511         we now test for that separately.
101512         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
101513         rather than O_NOFOLLOW, when testing whether it's possible to
101514         avoid a race condition reliably.
101515         * lib/savewd.c (savewd_chdir): Likewise.
101517         Remove macros that are no longer needed now that stdint.h is
101518         reliable.
101519         * lib/fsusage.c (UINTMAX_MAX): Remove.
101520         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
101521         * lib/utimecmp.c (SIZE_MAX): Remove.
101523         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
101525         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
101526         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
101527         O_NOATIME works.
101529 2006-10-05  Bruno Haible  <bruno@clisp.org>
101531         * lib/gl_list.h (gl_sortedlist_search_from_to,
101532         gl_sortedlist_indexof_from_to): New declarations.
101533         (gl_list_implementation): New fields sortedlist_search_from_to,
101534         sortedlist_indexof_from_to.
101535         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
101536         inline functions.
101537         * lib/gl_list.c (gl_sortedlist_search_from_to,
101538         gl_sortedlist_indexof_from_to): New functions.
101539         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
101540         function.
101541         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
101542         (gl_array_sortedlist_search_from_to): New function.
101543         (gl_array_list_implementation): Update.
101544         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
101545         function.
101546         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
101547         (gl_carray_sortedlist_search_from_to): New function.
101548         (gl_carray_list_implementation): Update.
101549         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
101550         gl_linked_sortedlist_indexof_from_to): New functions.
101551         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
101552         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
101553         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
101554         gl_tree_sortedlist_indexof_from_to): New functions.
101555         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
101556         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
101557         Update.
101558         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
101559         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
101560         Update.
101562 2006-10-05  Bruno Haible  <bruno@clisp.org>
101564         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
101565         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
101566         (struct gl_list_implementation): Add fields search_from_to,
101567         indexof_from_to. Remove fields search, indexof.
101568         (gl_list_search): Use the search_from_to method.
101569         (gl_list_search_from, gl_list_search_from_to): New functions.
101570         (gl_list_indexof): Use the indexof_from_to method.
101571         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
101572         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
101573         (gl_list_search_from, gl_list_search_from_to): New functions.
101574         (gl_list_indexof): Use the indexof_from_to method.
101575         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
101576         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
101577         gl_array_indexof. Add start_index, end_index arguments.
101578         (gl_array_search_from_to): Renamed from gl_array_search. Add
101579         start_index, end_index arguments.
101580         (gl_array_remove, gl_array_list_implementation): Update.
101581         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
101582         gl_carray_indexof. Add start_index, end_index arguments.
101583         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
101584         start_index, end_index arguments.
101585         (gl_carray_remove, gl_carray_list_implementation): Update.
101586         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
101587         gl_linked_search. Add start_index, end_index arguments.
101588         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
101589         start_index, end_index arguments.
101590         (gl_linked_remove): Update.
101591         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
101592         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
101593         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
101594         field to 'size_t'.
101595         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
101596         gl_tree_search. Add start_index, end_index arguments.
101597         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
101598         start_index, end_index arguments.
101599         (gl_tree_remove): Update.
101600         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
101601         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
101602         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
101603         function.
101604         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
101605         gl_tree_search. Add start_index, end_index arguments.
101606         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
101607         start_index, end_index arguments.
101608         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
101609         Update.
101610         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
101612 2006-10-05  Bruno Haible  <bruno@clisp.org>
101614         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
101616         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
101617         fwriteerror_temp): New declarations.
101618         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
101619         (descriptors): New variable.
101620         (cleanup): First, close the descriptors.
101621         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
101622         fclose_temp, fwriteerror_temp): New functions.
101624 2006-10-04  Jim Meyering  <jim@meyering.net>
101626         * lib/fts.c (fts_open): Tiny comment change.
101628 2006-10-04  Bruno Haible  <bruno@clisp.org>
101630         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
101631         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
101632         gl_LOCK_BODY.
101633         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
101634         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
101635         gl_LOCK_EARLY_BODY.
101636         (gl_LOCK): Require gl_LOCK_BODY.
101638 2006-10-04  Bruno Haible  <bruno@clisp.org>
101640         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
101641         (gl_oset_search_atleast): New declaration.
101642         (struct gl_oset_implementation): Add field 'search_atleast'.
101643         (gl_oset_search_atleast): New inline function.
101644         * lib/gl_oset.c (gl_oset_search_atleast): New function.
101645         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
101646         (gl_array_oset_implementation): Update.
101647         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
101648         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
101649         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
101651 2006-10-04  Bruno Haible  <bruno@clisp.org>
101653         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
101655 2006-10-03  Bruno Haible  <bruno@clisp.org>
101657         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
101658         from gl_avltreehash_list_implementation.
101660 2006-10-03  Bruno Haible  <bruno@clisp.org>
101662         * lib/gl_oset.c (gl_oset_add): Fix return type.
101664 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
101666         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
101668 2006-10-02  Eric Blake  <ebb9@byu.net>
101670         * modules/strnlen (Depends-on): Add extensions.
101672 2006-10-02  Eric Blake  <ebb9@byu.net>
101674         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
101675         definition in 2.60+.
101677 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
101679         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
101680         checks.
101682 2006-10-02  Bruno Haible  <bruno@clisp.org>
101684         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
101685         to the AUTOMAKE_OPTIONS.
101686         Reported by Jim Meyering.
101688 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
101690         Work around bug in Solaris 10 /proc file system:
101691         /proc/self/fd/NNN/.. isn't the parent directory of
101692         the directory whose file descriptor is NNN.  This needs to
101693         be worked around at run time, not compile time, since a
101694         program might be built on Solaris 8, where things work, and
101695         run on Solaris 10.
101696         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
101697         to use the following interface instead:
101698         (OPENAT_BUFFER_SIZE): New macro.
101699         (openat_proc_name): New function.
101700         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
101701         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
101702         Likewise.
101703         * lib/openat-proc.c: New file.
101704         * modules/openat (Files): Add lib/openat-proc.c.
101705         (Depends-on): Add same-inode, stdbool.
101706         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
101708 2006-09-29  Bruno Haible  <bruno@clisp.org>
101710         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
101711         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
101712         argument. Set stdout_closed before testing for ferror, not after.
101713         (fwriteerror, fwriteerror_no_ebadf): New functions.
101715 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101717         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
101719 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
101721         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
101722         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
101724 2006-09-28  Jim Meyering  <jim@meyering.net>
101726         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
101727         Include <unistd.h>.
101729 2006-09-28  Bruno Haible  <bruno@clisp.org>
101731         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
101732         * modules/linkedhash-list (Depends-on): Likewise.
101733         * modules/rbtreehash-list (Depends-on): Likewise.
101735 2006-09-28  Bruno Haible  <bruno@clisp.org>
101737         * lib/strndup.h: Simplify the redefinition of strndup.
101738         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
101739         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
101741 2006-09-28  Bruno Haible  <bruno@clisp.org>
101743         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
101744         * lib/gl_linkedhash_list.c: Likewise.
101745         * lib/gl_rbtreehash_list.c: Likewise.
101747 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
101749         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
101750         getaddrinfo.
101752         * lib/__fpending.h: Don't include <stdio_ext.h> unless
101753         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
101754         it causes <stdio_ext.h> to cause a compile-time error.
101755         Problem reported by Nelson H. F. Beebe.
101756         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
101757         of HAVE_DECL___PENDING.
101759         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
101760         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
101761         declaration.
101763 2006-09-27  Jim Meyering  <jim@meyering.net>
101765         This file could end up with a definition for a function
101766         named __strndup, rather than rpl_strndup on a system with
101767         incomplete weak_alias support.
101768         * lib/strndup.c (strndup): Rename from __strndup.
101769         Remove #defines that used to map __strndup to strndup.
101770         Don't use K&R prototypes.
101771         Remove LIBC-related code, since this file is not sync'd with glibc.
101772         * lib/strndup.h: Revamp, accordingly.
101773         * m4/strndup.m4: Modernize.
101775 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
101777         * modules/savewd (Depends-on): Add 'raise'.
101778         * lib/savewd.c: Include <signal.h>, for 'raise'.
101780 2006-09-26  Jim Meyering  <jim@meyering.net>
101782         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
101783         when we detect Darwin 8.7.0's acl_get_file bug.
101784         Rearrange to perform the new (below) run-test while $LIBS
101785         contains any acl-related library.  Set USE_ACL at the end.
101786         (gl_ACL_GET_FILE): New function.
101788 2006-09-26  Eric Blake  <ebb9@byu.net>
101790         * lib/verror.c: Include <config.h> unconditionally.
101792 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
101794         * modules/clock-time (Maintainer): Add self.
101795         * modules/getlogin_r (Depends-on): Add extensions.
101797 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101799         * modules/clock-time: New module.
101800         * modules/nanosleep (Depends-on): Add clock-time.
101801         * modules/gethrxtime (Depends-on): Likewise.
101802         * modules/gettime (Depends-on): Likewise.
101803         * modules/settime (Depends-on): Likewise.
101805         * modules/fts-lgpl: Depend on openat.
101806         * modules/mkancesdirs: Depend on savewd.
101807         * modules/mkdir-p: Likewise.
101809 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101811         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
101813         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
101814         `gl_have_arbitrary_file_name_length_limit' to
101815         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
101816         actually works between configure runs.
101818 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101819             Bruno Haible  <bruno@clisp.org>
101821         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
101823 2006-09-25  Jim Meyering  <jim@meyering.net>
101825         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
101826         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
101828 2006-09-25  Eric Blake  <ebb9@byu.net>
101830         * gnulib-tool (func_import, func_create_testdir): Fix typos in
101831         exec's in 2006-09-18 patch when shuffling fds.
101833 2006-09-25  Bruno Haible  <bruno@clisp.org>
101835         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
101836         Reported by Jim Meyering.
101838 2006-09-24  Jim Meyering  <jim@meyering.net>
101840         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
101841         compare a pointer against a literal "0".  That caused failures with
101842         at least HP-UX's hpcc.
101844 2006-09-22  Simon Josefsson  <jas@extundo.com>
101846         * modules/gc-sha1:
101847         * modules/gc-md4:
101848         * modules/gc-hmac-sha1:
101849         * modules/gc-hmac-md5:
101850         * modules/gc-des:
101851         * modules/gc-arcfour: Distribute more files.
101853 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101855         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
101856         (gl_linked_iterator_from_to): Initialize struct completely.
101857         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
101858         (gl_tree_iterator_from_to): Likewise
101859         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
101860         * lib/gl_array_list.c [lint] (gl_array_iterator)
101861         (gl_array_iterator_from_to): Likewise.
101862         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
101863         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
101864         (gl_carray_iterator_from_to): Likewise.
101866         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
101867         * lib/md4.c (md4_process_block): Remove unused variable.
101868         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
101869         parentheses for clarity.
101871 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101873         * modules/bison-i18n (Depends-on): Add gettext.
101875 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101877         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
101878         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
101879         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
101880         also add missing comma that caused broken test.
101881         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
101882         stdlib.h, for `abort'.
101883         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
101884         variables.
101885         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
101886         include unistd.h if present, for `rmdir'.
101887         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
101888         variables.
101889         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
101890         in the process include standard headers for prototypes.
101891         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
101892         gets declared on GNU/Linux.
101893         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
101894         unistd.h, for `rmdir'.
101895         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
101897         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
101898         always true.
101899         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
101901         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
101903 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101905         * gnulib-tool (func_version): Create output all at once.  This
101906         may help avoid triggering unnecessary SIGPIPEs, and at any
101907         rate it doesn't hurt.
101909 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101910             Bruno Haible  <bruno@clisp.org>
101912         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
101913         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
101914         * m4/signed.m4 (bh_C_SIGNED): Likewise.
101916         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
101917         (gl_FUNC_VASPRINTF): Invoke it.
101919 2006-09-22  Bruno Haible  <bruno@clisp.org>
101921         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
101922         getloadavg.c as first argument.
101924 2006-09-22  Bruno Haible  <bruno@clisp.org>
101926         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
101927         at the beginning of the gl_INIT macro.
101928         * modules/getloadavg (configure.ac): Pass $gl_source_base to
101929         gl_GETLOADAVG.
101931 2006-09-22  Bruno Haible  <bruno@clisp.org>
101933         * gnulib-tool (func_create_megatestdir): Don't include the config-h
101934         module.
101935         Suggested by Ralf Wildenhues.
101937 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
101939         Import this patch from libc:
101941         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
101943         * lib/regex_internal.c (re_string_reconstruct): Handle
101944         offset < pstr->valid_raw_len && pstr->offsets_needed case.
101945         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
101946         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
101947         re_string_context_at.
101949         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
101950         now requires it.
101951         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
101952         gl_REGEX now does it for us.
101953         (gl_REGEX): Add test taken from
101954         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
101956         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
101957         Check that large offsets work.  Modernize Autoconf usages.
101958         Prefer "yes" to mean a good thing rather than a bad.
101959         Don't put "#define mkstemp" in config.h, as this might interfere
101960         with standard system headers that "#define mkstemp mkstemp64".
101962         * modules/mkstemp (Depends-on): Add extensions, so that
101963         mkstemp is visible on some platforms.
101964         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
101965         (Include): Change to "mkstemp.h" from <stdlib.h>.
101966         (Files): Add mkstemp.h.
101968         * lib/mkstemp.h: New file, since some standard headers
101969         #define mkstemp.
101970         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
101971         Include "mkstemp.h".
101972         Make the _LIBC code resemble glibc original more,
101973         e.g., use K&R style.
101974         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
101975         (mkstemp): Remove, since mkstemp.h does this for us.
101976         * lib/stdlib--.h: Include mkstemp.h.
101978         Import this patch from libc:
101980         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
101982         * lib/tempname.c (__gen_tempname): Change attempts_min
101983         into a macro.  Use preprocessor to decide how to initialize
101984         attempts [Coverity CID 67].
101986 2006-09-20  Bruno Haible  <bruno@clisp.org>
101988         * lib/mkdtemp.c: Import from libc.
101989         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
101990                 * sysdeps/posix/tempname.c (__gen_tempname): Change
101991                 attempts_min into a macro.  Use preprocessor to decide how to
101992                 initialize attempts [Coverity CID 67].
101993         2001-11-27  Paul Eggert  <eggert@twinsun.com>
101994                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
101995                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
101997 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101999         * gnulib-tool (func_exit): New function, to allow to pass the
102000         exit status portably through the trap.  Use everywhere.
102001         (--help, --version): Signal a write error.
102002         (trap): catch SIGPIPE, for write errors.
102003         Exit at the end of the trap, with the correct exit status.
102005 2006-09-19  Karl Berry  <karl@gnu.org>
102007         * doc/gnulib.texi: note about the license texinfo files.
102009 2006-09-19  Eric Blake  <ebb9@byu.net>
102011         * gnulib-tool: Avoid space-tab.
102013 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
102015         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
102016         that prevented coreutils 6.1 from building.  Problem reported
102017         by Petter Reinholdtsen.
102019 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
102021         * gnulib-tool (avoidlist): Fix typo that broke options like
102022         --avoid=lock that are used by coreutils bootstrap.
102024 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
102026         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
102027         more systematically.
102029 2006-09-18  Jim Meyering  <jim@meyering.net>
102031         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
102033 2006-09-18  Bruno Haible  <bruno@clisp.org>
102035         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
102037 2006-09-18  Bruno Haible  <bruno@clisp.org>
102039         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
102040         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
102041         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
102042         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
102043         * m4/gettext.m4: Require autoconf >= 2.52.
102044         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
102045         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
102046         of gl_cv_header_inttypes_h.
102048 2006-09-18  Bruno Haible  <bruno@clisp.org>
102050         * lib/javaversion.c: Include configmake.h.
102052 2006-09-18  Bruno Haible  <bruno@clisp.org>
102054         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
102055         avoid that the while loops be executed in a subshell.
102057 2006-09-18  Bruno Haible  <bruno@clisp.org>
102059         * MODULES.html.sh (func_module): Break long lines.
102060         Suggested by Bruce Korb <bkorb@gnu.org>.
102062 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102064         Speed up by a factor of 1.12.
102065         * gnulib-tool (nl): New variable.
102066         (func_import): Rewrite include directive extraction to only read each
102067         directive once.
102069 2006-09-17  Bruno Haible  <bruno@clisp.org>
102071         * modules/javaversion (Makefile.am): Remove DEFS setting.
102072         (Depends-on): Add configmake, for PKGDATADIR definition.
102074 2006-09-17  Bruno Haible  <bruno@clisp.org>
102076         * gnulib-tool (func_create_testdir): Rewrite all files at once.
102078 2006-09-17  Bruno Haible  <bruno@clisp.org>
102080         * gnulib-tool (func_append): New function, stolen from libtool.m4.
102081         (func_modules_transitive_closure, func_modules_add_dummy,
102082         func_modules_to_filelist, func_import, func_create_testdir,
102083         func_create_megatestdir, ...): Use it wherever possible.
102084         Suggested by Ralf Wildenhues.
102086 2006-09-16  Karl Berry  <karl@gnu.org>
102088         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
102089         to avoid sectioning errors.
102090         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
102091         [ifinfo]: blank line after @center-ed titles.
102092         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
102093         Spell FSF address consistently with others.
102094         (These changes approved by rms.)
102096 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102098         Speed up by a factor of 1.61.
102099         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
102100         already checked module names again.
102102 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102104         Speed up by a factor of 1.13.
102105         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
102106         for new_files, and the input to func_add_or_update.
102108 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102110         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
102111         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
102113 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
102115         * modules/mkancesdirs (Depends-on): Add fcntl.
102116         * modules/savewd: New file.
102117         * MODULES.html.sh (File system functions): Add savewd.
102119         * modules/configmake (Makefile.am): Add support for the
102120         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
102122 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
102124         * m4/savewd.m4: New file.
102126 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
102128         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
102129         (dirchownmod): New arg FD.  All callers changed.
102130         Use FD rather than opening the directory ourself, as opening is
102131         now the caller's responsibility.
102132         * lib/dirchownmod.h: Likewise.
102133         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
102134         hosts that require <sys/types.h> before <sys/stat.h>.  Include
102135         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
102136         (test_dir): Remove.
102137         (mkancesdirs): Return length of prefix of FILE that has already
102138         been made, or -2 if there is a child doing the work.  Redo
102139         algorithm so that it is O(N) rather than O(N**2).  Optimize away
102140         ".", and treat ".." specially since it might stray back into
102141         already-created areas.  Use a subprocess if necessary.  New arg
102142         WD; all users changed.  MAKE_DIR function should now return 1
102143         if it creates a directory that is not readable.  Return -2 if
102144         a child process is spun off.
102145         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
102146         Adjust signature to match code.
102147         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
102148         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
102149         all users changed.
102150         * lib/savewd.c, lib/savewd.h: New files.
102152 2006-09-15  Jim Meyering  <jim@meyering.net>
102154         * modules/rename-dest-slash: New module.
102155         * MODULES.html.sh (posix_compat): Add it here.
102157         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
102159 2006-09-15  Jim Meyering  <jim@meyering.net>
102161         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
102162         file.
102164         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
102166 2006-09-15  Jim Meyering  <jim@meyering.net>
102168         * lib/rename-dest-slash.c (has_trailing_slash): Use
102169         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
102170         (rpl_rename_dest_slash): Perform the cheaper trailing slash
102171         test before testing whether SRC is a directory.
102172         Suggestions from Bruno Haible.
102174         Avoid a warning about an unused variable.
102175         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
102176         into the #ifdef block where it's used.
102178         * lib/rename-dest-slash.c: New file.
102180 2006-09-14  Bruno Haible  <bruno@clisp.org>
102182         * lib/allocsa.c: Include <config.h> unconditionally.
102183         * lib/asnprintf.c: Likewise.
102184         * lib/asprintf.c: Likewise.
102185         * lib/c-strcasecmp.c: Likewise.
102186         * lib/c-strcasestr.c: Likewise.
102187         * lib/c-strncasecmp.c: Likewise.
102188         * lib/c-strstr.c: Likewise.
102189         * lib/classpath.c: Likewise.
102190         * lib/clean-temp.c: Likewise.
102191         * lib/concatpath.c: Likewise.
102192         * lib/copy-file.c: Likewise.
102193         * lib/csharpcomp.c: Likewise.
102194         * lib/csharpexec.c: Likewise.
102195         * lib/execute.c: Likewise.
102196         * lib/fatal-signal.c: Likewise.
102197         * lib/findprog.c: Likewise.
102198         * lib/fwriteerror.c: Likewise.
102199         * lib/gl_array_list.c: Likewise.
102200         * lib/gl_array_oset.c: Likewise.
102201         * lib/gl_avltree_list.c: Likewise.
102202         * lib/gl_avltree_oset.c: Likewise.
102203         * lib/gl_avltreehash_list.c: Likewise.
102204         * lib/gl_carray_list.c: Likewise.
102205         * lib/gl_linked_list.c: Likewise.
102206         * lib/gl_linkedhash_list.c: Likewise.
102207         * lib/gl_list.c: Likewise.
102208         * lib/gl_oset.c: Likewise.
102209         * lib/gl_rbtree_list.c: Likewise.
102210         * lib/gl_rbtree_oset.c: Likewise.
102211         * lib/gl_rbtreehash_list.c: Likewise.
102212         * lib/imaxabs.c: Likewise.
102213         * lib/imaxdiv.c: Likewise.
102214         * lib/javacomp.c: Likewise.
102215         * lib/javaexec.c: Likewise.
102216         * lib/javaversion.c: Likewise.
102217         * lib/linebreak.c: Likewise.
102218         * lib/localcharset.c: Likewise.
102219         * lib/lock.c: Likewise.
102220         * lib/mbchar.c: Likewise.
102221         * lib/mbswidth.c: Likewise.
102222         * lib/mkdtemp.c: Likewise.
102223         * lib/pipe.c: Likewise.
102224         * lib/printf-args.c: Likewise.
102225         * lib/printf-parse.c: Likewise.
102226         * lib/progname.c: Likewise.
102227         * lib/progreloc.c: Likewise.
102228         * lib/readlink.c: Likewise.
102229         * lib/sh-quote.c: Likewise.
102230         * lib/stpcpy.c: Likewise.
102231         * lib/stpncpy.c: Likewise.
102232         * lib/strcasecmp.c: Likewise.
102233         * lib/strcasestr.c: Likewise.
102234         * lib/strcspn.c: Likewise.
102235         * lib/striconv.c: Likewise.
102236         * lib/strncasecmp.c: Likewise.
102237         * lib/strnlen1.c: Likewise.
102238         * lib/strstr.c: Likewise.
102239         * lib/strtok_r.c: Likewise.
102240         * lib/tls.c: Likewise.
102241         * lib/tmpdir.c: Likewise.
102242         * lib/unicodeio.c: Likewise.
102243         * lib/unsetenv.c: Likewise.
102244         * lib/vasnprintf.c: Likewise.
102245         * lib/vasprintf.c: Likewise.
102246         * lib/wait-process.c: Likewise.
102247         * lib/xallocsa.c: Likewise.
102248         * lib/xsetenv.c: Likewise.
102249         * lib/xstriconv.c: Likewise.
102251 2006-09-13  Simon Josefsson  <jas@extundo.com>
102253         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
102254         that internally, suggested by Ralf Wildenhues
102255         <Ralf.Wildenhues@gmx.de>.
102257 2006-09-13  Simon Josefsson  <jas@extundo.com>
102259         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
102260         @LIBOBJS@.
102261         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
102263 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
102265         * lib/_fpending.c: Include <config.h> unconditionally, since we no
102266         longer worry about uses that don't define HAVE_CONFIG_H.
102267         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
102268         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
102269         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
102270         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
102271         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
102272         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
102273         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
102274         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
102275         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
102276         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
102277         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
102278         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
102279         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
102280         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
102281         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
102282         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
102283         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
102284         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
102285         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
102286         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
102287         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
102288         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
102289         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
102290         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
102291         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
102292         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
102293         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
102294         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
102295         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
102296         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
102297         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
102298         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
102299         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
102300         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
102301         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
102302         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
102303         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
102304         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
102305         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
102306         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
102307         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
102308         Likewise.
102310 2006-09-13  Eric Blake  <ebb9@byu.net>
102312         * lib/getopt.c: Fix typo in last commit.
102314 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
102316         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
102317         dgettext.
102319 2006-09-12  Jim Meyering  <jim@meyering.net>
102321         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
102322         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
102323         Reported by Nelson H. F. Beebe.
102325 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102327         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
102328         program_invocation_name and program_invocation_short_name are
102329         initialized.
102330         * lib/argp-namefrob.h: Move declarations of program_invocation_name
102331         and program_invocation_short_name to argp.h, so they are visible
102332         to user programs.
102333         * lib/argp.h: Likewise
102335 2006-09-10  Bruno Haible  <bruno@clisp.org>
102337         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
102338         m4/inttypes_h.m4, m4/uintmax_t.m4.
102340 2006-09-10  Bruno Haible  <bruno@clisp.org>
102342         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
102343         gl_AC_TYPE_UINTMAX_T.
102345 2006-09-10  Bruno Haible  <bruno@clisp.org>
102347         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
102349 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102351         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
102352         convention.  Text proposed by Bruno Haible.
102353         (struct argp_option): Document the use of N_() wrappers.
102355         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
102356         '\v', and translate the two parts separately, instead of feeding
102357         the whole string to gettext.  This allows to exclude
102358         '\v' from the strings visible to the translator by writing doc
102359         strings as N_("..") "\v" N_("..").
102361 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
102363         * config/srclist.txt: Undo latest change; the bug was fixed.
102365 2006-09-09  Bruno Haible  <bruno@clisp.org>
102367         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
102368         assignments if building a library without libtool.
102369         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
102370         in func_emit_lib_Makefile_am.
102371         (func_import): When building a static library libfoo.a, arrange to
102372         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
102373         (func_create_testdir): Likewise.
102374         * modules/gc (configure.ac, Makefile.am): If building statically,
102375         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
102376         * modules/iconvme (configure.ac, Makefile.am): Likewise.
102377         * modules/striconv (configure.ac, Makefile.am): Likewise.
102378         Based on a suggestion by Ralf Wildenhues.
102380 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
102382         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
102383         Check for unistd.h too, since Autoconf doesn't assume POSIX.
102384         Also:
102386         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
102387         Add year_2050_test to catch glibc bug 2821
102388         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
102390         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
102391         Prefer #ifdef to #if.
102393         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
102394         Return from 'main' instead of calling 'exit'.
102396 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
102398         * lib/mktime.c (guess_time_tm): Fix bug where mktime
102399         returned the maximum time_t value rather than (time_t) -1.
102400         Problem originally reported by William Bardwell
102401         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
102403         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
102404         Moved to here ...
102405         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
102406         ... from here.
102408 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
102410         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
102411         2821 is fixed.
102413 2006-09-08  Jim Meyering  <jim@meyering.net>
102415         Don't make generated files read-only.  That would bother too many
102416         people.  However, do retain the ability to work when targets are
102417         read-only: remove the destination and temporary files before writing
102418         them (when generated via sed or echo), or by using the -f option for
102419         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
102420         * modules/alloca-opt, modules/argz, modules/arpa_inet:
102421         * modules/byteswap, modules/configmake, modules/fcntl:
102422         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
102423         * modules/localcharset, modules/netinet_in, modules/poll:
102424         * modules/stdbool, modules/stdint, modules/sys_select:
102425         * modules/sys_socket, modules/sys_stat, modules/sysexits:
102427 2006-09-08  Jim Meyering  <jim@meyering.net>
102429         Avoid new build failure on FreeBSD 6.0.
102430         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
102431         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
102432         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
102434 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102436         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
102438 2006-09-07  Jim Meyering  <jim@meyering.net>
102440         Fix global typo in last change: use chmod u-w, not chmod u-x.
102441         Spotted by Paul Eggert and Bruce Korb.
102442         * modules/alloca-opt, modules/argz, modules/arpa_inet:
102443         * modules/byteswap, modules/configmake, modules/fcntl:
102444         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
102445         * modules/localcharset, modules/netinet_in, modules/poll:
102446         * modules/stdbool, modules/stdint, modules/sys_select:
102447         * modules/sys_socket, modules/sys_stat, modules/sysexits:
102449 2006-09-06  Jim Meyering  <jim@meyering.net>
102451         Make generated files be read-only.
102452         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
102453         Ensure that each generated file is now read-only.
102454         * modules/argz: Likewise.
102455         * modules/arpa_inet: Likewise.
102456         * modules/byteswap: Likewise.
102457         * modules/configmake: Likewise.
102458         * modules/fcntl: Likewise.
102459         * modules/fnmatch: Likewise.
102460         * modules/getopt: Likewise.
102461         * modules/glob: Likewise.
102462         * modules/inttypes: Likewise.
102463         * modules/netinet_in: Likewise.
102464         * modules/poll: Likewise.
102465         * modules/stdbool: Likewise.
102466         * modules/stdint: Likewise.
102467         * modules/sys_select: Likewise.
102468         * modules/sys_socket: Likewise.
102469         * modules/sys_stat: Likewise.
102470         * modules/sysexits: Likewise.
102471         * modules/localcharset: Same as above, but continue using temporary
102472         file named "t-$@" (why different?) rather than the "$@-t" used
102473         everywhere else.
102475         * modules/sysexits (Makefile.am): Replace literal occurrences
102476         of "sysexit.h" more readable, and more consistent, "$@".
102478 2006-09-06  Bruno Haible  <bruno@clisp.org>
102480         * modules/striconv: New file.
102481         * modules/xstriconv: New file.
102482         * MODULES.html.sh (Internationalization functions): Add striconv,
102483         xstriconv.
102485 2006-09-06  Bruno Haible  <bruno@clisp.org>
102487         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
102488         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
102489         not using libtool correctly.
102491 2006-09-06  Bruno Haible  <bruno@clisp.org>
102493         * lib/striconv.h: New file.
102494         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
102495         iconvstring.c.
102496         * lib/xstriconv.h: New file.
102497         * lib/xstriconv.c: New file.
102499 2006-09-06  Bruno Haible  <bruno@clisp.org>
102501         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
102502         lib_..._LDFLAGS.
102504 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102506         * lib/argz_.h: Sync from Libtool.
102508         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
102509                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
102511         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
102513 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
102515         * modules/trim: New file.
102517 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
102519         * lib/trim.h: New file.
102520         * lib/trim.c: New file.
102522 2006-09-05  Bruno Haible  <bruno@clisp.org>
102524         * MODULES.html.sh (String handling): Add trim.
102526 2006-09-04  Karl Berry  <karl@gnu.org>
102528         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
102529         until next release.
102531 2006-09-03  Bruno Haible  <bruno@clisp.org>
102533         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
102534         correctly.
102536 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
102538         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
102539         not gl_GETLOADAVG.  Omit unneeded semicolons.
102540         Problems reported by Ralf Wildenhues in
102541         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
102542         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
102543         at the end, which is the usual gnulib style.
102545         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
102546         of doing all the work ourselves.
102547         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
102548         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
102550 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
102552         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
102553         Problem reported by Ralf Wildenhues in
102554         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
102556         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
102557         HAVE_STRUCT_STATFS_F_FSTYPENAME.
102559 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
102561         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
102562         yesterday's patch by changing test -n to test -z.
102564 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
102566         * modules/getloadavg (Files): Add m4/getloadavg.m4.
102567         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
102568         the former is now obsolescent.
102570         * modules/chdir-long (Depends-on): Add fcntl.
102572 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
102574         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
102575         obsolescent, and programs should use gnulib instead.
102576         * m4/getloadavg.m4: New file, with contents taken from Autoconf
102577         but with prefixes changed.
102579 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
102581         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
102582         or stdbool.h, because they might not exist while configuring.
102584         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
102585         Don't include unistd.h or limits.h; not needed, since chdir-long.h
102586         does that for us.
102587         (O_DIRECTORY): Remove.
102589 2006-08-31  Eric Blake  <ebb9@byu.net>
102591         * gnulib-tool: Don't let emacs change spaces to TAB.
102593 2006-08-31  Bruno Haible  <bruno@clisp.org>
102595         * gnulib-tool: When calling func_import more than once, do it in a
102596         subshell.
102597         Reported by Eric Blake <ebb9@byu.net>.
102599 2006-08-31  Bruno Haible  <bruno@clisp.org>
102601         * gnulib-tool (nl): Remove variable.
102602         (sed_transform_lib_file): Use more robust test for config-h module.
102603         (func_import): Fix typo in 2006-08-25 patch.
102605 2006-08-31  Bruno Haible  <bruno@clisp.org>
102607         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
102608         specified, augment Makefile.am variables instead of assigning them.
102610 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
102612         Work around a bug in both the Linux and SunOS 64-bit kernels:
102613         nanosleep mishandles sleeps for longer than 2**31 seconds.
102614         Problem reported by Frank v Waveren in
102615         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
102616         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
102617         Check for nanosleep bug.
102618         (LIB_NANOSLEEP): Append clock_gettime library if needed.
102620 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
102622         Work around a bug in both the Linux and SunOS 64-bit kernels:
102623         nanosleep mishandles sleeps for longer than 2**31 seconds.
102624         Problem reported by Frank v Waveren in
102625         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
102626         * lib/nanosleep.c (BILLION): New constant.
102627         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
102628         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
102629         implementation.
102631 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
102633         * modules/nanosleep (Depends-on): Add gettime.
102635 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
102636         and Simon Josefsson  <jas@extundo.com>
102637         and Oskar Liljeblad  <oskar@osk.mine.nu>
102639         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
102640         * gnulib-tool (func_import): New license type 'unmodifiable license
102641         text'.
102642         * modules/fdl: Use it.  Longer description.
102643         * module/gpl, module/lgpl: New files.
102645 2006-08-30  Jim Meyering  <jim@meyering.net>
102647         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
102648         shadowing the parameter.
102650 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102652         Sync from Libtool:
102654         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102656         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
102657         sharing with gnulib.  Report by Eric Blake.
102659 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
102661         * modules/isapipe: New file.
102662         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
102664 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
102666         * modules/configmake (Makefile.am): Add a comment, and omit
102667         the CONFIGMAKE_ prefix from generated macro names.  Suggested
102668         by Bruno Haible.
102670 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
102672         * m4/isapipe.m4: New file.
102674 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
102676         * lib/isapipe.c, lib/isapipe.h: New files.
102678 2006-08-29  Jim Meyering  <jim@meyering.net>
102680         * modules/configmake (Makefile.am): Make configmake.h depend on
102681         Makefile.  Otherwise, a stale configmake.h could hang around.
102683 2006-08-29  Eric Blake  <ebb9@byu.net>
102685         * lib/error.c (error_at_line, print_errno_message): Match libc, after
102686         resolution of upstream bug 3044.
102688 2006-08-29  Bruno Haible  <bruno@clisp.org>
102690         * modules/localcharset (Depends-on): Add configmake.
102691         (Makefile.am): Remove setting of LIBDIR through DEFS.
102693 2006-08-29  Bruno Haible  <bruno@clisp.org>
102695         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
102696         defined.
102698 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
102700         * modules/fcntl: New file.
102701         * modules/chdir-safer (Depends-on): Add fcntl.
102702         * modules/fts: Likewise.
102703         * modules/mkdir-p: Likewise.
102705         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
102706         This undoes the most recent change, since we're now addressing the
102707         problem in a different way.
102709         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
102710         into output, since the output might be called Makefile.am even
102711         if $makefile_name is something different.
102712         (func_import): Use $makefile_am rather than
102713         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
102714         empty.
102716         * modules/inttypes (Files): Add m4/inttypes-h.m4.
102718 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
102720         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
102721         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
102722         recent change to stdint.m4, since we're now addressing the problem in a
102723         different way.
102725 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
102727         * m4/fcntl_h.m4: New file.
102729 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
102731         * lib/fcntl_.h: New file.
102732         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
102733         the fcntl module.
102734         * lib/dirchownmod.c: Likewise.
102735         * lib/fts.c: Likewise.
102737         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
102738         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
102739         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
102740         just before including <inttypes.h>, to avoid circular inclusion.
102742 2006-08-28  Jim Meyering  <jim@meyering.net>
102744         * doc/visibility.texi: Actually read and correct the grammar of the
102745         sentence affected by yesterday's change.
102747 2006-08-28  Eric Blake  <ebb9@byu.net>
102749         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
102750         needs wrapper.
102752 2006-08-28  Eric Blake  <ebb9@byu.net>
102754         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
102756 2006-08-28  Eric Blake  <ebb9@byu.net>
102758         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
102760 2006-08-28  Bruno Haible  <bruno@clisp.org>
102762         * modules/c-strstr: New file, from GNU gettext.
102763         * MODULES.html.sh (String handling): Add c-strstr.
102765 2006-08-28  Bruno Haible  <bruno@clisp.org>
102767         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
102768         macros.
102769         Reported by Eric Blake.
102771 2006-08-28  Bruno Haible  <bruno@clisp.org>
102773         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
102774         (VASNPRINTF): Return a string of length > INT_MAX without failing.
102775         * lib/vasprintf.c: Include errno.h, limits.h.
102776         (EOVERFLOW): New fallback definition.
102777         (vasprintf): Test here whether the string length is > INT_MAX.
102778         * lib/vsnprintf.c: Include errno.h, limits.h.
102779         (EOVERFLOW): New fallback definition.
102780         (vsnprintf): Fix bug when generated string was too long for the buffer.
102781         Test here whether the string length is > INT_MAX.
102783 2006-08-28  Bruno Haible  <bruno@clisp.org>
102785         * lib/inttypes_.h (SCNX*): Remove definitions.
102786         Reported by Eric Blake.
102788 2006-08-28  Bruno Haible  <bruno@clisp.org>
102790         * lib/c-strstr.h: New file, from GNU gettext.
102791         * lib/c-strstr.c: New file, from GNU gettext.
102793 2006-08-28  Bruno Haible  <bruno@clisp.org>
102795         * gnulib-tool: Reorder some statements.
102797 2006-08-28  Bruno Haible  <bruno@clisp.org>
102799         * gnulib-tool: New option --makefile-name.
102800         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
102801         $makefile_name.
102802         (func_import): Write $makefile_name to the cache file, and read it from
102803         there unless explicitly specified. Use $makefile_name as file name
102804         instead of Makefile.am. Adjust the recommendations accordingly.
102806 2006-08-28  Bruno Haible  <bruno@clisp.org>
102808         * gnulib-tool (func_verify_module): Check against misapplying patch.
102810 2006-08-28  Bruno Haible  <bruno@clisp.org>
102812         * gnulib-tool (func_relativize, func_relconcat): New functions.
102813         Give an error if --local-dir is given with --update.
102814         Remove trailing slashes from $local_gnulib_dir.
102815         (func_import): Store the relativized $local_gnulib_dir in
102816         gnulib-cache.m4, and read it from there if not specified explicitly.
102818 2006-08-28  Bruno Haible  <bruno@clisp.org>
102820         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
102821         is the current directory. Respect also $local_gnulib_dir.
102823 2006-08-28  Bruno Haible  <bruno@clisp.org>
102824             Simon Josefsson  <jas@extundo.com>
102826         BeOS portability.
102827         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
102829 2006-08-27  Jim Meyering  <jim@meyering.net>
102831         * doc/visibility.texi: Remove duplicate word: "pointer".
102833 2006-08-26  Bruno Haible  <bruno@clisp.org>
102835         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
102836         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
102837         (Makefile.am): Create inttypes.h from inttypes_.h.
102838         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
102840         * modules/imaxabs: New file.
102842         * modules/imaxdiv: New file.
102844 2006-08-26  Bruno Haible  <bruno@clisp.org>
102846         * m4/inttypes.m4: New file.
102847         * m4/_inttypes_h.m4: Remove file.
102848         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
102849         PRI_MACROS_BROKEN.
102850         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
102852         * m4/imaxabs.m4: New file.
102854         * m4/imaxdiv.m4: New file.
102856 2006-08-26  Bruno Haible  <bruno@clisp.org>
102858         * lib/inttypes_.h: New file.
102859         * lib/inttypes.h: Remove file.
102860         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
102862         * lib/imaxabs.c: New file.
102864         * lib/imaxdiv.c: New file.
102866 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
102868         New config-h module, so that "make" output needn't be cluttered
102869         by -DHAVE_CONFIG_H.
102870         * MODULES.html.sh (Support for building libraries and executables):
102871         Add config-h.
102872         * modules/config-h: New file.
102873         * gnulib-tool (nl, sed_transform_lib_file): New vars.
102874         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
102875         the config-h module is used.
102877         New configmake module, so that "make" output needn't be cluttered
102878         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
102879         * MODULES.html.sh (Support for building libraries and executables):
102880         Add configmake.
102881         * modules/configmake: New file.
102883 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
102885         * m4/config-h.m4: New file.
102887 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
102889         * config/srclist.txt: Add elisp-comp.
102891 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
102893         * MODULES.html.sh (Support for building libraries and executables):
102894         Add elisp-comp.
102895         * build-aux/elisp-comp: New file.
102896         * modules/elisp-comp: New file.
102898 2006-08-24  Bruno Haible  <bruno@clisp.org>
102900         * gnulib-tool (func_create_testdir): Use non-default values of
102901         sourcebase and m4base.
102903 2006-08-24  Bruno Haible  <bruno@clisp.org>
102905         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
102906         HTML structure.
102908 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
102910         * modules/openat (Depends-on): Add lchown.
102912 2006-08-23  Bruno Haible  <bruno@clisp.org>
102914         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
102915         of gl_LOCK_EARLY instead of gl_LOCK.
102917 2006-08-23  Bruno Haible  <bruno@clisp.org>
102919         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
102920         on OSF/1 to no.
102921         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
102923 2006-08-23  Bruno Haible  <bruno@clisp.org>
102925         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
102926         as unusable.
102928         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
102929         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
102930         (gl_LOCK): New macro.
102932 2006-08-22  Simon Josefsson  <jas@extundo.com>
102934         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
102935         to md5 module.
102937 2006-08-22  Simon Josefsson  <jas@extundo.com>
102939         * MODULES.html.sh: Add "Support for maintaining and release
102940         projects".
102942         * build-aux/gnupload: New file, from coreutils.
102944 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
102946         Avoid the need for AC_LIBSOURCES in m4 macros.
102947         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
102948         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
102949         * modules/check-version (EXTRA_DIST): Add check-version.h.
102950         * modules/crc (EXTRA_DIST): Add crc.h.
102951         * modules/des (EXTRA_DIST): Add des.h.
102952         * modules/gc (EXTRA_DIST): Add gc.h.
102953         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
102954         * modules/getline (EXTRA_DIST): Add getline.h.
102955         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
102956         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
102957         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
102958         * modules/md2 (EXTRA_DIST): Add md2.h.
102959         * modules/md4 (EXTRA_DIST): Add md4.h.
102960         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
102961         * modules/read-file (EXTRA_DIST): Add read-file.h.
102962         * modules/readline (EXTRA_DIST): Add readline.h.
102963         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
102964         rijndael-api-fst.h.
102966 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
102968         * m4/rijndael.m4 (gl_ARCFOUR):
102969         * m4/arctwo.m4 (gl_ARCTWO):
102970         * m4/check-version.m4 (gl_CHECK_VERSION):
102971         * m4/crc.m4 (gl_CRC):
102972         * m4/des.m4 (gl_DES):
102973         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
102974         * m4/gc.m4 (gl_GC):
102975         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
102976         * m4/getline.m4 (gl_FUNC_GETLINE):
102977         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
102978         * m4/hmac-md5.m4 (gl_HMAC_MD5):
102979         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
102980         * m4/md2.m4 (gl_MD2):
102981         * m4/md4.m4 (gl_MD4):
102982         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
102983         * m4/read-file.m4 (gl_FUNC_READ_FILE):
102984         * m4/readline.m4 (gl_FUNC_READLINE):
102985         * m4/rijndael.m4 (gl_RIJNDAEL):
102986         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
102987         to get the necessary .h files and whatnot.
102989 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
102991         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
102992         gnulib rather than the other way around.
102993         * config/srclistvars.sh (COREUTILS): Remove.
102995 2006-08-22  Jim Meyering  <jim@meyering.net>
102997         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
102999         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
103001 2006-08-22  Eric Blake  <ebb9@byu.net>
103003         * modules/regexprops-generic: New file.
103004         * MODULES.html.sh (Support for building documentation): List it.
103006 2006-08-22  Eric Blake  <ebb9@byu.net>
103008         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
103009         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
103010         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
103011         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
103013 2006-08-22  Bruno Haible  <bruno@clisp.org>
103015         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
103016         and lib_LTLIBRARIES like the other lib_* variables.
103018 2006-08-22  Bruno Haible  <bruno@clisp.org>
103020         * build-aux/x-to-1.in: New file, from GNU gettext.
103022 2006-08-22  Bruno Haible  <bruno@clisp.org>
103024         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
103025         <utmpx.h> exists.
103027 2006-08-22  Bruno Haible  <bruno@clisp.org>
103029         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
103030         <utmpx.h> exists.
103032 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
103034         BeOS portability.
103035         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
103036         exist.
103037         Problem reported by Bruno Haible.
103039 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
103041         Avoid the need for AC_LIBSOURCES in m4 macros.
103042         * modules/acl (EXTRA_DIST): Add acl.h.
103043         * modules/argmatch (Files): Add m4/argmatch.m4.
103044         (configure.ac): Add gl_ARGMATCH.
103045         (EXTRA_DIST): Renamed from lib_SOURCES, for
103046         consistency with the other modules.  Remove argmatch.c.
103047         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
103048         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
103049         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
103050         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
103051         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
103052         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
103053         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
103054         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
103055         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
103056         * modules/closeout (EXTRA_DIST): Add closeout.h.
103057         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
103058         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
103059         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
103060         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
103061         dirname.h; remove basename.c and stripslash.c.
103062         * modules/exclude (EXTRA_DIST): Add exclude.h.
103063         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
103064         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
103065         * modules/file-type (EXTRA_DIST): Add file-type.h.
103066         * modules/filemode (EXTRA_DIST): Add filemode.h.
103067         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
103068         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
103069         * modules/fpending (EXTRA_DIST): Add __fpending.h.
103070         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
103071         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
103072         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
103073         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
103074         * modules/getdate (EXTRA_DIST): Add getdate.c.
103075         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
103076         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
103077         * modules/getpass (EXTRA_DIST): Add getpass.h.
103078         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
103079         * modules/group-member (EXTRA_DIST): Add group-member.h.
103080         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
103081         * modules/hash (EXTRA_DIST): Add hash.h.
103082         * modules/human (EXTRA_DIST): Add human.h.
103083         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
103084         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
103085         * modules/lchown (EXTRA_DIST): Add lchown.h.
103086         * modules/long-options (EXTRA_DIST): Add long-options.h.
103087         * modules/lstat (EXTRA_DIST): Add lstat.h.
103088         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
103089         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
103090         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
103091         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
103092         * modules/memxor (EXTRA_DIST): Add memxor.h.
103093         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
103094         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
103095         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
103096         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
103097         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
103098         * modules/physmem (EXTRA_DIST): Add physmem.h.
103099         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
103100         * modules/posixver (EXTRA_DIST): Add posixver.h.
103101         * modules/quote (EXTRA_DIST): Add quote.h.
103102         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
103103         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
103104         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
103105         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
103106         regex_internal.h regexec.c.
103107         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
103108         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
103109         * modules/same (EXTRA_DIST): Add same.h.
103110         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
103111         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
103112         * modules/savedir (EXTRA_DIST): Add savedir.h.
103113         * modules/sha1 (EXTRA_DIST): Add sha1.h.
103114         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
103115         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
103116         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
103117         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
103118         * modules/strdup (EXTRA_DIST): Add strdup.h.
103119         * modules/strftime (EXTRA_DIST): Add strftime.h.
103120         * modules/strndup (EXTRA_DIST): Add strndup.h.
103121         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
103122         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
103123         * modules/time_r (EXTRA_DIST): Add time_r.h.
103124         * modules/timespec (EXTRA_DIST): Add timespec.h.
103125         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
103126         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
103127         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
103128         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
103129         * modules/userspec (EXTRA_DIST): Add userspec.h.
103130         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
103131         * modules/utimens (EXTRA_DIST): Add utimens.h.
103132         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
103133         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
103134         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
103135         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
103136         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
103137         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
103138         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
103139         * modules/yesno (EXTRA_DIST): Add yesno.h.
103141 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
103143         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
103145         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
103146         * m4/dev-ino.m4, same-inode.m4: Remove.
103148         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
103149         * m4/acl.m4 (AC_FUNC_ACL):
103150         * m4/backupfile.m4 (gl_BACKUPFILE):
103151         * m4/c-strtod.m4 (gl_C99_STRTOLD):
103152         * m4/canon-host.m4 (gl_CANON_HOST):
103153         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
103154         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
103155         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
103156         * m4/cloexec.m4 (gl_CLOEXEC):
103157         * m4/close-stream.m4 (gl_CLOSE_STREAM):
103158         * m4/closeout.m4 (gl_CLOSEOUT):
103159         * m4/dirfd.m4 (gl_FUNC_DIRFD):
103160         * m4/dirname.m4 (gl_DIRNAME):
103161         * m4/exclude.m4 (gl_EXCLUDE):
103162         * m4/exitfail.m4 (gl_EXITFAIL):
103163         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
103164         * m4/file-type.m4 (gl_FILE_TYPE):
103165         * m4/filemode.m4 (gl_FILEMODE):
103166         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
103167         * m4/fpending.m4 (gl_FUNC_FPENDING):
103168         * m4/fprintftime.m4 (gl_FPRINTFTIME):
103169         * m4/fts.m4 (gl_FUNC_FTS):
103170         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
103171         * m4/getdate.m4 (gl_GETDATE):
103172         * m4/gethrxtime.m4 (gl_GETHRXTIME):
103173         * m4/getpagesize.m4 (gl_GETPAGESIZE):
103174         * m4/getpass.m4 (gl_FUNC_GETPASS):
103175         * m4/gettime.m4 (gl_GETTIME):
103176         * m4/getugroups.m4 (gl_GETUGROUPS):
103177         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
103178         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
103179         * m4/hard-locale.m4 (gl_HARD_LOCALE):
103180         * m4/hash.m4 (gl_HASH):
103181         * m4/idcache.m4 (gl_IDCACHE):
103182         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
103183         * m4/lchown.m4 (gl_FUNC_LCHOWN):
103184         * m4/long-options.m4 (gl_LONG_OPTIONS):
103185         * m4/lstat.m4 (gl_FUNC_LSTAT):
103186         * m4/md5.m4 (gl_MD5):
103187         * m4/memcasecmp.m4 (gl_MEMCASECMP):
103188         * m4/memcoll.m4 (gl_MEMCOLL):
103189         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
103190         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
103191         * m4/memxor.m4 (gl_MEMXOR):
103192         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
103193         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
103194         * m4/modechange.m4 (gl_MODECHANGE):
103195         * m4/mountlist.m4 (gl_MOUNTLIST):
103196         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
103197         * m4/openat.m4 (gl_FUNC_OPENAT):
103198         * m4/pathmax.m4 (gl_PATHMAX):
103199         * m4/physmem.m4 (gl_PHYSMEM):
103200         * m4/posixtm.m4 (gl_POSIXTM):
103201         * m4/posixver.m4 (gl_POSIXVER):
103202         * m4/quote.m4 (gl_QUOTE):
103203         * m4/quotearg.m4 (gl_QUOTEARG):
103204         * m4/readtokens.m4 (gl_READTOKENS):
103205         * m4/readutmp.m4 (gl_READUTMP):
103206         * m4/regex.m4 (gl_REGEX):
103207         * m4/safe-read.m4 (gl_SAFE_READ):
103208         * m4/safe-write.m4 (gl_SAFE_WRITE):
103209         * m4/same.m4 (gl_SAME):
103210         * m4/save-cwd.m4 (gl_SAVE_CWD):
103211         * m4/savedir.m4 (gl_SAVEDIR):
103212         * m4/settime.m4 (gl_SETTIME):
103213         * m4/sha1.m4 (gl_SHA1):
103214         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
103215         * m4/stat-macros.m4 (gl_STAT_MACROS):
103216         * m4/stat-time.m4 (gl_STAT_TIME):
103217         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
103218         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
103219         * m4/strdup.m4 (gl_FUNC_STRDUP):
103220         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
103221         * m4/strndup.m4 (gl_FUNC_STRNDUP):
103222         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
103223         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
103224         * m4/time_r.m4 (gl_TIME_R):
103225         * m4/timespec.m4 (gl_TIMESPEC):
103226         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
103227         * m4/unlinkdir.m4 (gl_UNLINKDIR):
103228         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
103229         * m4/userspec.m4 (gl_USERSPEC):
103230         * m4/utimecmp.m4 (gl_UTIMECMP):
103231         * m4/utimens.m4 (gl_UTIMENS):
103232         * m4/xalloc.m4 (gl_XALLOC):
103233         * m4/xgetcwd.m4 (gl_XGETCWD):
103234         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
103235         * m4/xreadlink.m4 (gl_XREADLINK):
103236         * m4/xstrtod.m4 (gl_XSTRTOD):
103237         * m4/yesno.m4 (gl_YESNO):
103238         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
103239         to get the necessary .h files and whatnot.
103241 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
103242             Bruno Haible  <bruno@clisp.org>
103244         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
103245         /bin/sh understanding of '!' conditional negation.
103247 2006-08-21  Jim Meyering  <jim@meyering.net>
103249         * modules/openat (Depends-on): Really alphabetize.
103251         * modules/acl (Depends-on): Add error and quote.
103253         * check-module (find_included_lib_files): Add at-func.c to the
103254         ok-to-include-more-than-once white list.
103256         * modules/openat (Depends-on): Add lstat.  Alphabetize.
103258 2006-08-21  Bruno Haible  <bruno@clisp.org>
103260         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
103261         Emit a pkgdata_DATA variable only if some snippets add contents to it.
103262         Reported by Martin Lambers <marlam@marlam.de>.
103264 2006-08-21  Bruno Haible  <bruno@clisp.org>
103266         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
103267         specify an installation location, don't emit a noinst_LIBRARIES or
103268         noinst_LTLIBRARIES assignment.
103270 2006-08-21  Bruno Haible  <bruno@clisp.org>
103272         BeOS portability.
103273         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
103274         BeOS has mbrtowc() but no <wctype.h>.
103276 2006-08-21  Bruno Haible  <bruno@clisp.org>
103278         BeOS portability.
103279         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
103280         exist.
103282 2006-08-21  Bruno Haible  <bruno@clisp.org>
103284         BeOS portability.
103285         * lib/mbchar.h: Include <wctype.h> only if it exists.
103287 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
103289         Remove files that are no longer needed by their respective modules.
103290         * m4/obstack.m4: Remove.
103291         * m4/strerror_r.m4: Remove.
103292         * m4/uint32_t.m4: Remove.
103293         * m4/uintptr_t.m4: Remove.
103294         * m4/ullong_max.m4: Remove.
103295         * m4/xstrtoimax.m4: Remove.
103296         * m4/xstrtoumax.m4: Remove.
103298         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
103299         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
103300         dependencies now capture this.
103302         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
103303         Do not use AC_LIBSOURCES, since gnulib modules now do this.
103304         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
103305         * m4/human.m4 (gl_HUMAN): Likewise.
103306         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
103307         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
103309         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
103311         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
103312         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
103313         stdint.
103314         * m4/human.m4 (gl_HUMAN): Likewise.
103315         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
103316         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
103317         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
103318         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
103319         * m4/xstrtol (gl_XSTRTOL): Likewise.
103321         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
103322         AC_TYPE_LONG_LONG_INT.
103323         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
103324         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
103325         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
103326         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
103328         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
103329         on stdbool.
103331         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
103332         (gl_PREREQ_XSTRTOUL): Remove.
103334         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
103336         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
103337         mode.
103339 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
103341         Add and change modules to make it easier for coreutils to use
103342         gnulib-tool.
103343         * modules/backupfile (Files): Remove m4/d-ino.m4.
103344         (Depends-on): Add d-ino.
103345         * modules/cycle-check (Depends-on): Add stdint.
103346         (lib_SOURCES): Add cycle-check.h.
103347         * modules/d-ino: New module.
103348         * modules/d-type: New module.
103349         * modules/error (Files): Remove m4/strerror_r.m4.
103350         * modules/filemode (Files): Add m4/st_dm_mode.m4.
103351         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
103352         m4/inttypes_h.m4, m4/uintmax_t.m4.
103353         (Depends-on): Add stdint.
103354         (lib_SOURCES): Add fsusage.h.
103355         * modules/getcwd (Files): Remove d-ino.m4.
103356         (Depends-on): Add d-ino.
103357         * modules/getndelim2 (Depends-on): Add stdint.
103358         * modules/glob (Files): Remove m4/d-type.m4.
103359         (Depends-on): Add d-type.
103360         * modules/host-os: New module.
103361         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
103362         m4/inttypes_h.m4, m4/uintmax_t.m4.
103363         * Depends-on: Add stdint.
103364         (lib_SOURCES): Add human.h.
103365         * modules/inttostr (Files): Remove m4/intmax_t.m4,
103366         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
103367         m4/uintmax_t.m4, m4/ulonglong.m4.
103368         (Depends-on): Add stdint.
103369         (EXTRA_DIST): Add inttostr.h.
103370         * modules/lchmod: New module.
103371         * modules/link-follow: New module.
103372         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
103373         (Depends-on): Add lchmod.
103374         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
103375         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
103376         (Depends-on): Add stdint.
103377         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
103378         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
103379         (Depends-on): Add stdint.
103380         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
103381         * modules/perl: New module.
103382         * modules/regex (Depends-on): Add stdint.
103383         * modules/rmdir-errno: New module.
103384         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
103385         m4/intmax_t.m4.
103386         (Depends-on): Add stdint.
103387         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
103388         m4/uintmax_t.m4.
103389         (Depends-on): Add stdint.
103390         * modules/unlink-busy: New module.
103391         * modules/utimecmp (Depends-on): Add stdint.
103392         * modules/uptime: New module.
103393         * modules/winsz-ioctl: New module.
103394         * modules/winsz-termios: New module.
103395         * modules/xnanosleep (Depends-on): Add nanosleep.
103396         * modules/ullong_max: Remove.
103397         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
103398         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
103399         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
103400         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
103401         (Depends-on): Add inttypes.
103402         (lib_SOURCES): Add xstrtol.h.
103403         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
103404         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
103405         * MODULES.html.sh: Move 'assert' into the assert section.
103406         Move 'dummy' into the linking section.
103407         Remove ullong_max.
103408         Add section for compatibility checks for POSIX:2001 functions,
103409         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
103410         winsz-ioctl, and winsz-termios into it.
103411         Add lchmod.
103412         Add top-level Misc section and put host-os, perl, and uptime
103413         into it.
103415 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
103417         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
103418         now assume the stdint module.  Do not include inttypes.h.
103419         * lib/fsusage.h: Likewise.
103420         * lib/getndelim2.c: Likewise.
103421         * lib/human.h: Likewise.
103422         * lib/inttostr.h: Likewise.
103423         * lib/obstack.c: Likewise.
103424         * lib/regex_internal.h: Likewise.
103425         * lib/tempname.c: Likewise.
103426         * lib/utimecmp.c: Likewise.
103427         * lib/xstrtol.h: Likewise.
103429         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
103431         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
103432         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
103433         * lib/xtime.h: Likewise.
103435 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
103437         * modules/openat (Files): Add lib/fchmodat.c.
103438         Fixes problem reported by Jay Youngman.
103440 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
103442         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
103443         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
103445 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
103446             Bruno Haible  <bruno@clisp.org>
103448         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
103449         and is a script that invokes bison. Tighten the code. Add comments.
103451 2006-08-18  Jim Meyering  <jim@meyering.net>
103453         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
103454         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
103455         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
103456         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
103458 2006-08-18  Bruno Haible  <bruno@clisp.org>
103460         * modules/bison-i18n: New file.
103461         * MODULES.html.sh (Internationalization functions): Add it.
103463 2006-08-18  Bruno Haible  <bruno@clisp.org>
103465         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
103466         sys/statvfs.h. When getmntinfo was found, check its declaration and
103467         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
103469 2006-08-18  Bruno Haible  <bruno@clisp.org>
103471         * m4/bison-i18n.m4: New file, from bison.
103473 2006-08-18  Bruno Haible  <bruno@clisp.org>
103475         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
103476         (ME_DUMMY): Treat "kernfs" as a dummy.
103477         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
103479 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
103481         Update from coreutils.
103483         2006-08-15  Jim Meyering  <jim@meyering.net>
103485         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
103487         2006-01-17  Jim Meyering  <jim@meyering.net>
103489         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
103491         2006-01-11  Jim Meyering  <jim@meyering.net>
103493         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
103494         Check for the lchmod function.
103496 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
103498         Update from coreutils.
103500         * lib/__fpending.h: Add copyright notice.
103501         * lib/fprintftime.h: Likewise.
103502         * lib/savedir.c: Use (C) in copyright notice.
103503         * lib/savedir.h: Likewise.
103505         2006-08-15  Jim Meyering  <jim@meyering.net>
103507         * lib/at-func.c: New file, with the logic of all emulated at-functions.
103508         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
103509         in support of the EXPECTED_ERRNO macro.
103510         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
103511         definitions.  Instead, define the appropriate symbols and include
103512         "at-func.c".
103513         * lib/mkdirat.c (mkdirat): Likewise.
103514         * lib/fchmodat.c (fchmodat): Likewise.
103515         (ENOSYS): Remove definition.
103516         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
103517         it.  Don't include "unistd--.h" -- it wasn't ever used.
103519         2006-01-17  Jim Meyering  <jim@meyering.net>
103521         Rewrite fts.c not to change the current working directory,
103522         by using openat, fstatat, fdopendir, etc..
103524         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
103525         (HAVE_OPENAT_SUPPORT): Define.
103526         [_LIBC] (fchdir): Don't undef or define; no longer used.
103527         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
103528         Now, this `function' always succeeds, and consumes its file descriptor
103529         parameter -- so callers must not close such FDs.  Update callers.
103530         (diropen_fd, opendirat, cwd_advance_fd): New functions.
103531         (diropen): Add parameter, SP.  Adjust all callers.
103532         Implement using diropen_fd, rather than open.
103533         (fts_open): Initialize new member, fts_cwd_fd.
103534         Remove fts_rft-setting code.
103535         (fts_close): Close fts_cwd_fd, if necessary.
103536         (__opendir2): Define in terms of opendir or opendirat,
103537         depending on whether the FST_NOCHDIR flag is set.
103538         (fts_build): Since fts_safe_changedir consumes its FD, and since
103539         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
103540         and close the dup'd file descriptor upon failure.
103541         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
103542         (fts_safe_changedir): Tweak semantics to reflect that this function
103543         now calls cwd_advance_fd and hence consumes its FD argument.
103544         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
103545         [struct FTS] (fts_rft): Remove now-unused member.
103546         [struct FTS] (fts_cycle.state): Improve comment.
103548         * lib/openat.c (openat_needs_fchdir): New function.
103549         * lib/openat.h (openat_needs_fchdir): Declare it.
103551 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
103553         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
103554         Problem and fix reported by Pádraig Brady in
103555         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
103557 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
103559         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
103561 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
103563         * lib/memcoll.c (memcoll): Optimize for the common case where the
103564         arguments are bytewise equal.
103566 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
103568         * doc/regexprops-generic.texi: Add a copyright notice.
103570 2006-08-15  Bruno Haible  <bruno@clisp.org>
103572         * modules/tmpdir (License): Change to LGPL.
103574 2006-08-15  Bruno Haible  <bruno@clisp.org>
103576         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
103577         module.
103579 2006-08-14  Simon Josefsson  <jas@extundo.com>
103581         * config/srclist.txt: Add gnupload.
103583 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
103585         Change copyright notice from LGPL 2 to GPL 2, since that's the
103586         standard form used in the gnulib repository.
103587         * tests/test-lock.c: Likewise.
103588         * tests/test-stdint.c: Likewise.
103589         * tests/test-tls.c: Likewise.
103591         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
103592         prelude-manager.  User shorter URLs for GNU projects, without '?'.
103593         Add copyright notice.
103595         * check-module: Add copyright notice.  Output a copyright
103596         notice if "--version" is specified.
103597         * modules/COPYING: New file.
103598         * tests/test-getaddrinfo.c: Add copyright notice.
103599         * tests/test-verify.c: Likewise.
103601 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
103603         Change copyright notice from LGPL 2 to GPL 2, since that's the
103604         standard form used in the gnulib repository.
103605         * lib/lock.c: LGPL -> GPL.
103606         * lib/lock.h: Likewise.
103607         * lib/strnlen1.c: Likewise.
103608         * lib/strnlen1.h: Likewise.
103609         * lib/tls.c: Likewise.
103610         * lib/tls.h: Likewise.
103611         * lib/tmpdir.c: Likewise.
103613         * lib/TODO: Remove; this belongs only in coreutils.
103615 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
103617         Add copyright notices to long-enough files that lack them, since
103618         otherwise the files aren't clearly free.  Use the same notice that
103619         getdate.texi already uses.
103620         * doc/alloca-opt.texi: Add copyright notice.
103621         * doc/alloca.texi: Likewise.
103622         * doc/ctime.texi: Likewise.
103623         * doc/functions.texi: Likewise.
103624         * doc/gcd.texi: Likewise.
103625         * doc/gnulib-tool.texi: Likewise.
103626         * doc/inet_ntoa.texi: Likewise.
103627         * doc/visibility.texi: Likewise.
103629         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
103630         * doc/quote.texi: Add copyright notice.
103632         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
103633         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
103634         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
103635         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
103636         is now obsolete, and give a pointer to the Sun list.
103637         Add copyright notice.
103639 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
103641         * config/srclistvars.sh: Add copyright notice.
103643 2006-08-14  Eric Blake  <ebb9@byu.net>
103645         Import the following change from libc:
103647         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
103649         Upstream bug 2997.
103650         * lib/misc/error.c: Add space between program name and message if file
103651         name is missing.
103653 2006-08-12  Karl Berry  <karl@gnu.org>
103655         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
103656         remove, these originate in gnulib now.
103658 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103660         * doc/Makefile (standards.info standards.html standards.dvi):
103661         Also depend on make-stds.texi.
103663 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
103665         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
103666         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
103668         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
103669         in wchar_t.  Problem reported by Eric Blake.
103671         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
103672         LEN is smaller than SIZE.  Suggested by Bruno Haible.
103673         Also, help the compiler to keep LEN in a register.
103675 2006-08-11  Eric Blake  <ebb9@byu.net>
103677         * users.txt: Sort.  Add tar.
103679 2006-08-11  Bruno Haible  <bruno@clisp.org>
103681         * users.txt: New file.
103683 2006-08-11  Bruno Haible  <bruno@clisp.org>
103685         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
103686         before <wchar.h>. Needed for OSF/1 and BSD/OS.
103688 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
103690         * modules/snprintf (Depends-on): Remove minmax.
103691         (Maintainer): Add self and Bruno.
103693 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
103695         * lib/.cppi-disable: Add snprintf.h, socket_.h.
103696         * lib/snprintf.c: Include <errno.h> and <limits.h>.
103697         (EOVERFLOW): Define if the system does not.
103698         Do not include "minmax.h"; it wasn't used.
103699         (snprintf): Don't assume size_t promotes to an unsigned type.
103700         Fix bug when generated string was too long for the buffer: the
103701         buffer's contents are supposed to be the initial prefix of the
103702         output.  Don't assume vasnprintf returns EOVERFLOW if the size
103703         exceeds INT_MAX; do the check ourselves.
103705         Import the following changes from libc:
103707         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
103709         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
103710         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
103711         set wc to the byte which couldn't be converted.
103712         (re_string_reconstruct): Don't clear valid_raw_len before calling
103713         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
103714         tip_context using re_string_context_at.
103716         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
103718         * lib/posix/regex.h: g++ still cannot handled [restrict].
103720         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
103722         * lib/posix/regex.h: Remove special handling for VMS.
103724 2006-08-10  Jim Meyering  <jim@meyering.net>
103726         * modules/same-inode: New module.
103727         * modules/dev-ino: New module.
103728         * modules/cycle-check: Depend on these modules, rather than simply
103729         including their .h files.
103730         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
103731         required via m4/cycle-check.m4.
103732         * modules/same: Depend on new same-inode module, rather than
103733         including same-inode.h.
103734         * modules/chdir-safer: New file.
103736         * modules/chown (Depends-on): Add stat-macros.
103738 2006-08-10  Jim Meyering  <jim@meyering.net>
103740         * m4/cycle-check.m4: New file.
103741         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
103742         * m4/dev-ino.m4, m4/same-inode.m4: New files.
103744 2006-08-10  Eric Blake  <ebb9@byu.net>
103746         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
103747         in from original proposal.
103749 2006-08-10  Eric Blake  <ebb9@byu.net>
103750         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
103752         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
103753         namespace.
103755 2006-08-10  Bruno Haible  <bruno@clisp.org>
103757         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
103758         as well.
103760 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
103762         Sync from coreutils.
103764         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
103766         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
103767         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
103769 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
103771         * modules/restrict: Remove; no longer needed now that we assume
103772         Autoconf 2.59 or later.
103773         * MODULES.html.sh: Remove 'restrict'.
103774         * modules/argp (Depends-on): Remove 'restrict'.
103775         * modules/base64 (Depends-on): Likewise.
103776         * modules/gc (Depends-on): Likewise.
103777         * modules/getaddrinfo (Depends-on): Likewise.
103778         * modules/glob (Depends-on): Likewise.
103779         * modules/inet_ntop (Depends-on): Likewise.
103780         * modules/inet_pton (Depends-on): Likewise.
103781         * modules/memxor (Depends-on): Likewise.
103782         * modules/regex (Depends-on): Likewise.
103783         * modules/strtok_r (Depends-on): Likewise.
103784         * modules/time_r (Depends-on): Likewise.
103786 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
103788         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
103789         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
103790         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
103791         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
103792         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
103793         * m4/memxor.m4 (gl_MEMXOR): Likewise.
103794         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
103795         gl_C_RESTRICT replaced by AC_C_RESTRICT.
103797         Merge from coreutils.
103798         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
103799         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
103800         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
103801         * m4/time_r.m4 (gl_TIME_R): Likewise.
103803 2006-08-09  Karl Berry  <karl@gnu.org>
103805         * config/srclist.txt: no more gettext-tools, per Bruno.
103807 2006-08-08  Eric Blake  <ebb9@byu.net>
103809         * modules/verror: New module.
103810         * MODULES.html.sh: Document it.
103812 2006-08-08  Eric Blake  <ebb9@byu.net>
103814         * lib/verror.h, lib/verror.c: New files.
103816 2006-08-08  Eric Blake  <ebb9@byu.net>
103818         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
103819         verror_at_line output complies with GNU Coding Standards even when
103820         file is NULL.
103822 2006-08-07  Bruno Haible  <bruno@clisp.org>
103824         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
103825         versions of AIX.
103826         Reported by Ralf Wildenhues.
103828 2006-08-07  Bruno Haible  <bruno@clisp.org>
103830         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
103831         in an AC_DEFUN. Needed so that the autoconf snippets can use
103832         AC_REQUIRE.
103834 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103836         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
103837         Initialize pkgdata_DATA.
103838         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
103839         overriding it.
103841 2006-08-06  Eric Blake  <ebb9@byu.net>
103843         * lib/error.h: Fold in some upstream changes from glibc.
103844         * lib/error.c: Likewise.
103846 2006-08-04  Bruno Haible  <bruno@clisp.org>
103848         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
103849         Make the mostlyclean-local rule depend on mostlyclean-generic.
103850         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
103852 2006-07-31  Bruno Haible  <bruno@clisp.org>
103854         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
103855         <stdlib.h>, <string.h>.
103857 2006-07-30  Bruno Haible  <bruno@clisp.org>
103859         * modules/readlink (License): Change to LGPL.
103861 2006-07-30  Bruno Haible  <bruno@clisp.org>
103863         * modules/javaversion (Makefile.am): Distribute javaversion.java and
103864         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
103865         set PKGDATADIR to point to it.
103867 2006-07-30  Bruno Haible  <bruno@clisp.org>
103869         * modules/csharpexec (configure.ac): Comment out macro invocation.
103870         * modules/javaexec (configure.ac): Likewise.
103871         * modules/javacomp-script (configure.ac): Likewise.
103873         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
103875 2006-07-30  Bruno Haible  <bruno@clisp.org>
103877         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
103878         linked-list.
103880 2006-07-30  Bruno Haible  <bruno@clisp.org>
103882         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
103884 2006-07-30  Bruno Haible  <bruno@clisp.org>
103886         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
103887         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
103888         get removed.
103890 2006-07-29  Bruno Haible  <bruno@clisp.org>
103892         Make it possible for gnulib-tool to work with locally modified or
103893         augmented gnulib repositories.
103894         * gnulib-tool (func_usage): Document --local-dir option.
103895         (local_gnulib_dir): New variable.
103896         Handle --local-dir option.
103897         (func_lookup_file): New function.
103898         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
103899         (func_get_description, func_get_filelist, func_get_description,
103900         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
103901         func_get_automake_snippet, func_get_include_directive,
103902         func_get_license, func_get_maintainer): Use func_lookup_file.
103903         (func_import, func_create_testdir): Use func_lookup_file.
103905 2006-07-29  Bruno Haible  <bruno@clisp.org>
103907         * modules/setenv (Depends-on): Add unistd.
103909 2006-07-29  Bruno Haible  <bruno@clisp.org>
103911         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
103913 2006-07-29  Bruno Haible  <bruno@clisp.org>
103915         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
103917 2006-07-29  Bruno Haible  <bruno@clisp.org>
103919         * gnulib-tool (import, update): If there is no Makefile.am, look at
103920         aclocal.m4, instead of bailing out.
103922 2006-07-29  Bruno Haible  <bruno@clisp.org>
103924         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
103925         Categorize the options by when they are useful.
103927 2006-07-29  Bruno Haible  <bruno@clisp.org>
103929         * gnulib-tool (func_usage): Document option --no-libtool.
103930         Handle option --no-libtool.
103931         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
103932         for changed semantics of $libtool variable.
103933         (func_import): Likewise. If libtool is not used, show this through
103934         an option --no-libtool.
103935         (func_create_testdir): Update.
103937 2006-07-29  Bruno Haible  <bruno@clisp.org>
103939         * gnulib-tool (func_import): Extend error message about missing
103940         --doc-base.
103942 2006-07-29  Bruno Haible  <bruno@clisp.org>
103944         * gnulib-tool (func_import): Don't create the $docbase directory if
103945         there is no file to store there.
103947 2006-07-29  Bruno Haible  <bruno@clisp.org>
103949         * gnulib-tool (autoconf_minversion): If a --dir option is given and
103950         relevant, look for configure.ac there, not in the current directory.
103951         Also use a simple search for AC_PREREQ, not "autoconf --trace".
103953 2006-07-29  Bruno Haible  <bruno@clisp.org>
103955         * gnulib-tool (SORT): New variable.
103956         (func_usage): Undocument --assume-autoconf option.
103957         Remove --assume-autoconf option handling.
103958         (autoconf_minversion): Determine from the contents of configure.ac.
103959         (func_import): Remove autoconf_minversion handling.
103960         Suggested by Eric Blake.
103962 2006-07-29  Bruno Haible  <bruno@clisp.org>
103964         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
103966 2006-07-29  Bruno Haible  <bruno@clisp.org>
103968         * config/srclist.txt (*setenv.[ch]): Remove rules.
103970 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103972         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
103974 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103976         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
103977         arpa/inet.h.
103979 2006-07-28  Simon Josefsson  <jas@extundo.com>
103981         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
103982         * modules/inet_pton (Depends-on): Likewise.
103984 2006-07-28  Simon Josefsson  <jas@extundo.com>
103986         * m4/netinet_in_h.m4: New file.
103988 2006-07-28  Simon Josefsson  <jas@extundo.com>
103990         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
103991         #include's.
103993 2006-07-28  Simon Josefsson  <jas@extundo.com>
103995         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
103996         #include's.
103998 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
104000         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
104001         setgid on directories only if they set these bits.
104002         * lib/modechange.h: Remove obsolete comment about masks.
104004 2006-07-28  Eric Blake  <ebb9@byu.net>
104006         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
104007         macro expansion.
104009 2006-07-28  Bruno Haible  <bruno@clisp.org>
104011         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
104013 2006-07-28  Bruno Haible  <bruno@clisp.org>
104015         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
104017 2006-07-28  Bruno Haible  <bruno@clisp.org>
104019         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
104020         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
104021         Define fallbacks.
104022         Avoids link error on FreeBSD 4.x.
104023         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
104025         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
104026         encoding.
104027         * lib/mbswidth.c (iswcntrl): Likewise.
104029 2006-07-27  Bruno Haible  <bruno@clisp.org>
104031         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
104032         test.
104034 2006-07-27  Bruno Haible  <bruno@clisp.org>
104036         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
104037         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
104038         defined.
104040 2006-07-26  Eric Blake  <ebb9@byu.net>
104042         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
104044 2006-07-26  Eric Blake  <ebb9@byu.net>
104046         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
104047         like mingw that lack mkstemp.
104048         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
104049         avoid compilation warning on mingw.
104051 2006-07-26  Bruno Haible  <bruno@clisp.org>
104053         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
104054         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
104055         INT_FAST*_MIN, INTPTR_MIN.
104057 2006-07-25  Bruno Haible  <bruno@clisp.org>
104059         * modules/version-etc (Depends-on): Add stdarg.
104061 2006-07-25  Bruno Haible  <bruno@clisp.org>
104063         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
104064         complex commands.
104066 2006-07-25  Bruno Haible  <bruno@clisp.org>
104068         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
104069         defined in <stdarg.h> or config.h.
104071 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
104073         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
104074         (gl_STDIO_SAFER): Remove.
104076 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
104078         * MODULES.html.sh (File stream based Input/Output):
104079         Add fopen-safer, tmpfile-safer; remove stdio-safer.
104080         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
104081         * modules/fopen-safer, modules/tmpfile-safer: New files.
104082         * modules/stdio-safer: Remove.
104084 2006-07-24  Bruno Haible  <bruno@clisp.org>
104086         * modules/tmpdir: New file.
104087         * MODULES.html.sh (File system functions): Add it.
104089 2006-07-24  Bruno Haible  <bruno@clisp.org>
104091         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
104092         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
104094 2006-07-24  Bruno Haible  <bruno@clisp.org>
104096         * modules/clean-temp: New file.
104098 2006-07-24  Bruno Haible  <bruno@clisp.org>
104100         * m4/tmpdir.m4: New file, from GNU gettext.
104102 2006-07-24  Bruno Haible  <bruno@clisp.org>
104104         * lib/tmpdir.h: New file, from GNU gettext.
104105         * lib/tmpdir.c: New file, from GNU gettext.
104107 2006-07-24  Bruno Haible  <bruno@clisp.org>
104109         * lib/clean-temp.h: New file, from GNU gettext.
104110         * lib/clean-temp.c: New file, from GNU gettext.
104112 2006-07-23  Eric Blake  <ebb9@byu.net>
104114         * modules/stdio-safer (Files): Add tmpfile-safer.c.
104115         (Depends-on): Add binary-io.
104117 2006-07-23  Eric Blake  <ebb9@byu.net>
104119         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
104121 2006-07-23  Eric Blake  <ebb9@byu.net>
104123         * lib/tmpfile-safer.c: New file.
104124         * lib/stdio-safer.h (fopen_safer): Add prototype.
104125         * lib/stdio--.h (tmpfile): Make safer.
104127 2006-07-23  Bruno Haible  <bruno@clisp.org>
104129         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
104130         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
104131         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
104132         gl_linked_remove_at): Use it.
104134 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104135         and Simon Josefsson <jas@extundo.com>
104137         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
104139         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
104141 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
104143         * modules/close-stream: New file.
104144         * modules/closeout (Description): Make it clear that it exits
104145         with a diagnostic on error.
104146         (Depends-on): Add close-stream.  Remove fpending, stdbool.
104147         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
104149 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
104151         * m4/close-stream.m4: New file.
104153 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
104155         * lib/close-stream.c, lib/close-stream.h: New files.
104157 2006-07-22  Bruno Haible  <bruno@clisp.org>
104159         Merge from GNU gettext 0.15.
104161         2006-05-01  Bruno Haible  <bruno@clisp.org>
104163                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
104165         2006-07-22  Bruno Haible  <bruno@clisp.org>
104167                 * modules/javaversion: New file.
104168                 * MODULES.html.sh (Java): Add javaversion.
104170         2006-03-12  Bruno Haible  <bruno@clisp.org>
104172                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
104174         2005-12-04  Bruno Haible  <bruno@clisp.org>
104176                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
104177                 (untested).
104179         2006-06-21  Bruno Haible  <bruno@clisp.org>
104181                 Avoid warnings from recent versions of mcs.
104182                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
104183                 -o, -L, -r any more. Use options documented since mcs-1.0
104184                 instead. Similarly for -g.
104186         2005-12-04  Bruno Haible  <bruno@clisp.org>
104188                 * build-aux/csharpcomp.sh.in: Suffix for resources is
104189                 .resources, not .resource.
104191         2005-07-09  Bruno Haible  <bruno@clisp.org>
104193                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
104194                 add a .dll suffix.
104195                 Reported by Mark Junker <mjscod@gmx.de>.
104197         2006-07-22  Bruno Haible  <bruno@clisp.org>
104199                 * modules/gettext: Upgrade to gettext-0.15.
104200                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
104201                 m4/visibility.m4.
104202                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
104204 2006-07-22  Bruno Haible  <bruno@clisp.org>
104206         Merge from GNU gettext 0.15.
104208         2006-03-25  Bruno Haible  <bruno@clisp.org>
104210                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
104212         2006-07-21  Bruno Haible  <bruno@clisp.org>
104214                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
104215                 "1.1".
104217         2006-05-09  Bruno Haible  <bruno@clisp.org>
104219                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
104220                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
104221                 for the conftestver execution.
104223         2006-05-01  Bruno Haible  <bruno@clisp.org>
104225                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
104226                 optional target-version argument. Verify that the compiler
104227                 groks source of the specified source-version, or add -source
104228                 option as necessary. Verify that the compiler produces
104229                 bytecode in the specified target-version, or add -target and
104230                 -source options as necessary. Make the result of the test
104231                 available as variable CONF_JAVAC. Also log error output in
104232                 config.log.
104234         2006-03-11  Bruno Haible  <bruno@clisp.org>
104236                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
104238         2006-05-09  Bruno Haible  <bruno@clisp.org>
104240                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
104241                 CLASSPATH_SEPARATOR to a semicolon.
104243         2006-03-12  Bruno Haible  <bruno@clisp.org>
104245                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
104246                 available as variable CONF_JAVA, for subsequent autoconf
104247                 tests. Also log error output in config.log.
104249         2006-07-19  Bruno Haible  <bruno@clisp.org>
104251                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
104252                 that getline works on glibc2 systems. Needed to avoid trouble
104253                 in relocatable.c.
104254                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
104256         2005-12-04  Bruno Haible  <bruno@clisp.org>
104258                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
104259                 launcher (untested).
104261         2005-12-04  Bruno Haible  <bruno@clisp.org>
104263                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
104265         2006-07-22  Bruno Haible  <bruno@clisp.org>
104267                 * gettext.m4: Update from GNU gettext-0.15.
104268                 * nls.m4: Likewise.
104269                 * po.m4: Likewise.
104270                 * inttypes-pri.m4: Likewise.
104271                 * inttypes-h.m4: Renamed from inttypes.m4.
104272                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
104274 2006-07-22  Bruno Haible  <bruno@clisp.org>
104276         Merge from GNU gettext 0.15.
104278         2005-07-05  Bruno Haible  <bruno@clisp.org>
104280                 * printf-args.c (printf_fetchargs): Work around broken
104281                 definition of wint_t on mingw.
104283         2005-02-12  Bruno Haible  <bruno@clisp.org>
104285                 * xallocsa.h: Add extern "C" for C++.
104287         2006-05-17  Bruno Haible  <bruno@clisp.org>
104289                 Cygwin portability.
104290                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
104292         2006-04-30  Bruno Haible  <bruno@clisp.org>
104294                 * progreloc.c: Include <mach-o/dyld.h> if available.
104295                 (find_executable): Use _NSGetExecutablePath when possible.
104297         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
104299                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
104300                 function.
104302         2005-12-29  Bruno Haible  <bruno@clisp.org>
104304                 * progreloc.c (set_program_name_and_installdir): Fix
104305                 compilation error.
104307         2005-12-04  Bruno Haible  <bruno@clisp.org>
104309                 Cygwin portability.
104310                 * progreloc.c: Include <windows.h> also on Cygwin.
104311                 (find_executable): Add support for Cygwin.
104312                 (set_program_name_and_installdir): Handle also platforms with
104313                 nonempty EXEEXT.
104315         2006-07-11  Bruno Haible  <bruno@clisp.org>
104317                 * javacomp.c: Fix a comment.
104318                 Reported by Jim Meyering.
104320         2006-04-30  Bruno Haible  <bruno@clisp.org>
104322                 * javacomp.h (compile_java_class): Add source_version,
104323                 target_version arguments.
104324                 * javacomp.c: Rewritten to choose only a compiler that
104325                 respects the specified source_version and target_version.
104327         2006-06-27  Bruno Haible  <bruno@clisp.org>
104329                 Assume correct S_ISDIR macro.
104330                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
104332         2006-07-22  Bruno Haible  <bruno@clisp.org>
104334                 * javaversion.h: New file, from GNU gettext.
104335                 * javaversion.c: New file, from GNU gettext.
104336                 * javaversion.java: New file, from GNU gettext.
104337                 * javaversion.class: New file, from GNU gettext.
104339         2006-05-17  Bruno Haible  <bruno@clisp.org>
104341                 Cygwin portability.
104342                 * javaexec.c (execute_java_class): Test for jview program
104343                 also on Cygwin.
104345         2006-04-09  Bruno Haible  <bruno@clisp.org>
104347                 * fatal-signal.c: Don't include string.h.
104348                 (at_fatal_signal): Use a copying loop instead of memcpy.
104350         2005-12-04  Bruno Haible  <bruno@clisp.org>
104352                 * csharpexec.c: Add support for 'clix' launcher (untested).
104353                 (execute_csharp_using_sscli): New function.
104354                 (execute_csharp_program): Call it.
104356         2006-06-21  Bruno Haible  <bruno@clisp.org>
104358                 Avoid warnings from recent versions of mcs.
104359                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
104360                 -o, -L, -r any more. Use options documented since mcs-1.0
104361                 instead. Similarly for -g.
104363         2005-07-09  Bruno Haible  <bruno@clisp.org>
104365                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
104366                 add a .dll suffix.
104367                 Reported by Mark Junker <mjscod@gmx.de>.
104369         2006-06-17  Bruno Haible  <bruno@clisp.org>
104371                 * config.charset: Update for NetBSD 3.0.
104373         2006-05-17  Bruno Haible  <bruno@clisp.org>
104375                 Cygwin portability.
104376                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
104378         2006-05-16  Bruno Haible  <bruno@clisp.org>
104380                 * localcharset.c [CYGWIN]: Include <windows.h>.
104381                 (get_charset_aliases): For Cygwin, return the same CPxxx
104382                 aliases list as under WIN32.
104383                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
104384                 the environment variables. Fall back to GetACP().
104386         2006-04-05  Bruno Haible  <bruno@clisp.org>
104388                 * config.charset: Update Juan Manuel Guerrero's address.
104390         2005-02-12  Bruno Haible  <bruno@clisp.org>
104392                 * allocsa.h: Add extern "C" for C++.
104394         2005-02-10  Bruno Haible  <bruno@clisp.org>
104396                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
104397                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
104399         2006-07-22  Bruno Haible  <bruno@clisp.org>
104401                 * gettext.h: Update to GNU gettext-0.15.
104403 2006-07-22  Bruno Haible  <bruno@clisp.org>
104405         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
104406         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
104407         lib-prefix.m4, longdouble.m4, ssize_t.m4.
104409 2006-07-21  Eric Blake  <ebb9@byu.net>
104411         * modules/stdlib-safer: New file.
104412         * MODULES.html.sh (File stream based Input/Output): Add
104413         stdlib-safer.
104415 2006-07-21  Eric Blake  <ebb9@byu.net>
104417         * lib/stdlib-safer.h: New file from coreutils, required by
104418         stdlib--.h.
104420 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
104422         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
104424 2006-07-20  Bruno Haible  <bruno@clisp.org>
104426         * gnulib-tool: Recognize new option --assume-autoconf.
104427         (autoconf_minversion): New variable.
104428         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
104430 2006-07-20  Bruno Haible  <bruno@clisp.org>
104432         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
104434 2006-07-19  Derek R. Price  <derek@ximbiot.com>
104436         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
104437         Reindent and repaginate.
104439 2006-07-19  Derek Price  <derek@ximbiot.com>
104441         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
104442         Correct grammar.
104444 2006-07-17  Bruno Haible  <bruno@clisp.org>
104446         * modules/list: New file.
104447         * modules/array-list: New file.
104448         * modules/carray-list, modules/carray-list-tests: New files.
104449         * modules/linked-list, modules/linked-list-tests: New files.
104450         * modules/avltree-list, modules/avltree-list-tests: New files.
104451         * modules/rbtree-list, modules/rbtree-list-tests: New files.
104452         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
104453         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
104454         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
104455         * modules/oset: New file.
104456         * modules/array-oset: New file.
104457         * modules/avltree-oset, modules/avltree-oset-tests: New files.
104458         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
104459         * tests/test-carray_list.c: New file.
104460         * tests/test-linked_list.c: New file.
104461         * tests/test-avltree_list.c: New file.
104462         * tests/test-rbtree_list.c: New file.
104463         * tests/test-linkedhash_list.c: New file.
104464         * tests/test-avltreehash_list.c: New file.
104465         * tests/test-rbtreehash_list.c: New file.
104466         * tests/test-avltree_oset.c: New file.
104467         * tests/test-rbtree_oset.c: New file.
104468         * MODULES.html.sh (Container data structures): New section.
104470 2006-07-17  Bruno Haible  <bruno@clisp.org>
104472         * m4/gl_list.m4: New file.
104474 2006-07-17  Bruno Haible  <bruno@clisp.org>
104476         * lib/gl_list.h: New file.
104477         * lib/gl_list.c: New file.
104478         * lib/gl_array_list.h: New file.
104479         * lib/gl_array_list.c: New file.
104480         * lib/gl_carray_list.h: New file.
104481         * lib/gl_carray_list.c: New file.
104482         * lib/gl_linked_list.h: New file.
104483         * lib/gl_linked_list.c: New file.
104484         * lib/gl_anylinked_list1.h: New file.
104485         * lib/gl_anylinked_list2.h: New file.
104486         * lib/gl_avltree_list.h: New file.
104487         * lib/gl_avltree_list.c: New file.
104488         * lib/gl_anyavltree_list1.h: New file.
104489         * lib/gl_anyavltree_list2.h: New file.
104490         * lib/gl_rbtree_list.h: New file.
104491         * lib/gl_rbtree_list.c: New file.
104492         * lib/gl_anyrbtree_list1.h: New file.
104493         * lib/gl_anyrbtree_list2.h: New file.
104494         * lib/gl_anytree_list1.h: New file.
104495         * lib/gl_anytree_list2.h: New file.
104496         * lib/gl_linkedhash_list.h: New file.
104497         * lib/gl_linkedhash_list.c: New file.
104498         * lib/gl_anyhash_list1.h: New file.
104499         * lib/gl_anyhash_list2.h: New file.
104500         * lib/gl_avltreehash_list.h: New file.
104501         * lib/gl_avltreehash_list.c: New file.
104502         * lib/gl_rbtreehash_list.h: New file.
104503         * lib/gl_rbtreehash_list.c: New file.
104504         * lib/gl_anytreehash_list1.h: New file.
104505         * lib/gl_anytreehash_list2.h: New file.
104507         * lib/gl_oset.h: New file.
104508         * lib/gl_oset.c: New file.
104509         * lib/gl_array_oset.h: New file.
104510         * lib/gl_array_oset.c: New file.
104511         * lib/gl_avltree_oset.h: New file.
104512         * lib/gl_avltree_oset.c: New file.
104513         * lib/gl_rbtree_oset.h: New file.
104514         * lib/gl_rbtree_oset.c: New file.
104515         * lib/gl_anytree_oset.h: New file.
104517 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
104519         * m4/mkancesdirs.m4: New file.
104520         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
104521         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
104522         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
104523         it.
104525 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
104527         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
104528         * lib/mkancesdirs.h: New files.
104529         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
104530         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
104531         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
104532         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
104533         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
104534         callers changed.  Revamp internals significantly, by not
104535         attempting to create directories that are temporarily more
104536         permissive than the final results.  Do not attempt to use
104537         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
104538         This removes some race conditions, fixes some bugs, and simplifies
104539         things.  Use new dirchownmod function to do owner and mode changes.
104540         * lib/mkdir-p.h: Likewise.
104541         * lib/modechange.c (octal_to_mode): New function.
104542         (struct mode_change): New member mentioned.
104543         (make_node_op_equals): New arg mentioned.  All callers changed.
104544         (mode_compile): Keep track of which mode bits the user has explicitly
104545         mentioned.
104546         (mode_adjust): New arg DIR, so that we implement the X op correctly.
104547         New arg PMODE_BITS, to keep track of which mode bits the user
104548         mentioned; it treats S_ISUID and S_ISGID speciall.
104549         All callers changed.
104550         * lib/modechange.h: Likewise.
104552 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
104554         * MODULES.html.sh: Add mkancestors.
104555         * modules/mkancesdirs: New module.
104556         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
104557         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
104558         The chdir-safer and afs files are now orphans; I'll remove them
104559         unless someone speaks up.
104560         Add lib/dirchownmod.c, lib/dirchownmod.h.
104561         (Depends-on): Remove alloca, chown, save-cwd, dirname.
104562         Add lchown, mkancesdirs.
104563         (Maintainer): Add self.
104565 2006-07-15  Karl Berry  <karl@gnu.org>
104567         * gnulib-tool: help message wording/arrangement.
104569 2006-07-14  Simon Josefsson  <jas@extundo.com>
104571         * doc/gnulib.texi (Libtool and Windows): New section.
104573 2006-07-12  Simon Josefsson  <jas@extundo.com>
104575         * modules/gendocs (License): Fix license, approved by Karl.
104577 2006-07-12  Eric Blake  <ebb9@byu.net>
104579         * MODULES.html.sh: Add gendocs.
104581 2006-07-11  Eric Blake  <ebb9@byu.net>
104583         * modules/fdl: New module, to install doc/fdl.texi.
104584         * MODULES.html.sh: Add new section for documentation modules.
104585         * gnulib-tool: Avoid space-tab.
104586         (--doc-base): New option, to manage files from doc.
104588 2006-07-11  Eric Blake  <ebb9@byu.net>
104590         * m4/absolute-header.m4: Fix comments to match recent change.
104592 2006-07-11  Eric Blake  <ebb9@byu.net>
104594         * gnulib-tool: List --doc-base before --tests-base.
104596 2006-07-11  Derek R. Price  <derek@ximbiot.com>
104598         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
104600 2006-07-11  Bruno Haible  <bruno@clisp.org>
104602         * README: Mention where to put documentation.
104604 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104606         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
104608 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
104610         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
104611         to stdint.m4.
104613 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
104615         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
104616         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
104617         "no/such/file/stdint.h" when there is no such file, so that
104618         the resulting C code can be parsed by dodgy compilers.
104619         Problems reported by Bob Proulx.
104621 2006-07-10  Derek R. Price  <derek@ximbiot.com>
104623         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
104624         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
104625         macros into the GNU _D_EXACT_NAMLEN.
104626         * lib/savedir.c:  Likewise.
104627         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
104629 2006-07-10  Derek R. Price  <derek@ximbiot.com>
104630         and Paul Eggert  <eggert@cs.ucla.edu>
104632         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
104633         * m4/savedir.m4:
104634         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
104635         macros into the GNU _D_EXACT_NAMLEN.
104637 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
104639         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
104640         around the absolute name, to work around a problem with the HP-UX
104641         11.23 native C compiler, reported by Bob Proulx.
104643 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
104645         * doc/maintain.texi, make-stds.texi: Sync from
104646         <http://savannah.gnu.org/projects/gnustandards>.
104648 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
104650         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
104652 2006-07-09  Jim Meyering  <jim@meyering.net>
104654         * m4/glob.m4: Remove a doubled word in a comment.
104656 2006-07-09  Jim Meyering  <jim@meyering.net>
104658         * lib/argp-pv.c: Remove a doubled word in a comment.
104659         * lib/check-version.c (check_version): Likewise.
104660         * lib/javacomp.c (compile_java_class): Likewise.
104662 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
104664         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
104665         for the benefit of people using Autoconf 2.60.  If you want to
104666         support older Autoconf versions you can copy m4/onceonly_2_57.m4
104667         (or m4/onceonly.m4, if pre-2.57) manually.
104669 2006-07-08  Jim Meyering  <jim@meyering.net>
104671         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
104672         comment.
104673         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
104674         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
104675         comment.
104677 2006-07-08  Jim Meyering  <jim@meyering.net>
104679         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
104681 2006-07-07  Simon Josefsson  <jas@extundo.com>
104683         * tests/test-crc.c: Change expected crc value, the test vector
104684         were probably computed using the old broken crc.c?
104686 2006-07-06  Simon Josefsson  <jas@extundo.com>
104688         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
104689         now the canonical place for the M4 file).
104691         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
104692         from the sys_socket dependency now.
104694         * modules/inet_pton (Files): Ditto.
104696         * modules/inet_ntop (Files): Ditto.
104698 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
104700         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
104701         not gl_PREREQ_GETUSERSHELL.
104703 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104705         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
104706         with only one argument, for Autoconf 2.60.
104707         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
104708         expand to nothing, so add a shell command to avoid syntax error.
104709         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
104711 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104713         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
104715 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
104717         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
104718         no longer needed.  Check for isblank decl.
104719         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
104720         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
104721         of existence.
104723 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
104725         * lib/getloadavg.c: Use __VMS, not VMS.
104726         * lib/getopt.c: Likewise.
104727         * lib/getpagesize.h: Likewise.
104728         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
104729         and probably does not work.
104731 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
104733         * lib/.cppi-disable: Add wcwidth.
104734         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
104735         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
104736         (ISGRAPH): Remove.  All uses changed to isgraph.
104737         (FOLD) [!defined _LIBC]: Remove special case.
104738         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
104739         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
104740         HAVE_ISBLANK.
104741         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
104742         case.
104744 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
104746         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
104747         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
104748         brackets.  Other minor changes to suppress some compiler
104749         warnings.
104751 2006-07-06  Derek R. Price  <derek@ximbiot.com>
104752         and Paul Eggert  <eggert@cs.ucla.edu>
104754         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
104755         of invoking obsolescent AC_HEADER_DIRENT macro.
104756         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
104757         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
104758         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
104759         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
104760         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
104761         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
104762         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
104763         * m4/readdir.m4: Remove; no longer needed.
104765 2006-07-06  Derek R. Price  <derek@ximbiot.com>
104766         and Paul Eggert  <eggert@cs.ucla.edu>
104768         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
104769         Don't worry about this obsolete case any more.
104770         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
104771         directories.
104772         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
104773         worry about this obsolete case any more.
104774         * lib/fts.c: Likewise.
104775         * lib/getcwd.c: Likewise.
104776         * lib/glob.h: Likewise.
104777         * lib/savedir.c: Likewise.
104779 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
104781         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
104782         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
104783         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
104784         needed.
104785         All uses removed.
104786         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
104787         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
104788         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
104789         needed.
104790         * m4/getdate.m4 (gl_GETDATE): Likewise.
104791         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
104792         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
104793         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
104794         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
104795         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
104796         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
104797         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
104798         needed.
104800 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
104802         * lib/memcasecmp.c: Include <limits.h>.
104803         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
104804         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
104805         Don't assume isdigit succeeds only on '0' through '9'.
104807 2006-07-05  Eric Blake  <ebb9@byu.net>
104809         * modules/getaddrinfo (Depends-on): Add snprintf.
104811 2006-07-05  Eric Blake  <ebb9@byu.net>
104813         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
104814         to avoid 'header present but could not be compiled' on cygwin.
104816 2006-07-05  Eric Blake  <ebb9@byu.net>
104818         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
104819         missing from netdb.h.
104820         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
104822 2006-07-05  Derek R. Price  <derek@ximbiot.com>
104824         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
104825         no longer needed.
104826         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
104827         * m4/getdate.m4 (gl_GETDATE): Likewise.
104828         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
104829         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
104830         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
104831         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
104832         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
104834 2006-07-05  Derek R. Price  <derek@ximbiot.com>
104836         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
104837         All uses of is_space replaced by isspace.
104838         * lib/exit.h: Don't talk about STDC_HEADERS.
104839         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
104840         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
104841         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
104842         replaced by isprint etc.
104843         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
104844         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
104845         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
104846         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
104847         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
104848         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
104850 2006-07-05  Bruno Haible  <bruno@clisp.org>
104852         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
104853         the function exists, before testing against AIX.
104854         Reported by Martin Lambers <marlam@marlam.de>.
104856 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
104858         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
104859         From Mark D. Baushke.
104861 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
104863         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
104864         to the absolute name, not just one, to bypass Sun C 5.8's
104865         "warning: #include of /usr/include/... may be non-portable".
104867 2006-07-04  Eric Blake  <ebb9@byu.net>
104869         * modules/dirname-tests: New test module.
104870         * tests/test-dirname.c: New file, replacing dirname.c
104871         TEST_DIRNAME section that was recently deleted.
104873 2006-07-04  Bruno Haible  <bruno@clisp.org>
104875         Assume ANSI C header files and <ctype.h> functions.
104876         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
104877         (mbsnwidth): Use isprint, iscntrl instead.
104879 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
104881         Merge from coreutils.
104882         * MODULES.html.sh: Add xstrtold.
104883         * modules/xstrtold: New file.
104884         * modules/cycle-check (Files): Add lib/same-inode.h.
104885         * modules/dirname (Files): Add m4/double-slash-root.m4.
104886         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
104887         * modules/mkdir-p (Files): Add lib/same-inode.h.
104888         * modules/same (Files): Add lib/same-inode.h.
104890 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
104892         * m4/absolute-header.m4: Renamed from full-header-path.m4.
104893         This is to keep the terminology clean; POSIX talks about
104894         "absolute pathnames", not "full pathnames", but the GNU
104895         Coding Standards say to use "path" for something else;
104896         so use "absolute" to keep both sides happy.
104897         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
104898         Set gl_absolute_header, not gl_full_header_path.
104899         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
104900         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
104901         All uses changed.
104903         Merge from coreutils.
104905         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
104907         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
104908         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
104909         want to require the building of c-strtod.o.
104910         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
104911         needs -lm directly.
104912         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
104914         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
104916         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
104917         --as-needed option if available.  Problem reported by Albert Chin in
104918         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
104919         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
104920         cc merely issues a bunch of annoying warnings for --as-needed
104921         (this problem was reported by Bob Proulx).  Also, try linking with
104922         -lm to detect a bug in binutils 2.16 (this problem was reported
104923         by Ralf Wildenhues).
104925         2006-06-18  Jim Meyering  <jim@meyering.net>
104927         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
104928         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
104929         macro.
104930         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
104931         also check for glibc-2.4's abort-inducing bug.
104933         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
104934         Low-probability clean-up should be to use rmdir to get rid of
104935         the just-created directory, not unlink.
104937         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
104938         configure fail, and request a bug report to inform us about it.
104939         Add a comment that, barring reports to the contrary, in 2007 we'll
104940         assume ftruncate is universally available.
104942         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
104944         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
104946         2006-03-12  Jim Meyering  <jim@meyering.net>
104948         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
104949         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
104950         * m4/same.m4 (gl_SAME): Likewise.
104951         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
104953         2006-03-11  Eric Blake  <ebb9@byu.net>
104955         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
104956         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
104957         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
104958         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
104960 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
104962         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
104963         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
104964         reported by Mark D. Baushke, one in
104965         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
104967         Merge from coreutils.
104969         * lib/.cppi-disable: Add stdint_.h.
104970         * lib/.cvsignore: Add stdint.h.
104972         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
104974         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
104975         both double and long double versions.
104976         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
104977         * lib/xstrtold.c: New file.
104978         * lib/xstrtod.h (xstrtold): New decl.
104980         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
104982         * lib/filemode.c (setst): Remove.
104983         (strmode): Rewrite to avoid setst.  This makes the code shorter,
104984         (arguably) clearer, and the generated code is a bit smaller on my
104985         Debian GNU/Linux stable x86 host.
104987         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
104989         * lib/filemode.c: Include "filemode.h" first, to test the interface.
104990         Assume that filemode.h includes sys/types.h and sys/stat.h.
104991         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
104992         (ftypelet): Reorder to put common cases first, for efficiency.
104993         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
104994         to do 'M'.
104995         (strmode): Renamed from mode_string, and now stores 12 bytes instead
104996         of 10, for compatibility with FreeBSD.  All callers changed.
104997         (filemodestring): Now stores 12 bytes instead of 10, and sets file
104998         types that can't be deduced solely from st_mode.  First arg is now a
104999         const pointer.
105000         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
105001         (strmode): Renamed from mode_string.
105002         (filemodestring): New decl.
105003         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
105004         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
105005         needed.
105006         (S_ISPORT, S_ISWHT): New macros, if not already defined.
105008         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
105010         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
105011         fsusage.h now does that.  Include fsusage.h first, to test interface.
105012         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
105013         at most one method (the old code could have generated decls that
105014         didn't conform to C89, not that this was ever exercised).
105015         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
105017         2006-03-19  Jim Meyering  <jim@meyering.net>
105019         Work even in a chroot where d_ino values for entries in "/"
105020         don't match the stat.st_ino values for the same names.
105021         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
105022         number, iterate through all entries again, using lstat instead.
105023         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
105024         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
105026         * lib/getcwd.c (__getcwd): Clarify a comment.
105027         Use memcpy in place of a call to strcpy.
105029         2006-03-12  Jim Meyering  <jim@meyering.net>
105031         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
105032         matches that of the current directory (which we're about to chdir ".."
105033         out of), then save the dev-ino of the parent, instead.
105035         * lib/same-inode.h (SAME_INODE): New file/macro.
105036         * lib/chdir-safer.c (SAME_INODE): Remove definition.
105037         Include "same-inode.h", instead.
105038         * lib/same.c: Likewise.
105039         * lib/cycle-check.h: Include "same-inode.h".
105040         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
105041         * lib/cycle-check.c (SAME_INODE): Remove definition.
105042         * lib/root-dev-ino.h: Include "same-inode.h".
105044         2006-03-11  Eric Blake  <ebb9@byu.net>
105046         * lib/same.c (same_name): s/base_name/last_component/
105047         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
105048         * lib/filenamecat.c (file_name_concat): Likewise.
105050         2006-03-11  Eric Blake  <ebb9@byu.net>,
105051                     Paul Eggert  <eggert@cs.ucla.edu>
105053         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
105054         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
105055         drive prefix.
105056         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
105057         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
105058         (last_component): New method.
105059         * lib/dirname.c (dir_len): Determine when drive letters need a
105060         subsequent slash.  Preserve // when it is special.
105061         (dir_name): Don't append dot when drive letter is absolute.
105062         [TEST_DIRNAME]: Move into a full-blown gnulib test.
105063         * lib/basename.c (base_name): New semantics - malloc the result.
105064         Preserve // when it is special.  Preserve relative files that look
105065         like drive letters.
105066         (base_len): Preserve // when it is special.
105067         (last_component): New method, similar to old base_name semantics.
105068         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
105069         base_name.  Strip redundant slashes from ///.
105071 2006-07-03  Jim Meyering  <jim@meyering.net>
105073         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
105074         macro is used before the first cycle_check call.
105076 2006-07-03  Eric Blake  <ebb9@byu.net>
105078         * modules/dirname (Depends-on): Add xstrndup.
105080 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
105082         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
105083         test cases, so that config.log is a bit easier to follow.
105085 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
105087         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
105088         both are 64 bits, since this seems to be the tradition, and this
105089         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
105090         we ever run into a host that prefers long long to long in this
105091         case, we'll need another configure-time test.  Problem reported by
105092         Jim Meyering.
105094 2006-07-02  Eric Blake  <ebb9@byu.net>
105096         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
105098 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
105100         * modules/inttypes (Depends-on): No longer depends on stdint.
105101         * modules/stdint (Description): Say more about assumptions.
105102         Say that the fast types might differ.  Say macros are used.
105103         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
105104         (Makefile.am): Revise list of substituted symbols to match
105105         new stdint.m4.
105106         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
105107         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
105108         * tests/test-stdint.c (verify_same_types)
105109         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
105110         the code conforms to C99/C89.
105111         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
105112         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
105114 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
105116         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
105117         but fix a bug, by requiring at least 64 bits.
105118         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
105119         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
105120         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
105121         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
105123         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
105124         changes.  Make 2.59 a prerequisite.  Check and substitute for
105125         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
105126         inttypes.h.  Do not use special include files; just use the
105127         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
105128         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
105129         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
105130         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
105131         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
105132         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
105133         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
105134         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
105135         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
105136         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
105137         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
105138         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
105139         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
105140         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
105141         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
105142         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
105143         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
105144         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
105145         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
105146         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
105147         WINT_MAX.  Check for C99 conformance more strictly, by detecting
105148         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
105149         not check for things that C99 does not require, e.g., int8_t.  If
105150         a test isn't needed unless <stdint.h> isn't working, and is
105151         unlikely to be needed for any other reason, then don't do it
105152         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
105153         size_t, since we assume C89 freestanding at least.  Do not check
105154         for sig_atomic_t, wchar_t, or wint_t, since the code now does
105155         the right thing even if the types are not defined.  Instead use:
105156         (gl_STDINT_TYPE_PROPERTIES): New macro.
105157         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
105158         testing whether <sys/types.h> clashes, as Autoconf does this for
105159         us now.  All uses removed.
105160         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
105161         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
105162         (gl_CHECK_TYPE_SAME):
105163         Remove; no longer needed.
105164         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
105165         exists, since we'll return 0 anyway in that case.
105166         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
105168 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
105170         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
105171         possible collision with system files.
105172         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
105173         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
105174         WCHAR_MIN and WCHAR_MAX in this case.
105175         (<stddef.h>): Do not include; no longer needed.
105176         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
105177         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
105178         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
105179         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
105180         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
105181         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
105182         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
105183         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
105184         !defined(__c99))]: Include in this case too, since it's harmless
105185         now.
105186         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
105187         dangerous to do so.
105188         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
105189         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
105190         (_STDINT_MIN, _STDINT_MAX): New macros.
105191         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
105192         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
105193         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
105194         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
105195         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
105196         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
105197         macros, not typedefs; this simplifies things quite a bit.
105198         Use long int for all types narrower than int64_t.
105199         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
105200         Define in terms of long long int or int64_t or long int,
105201         not int64_t or int32_t.  This saves some compile-time testing.
105202         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
105203         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
105204         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
105205         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
105206         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
105207         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
105208         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
105209         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
105210         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
105211         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
105212         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
105213         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
105214         undef any previous version and define our own version, for
105215         simplicity and consistency with the new macros for types.
105216         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
105217         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
105218         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
105219         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
105220         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
105221         @WINT_T_SUFFIX@ to keep things simple here.
105222         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
105223         Simplify by assuming typical 8/16/32/64 host, since we're
105224         already doing that elsewhere anyway.
105225         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
105226         and assume long long int is 64 bits if available.  This
105227         speeds up 'configure'.
105229 2006-07-01  Eric Blake  <ebb9@byu.net>
105231         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
105232         Reported by Andreas Buening.
105234 2006-07-01  Eric Blake  <ebb9@byu.net>
105236         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
105238 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
105240         * lib/getaddrinfo.c: fixed typo
105242 2006-06-29  Jim Meyering  <jim@meyering.net>
105244         * modules/strftime (Maintainer): Add my name, since with the
105245         FPRINTFTIME changes strftime.c has forked from glibc.
105247 2006-06-29  Eric Blake  <ebb9@byu.net>
105249         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
105251 2006-06-29  Eric Blake  <ebb9@byu.net>
105253         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
105255 2006-06-29  Eric Blake  <ebb9@byu.net>
105257         * lib/stat_.h: New file.
105259 2006-06-29  Eric Blake  <ebb9@byu.net>
105261         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
105262         unused static function.
105264 2006-06-29  Eric Blake  <ebb9@byu.net>
105266         * doc/functions.texi (Function Portability): Document missing lstat
105267         on mingw.
105269 2006-06-29  Eric Blake  <ebb9@byu.net>
105271         * MODULES.html.sh: Add sys_stat.
105272         * modules/sys_stat: New module.
105273         * modules/mkstemp (Depends-on): Add sys_stat.
105275 2006-06-29  Derek R. Price  <derek@ximbiot.com>
105277         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
105279 2006-06-29  Derek R. Price  <derek@ximbiot.com>
105281         * m4/c-bs-a.m4: Removed.
105283 2006-06-29  Derek R. Price  <derek@ximbiot.com>
105285         * lib/strftime.c: Assume strftime() exists.
105287 2006-06-29  Derek Price  <derek@ximbiot.com>
105289         * modules/c-bs-a: Removed - \a is C89.
105290         * MODULES.html.sh: Remove c-bs-a.
105292 2006-06-29  Bruno Haible  <bruno@clisp.org>
105294         * modules/wcwidth (License): Change to LGPL.
105296 2006-06-28  Simon Josefsson  <jas@extundo.com>
105298         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
105299         on _WIN32.
105301         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
105302         getnameinfo.
105304 2006-06-28  Simon Josefsson  <jas@extundo.com>
105306         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
105308 2006-06-28  Simon Josefsson  <jas@extundo.com>
105310         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
105311         functions there.  It will succeed on Windows XP, but on Windows
105312         2000 and (presumably) earlier, it will fail, and use the internal
105313         re-implementation.
105314         (use_win32_p): New function.
105315         (getaddrinfo): Use strtoul on servname, to support numeric ports.
105316         Support AI_NUMERICSERV to disable getservbyname.
105317         (getnameinfo): New function, only supports
105318         NI_NUMERICHOST|NI_NUMERICSERV for now.
105320         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
105321         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
105322         getnameinfo.
105324 2006-06-28  Eric Blake  <ebb9@byu.net>
105326         * modules/wcwidth: New file.
105327         * modules/mbchar (Depends-on): Add wcwidth.
105328         * modules/mbswidth (Depends-on): Add wcwidth.
105329         * MODULES.html.sh: Add wcwidth.
105331 2006-06-28  Eric Blake  <ebb9@byu.net>
105333         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
105334         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
105336 2006-06-28  Eric Blake  <ebb9@byu.net>
105338         * lib/xvasprintf.h: Fix comments.
105340 2006-06-28  Eric Blake  <ebb9@byu.net>
105342         * lib/mbchar.h (wcwidth): Include wcwidth.h.
105343         * lib/mbswidth.c (wcwidth): Move from here...
105344         * lib/wcwidth.h: ...to this new file.
105346 2006-06-28  Derek R. Price  <derek@ximbiot.com>
105348         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
105350         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
105351         it's obsolete.
105352         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
105354 2006-06-28  Derek R. Price  <derek@ximbiot.com>
105356         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
105357         Autoconf 2.60 says this stuff was obsolete.
105359 2006-06-28  Bruno Haible  <bruno@clisp.org>
105361         * modules/wcwidth (Files): Add m4/wchar_t.m4.
105363 2006-06-28  Bruno Haible  <bruno@clisp.org>
105365         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
105366         gt_TYPE_WCHAR_T.
105368 2006-06-28  Bruno Haible  <bruno@clisp.org>
105370         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
105371         declaration for wcwidth.
105372         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
105374 2006-06-28  Bruno Haible  <bruno@clisp.org>
105376         * lib/mkdtemp.c [MINGW]: Include <io.h>.
105377         (mkdir): Define using _mkdir.
105379 2006-06-28  Bruno Haible  <bruno@clisp.org>
105381         * lib/getaddrinfo.h: Fix POSIX URL.
105382         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
105383         _WIN32.
105384         (use_win32_p): Make static.
105385         (getaddrinfo): Reject service name if it is empty or does not consist
105386         solely of decimal digits, or if its value is > 65535.
105387         (getnameinfo): Remove useless casts.
105389 2006-06-27  Simon Josefsson  <jas@extundo.com>
105391         * modules/sys_select: New file, suggested by Bruno Haible, Paul
105392         Eggert and Martin Lambers.
105394 2006-06-27  Simon Josefsson  <jas@extundo.com>
105396         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
105397         Eggert and Martin Lambers.
105399 2006-06-27  Bruno Haible  <bruno@clisp.org>
105401         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
105402         result to 0, not to empty.
105403         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
105405 2006-06-27  Bruno Haible  <bruno@clisp.org>
105407         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
105409 2006-06-26  Simon Josefsson  <jas@extundo.com>
105411         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
105412         present.
105414 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
105416         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
105417         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
105418         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
105420 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
105422         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
105424 2006-06-26  Bruno Haible  <bruno@clisp.org>
105426         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
105428 2006-06-26  Bruno Haible  <bruno@clisp.org>
105430         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
105432 2006-06-26  Bruno Haible  <bruno@clisp.org>
105434         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
105435         SGI C compiler in pre-C99 mode.
105436         Suggested by Mark D. Baushke and Larry Jones.
105438 2006-06-26  Bruno Haible  <bruno@clisp.org>
105440         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
105441         WCHAR_MAX.
105442         Reported by Mark D. Baushke and Larry Jones.
105444 2006-06-26  Bruno Haible  <bruno@clisp.org>
105446         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
105447         in pre-C99 mode.
105448         Suggested by Mark D. Baushke and Larry Jones.
105450 2006-06-23  Simon Josefsson  <jas@extundo.com>
105451             Bruno Haible  <bruno@clisp.org>
105453         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
105454         Emit mostlyclean-local rule.
105455         (func_emit_tests_Makefile_am): Likewise.
105456         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
105458 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
105460         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
105462 2006-06-23  Bruno Haible  <bruno@clisp.org>
105464         * tests/test-stdint.c: Update to match ISO C 99 Technical
105465         Corrigendum 1.
105467 2006-06-23  Bruno Haible  <bruno@clisp.org>
105469         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
105471 2006-06-23  Bruno Haible  <bruno@clisp.org>
105473         * lib/stdint_.h: Treat IRIX like OpenBSD.
105475 2006-06-23  Bruno Haible  <bruno@clisp.org>
105477         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
105478         ISO C 99 Technical Corrigendum 1.
105480 2006-06-22  Simon Josefsson  <jas@extundo.com>
105482         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
105483         MinGW.
105485 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
105487         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
105488         needed.  Some compiler complained about some of them.  Problem reported
105489         by Larry Jones in
105490         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
105492 2006-06-21  Simon Josefsson  <jas@extundo.com>
105494         * tests/test-getaddrinfo.c: New file.
105496         * modules/getaddrinfo-tests: New file.
105498         * MODULES.html.sh: Add inet_pton.
105500         * modules/inet_pton: New file.
105502 2006-06-21  Simon Josefsson  <jas@extundo.com>
105504         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
105505         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
105506         of using the (limited) gnulib implementation on Windows XP.
105508         * m4/inet_pton.m4: New file.
105510 2006-06-21  Simon Josefsson  <jas@extundo.com>
105512         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
105513         variable.
105515         * lib/socket_.h: Don't define WINVER.
105517         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
105518         slightly modified to work in gnulib.
105520 2006-06-21  Simon Josefsson  <jas@extundo.com>
105522         * doc/gnulib.texi (Windows sockets): Add.
105524 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
105526         * lib/read-file.c (fread_file): Start with buffer allocation of
105527         0 bytes rather than 1 byte; this simplifies the code.
105528         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
105529         code to free buffer and save/restore errno.
105530         (internal_read_file): Remove unused local.
105532 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
105534         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
105535         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
105536         Problem reported by Denis Excoffier in
105537         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
105539 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105541         * modules/sys_socket, modules/socklen: Include sys/types since
105542         FreeBSD 4.x's sys/socket.h needs it.
105544 2006-06-19  Simon Josefsson  <jas@extundo.com>
105546         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
105548 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
105550         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
105552 2006-06-19  Bruno Haible  <bruno@clisp.org>
105554         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
105555         and FULL_PATH_INTTYPES_H in angle brackets.
105556         Reported by Mark D. Baushke <mdb@gnu.org>.
105558 2006-06-17  Eric Blake  <ebb9@byu.net>
105560         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
105561         errno.
105563 2006-06-17  Bruno Haible  <bruno@clisp.org>
105565         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
105566         <sys/inttypes.h>.
105568 2006-06-17  Bruno Haible  <bruno@clisp.org>
105570         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
105571         whether errno is declared. Assume <errno.h> declares errno.
105573 2006-06-17  Bruno Haible  <bruno@clisp.org>
105575         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
105577 2006-06-17  Bruno Haible  <bruno@clisp.org>
105579         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
105580         problem on Solaris 2.5.1.
105582 2006-06-16  Eric Blake  <ebb9@byu.net>
105584         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
105585         * lib/unicodeio.c [!defined errno]: Likewise.
105586         * lib/strtol.c [!defined errno]: Likewise.
105587         * lib/strtod.c [!defined errno]: Likewise.
105589 2006-06-15  Eric Blake  <ebb9@byu.net>
105591         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
105593 2006-06-15  Eric Blake  <ebb9@byu.net>
105595         * config/srclist.txt (ssize_t.m4): Lose sync.
105597 2006-06-15  Bruno Haible  <bruno@clisp.org>
105599         * modules/stdint (Files): Include m4/full-header-path.m4,
105600         m4/size_max.m4, m4/wchar_t.m4.
105601         (Makefile.am): Many more substitutions.
105602         * modules/stdint-tests: New file.
105603         * tests/test-stdint.c: New file.
105605 2006-06-15  Bruno Haible  <bruno@clisp.org>
105607         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
105608         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
105609         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
105610         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
105611         gl_CHECK_TYPE_SAME): New macros.
105613 2006-06-15  Bruno Haible  <bruno@clisp.org>
105615         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
105617 2006-06-15  Bruno Haible  <bruno@clisp.org>
105619         * lib/stdint_.h: Rewritten to be fully auto-configured.
105620         Fixes bug on HP-UX/IA64.
105622 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
105624         * lib/getdate.y (__attribute__): Don't define if already defined.
105625         Problem reported by Larry Jones.
105626         * lib/utimens.c (__attribute__): Likewise.
105628 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
105630         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
105631         reported by Andreas Schwab.
105633 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105634             Bruno Haible  <bruno@clisp.org>
105636         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
105637         check for the declaration of strnlen and a run test that exposes the
105638         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
105639         rpl_strndup.
105641 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105642             Bruno Haible  <bruno@clisp.org>
105644         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
105646 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105648         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
105649         compile test, for Tru64 4.0D.
105651 2006-05-28  Karl Berry  <karl@gnu.org>
105653         * config/srclist.txt (printf-args.c): lose sync.
105655 2006-05-26  Martin Lambers  <marlam@marlam.de>
105657         * lib/getpass.c: Updates the test for the native W32 API, and adds
105658         missing includes, thus fixing compilation warnings.
105660 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
105662         * lib/exclude.c (exclude_fnmatch): New function.
105663         (excluded_file_name): Call exclude_fnmatch.
105664         * lib/exclude.h (excluded_file_name): New prototype
105666 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
105668         * lib/tempname.c (small_open, large_open): New macros.
105669         (__open, __open64) [!_LIBC]: Remove.
105670         (__gen_tempname): Use small_open and large_open instead of __open
105671         and __open64.  This fixes a portability bug on HP-UX 11.11i
105672         reported by Simon Wing-Tang in
105673         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
105675 2006-05-24  Bruno Haible  <bruno@clisp.org>
105677         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
105678         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
105679         Reported by Thorsten Maerz <torte@netztorte.de> via
105680         Aaron Stone <aaron@serendipity.cx>.
105682 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
105684         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
105685         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
105686         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
105687         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
105688         not really conditional on the cache.
105689         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
105691 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
105693         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
105694         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
105695         (my_usleep): Don't mishandle maximum value.
105697 2006-05-19  Jim Meyering  <jim@meyering.net>
105699         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
105701 2006-05-17  Bruno Haible  <bruno@clisp.org>
105703         Cygwin portability.
105704         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
105706 2006-05-17  Bruno Haible  <bruno@clisp.org>
105708         * lib/stdint_.h: Fix recognition of Cygwin.
105710 2006-05-15  Bruno Haible  <bruno@clisp.org>
105712         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
105713         on libtool patch by Ralf Wildenhues.
105715 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
105717         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
105718         test for C99 conformance; (bool) 0.5 is an integer constant
105719         expression, but (bool) -0.5 is not.  Problem reported by Fedor
105720         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
105722 2006-05-11  Simon Josefsson  <jas@extundo.com>
105724         * m4/xvasprintf.m4: Fix obvious typo.
105726 2006-05-11  Jim Meyering  <jim@meyering.net>
105728         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
105729         James Lemley.
105731 2006-05-10  Simon Josefsson  <jas@extundo.com>
105733         * lib/md4.c: Typo fix, update copyright years.
105734         (K1, K2): Don't use L because it turn computations into 64-bit on
105735         64-bit platforms.
105737 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
105739         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
105740         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
105741         unwanted sign propagation, e.g., on hosts with 64-bit int.
105742         There still are some problems with reeelly weird theoretical hosts
105743         (e.g., 33-bit int) but it's not worth worrying about now.
105744         * lib/sha1.c (rol): Likewise.
105745         (K1, K2, K3, K4): Remove unnecessary L suffix.
105747 2006-05-10  Bruno Haible  <bruno@clisp.org>
105749         * lib/des.c: Cast to avoid warnings.
105751 2006-05-09  Bruno Haible  <bruno@clisp.org>
105753         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
105754         (Depends-on): Depend also on xsize, stdarg.
105755         (configure.ac): Add gl_XVASPRINTF.
105757 2006-05-09  Bruno Haible  <bruno@clisp.org>
105759         * m4/xvasprintf.m4: New file.
105761 2006-05-09  Bruno Haible  <bruno@clisp.org>
105763         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
105764         (EOVERFLOW): Define fallback value.
105765         (xstrcat): New function.
105766         (xvasprintf): Recognize the special case of a string concatenation.
105768 2006-05-08  Eric Blake  <ebb9@byu.net>
105770         * gnulib-tool (func_version): Base copyright year on CVS date.
105771         (func_emit_copyright_notice): New function.
105772         (func_emit_lib_Makefile_am): Use it.
105773         (func_emit_tests_Makefile_am): Likewise.
105774         (func_import): Likewise.
105776 2006-05-08  Bruno Haible  <bruno@clisp.org>
105778         * modules/stdarg: New file.
105779         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
105781 2006-05-08  Bruno Haible  <bruno@clisp.org>
105783         * m4/stdarg.m4: New file, from GNU gettext.
105785 2006-05-08  Bruno Haible  <bruno@clisp.org>
105787         * config/srclist.txt (build-aux/config.rpath): different from latest
105788         release.
105790 2006-05-08  Bruno Haible  <bruno@clisp.org>
105792         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
105794 2006-05-05  Jim Meyering  <jim@meyering.net>
105796         * m4/warning.m4: New file, derived from bison's file by the same name.
105798 2006-05-03  Bruno Haible  <bruno@clisp.org>
105800         * lib/stdint_.h: Shorter URL.
105801         * lib/inttypes.h: Likewise.
105803 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
105805         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
105807 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
105809         * lib/verify.h: Document the internals better.  Most of this change
105810         was written by Bruno Haible.
105812 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
105814         * doc/verify.texi: New file, partly based on a proposal by
105815         Bruno Haible.
105817 2006-05-02  Bruno Haible  <bruno@clisp.org>
105819         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
105820         test from here...
105821         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
105823 2006-04-29  Bruno Haible  <bruno@clisp.org>
105825         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
105826         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
105828 2006-04-29  Bruno Haible  <bruno@clisp.org>
105830         * gnulib-tool: Make --update option actually work.
105832 2006-04-29  Bruno Haible  <bruno@clisp.org>
105834         * doc/gcd.texi: New file.
105835         * doc/gnulib.texi: Include it.
105837 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
105839         * lib/getdate.y (get_date): When adding relative date, start with the
105840         initial time, not with the result of the first mktime call.
105842 2006-04-25  Bruno Haible  <bruno@clisp.org>
105844         * gnulib-tool (func_import): Output the include directives in three
105845         blocks, sorted separately.
105846         Reported by Ben Pfaff <blp@cs.stanford.edu>.
105848 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
105850         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
105851         to define main with arguments, for C++.  Reported by Eric Blake.
105852         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
105853         Prefer 'int main ()' to 'int main (void)', for C++.
105854         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
105855         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
105856         for 'main', for C99 and C++.
105858 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
105860         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
105861         Don't assume that exit status -1 is valid.
105862         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
105863         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
105864         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
105865         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
105866         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
105867         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
105868         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
105869         functions can be used without declaring them, or that you can
105870         exit with status -1.
105871         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
105873 2006-04-24  Karl Berry  <karl@gnu.org>
105875         * config/srclist.txt (longdouble.m4): sync lost.
105877 2006-04-24  Eric Blake  <ebb9@byu.net>
105879         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
105881 2006-04-24  Bruno Haible  <bruno@clisp.org>
105883         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
105884         poll() implementation in AIX.
105885         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
105887 2006-04-24  Bruno Haible  <bruno@clisp.org>
105889         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
105890         assigned exactly once.
105892 2006-04-23  Claudio Fontana  <claudio@gnu.org>
105893             Bruno Haible  <bruno@clisp.org>
105895         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
105896         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
105897         for AM_CPPFLAGS.
105899 2006-04-23  Bruno Haible  <bruno@clisp.org>
105901         * modules/copy-file: Depend on unistd.
105902         * modules/execute: Likewise.
105903         * modules/fatal-signal: Likewise.
105904         * modules/findprog: Likewise.
105905         * modules/mkdtemp : Likewise.
105906         * modules/pipe: Likewise.
105907         * modules/wait-process: Likewise.
105909 2006-04-23  Bruno Haible  <bruno@clisp.org>
105911         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
105912         condition was already detected.
105913         Reported by Ben Pfaff <blp@cs.stanford.edu>.
105915 2006-04-23  Bruno Haible  <bruno@clisp.org>
105917         * lib/copy-file.c: Include <unistd.h> unconditionally.
105918         * lib/execute.c: Likewise.
105919         * lib/fatal-signal.c: Likewise.
105920         * lib/findprog.c: Likewise.
105921         * lib/mkdtemp.c: Likewise.
105922         * lib/pipe.h: Likewise.
105923         * lib/pipe.c: Likewise.
105924         * lib/wait-process.h: Likewise.
105926 2006-04-23  Bruno Haible  <bruno@clisp.org>
105928         * gnulib-tool (func_usage): Fix --import description. Document
105929         --update.
105930         (func_import): Create temporary file in a temporary directory, if
105931         --dry-run is specified. Silence errors from 'grep' when there are no
105932         m4 files in $m4dir.
105933         (func_create_testdir): Silence errors from 'grep' when there are no
105934         m4 files in $m4dir.
105935         Reported by Karl Berry <karl@freefriends.org>.
105937 2006-04-20  Bruno Haible  <bruno@clisp.org>
105939         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
105940         one argument, so that the code will be portable to Autoconf 2.60.
105941         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
105942         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
105943         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
105945 2006-04-19  Derek Price  <derek@ximbiot.com>
105946             Eric Blake  <ebb9@byu.net>
105948         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
105949         rather than "/full/path.h".  Update comment to match.  Shorten &
105950         generalize m4_translit call via AS_TR_CPP.
105952 2006-04-19  Derek Price  <derek@ximbiot.com>
105953             Eric Blake  <ebb9@byu.net>
105955         * lib/inttypes.h: Correct grammar in comment.
105957 2006-04-18  Derek Price  <derek@ximbiot.com>
105958             Paul Eggert  <eggert@cs.ucla.edu>
105960         * modules/inttypes: New file.
105961         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
105963 2006-04-18  Derek Price  <derek@ximbiot.com>
105964             Paul Eggert  <eggert@cs.ucla.edu>
105966         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
105967         New files.
105969 2006-04-18  Derek Price  <derek@ximbiot.com>
105970             Paul Eggert  <eggert@cs.ucla.edu>
105972         * lib/inttypes.h: New file.
105973         * lib/strtoimax.c: Assume <inttypes.h>.
105975 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
105977         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
105978         isn't mounted.  Problem reported by Kir Kolyshkin.
105980 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
105982         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
105983         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
105984         Derek R. Price.
105985         * lib/regex.h (RE_DUP_MAX): Update comment to match current
105986         implementation.
105988 2006-04-12  Eric Blake  <ebb9@byu.net>
105990         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
105991         is now done automatically by the corresponding Autoconf macro.
105993 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
105995         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
105996         time_r.h.
105998 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
106000         Merge regex changes from libc, removing some of our
106001         POSIX-conformance changes that were rejected and redoing them in a
106002         less-intrusive way.
106004         * lib/regcomp.c (re_compile_internal, init_dfa):
106005         Length arg is now size_t, not Idx.  All uses changed.
106006         (peek_token): Forward decl now says internal_function.
106007         (__re_error_msgid, __re_error_msgid_idx):
106008         Now static rather than extern with attribute_hidden.
106009         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
106010         For some reason libc prefers K&R style defns for external functions.
106011         (regerror) [!defined _LIBC]: Likewise.
106012         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
106013         (seek_collating_symbol_entry, lookup_collation_sequence_value):
106014         (build_range_exp, build_collating_symbol):
106015         Use K&R-style defn.
106016         (re_compile_fastmap): Use '\0' to memset, not 0.
106017         (utf8_sb_map): Make the calculations more obvious.
106018         (init_dfa, parse_bracket_exp, build_charclass_op):
106019         Call calloc and cast result, as glibc does.
106020         (init_word_char, fetch_token, peek_token, peek_token_bracket):
106021         (build_range_exp, build_collating_symbol):
106022         Now internal functions.
106024         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
106026         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
106027         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
106028         Don't depend on VMS; depend on __VMS instead, for POSIX
106029         namespace cleanness.
106030         (regoff_t): Define to ssize_t, not long int.
106032         Remove the REG_ macros named below.  Instead, make the old names
106033         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
106034         __USE_GNU_REGEX.
106035         (REG_BACKSLASH_ESCAPE_IN_LISTS):
106036         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
106037         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
106038         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
106039         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
106040         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
106041         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
106042         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
106043         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
106044         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
106045         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
106046         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
106047         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
106048         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
106049         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
106050         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
106051         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
106052         (REG_NREGS):
106053         Remove.  All uses replaced by the old RE_* names.
106054         (RE_BACKSLASH_ESCAPE_IN_LISTS):
106055         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
106056         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
106057         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
106058         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
106059         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
106060         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
106061         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
106062         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
106063         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
106064         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
106065         Don't bother having these macros be independent of each others'
106066         values, since they no longer exist in the POSIX name space.
106068         Rename the following member names back to their old names,
106069         unless !__USE_GNU_REGEX.  All uses changed back.
106070         (buffer): Renamed from re_buffer.
106071         (allocated): Renamed from re_allocated.
106072         (used): Renamed from re_used.
106073         (syntax): Renamed from re_syntax.
106074         (fastmap): Renamed from re_fastmap.
106075         (translate): Renamed from re_translate.
106076         (can_be_null): Renamed from re_can_be_null.
106077         (regs_allocated): Renamed from re_regs_allocated.
106078         (fastmap_accurate): Renamed from re_fastmap_accurate.
106079         (no_sub): Renamed from re_no_sub.
106080         (not_bol): Renamed from re_not_bol.
106081         (not_eol): Renamed from re_not_eol.
106082         (newline_anchor): Renamed from re_newline_anchor.
106083         (num_regs): Renamed from rm_num_regs.
106084         (start): Renamed from rm_start.
106085         (end): Renamed from rm_end.
106087         (free_state): Move up a bit.
106089         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
106090         #define to be empty.
106091         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
106092         when that is what is intended.
106093         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
106094         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
106095         (MAX): New macro.
106096         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
106097         All uses changed back to re_malloc, etc.  It's now the caller's
106098         responsibility to check for overflow; all callers changed.
106099         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
106100         (re_x2nrealloc): Remove.
106101         (free_state): Remove decl.
106103         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
106104         (re_set_registers, re_exec):
106105         Use K&R-style defn.
106107         2006-01-31  Roland McGrath  <roland@redhat.com>
106109         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
106110         Reported by Mike Frysinger <vapier@gentoo.org>.
106112         2006-01-15  Andreas Jaeger  <aj@suse.de>
106114         [BZ #1950]
106115         * lib/regex_internal.c (re_string_reconstruct): Adjust for
106116         build_wcs_upper_buffer change.
106117         (build_wcs_upper_buffer): Change return type.
106119         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
106121         * lib/regex_internal.h: Include <stdint.h> if available.
106123         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
106125         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
106127         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
106129         * lib/regcomp.c: Adjust for changed secondary hash function.
106131         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
106133         * lib/regex.h: Pretty printing.
106134         Clean up namespace a bit.
106136         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
106138         * lib/regexec.c (update_cur_sifted_state, check_arrival,
106139         check_arrival_add_next_nodes): Avoid using uninitialized variable.
106141         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
106142                     Ulrich Drepper  <drepper@redhat.com>
106144         [BZ #1302]
106145         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
106146         changed.
106147         (bitset_word_t): Renamed from bitset_word.  All uses changed.
106149         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
106151         [BZ #281]
106152         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
106153         * lib/regcomp.c: Remove unnecessary uses of
106154         unsigned RE_TRANSLATE_TYPE.
106155         * lib/regex_internal.h: Likewise.
106156         * lib/regex_internal.c: Likewise.
106157         * lib/regexec.c: Likewise.
106158         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
106160         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
106162         * lib/regexec.c (find_recover_state): Remove unnecessary
106163         initialization.
106164         (transit_state_bkref): Make DFA a const pointer.
106165         (get_subexp): Likewise.
106166         (check_arrival): Likewise.
106167         (update_cur_sifted_state): Likewise.
106168         (re_search_internal): Likewise.
106169         (prune_impossible_nodes): Likewise.
106170         (acquire_init_state_context): Likewise.
106171         (proceed_next_node): Likewise.
106172         (set_regs): Likewise.
106173         (free_fail_stack_return): Likewise.
106174         (check_arrival_expand_ecl): Mark DFA parameter as const.
106175         (check_arrival_expand_ecl_sub): Likewise.
106176         (check_subexp_limits): Likewise.
106177         (sub_epsilon_src_nodes):  Likewise.
106178         (add_epsilon_src_nodes):  Likewise.
106179         (merge_state_array): Likewise.
106180         (update_regs): Likewise.
106181         (build_trtable): Likewise.
106182         (sift_states_backward): Mark MCTX parameter as const.
106183         (build_sifted_states): Likewise.
106184         (update_cur_sifted_state): Likewise.
106185         (sift_states_mkref): Likewise.
106186         (check_arrival_expand_ecl): Mark eclosure as const.
106187         (check_dst_limits_calc_pos_1): Likewise.
106188         * lib/regex_internal.h (re_match_context_t): Make dfa a const
106189         pointer.
106191         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
106193         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
106194         (transit_state_sb): Likewise.
106195         (transit_state_mb): Likewise.
106196         (sift_states_iter_mb): Likewise.
106197         (check_arrival_add_next_nodes): Likewise.
106198         (check_node_accept_bytes): Change first parameter to pointer-to-const.
106199         [_LIBC] (re_search_2_stub): Use mempcpy.
106201         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
106202         mbrtowc for very simple UTF-8 case.
106204         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
106205         a pointer-to-const.
106206         (re_acquire_state_context): Likewise.
106207         * lib/regex_internal.h: Adjust prototypes.
106209         * lib/regex.c: Prevent using C++ compilers.
106211         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
106212         (re_acquire_state_context): Likewise.
106214 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
106216         * modules/regex (Depends-on): Add ssize_t.
106218 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
106220         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
106221         translation table.
106223 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
106225         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
106227 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
106228             Bruno Haible  <bruno@clisp.org>
106230         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
106231         <sys/types.h> and <inttypes.h>.
106233 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106235         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
106236         `__error_t_defined', so argp.h will not typedef the former.
106238 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
106240         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
106241         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
106242         glibc names.  Even if glibc is changed to conform to POSIX, the
106243         traditional names will be available anyway, since regex depends on
106244         the extensions module.  Also, fix a longstanding typo in the
106245         implementation of Spencer ERE test #75 from grep 2.3.  Problems
106246         reported by Emanuele Giaquinta.  Also, change sense of cached
106247         variable, so that the message makes sense.
106249 2006-03-24  Simon Josefsson  <jas@extundo.com>
106251         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
106252         including some doc fixes.
106253         (base64_encode_alloc): Fix +1 bug on allocation failures.
106255 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106257         * lib/base64.c (base64_encode): Do not read past end of array with
106258         unsanitized input on systems with CHAR_BIT > 8.
106260 2006-03-24  Eric Blake  <ebb9@byu.net>
106262         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
106264 2006-03-22  Karl Berry  <karl@gnu.org>
106266         * config/srclist.txt (*setenv.[ch]): get from coreutils.
106267         * config/srclistvars.sh (COREUTILS): new var.
106269 2006-03-17  Jim Meyering  <jim@meyering.net>
106271         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
106272         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
106274 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
106276         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
106277         no longer needs it.  Instead, check that regoff_t is as least
106278         as wide as ptrdiff_t.
106280         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
106281         so that our regex.h stays compatible with the installed regex.
106282         This is helpful for installers who configure --without-included-regex.
106283         Problem reported by Emanuele Giaquinta.
106285 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
106287         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
106288         Typedef to long int, not to off_, as POSIX will likely change
106289         in that direction.
106291 2006-03-15  Eric Blake  <ebb9@byu.net>
106293         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
106295 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
106297         * lib/argp-help.c (validate_uparams): Fix typo
106298         * lib/argp-parse.c (argp_default_options): Consistently begin help
106299         messages with a lowercase letter.
106301 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
106303         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
106304         overrun buffers and shouldn't be used (much as gets shouldn't be
106305         used).
106306         * lib/time_r.c (asctime_r, ctime_r): Likewise.
106308 2006-03-08  Simon Josefsson  <jas@extundo.com>
106310         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
106311         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
106313 2006-03-08  Simon Josefsson  <jas@extundo.com>
106315         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
106316         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
106318 2006-03-08  Simon Josefsson  <jas@extundo.com>
106320         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
106321         signal that configure disabled the device.
106323 2006-03-08  Simon Josefsson  <jas@extundo.com>
106325         * build-aux/maint.mk: Fix refresh-po, to handle no translated
106326         languages.
106328 2006-03-07  Simon Josefsson  <jas@extundo.com>
106330         * modules/getopt (Depends-on): Add unistd.
106332         * modules/unistd: New file.
106334 2006-03-07  Simon Josefsson  <jas@extundo.com>
106336         * modules/gc-random: New file.
106338 2006-03-07  Simon Josefsson  <jas@extundo.com>
106340         * m4/unistd_h.m4: New file.
106342 2006-03-07  Simon Josefsson  <jas@extundo.com>
106344         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
106345         test to be side-effect free by storing the result in the cache
106346         variable gl_cv_lib_readline, and moving the assignment of
106347         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
106348         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
106350 2006-03-07  Simon Josefsson  <jas@extundo.com>
106352         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
106353         error on missing devices (the functions will return an error).
106355         * m4/gc.m4: Move random stuff to gc-random.m4
106357 2006-03-07  Simon Josefsson  <jas@extundo.com>
106359         * lib/unistd_.h: New file.
106361 2006-03-07  Simon Josefsson  <jas@extundo.com>
106363         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
106365 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
106367         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
106368         Problem reported by Juan Manuel Guerrero.
106370 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
106372         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
106373         the unistd module.
106374         * lib/getlogin_r.c: Likewise.
106375         * lib/getlogin_r.h: Likewise.
106376         * lib/glob.c: Likewise.
106377         * lib/pagealign_alloc.c: Likewise.
106378         * lib/unistd_.h: Remove; no longer needed.
106380 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
106382         * MODULES.html.sh (Support for systems lacking POSIX:2001):
106383         Add unistd.
106384         * modules/c-stack (Depends-on): Add unistd.
106385         * modules/getlogin_r: Likewise.
106386         * modules/glob: Likewise.
106387         * modules/pagealign_alloc: Likewise.
106388         * modules/unistd (Files): Remove lib/unistd_.h.
106389         (EXTRA_DIST): Remove.
106390         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
106391         need unistd_.h.
106392         (MOSTLYCLEANFILES): Remove unistd.h-t.
106394 2006-03-03  Simon Josefsson  <jas@extundo.com>
106396         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
106398 2006-03-03  Simon Josefsson  <jas@extundo.com>
106400         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
106401         libidn and bison.
106403 2006-03-03  Simon Josefsson  <jas@extundo.com>
106405         * build-aux/maint.mk: Add indent target.
106407 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
106409         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
106410         our replacement poll.h in any case, to avoid a differing
106411         declaration from a system header.  Seen on AIX.
106413 2006-03-01  Simon Josefsson  <jas@extundo.com>
106415         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
106416         <kasal@ucw.cz>.
106418 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106420         * modules/gettime (Depends-on): Add extensions module.
106421         * modules/nanosleep (Depends-on): Likewise.
106422         * modules/settime (Depends-on): Likewise.
106424 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106426         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
106427         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
106428         pedantically.
106429         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
106430         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
106432         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
106433         not "==".  Reported by Ralf Wildenhues.
106435 2006-03-01  Karl Berry  <karl@gnu.org>
106437         * doc/Copyright/request-*: new files, synced from gnuorg.
106439 2006-03-01  Karl Berry  <karl@gnu.org>
106441         * config/srclist.txt (Copyright/*): new entries.
106443 2006-02-28  Simon Josefsson  <jas@extundo.com>
106445         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
106447 2006-02-27  Simon Josefsson  <jas@extundo.com>
106449         * lib/base64.h: Indent #define's.  From Jim Meyering
106450         <jim@meyering.net>.
106452 2006-02-27  Jim Meyering  <jim@meyering.net>
106454         Revert the change of 2006-02-24, so these files can continue
106455         to be sync'd from gettext.
106456         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
106457         of `config.h'.
106459 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
106461         * modules/intprops: New file.
106462         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
106463         Add intprops.
106464         * modules/getloadavg (Files): Remove lib/intprops.h.
106465         (Depends-on): Add intprops.
106466         * modules/human: Likewise.
106467         * modules/inttostr: Likewise.
106468         * modules/openat: Likewise.
106469         * modules/sig2str: Likewise.
106470         * modules/userspec: Likewise.
106471         * modules/utimecmp: Likewise.
106472         * modules/xnanosleep: Likewise.
106473         * modules/xstrtol: Likewise.
106475 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
106477         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
106478         * modules/lock-tests (TESTS): Use $(EXEEXT).
106479         * modules/tls-tests: Likewise.
106480         * modules/argp-tests: Likewise.
106481         (check_PROGRAMS): New var, replacing...
106482         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
106484 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106486         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
106487         `config.h'.
106489 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
106491         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
106493 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106495         Sync from coreutils.
106496         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
106497         gl_CHDIR_SAFER.
106499 2006-02-22  Jim Meyering  <jim@meyering.net>
106501         Sync from coreutils.
106502         * m4/chdir-safer.m4: New file.
106504 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
106506         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
106507         AT_FDCWD exceeds INT_MAX.
106508         * lib/openat.h (AT_FDCWD): Likewise.
106510 2006-02-17  Eric Blake  <address@hidden>
106512         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
106514 2006-02-16  Simon Josefsson  <jas@extundo.com>
106516         * modules/getaddrinfo (Depends-on): Add sys_socket.
106518 2006-02-15  Simon Josefsson  <jas@extundo.com>
106520         * build-aux/maint.mk: Add dsyntax-check rule.
106522 2006-02-15  Eric Blake  <ebb9@byu.net>
106524         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
106525         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
106526         'present but cannot compile' warnings on cygwin.
106527         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
106528         use ws2tcpip.h if sys/socket.h works.
106529         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
106530         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
106532 2006-02-14  Simon Josefsson  <jas@extundo.com>
106534         * modules/maintainer-makefile (Files): Rename.
106536         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
106537         and (the local) Makefile.cfg to maint-cfg.mk.
106539         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
106540         to the latter.
106542         * modules/maintainer-makefile: New module.
106544         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
106545         severaly stripped to make it possible to build it up from scratch
106546         with reliable tests.
106548         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
106549         fixes to permit overriding the default actions when configure and
106550         makefile are not available.
106552 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
106554         Sync from coreutils.
106555         * modules/lstat (Depends-on): Don't depend on xalloc.
106556         (License): Change from GPL to LGPL, since this is now simply a
106557         replacement for a libc function.
106559 2006-02-14  Jim Meyering  <jim@meyering.net>
106561         Sync from coreutils.
106563         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
106564         failure on deficient systems, and simplify gnulib lgpl dependencies.
106565         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
106566         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
106568         * lib/xalloc-die.c: Remove unused definition of N_.
106570 2006-02-14  Jim Meyering  <jim@meyering.net>
106572         Sync from coreutils.
106573         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
106574         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
106575         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
106576         double-quote uses of that variable, to accommodate the rare case in
106577         which getmntent is available in none of the libraries checked.  This
106578         happens at least on FreeBSD 5.0.
106580 2006-02-13  Simon Josefsson  <jas@extundo.com>
106582         * gnulib-tool (Usage): Fix --import, from
106583         karl@freefriends.org (Karl Berry).
106585 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
106587         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
106589 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
106591         * lib/argp-namefrob.h: Restore changes accidentally lost during the
106592         "autoupdate" on 2005-12-12.
106594 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
106596         * modules/closeout (Depends-on): Remove atexit.
106598 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
106600         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
106601         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
106603 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
106605         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
106606         __EXTENSIONS__ if this causes compilation to fail.  Problem
106607         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
106608         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
106610 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
106612         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
106613         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
106614         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
106615         All uses changed.
106617 2006-01-26  Simon Josefsson  <jas@extundo.com>
106619         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
106620         prototype is visible on mingw32.
106622         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
106623         for mingw32.
106625         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
106626         mingw32).
106628 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
106630         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
106631         attempt to open for write; this always fails, at least on POSIX
106632         hosts.  This reinstates the 2006-01-09 change, which was
106633         inadvertently removed.
106635 2006-01-26  Bruno Haible  <bruno@clisp.org>
106637         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
106638         Reported by Paul Eggert.
106640 2006-01-26  Bruno Haible  <bruno@clisp.org>
106641             Paul Eggert  <eggert@cs.ucla.edu>
106643         * lib/stdbool_.h (_Bool)
106644         [(! (defined __cplusplus || defined __BEOS__)
106645           && !defined __GNUC__
106646           && !(defined __HP_cc || defined __xlc__
106647                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
106648                || defined __sgi))]:
106649         #define to signed char in these cases too; this simplifies
106650         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
106651         etc., separately) and makes it more conservative.
106653 2006-01-25  Simon Josefsson  <jas@extundo.com>
106655         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
106656         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
106657         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
106659 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
106661         * lib/argp-namefrob.h: Bugfix. Remove stray #
106663 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
106665         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
106666         so that we test the test.
106667         Check for yet another HP-UX cc bug involving *bool |= bool.
106669 2006-01-25  Karl Berry  <karl@gnu.org>
106671         * config/srclist.txt (vasnprintf.c): sync lost.
106673 2006-01-25  Jim Meyering  <jim@meyering.net>
106675         Sync from the stable (b5) branch of coreutils:
106677         * lib/fts.c (fts_children): Don't let close() clobber errno from
106678         failed fchdir().
106680         * lib/fts.c (fts_stat): When following a symlink-to-directory,
106681         don't necessarily interpret stat-fails+lstat-succeeds as indicating
106682         a dangling symlink.  That can also happen at least for ELOOP.
106683         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
106684         FYI, this bug predates the inclusion of fts.c in coreutils.
106686         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
106687         in their own block, so pre-c99 compilers don't object.
106689         Avoid the double-free (first in fts_read, second in fts_close) that
106690         would occur when an `active' directory is made inaccessible (e.g.,
106691         via chmod a-x) during a traversal.
106692         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
106693         before returning.  Reproduce this failure by
106694         mkdir -p a/b; cd a; chmod a-x . b
106695         Reported by Stavros Passas.
106697 2006-01-25  Jim Meyering  <jim@meyering.net>
106699         * lib/fileblocks.c: Remove more useless parentheses.
106700         * lib/readutmp.h: Likewise.
106702 2006-01-25  Bruno Haible  <bruno@clisp.org>
106704         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
106705         warnings.
106706         Reported by Paul Eggert.
106708 2006-01-25  Bruno Haible  <bruno@clisp.org>
106710         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
106711         rid of a trap command. For Solaris sh.
106712         Reported by Mark D. Baushke <mdb@gnu.org>.
106714 2006-01-24  Simon Josefsson  <jas@extundo.com>
106716         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
106717         Bruno.
106719 2006-01-24  Karl Berry  <karl@gnu.org>
106721         * config/srclist.txt (argp-namefrob.h): sync lost.
106723 2006-01-24  Jim Meyering  <jim@meyering.net>
106725         * modules/openat (Files): Add lib/intprops.h.
106726         From Mark D. Baushke.
106728 2006-01-24  Jim Meyering  <jim@meyering.net>
106730         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
106731         Reported by Mark D. Baushke.
106733 2006-01-24  Jim Meyering  <jim@meyering.net>
106735         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
106737 2006-01-24  Bruno Haible  <bruno@clisp.org>
106739         * modules/strnlen (Maintainer): Change from glibc to all.
106741 2006-01-24  Bruno Haible  <bruno@clisp.org>
106743         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
106744         Patch by Paul Eggert.
106746 2006-01-24  Bruno Haible  <bruno@clisp.org>
106748         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
106749         already has it.
106750         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
106751         2005-11-26.
106753         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
106754         'signed char' to avoid problems with the built-in _Bool type.
106755         Reported by Paul Eggert on 2005-11-26.
106757 2006-01-24  Bruno Haible  <bruno@clisp.org>
106759         * gnulib-tool (func_import): Avoid constructing complicated sed
106760         expressions inside backquote.
106761         Report and solution by Mark D. Baushke <mdb@gnu.org>.
106763 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
106765         These changes imported from libc.
106766         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
106767         test and two separate function calls.
106768         * lib/strndup.c (__strndup): Add libc_hidden_def.
106770 2006-01-23  Simon Josefsson  <jas@extundo.com>
106772         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
106773         Remove the test_*_SOURCES variable: automake infers it by default.
106774         * modules/tls-tests: Likewise.
106776 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
106778         Work around porting bugs reported by Dieter in
106779         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
106780         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
106781         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
106782         Include "getopt.h" first, to check interface.
106783         (getenv): Declare only if defined HAVE_DECL_GETENV &&
106784         !HAVE_DECL_GETENV.
106785         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
106786         (__strndup): Revert to K&R-style function dfns, the glibc style.
106787         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
106788         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
106789         Include strnlen.h first, to get prototype properly.
106790         (strnlen): Renamed from __strnlen.
106791         Remove weak alias.
106793 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
106795         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
106797 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
106799         * config/srclist.txt: Adjust to reflect glibc reorganization.
106800         This affects only comments.
106802 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
106804          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
106805          Reported by Bruce Korb <bkorb@gnu.org>.
106807 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
106809         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
106810         to pacify gcc -Wswitch-default.
106812 2006-01-22  Bruno Haible  <bruno@clisp.org>
106814         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
106815         temporary buffer for sprintf, take into account the precision also
106816         for 'd', 'i', 'u', 'o', 'x', 'X'.
106818 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
106820         * modules/argp-tests: New module
106821         * tests/test-argp.c: New file
106822         * tests/test-argp-2.sh: New file
106824 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
106826         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
106827         (__argp_base_name): Removed
106828         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
106829         typo.
106830         (__argp_base_name): Provide macro definition or extern declaration
106831         depending on the configuration
106833 2006-01-20  Simon Josefsson  <jas@extundo.com>
106835         * modules/inet_ntop (Depends-on): Depend on sys_socket.
106837 2006-01-20  Simon Josefsson  <jas@extundo.com>
106839         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
106841 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
106843         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
106844         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
106845         Suggested by Bruno Haible.
106847 2006-01-20  Karl Berry  <karl@gnu.org>
106849         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
106850         until changes propagate, I guess.
106852 2006-01-19  Simon Josefsson  <jas@extundo.com>
106854         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
106856 2006-01-19  Simon Josefsson  <jas@extundo.com>
106858         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
106860 2006-01-19  Simon Josefsson  <jas@extundo.com>
106862         * gnulib-tool: Set check_PROGRAMS.
106864         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
106865         modules/des-tests, modules/gc-arcfour-tests,
106866         modules/gc-arctwo-tests, modules/gc-des-tests,
106867         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
106868         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
106869         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
106870         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
106871         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
106872         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
106873         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
106874         test_*_SOURCES.
106876 2006-01-18  Simon Josefsson  <jas@extundo.com>
106878         * modules/socklen (Depends-on): Depend on sys_socket.
106880 2006-01-18  Simon Josefsson  <jas@extundo.com>
106882         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
106883         modules/des-tests, modules/gc-arcfour-tests,
106884         modules/gc-arctwo-tests, modules/gc-des-tests,
106885         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
106886         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
106887         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
106888         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
106889         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
106890         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
106891         $(EXEEXT) to automake TESTS variable, for mingw32.
106893 2006-01-17  Simon Josefsson  <jas@extundo.com>
106895         * modules/socklen (Include): Need sys/socket.h.
106897 2006-01-17  Bruno Haible  <bruno@clisp.org>
106899         * modules/ssize_t (Include): Add <sys/types.h>.
106901 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
106903         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
106904         it's not portable and it doesn't work with cross-compiles.
106905         Problem reported by Bruno Haible.  Fix missing-$ typo in
106906         'test "gl_cv_ignore_unused_libraries" ...' that prevented
106907         -zignore from being used with Sun's C compiler.
106909 2006-01-12  Simon Josefsson  <jas@extundo.com>
106911         * lib/base64.c: Fix warning, reported by Bruno Haible
106912         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
106914 2006-01-12  Bruno Haible  <bruno@clisp.org>
106916         * modules/ldd: New file.
106917         * build-aux/ldd.sh.in: New file.
106918         * MODULES.html.sh (Support for building libraries and executables): Add
106919         ldd.
106921 2006-01-12  Bruno Haible  <bruno@clisp.org>
106923         * m4/ldd.m4: New file.
106925 2006-01-12  Bruno Haible  <bruno@clisp.org>
106927         * gnulib-tool (func_import, func_create_testdir): Don't go into an
106928         endless loop while replacing $auxdir with build-aux.
106930 2006-01-11  Simon Josefsson  <jas@extundo.com>
106932         * lib/stdint_.h (SIZE_MAX): Add missing (.
106934 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
106936         Sync from coreutils.
106937         * lib/md5.c: Fix commentary typos.
106938         (alignof, UNALIGNED_P): No need for a GCC-specific version.
106939         * lib/md5.h (__attribute__): Remove; unused.
106940         * lib/sha1.c: Fix commentary to match md5 better.
106941         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
106942         so that we don't need to worry about alignment.  All uses changed.
106943         This merges the 2005-10-28 md5 change into sha1.
106945 2006-01-11  Jim Meyering  <jim@meyering.net>
106947         Sync from coreutils.
106948         * lib/md5.c (OP): Fix spacing.
106950 2006-01-11  Bruno Haible  <bruno@clisp.org>
106952         Ensure automatic ordering between gl_LOCK and gl_ARGP.
106953         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
106954         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
106956 2006-01-11  Bruno Haible  <bruno@clisp.org>
106958         Ensure automatic ordering between gl_LOCK and gl_ARGP.
106959         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
106960         the "early" section as well.
106962 2006-01-11  Bruno Haible  <bruno@clisp.org>
106964         Avoid "ar: no archive members specified" error on MacOS X.
106965         * gnulib-tool (func_modules_add_dummy): New function.
106966         (func_import, func_create_testdir): Invoke it.
106968 2006-01-11  Bruno Haible  <bruno@clisp.org>
106970         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
106971         with $auxdir in AC_CONFIG_FILES statements.
106973 2006-01-11  Bruno Haible  <bruno@clisp.org>
106975         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
106976         Initialize also noinst_HEADERS to empty.
106978 2006-01-11  Bruno Haible  <bruno@clisp.org>
106980         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
106981         variables.
106982         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
106983         autoreconf.
106985 2006-01-11  Bruno Haible  <bruno@clisp.org>
106987         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
106988         overridable by the user.
106989         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
106991 2006-01-10  Simon Josefsson  <jas@extundo.com>
106993         * modules/sys_socket: New file.
106995 2006-01-10  Simon Josefsson  <jas@extundo.com>
106997         * m4/sys_socket_h.m4: New file.
106999 2006-01-10  Simon Josefsson  <jas@extundo.com>
107001         * lib/socket_.h: New file.
107003 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
107005         * modules/readutmp (Maintainer): Add myself.
107007 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
107009         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
107010         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
107011         People who are still concerned with buggy memcmp implementations
107012         can invoke gl_FUNC_MEMCMP themselves.
107014 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
107016         * lib/regex_internal.h (BITSET_WORD_BITS):
107017         Work around a bug in 64-bit PGC (before version 6.1-2), where the
107018         preprocessor mishandles large unsigned values as if they were signed.
107019         Problem reported by Claudio Fontana in
107020         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
107022 2006-01-10  Jim Meyering  <jim@meyering.net>
107024         Avoid the double-free (first in fts_read, second in fts_close) that
107025         would occur when an `active' directory is made inaccessible (e.g.,
107026         via chmod a-x) during a traversal.
107027         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
107028         before returning.  Reproduce this failure by
107029         mkdir -p a/b; cd a; chmod a-x . b
107030         Reported by Stavros Passas.
107032         Sync from coreutils.
107033         * lib/sha1.c: Tweak grammar in a comment.
107035 2006-01-10  Jim Meyering  <jim@meyering.net>
107037         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
107038         Patch by Joerg Sonnenberger.
107040 2006-01-10  Bruno Haible  <bruno@clisp.org>
107042         * modules/readutmp: Depend on module free.
107043         * modules/strtok_r: Depend on module restrict.
107045 2006-01-10  Bruno Haible  <bruno@clisp.org>
107047         * modules/gettext (configure.ac): Add an invocation of
107048         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
107050 2006-01-10  Bruno Haible  <bruno@clisp.org>
107052         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
107053         Reported by Werner Lemberg <wl@gnu.org>.
107055 2006-01-10  Bruno Haible  <bruno@clisp.org>
107057         * lib/localcharset.c: Update from GNU gettext.
107059 2006-01-10  Bruno Haible  <bruno@clisp.org>
107061         * lib/argp.h (__const): Remove macro. Use const instead.
107062         * lib/argp-fmtstream.h (__const): Likewise.
107063         * lib/glob_.h (__const): Remove macro.
107064         * lib/glob-libc.h: Use const instead of __const.
107066 2006-01-10  Bruno Haible  <bruno@clisp.org>
107068         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
107069         variable.
107070         Needed to avoid an automake error regarding the 'gettext' module.
107072 2006-01-09  Simon Josefsson  <jas@extundo.com>
107074         * modules/inet_ntop (Depends-on): Add restrict.
107076 2006-01-09  Simon Josefsson  <jas@extundo.com>
107078         * modules/gc-rijndael-tests (License): Put under LGPL.
107080         * modules/gc-des-tests (License): Likewise.
107082         * modules/gc-arcfour-tests (License): Likewise.
107084         * modules/gc-arctwo-tests (License): Likewise.
107086         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
107088         * modules/gc-hmac-sha1-tests (Files): Likewise.
107090         * modules/gc-hmac-md5-tests (License): Likewise.
107092         * modules/gc-sha1-tests (License): Likewise.
107094         * modules/gc-md5-tests (License): Likewise.
107096         * modules/gc-md4-tests (License): Likewise.
107098         * modules/gc-md2-tests (License): Likewise.
107100         * modules/gc-tests (License): Likewise.
107102         * modules/des-tests (License): Likewise.
107104         * modules/md4-tests (License): Likewise.
107106         * modules/md2-tests (License): Likewise.
107108 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
107110         Sync from coreutils:
107112         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
107113         * modules/lib-ignore: New file.
107114         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
107115         chdir-safer.m4, lchmod.m4.
107116         * modules/openat: Add mkdirat.c, openat-priv.h.
107118 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
107120         Sync from coreutils.
107121         * m4/lib-ignore.m4: New file.
107122         * m4/lchmod.m4: New file.
107124 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
107126         Sync from coreutils.
107127         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
107128         for write access: POSIX says that must fail.
107129         * lib/fts.c (diropen): Likewise.
107130         * lib/save-cwd.c (save_cwd): Likewise.
107131         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
107132         well, for minor improvements on hosts that lack O_DIRECTORY.
107133         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
107134         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
107135         Fall back on chown if open failed with EACCES.
107137         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
107138         Report an error at compile-time if only a 1-second nominal clock
107139         resolution is found.
107141         * lib/lchmod.h: New file.
107142         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
107143         (make_dir_parents): Use lchown rather than chown, and
107144         lchmod rather than chmod.
107146         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
107147         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
107148         "proc" reported by n0dalus.
107150         * lib/mountlist.c: Include <limits.h>.
107151         (dev_from_mount_options)
107152         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
107153         New function.  It no longer assumes "dev=" has the System V meaning
107154         on Linux (since it doesn't).  It also parses "dev=" more carefully.
107155         (read_file_system_list)
107156         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
107157         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
107158         dev= in that case.
107160         * lib/posixtm.h (PDS_PRE_2000): New macro.
107161         * lib/posixtm.c (year): Arg is now syntax_bits rather than
107162         allow_century.  All usages changed.  Reject dates outside the range
107163         1969-1999 if PDS_PRE_2000 is used.
107165 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
107167         Sync from coreutils.
107168         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
107169         (Time of day items): Mention the possibility of leap seconds.
107170         Problem reported by Dr. David Alan Gilbert.
107172 2006-01-09  Jim Meyering  <jim@meyering.net>
107174         Sync from coreutils.
107176         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
107178         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
107180         * lib/modechange.c (mode_compile): Reject an invalid mode string
107181         that starts with an octal digit.  From Andreas Gruenbacher.
107183         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
107184         and dup to open_safer and dup_safer, respectively.
107185         (openat_permissive): Fix typo in comment.
107187         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
107188         "gettext.h"; either no longer needed or are guaranteed by openat.h.
107189         (_): Remove; no longer needed.
107190         (openat): Renamed from rpl_openat; no need for rpl_openat
107191         since openat.h renames openat for us.
107192         Replace most of the body with a call to openat_permissive,
107193         to avoid duplicate code.
107194         Port to (probably hypothetical) environments were mode_t is
107195         wider than int.
107196         (openat_permissive): Require mode arg, so that we can check
107197         types better.  Put it just after flags.  Change cwd failure
107198         indicator from pointer-to-bool to pointer-to-errno-value.
107199         All callers changed.
107200         Invoke openat_save_fail and/or openat_restore_fail if
107201         cwd_errno is null, so that openat can call us.
107202         (openat_permissive, fdopendir, fstatat, unlinkat):
107203         Simplify errno handling to avoid some duplicate code,
107204         as it's OK to set errno on success.
107205         * lib/openat.h: Revamp code so that function macros depend on
107206         __OPENAT_PREFIX only, not also on AT_FDCWD.
107207         (openat_ro): Remove.  Caller changed to use openat_permissive.
107208         (openat_permissive): Now a macro, if not a function.
107209         (openat_restore_fail, openat_save_fail): Now always functions,
107210         since mkdirat needs them even if __OPENAT_PREFIX is defined.
107212         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
107213         and openat.c.
107214         * lib/mkdirat.c: Include openat-priv.h.
107215         Remove definitions of macros defined therein.
107216         * lib/openat.c: Likewise.
107218         * lib/mkdirat.c (mkdirat): New file and function.
107219         * lib/openat.h (mkdirat): Declare.
107221         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
107223         * lib/openat.h (openat_permissive): Declare.
107224         (openat_ro): Define.
107226         * lib/openat.c (EXPECTED_ERRNO): New macro.
107227         (openat_permissive): New function -- used in remove.c rewrite.
107228         (all functions): Set errno just before returning, only if there
107229         was an actual failure.
107230         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
107232         Emulate openat-family functions using Linux's procfs, if possible.
107233         Idea and some code based on Ulrich Drepper's glibc changes.
107235         * lib/openat.c: (BUILD_PROC_NAME): New macro.
107236         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
107237         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
107238         before falling back on save_cwd and restore_cwd.
107239         (fdopendir, fstatat, unlinkat): Likewise.
107241         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
107242         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
107244         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
107245         as second argument to va_arg.  Otherwise, some versions of gcc
107246         warn that `if this code is reached, the program will abort'.
107248 2006-01-09  Jim Meyering  <jim@meyering.net>
107250         Sync from coreutils.
107251         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
107252         Require openat-priv.h.
107254 2006-01-09  Bruno Haible  <bruno@clisp.org>
107256         * modules/strnlen (Include): Use strnlen.h.
107258 2006-01-09  Bruno Haible  <bruno@clisp.org>
107260         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
107262 2006-01-09  Bruno Haible  <bruno@clisp.org>
107264         * lib/sysexit_.h (EX_OK): New macro.
107265         Suggested by Martin Lambers <marlam@marlam.de>.
107267 2006-01-09  Bruno Haible  <bruno@clisp.org>
107269         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
107270         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
107272 2006-01-09  Bruno Haible  <bruno@clisp.org>
107274         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
107275         numbers.
107277 2006-01-09  Bruno Haible  <bruno@clisp.org>
107279         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
107280         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
107281         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
107282         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
107284 2006-01-09  Bruno Haible  <bruno@clisp.org>
107286         * build-aux/javacomp.sh.in: New file, moved from lib/.
107287         * modules/javacomp-script (Files): Update.
107288         (configure.ac): Add AC_CONFIG_FILES invocation.
107289         (EXTRA_DIST): Remove variable.
107291         * build-aux/javaexec.sh.in: New file, moved from lib/.
107292         * modules/javaexec (Files): Update.
107293         (configure.ac): Add AC_CONFIG_FILES invocation.
107294         (EXTRA_DIST): Remove javaexec.sh.in.
107296         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
107297         * modules/csharpcomp-script (Files): Update.
107298         (configure.ac): Add AC_CONFIG_FILES invocation.
107299         (EXTRA_DIST): Remove variable.
107301         * build-aux/csharpexec.sh.in: New file, moved from lib/.
107302         * modules/csharpexec (Files): Update.
107303         (configure.ac): Add AC_CONFIG_FILES invocation.
107304         (EXTRA_DIST): Remove csharpexec.sh.in.
107306 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
107308         Sync from coreutils.
107310         Add POSIX ACL support
107311         * lib/acl.h (copy_acl, set_acl): Add declarations.
107312         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
107313         systems other than Linux.
107314         (chmod_or_fchmod): New function: use fchmod when possible,
107315         and chmod otherwise.
107316         (file_has_acl): Add a POSIX ACL implementation, with a
107317         Linux-specific subcase.
107318         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
107319         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
107320         acls are unsupported.
107321         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
107322         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
107323         are unsupported.
107325 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
107327         Sync from coreutils.
107328         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
107330 2006-01-07  Bruno Haible  <bruno@clisp.org>
107332         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
107333         gl_EARLY.
107335 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
107337         * lib/strftime.c (tzname): Don't declare if it is already #defined.
107338         Problem reported for Mingw by Mark Junker.
107340 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
107342         * README: Gnulib normally doesn't generate a tarball.
107344 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
107346         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
107347         long int, not int, for nanosecond counts, so that people who are
107348         used to POSIX struct timespec won't be surprised.  Reported by Jim
107349         Meyering.
107351 2005-12-28  Bruno Haible  <bruno@clisp.org>
107353         * build-aux/config.rpath: Update from GNU gettext.
107355 2005-12-16  Jim Meyering  <jim@meyering.net>
107357         * modules/fprintftime: New module.
107358         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
107360 2005-12-16  Jim Meyering  <jim@meyering.net>
107362         * m4/fprintftime.m4: New file.
107364 2005-12-16  Jim Meyering  <jim@meyering.net>
107366         * lib/fprintftime.c, lib/fprintftime.h: New files.
107368 2005-12-15  Simon Josefsson  <jas@extundo.com>
107370         * modules/socklen (configure.ac): Fix M4 macro name, to align with
107371         new m4/socklen.m4.
107373 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
107375         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
107376         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
107378 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
107380         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
107381         * lib/argp-help.c (fill_in_uparams): Check if the constructed
107382         struct uparams is valid. Fall back to the default values if it is
107383         not.
107385 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
107387         * modules/argp (Files): Add argp-pin.c
107388         (Depends-on): dirname
107389         (lib_SOURCES): Add argp-pin.c
107391 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
107393         * m4/argp.m4:  Check if program_invocation_name and
107394         program_invocation_short_name are declared and define appropriate
107395         macros if they are not.
107397 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
107399         * lib/argp-help.c (__argp_base_name): New function
107400         (__argp_short_program_name): Rewrite using __argp_base_name
107401         * lib/argp-namefrob.h: Define program_invocation_name and
107402         program_invocation_short_name if requested
107403         (__argp_base_name): Add prototype
107404         * lib/argp-parse.c (argp_def): Use gettext wrappers
107405         (argp_default_parser): Use __argp_base_name
107406         * lib/argp-pin.c: New file. Defines program_invocation_name and
107407         program_invocation_short_name on systems that lack them.
107409 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
107411         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
107412         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
107413         porting problem reported by Georg Schwarz in
107414         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
107416 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
107418         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
107419         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
107420         porting problem reported by Georg Schwarz in
107421         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
107423 2005-12-05  Bruno Haible  <bruno@clisp.org>
107425         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
107426         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
107427         Reported by Mark Junker <mjscod@gmx.de>.
107429 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
107431         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
107432         Use implementation from Albert Chin, with some
107433         comments/corrections by Stepan Kasal and myself.
107435 2005-12-02  Bruno Haible  <bruno@clisp.org>
107437         * gnulib-tool (func_import): Accept GPLed build tool modules when
107438         --lgpl is given.
107439         * modules/csharpcomp-script: New file.
107440         * modules/csharpcomp: Depend on it.
107441         * modules/javacomp-script: New file.
107442         * modules/javacomp: Depend on it.
107443         Suggested by Simon Josefsson.
107445 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
107447         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
107448         statement, to work around an HP-UX 10.20 compiler bug reported by
107449         Peter O'Gorman.
107451 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
107453         * modules/savedir (Depends-on): Add openat.
107455 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
107457         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
107458         (uintmax_t) [defined uintmax_t]: Do not declare.
107459         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
107460         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
107461         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
107462         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
107463         sake of portability to weird hosts that C allows (though we don't
107464         know of any practical examples).
107466         * lib/savedir.h (fdsavedir): New decl.
107467         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
107468         contains most of the former guts of savedir.
107469         (savedir): Use savedirstream.
107470         Include "openat.h".
107472 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
107474         * modules/obstack (Files): Add m4/ulonglong.m4.
107475         Problem reported by Davide Angelocola.
107477 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
107479         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
107480         coreutils no longer futzes with rounding modes.
107482 2005-11-14  Jim Meyering  <jim@meyering.net>
107484         * lib/mkstemp-safer.c: Include <config.h>, required for possible
107485         replacement of mkstemp.
107487 2005-11-10  Simon Josefsson  <jas@extundo.com>
107489         * lib/readline.c: Remove EOL.
107491 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
107493         * modules/gethrxtime (Depends-on): Add gettime.
107495 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
107497         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
107498         or gettimeofday; no longer needed.
107500 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
107502         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
107503         time business.
107504         (gethrxtime) [! (HAVE_NANOUPTIME
107505         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
107506         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
107507         our own approximation.
107509 2005-11-08  Eric Blake  <ebb9@byu.net>
107511         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
107513 2005-11-08  Eric Blake  <ebb9@byu.net>
107515         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
107517 2005-11-04  Bruno Haible  <bruno@clisp.org>
107519         * gnulib-tool: Implement --update mode.
107521 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
107523         Fix porting problem reported by Theodoros V. Kalamatianos.
107524         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
107525         Don't assume that futimes failing means we must fail.
107527 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
107529         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
107530         variables to suggest the intended function of the PATH_MAX check.
107532 2005-10-30  Kean Johnston  <jkj@sco.com>
107534         Trivial changes to support SCO systems.
107535         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
107536         as PATH_MAX.
107537         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
107538         where __ptr is null when no I/O is pending.
107540 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
107542         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
107543         leave errno alone.  Problem reported by Dmitry V. Levin.
107545 2005-10-28  Simon Josefsson  <jas@extundo.com>
107547         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
107548         Test more.
107550         * tests/test-gc-md2.c, tests/test-md2.c: New files.
107552         * modules/md2, modules/md2-tests: New files.
107554 2005-10-28  Simon Josefsson  <jas@extundo.com>
107556         * m4/inet_ntop.m4: More tests.
107558         * m4/gc-md2.m4, md2.m4: New file.
107560 2005-10-28  Simon Josefsson  <jas@extundo.com>
107562         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
107563         "restrict" keywords, as per POSIX.  Protect the function
107564         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
107565         Don't use K&R prototypes.  Check the sprintf return values.
107566         Re-define EAFNOSUPPORT if not present.  Indent.
107568         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
107569         suggested by Bruno Haible <bruno@clisp.org>.
107571         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
107573         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
107575         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
107576         libgcrypt).
107578         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
107580         * lib/md2.h, lib/md2.c: New files.
107582 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
107584         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
107585         errno alone.  Problem reported by Frederic Jolliton.
107587 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
107589         * modules/verify (License): Change from GPL to LGPL.  This is a
107590         tiny module and there are apparently near-equivalents that are
107591         under the BSD license.
107593 2005-10-24  Simon Josefsson  <jas@extundo.com>
107595         * modules/sha1: Relicense to LGPL.
107597 2005-10-24  Simon Josefsson  <jas@extundo.com>
107599         * lib/md4.h: Shrink buffer size, now that we changed the type.
107601 2005-10-23  Simon Josefsson  <jas@extundo.com>
107603         * gnulib-tool (func_import): Fix --tests-base.
107605 2005-10-22  Simon Josefsson  <jas@extundo.com>
107607         * modules/arcfour (Depends-on): Need stdint.
107609 2005-10-22  Simon Josefsson  <jas@extundo.com>
107611         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
107612         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
107614 2005-10-22  Simon Josefsson  <jas@extundo.com>
107616         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
107617         suggested by Bruno Haible <bruno@clisp.org>.
107619 2005-10-22  Simon Josefsson  <jas@extundo.com>
107621         * lib/crc.h: Include stddef.h, for size_t.
107623 2005-10-22  Simon Josefsson  <jas@extundo.com>
107625         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
107626         arcfour_context struct (simplify test vector testing in GNU
107627         Shishi).
107629 2005-10-21  Simon Josefsson  <jas@extundo.com>
107631         * modules/des, modules/des-tests: New files.
107633         * modules/gc-des, modules/gc-des-tests: New files.
107635         * tests/test-des.c, tests/test-gc-des.c: New file.
107637 2005-10-21  Simon Josefsson  <jas@extundo.com>
107639         * modules/arctwo, modules/arctwo-tests: New files.
107641         * tests/test-arctwo.c: New file.
107643         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
107645         * tests/test-gc-arctwo.c: New file.
107647 2005-10-21  Simon Josefsson  <jas@extundo.com>
107649         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
107650         Bruno Haible <bruno@clisp.org>.
107652         * m4/gc-des.m4: New file.
107654 2005-10-21  Simon Josefsson  <jas@extundo.com>
107656         * m4/arctwo.m4: New file.
107658         * m4/gc-arctwo.m4: New file.
107660 2005-10-21  Simon Josefsson  <jas@extundo.com>
107662         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
107663         block.
107665 2005-10-21  Simon Josefsson  <jas@extundo.com>
107667         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
107668         <bruno@clisp.org>.
107670         * lib/hmac-sha1.c (hmac_sha1): Likewise.
107672         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
107673         Bruno Haible <bruno@clisp.org>.
107675         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
107676         <bruno@clisp.org>.
107678 2005-10-21  Simon Josefsson  <jas@extundo.com>
107680         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
107682 2005-10-21  Simon Josefsson  <jas@extundo.com>
107684         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
107686 2005-10-21  Simon Josefsson  <jas@extundo.com>
107688         * lib/des.h, lib/des.c: New files.
107690         * lib/gc-gnulib.c: Support DES.c
107692 2005-10-21  Simon Josefsson  <jas@extundo.com>
107694         * lib/arctwo.h, lib/arctwo.c: New files.
107696         * lib/gc-gnulib.c: Support ARCTWO.
107698 2005-10-21  Simon Josefsson  <jas@extundo.com>
107700         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
107701         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107703 2005-10-21  Simon Josefsson  <jas@extundo.com>
107705         * gnulib-tool (func_import, func_create_testdir): Define automake
107706         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
107707         Makefile.am snippet),
107708         suggested by Bruno Haible <bruno@clisp.org>.
107710         * modules/gc (Makefile.am): Use it.
107712 2005-10-21  Bruno Haible  <bruno@clisp.org>
107714         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
107715         patch.
107717 2005-10-19  Simon Josefsson  <jas@extundo.com>
107719         * tests/test-gc-rijndael.c: New file.
107721         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
107723 2005-10-19  Simon Josefsson  <jas@extundo.com>
107725         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
107726         interface too.
107728 2005-10-19  Simon Josefsson  <jas@extundo.com>
107730         * tests/test-gc-arcfour.c: New file.
107732         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
107734 2005-10-19  Simon Josefsson  <jas@extundo.com>
107736         * modules/gc-md4, modules/gc-md4-tests: New file.
107738         * tests/test-gc-md4.c: New file.
107740 2005-10-19  Simon Josefsson  <jas@extundo.com>
107742         * m4/gc-md4.m4: New file.
107744 2005-10-19  Simon Josefsson  <jas@extundo.com>
107746         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
107747         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
107748         <kasal@ucw.cz>.
107750 2005-10-19  Simon Josefsson  <jas@extundo.com>
107752         * m4/gc-arcfour.m4: New file.
107754         * m4/gc-rijndael.m4: New file.
107756 2005-10-19  Simon Josefsson  <jas@extundo.com>
107758         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
107760 2005-10-19  Simon Josefsson  <jas@extundo.com>
107762         * lib/gc-gnulib.c: Support ARCFOUR.
107764 2005-10-19  Simon Josefsson  <jas@extundo.com>
107766         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
107767         support.
107769         * lib/gc.h: Add ECB enum type.
107771         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
107773 2005-10-18  Simon Josefsson  <jas@extundo.com>
107775         * tests/test-md5.c: New file.
107777         * modules/md5-tests: New file.
107779 2005-10-18  Simon Josefsson  <jas@extundo.com>
107781         * tests/test-md4.c: New file.
107783         * modules/md4, modules/md4-tests: New files.
107785 2005-10-18  Simon Josefsson  <jas@extundo.com>
107787         * m4/md4.m4: New file.
107789 2005-10-18  Simon Josefsson  <jas@extundo.com>
107791         * lib/md4.h, lib/md4.c: New files, based on md5.?.
107793 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
107795         * gnulib-tool (func_create_testdir): Omit the second check whether
107796         BUILT_SOURCES in nonempty.
107798 2005-10-17  Simon Josefsson  <jas@extundo.com>
107800         * tests/test-rijndael.c: New file.
107802 2005-10-17  Simon Josefsson  <jas@extundo.com>
107804         * modules/sha1: Depend on stdint instead of md5.
107806         * modules/md5: Depend on stdint, remove uint32_t.
107808 2005-10-17  Simon Josefsson  <jas@extundo.com>
107810         * modules/gc-sha1-tests: New file.
107812         * tests/test-gc-sha1.c: New file.
107814 2005-10-17  Simon Josefsson  <jas@extundo.com>
107816         * m4/md5.m4: Remove call to uint32_t.m4.
107818 2005-10-17  Simon Josefsson  <jas@extundo.com>
107820         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
107822         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
107823         md5.h.
107825         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
107827         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
107829 2005-10-17  Simon Josefsson  <jas@extundo.com>
107831         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
107833 2005-10-17  Simon Josefsson  <jas@extundo.com>
107835         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
107837 2005-10-17  Simon Josefsson  <jas@extundo.com>
107839         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
107841         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
107843 2005-10-17  Bruno Haible  <bruno@clisp.org>
107845         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
107846         that it can also be used in a test.
107848 2005-10-16  Bruno Haible  <bruno@clisp.org>
107850         * gnulib-tool (func_emit_tests_Makefile_am): Also define
107851         TESTS_ENVIRONMENT, so that individual tests can augment it.
107853         * gnulib-tool (func_create_testdir): Use an intermediate target for
107854         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
107855         macros, like $(ALLOCA_H), which cannot be passed through the command
107856         line.
107858 2005-10-15  Simon Josefsson  <jas@extundo.com>
107860         * modules/rijndael-tests: New file.
107862         * modules/rijndael: New file.
107864 2005-10-15  Simon Josefsson  <jas@extundo.com>
107866         * m4/rijndael.m4: New file.
107868 2005-10-15  Simon Josefsson  <jas@extundo.com>
107870         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
107872         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
107874 2005-10-14  Simon Josefsson  <jas@extundo.com>
107876         * tests/test-arcfour.c: New file.
107878         * modules/arcfour, modules/arcfour-tests: New files.
107880 2005-10-14  Simon Josefsson  <jas@extundo.com>
107882         * m4/arcfour.m4: New file.
107884 2005-10-14  Simon Josefsson  <jas@extundo.com>
107886         * lib/arcfour.h, lib/arcfour.c: New files.
107888 2005-10-14  Roland McGrath  <roland@redhat.com>
107890         Import from libc.  [BZ #1331]
107891         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
107892         macro argument.
107893         Reported by Matej Vela <vela@debian.org>.
107895 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
107897         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
107898         include <wchar.h>; no longer needed.
107900 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
107902         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
107904 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
107905         and  Ulrich Drepper  <drepper@redhat.com>
107907         Import from libc.
107908         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
107909         instead of inline stream orientation test and two separate
107910         function calls.  Pay no attention to USE_IN_LIBIO.
107912 2005-10-13  Simon Josefsson  <jas@extundo.com>
107914         * modules/gc-hmac-md5-tests: New file.
107916         * tests/test-gc-hmac-sha1.c: New file.
107918         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
107920         * modules/gc-hmac-md5-tests: New file.
107922         * tests/test-gc-md5.c: New file.
107924         * modules/gc-md5-tests: New file.
107926 2005-10-13  Simon Josefsson  <jas@extundo.com>
107928         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
107929         Move memory allocation outside of loop.
107931 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
107933         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
107934         intermediate directory is in a read-only file system.  Problem
107935         reported by Eric Blake.
107937 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
107939         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
107941 2005-10-12  Simon Josefsson  <jas@extundo.com>
107943         * tests/test-hmac-sha1.c: New file.
107945         * modules/hmac-sha1-tests: New file.
107947         * modules/hmac-sha1: New file.
107949 2005-10-12  Simon Josefsson  <jas@extundo.com>
107951         * modules/gc-sha1: New file.
107953 2005-10-12  Simon Josefsson  <jas@extundo.com>
107955         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
107957         * tests/test-gc-pbkdf2-sha1.c: New file.
107959 2005-10-12  Simon Josefsson  <jas@extundo.com>
107961         * modules/gc-md5, modules/gc-hmac-md5: New files.
107963         * modules/gc (Files): Remove md5, memxor and hmac files.
107965 2005-10-12  Simon Josefsson  <jas@extundo.com>
107967         * m4/gc-pbkdf2-sha1.m4: New file.
107969         * m4/gc-hmac-sha1.m4: New file.
107971         * m4/gc-sha1: New file.
107973         * m4/hmac-sha1.m4: New file.
107975 2005-10-12  Simon Josefsson  <jas@extundo.com>
107977         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
107979         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
107981 2005-10-12  Simon Josefsson  <jas@extundo.com>
107983         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
107984         suggested by Bruno Haible <bruno@clisp.org>.
107986 2005-10-12  Simon Josefsson  <jas@extundo.com>
107988         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
107990 2005-10-12  Simon Josefsson  <jas@extundo.com>
107992         * lib/gc-pbkdf2-sha1.c: New file.
107994         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
107996 2005-10-12  Simon Josefsson  <jas@extundo.com>
107998         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
108000         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
108002 2005-10-12  Simon Josefsson  <jas@extundo.com>
108004         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
108005         GC_USE_HMAC_MD5, respectively.
108007         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
108008         (gc_md5): Fix typo.
108010         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
108012         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
108014         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
108016 2005-10-12  Bruno Haible  <bruno@clisp.org>
108018         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
108019         Reported by Stepan Kasal <kasal@ucw.cz>.
108021 2005-10-11  Simon Josefsson  <jas@extundo.com>
108023         * tests/test-crc.c: New file.
108025         * modules/crc, modules/crc-tests: New files.
108027 2005-10-11  Simon Josefsson  <jas@extundo.com>
108029         * m4/crc.m4: New file.
108031 2005-10-11  Simon Josefsson  <jas@extundo.com>
108033         * lib/gc.h: Add gc_hash and gc_hash_buffer.
108035         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
108037         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
108039 2005-10-11  Simon Josefsson  <jas@extundo.com>
108041         * lib/crc.h, lib/crc.c: New files.
108043         * lib/gc.h (gc_hash_buffer): Add doc.
108045 2005-10-11  Bruno Haible  <bruno@clisp.org>
108047         * modules/c-strcasestr: New file.
108048         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
108050 2005-10-11  Bruno Haible  <bruno@clisp.org>
108052         * modules/c-strcase: New file.
108053         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
108055 2005-10-11  Bruno Haible  <bruno@clisp.org>
108057         * lib/strcasecmp.c: Include limits.h.
108058         (strcasecmp): Avoid integer overflow on exotic platforms.
108059         * lib/strncasecmp.c: Include limits.h.
108060         (strncasecmp): Avoid integer overflow on exotic platforms.
108061         Reported by Paul Eggert.
108063 2005-10-11  Bruno Haible  <bruno@clisp.org>
108065         * lib/c-strcasestr.h: New file, from GNU gettext.
108066         * lib/c-strcasestr.c: New file, from GNU gettext.
108068 2005-10-11  Bruno Haible  <bruno@clisp.org>
108070         * lib/c-strcase.h: New file, from GNU gettext.
108071         * lib/c-strcasecmp.c: New file, from GNU gettext.
108072         * lib/c-strncasecmp.c: New file, from GNU gettext.
108074 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
108076         * modules/mempcpy (License): GPL -> LGPL.
108077         * modules/strchrnul (License): Likewise.
108078         * modules/sysexits (License): Likewise.
108080 2005-10-08  Simon Josefsson  <jas@extundo.com>
108082         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
108084 2005-10-07  Simon Josefsson  <jas@extundo.com>
108086         * m4/memxor.m4: Remove gl_C_RESTRICT call.
108088 2005-10-06  Simon Josefsson  <jas@extundo.com>
108090         * tests/test-hmac-md5.c: New file.
108092         * modules/hmac-md5-tests: New file.
108094         * modules/hmac-md5: New file.
108096 2005-10-06  Simon Josefsson  <jas@extundo.com>
108098         * m4/hmac-md5.m4: New file.
108100         * m4/memxor.m4: Require gl_C_RESTRICT.
108102 2005-10-06  Simon Josefsson  <jas@extundo.com>
108104         * lib/memxor.c (memxor): Avoid casts and warnings.
108106 2005-10-06  Simon Josefsson  <jas@extundo.com>
108108         * lib/hmac-md5.c: New file.
108110         * lib/hmac.h: New file.
108112 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
108114         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
108115         promotes to int, not unsigned int, to catch the AIX 5.3
108116         compiler bug.
108118 2005-10-05  Simon Josefsson  <jas@extundo.com>
108120         * modules/memxor: New file.
108122         * modules/iconv (Files): Move config.rpath to havelib, it is used
108123         there.
108125         * modules/havelib (Files): Add config.rpath.
108127 2005-10-05  Simon Josefsson  <jas@extundo.com>
108129         * m4/memxor.m4: New file.
108131 2005-10-05  Simon Josefsson  <jas@extundo.com>
108133         * lib/memxor.c (memxor): Fix compiler error.
108135         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
108136         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
108138         * lib/memxor.h, lib/memxor.c: New files.
108140         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
108141         we assume all systems have it, suggested by Jim Meyering
108142         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
108143         any systems lack sys/socket.h; mingw32 is known to lack it, but we
108144         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
108145         same reasons.
108147 2005-10-05  Simon Josefsson  <jas@extundo.com>
108149         * config/srclist.txt: Add glibc bug 1423 for md5.h.
108151 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
108153         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
108154         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
108155         needed, since the source code now assumes these .h files.
108157 2005-10-05  Derek Price  <derek@ximbiot.com>
108159         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
108161 2005-10-05  Bruno Haible  <bruno@clisp.org>
108163         * modules/stdint (License): Change to LGPL.
108165 2005-10-04  Simon Josefsson  <jas@extundo.com>
108167         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
108168         D. Baushke" <mdb@gnu.org>.
108170 2005-10-04  Bruno Haible  <bruno@clisp.org>
108172         * lib/verify.h (verify_true): Provide alternative definition for C++.
108174 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
108176         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
108177         (SSIZE_MAX): New macro, if not already defined.
108178         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
108179         than 2 GiB.
108181 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
108183         Sync from coreutils.
108184         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
108185         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
108186         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
108187         ULLONG_MAX doesn't work with 2.7.2.1.
108189 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
108191         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
108192         From Ben Pfaff.
108194         * modules/exclude (Depends-on): Depend on verify.
108195         * modules/strtoimax (Depends-on): Likewise.
108196         * modules/utimecmp (Depends-on): Likewise.
108198 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
108200         * lib/exclude.c: Include verify.h.
108201         (verify): Remove.  All callers changed to use verify.h's version.
108202         * lib/strtoimax.c: Likewise.
108203         * lib/utimecmp.c: Likewis.e
108205         Sync from coreutils.
108206         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
108207         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
108208         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
108209         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
108210         bother returning ENOSYS if settimeofday or stime fails; just let
108211         them return whatever errno they want to return.
108212         * lib/utimens.c: Include unistd.h, for dup2.
108213         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
108214         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
108216 2005-10-02  Jim Meyering  <jim@meyering.net>
108218         Sync from coreutils.
108219         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
108220         from glibc-2.2.5 that fails for read-only files.
108222 2005-10-02  Jim Meyering  <jim@meyering.net>
108224         Sync from coreutils.
108225         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
108226         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
108227         `#if HAVE_CONFIG_H'.
108228         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
108229         Remove AT_FDCWD test.
108230         Do not consume the fd unless successful.
108231         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
108232         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
108233         block, so that we don't even try to compile it if settimeofday is
108234         available.  This works around a compilation failure on OSF1 V5.1,
108235         due to stime requiring a `long int*' while tv_sec is `int'.
108237 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
108239         Sync from coreutils.
108240         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
108241         against `yes', rather than just testing for nonempty.
108243 2005-10-01  Simon Josefsson  <jas@extundo.com>
108245         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
108246         and Darwin.
108248         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
108249         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
108250         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
108251         freeaddrinfo and gai_strerror are declared by the POSIX headers.
108252         Check if struct addrinfo is declared.
108254 2005-10-01  Simon Josefsson  <jas@extundo.com>
108256         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
108257         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
108258         AI_* and EAI_* definitions.  Protect function declarations.
108260 2005-10-01  Jim Meyering  <jim@meyering.net>
108262         Sync from coreutils.
108264         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
108265         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
108266         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
108267         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
108268         in the inet and nsl libraries.  Required on Solaris 5.7.
108270 2005-10-01  Jim Meyering  <jim@meyering.net>
108272         Sync from coreutils.
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  Eric Blake  <ebb9@byu.net>  (tiny change)
108278         * lib/getdelim.c (getdelim): Remove unused variables.
108280 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
108282         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
108283         so that the code works even with ancient cpp.  Portability problem
108284         with GCC 2.7.2.1 reported by Thomas M.Ott.
108286 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
108288         * modules/regex (Depends-on): Add strcase.
108290         * modules/gethostname (Licence): Change from GPL to LGPL, since
108291         gethostname.c is a trivial implementation of a standard library
108292         function.
108293         * modules/poll (License): Change from GPL to LGPL, since it's
108294         derived from LGPL code.
108296 2005-09-27  Jim Meyering  <jim@meyering.net>
108298         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
108299         HAVE_CONFIG_H.
108301         * lib/intprops.h (signed_type_or_expr__): Define.
108302         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
108303         for unsigned types.
108305 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
108307         * lib/verify.h (verify_expr): Remove, replacing with:
108308         (verify_true): New macro that returns true instead of void.
108309         (verify_type__): Remove.
108310         (verify): Use verify_true rather than verify_type__.
108312 2005-09-26  Bruno Haible  <bruno@clisp.org>
108314         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
108315         is necessary.
108316         (lib_SOURCES): Remove mbchar.c.
108317         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
108318         (Files): Add m4/mbrtowc.m4.
108319         * modules/mbiter: Likewise.
108320         * modules/mbuiter: Likewise.
108322 2005-09-26  Bruno Haible  <bruno@clisp.org>
108324         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
108325         compile mbchar.c if they are not both present.
108326         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
108327         * m4/mbiter.m4 (gl_MBITER): Likewise.
108328         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
108329         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
108330         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
108332 2005-09-25  Jim Meyering  <jim@meyering.net>
108334         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
108335         also uses socklen_t.
108337 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
108339         * lib/utimens.c (ENOSYS): Define if not already defined.
108340         (futimens): Support having a null PATH if the file descriptor
108341         is nonnegative.
108343         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
108344         Remove.
108345         (__attribute): Define to empty unless GCC 3.1 or later.
108346         This works around a core dump on OpenBSD 3.4, which has GCC
108347         2.95.3, which dumps core when given __attribute__(()).  It also
108348         simplifies other tests, since we really don't want to bother with
108349         worrying about which ancient version of GCC supported what.
108350         Original problem reported by Yoann Vandoorselaere, with part of
108351         the fix suggested by Derek Price.
108353 2005-09-24  Jim Meyering  <jim@meyering.net>
108355         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
108356         so we can once again use a positive bitfield width of 1 -- now we
108357         don't have to explain why we were using a bitfield width of 2.
108359 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
108361         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
108362         and similarly for the other external symbols.  Problem reported
108363         by James Gallager.
108365         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
108366         bug reported by Jim Meyering.
108368         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
108369         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
108370         not needed, since socklen is a prerequisite module.
108372 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
108374         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
108375         Problem reported by Eric Blake.
108376         (getaddrinfo): Initialize se so that it's not garbage.
108377         Redo internal storage allocation so that it doesn't make unportable
108378         assumptions about alignment.
108379         Fix a memory leak.
108381         * lib/utimens.c (futimens): Use futimesat if available.
108382         Prefer it to futimes since it doesn't have the futimes bug.
108384         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
108385         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
108386         Instead, declare a function that returns a pointer to an array,
108387         and use verify_type__ to declare the size of the array.
108388         Problem and germ of a solution reported by Bruno Haible.
108389         (verify_type__): Use 2, not 1, for bitfield size, to avoid
108390         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
108392 2005-09-23  Jim Meyering  <jim@meyering.net>
108394         Sync from coreutils.
108395         Correct build failure (socklen_t not defined) on at least
108396         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
108397         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
108399 2005-09-23  Jim Meyering  <jim@meyering.net>
108401         * modules/getaddrinfo (Depends-on): Add socklen.
108403 2005-09-23  Bruno Haible  <bruno@clisp.org>
108405         * tests/test-verify.c: New file.
108407 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
108409         Sync from coreutils.
108411         * modules/argmatch (Depends-on): Add verify.
108412         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
108413         unistd-safer.
108414         * modules/save-cwd (Depends-on): Likewise.
108416         * modules/openat (Files): Add lib/openat-die.c.
108417         (Depends-on): Remove error, exitfail.
108418         Add dirname.
108420         * modules/verify: New file.
108421         * MODULES.html.sh (Diagnostics <assert.h>): New section,
108422         with "verify" module.
108424 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
108426         Sync from coreutils.
108428         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
108429         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
108430         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
108431         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
108432         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
108433         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
108434         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
108435         Don't bother checking for string.h, stdlib.h, unistd.h.
108436         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
108437         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
108438         module's job.
108439         * m4/jm-macros.m4 (gl_MACROS): Likewise.
108440         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
108442         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
108443         (gl_GETDATE): Use it.
108445         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
108447 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
108449         Sync from coreutils.
108451         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
108452         stat-time.h.
108453         * lib/argmatch.h: Include verify.h
108454         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
108455         (ARGMATCH_ASSERT): Remove; unused.
108456         * lib/canonicalize.c: Assume STDC_HEADERS.
108457         * lib/exclude.c: Include "strcase.h".
108458         * lib/regex_internal.h [!defined _LIBC]: Likewise.
108459         * lib/getusershell.c: Include stdio--.h rather than stdio.h
108460         and stdio-safer.h.
108461         (getusershell): Call fopen, not fopen_safer.
108462         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
108463         Do not include unistd-safer.h.
108464         (save_cwd): Don't call fd_safer; no longer needed
108465         now that we include fcntl--.h.
108467         * lib/getdate.y (relative_time): New type.
108468         (RELATIVE_TIME_0): New constant.
108469         (parser_control): Use relative_time instead of doing it ourselves.
108470         (%union): Add new relative_time rel member.
108471         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
108472         Now typeless.
108473         (relunit, relunit_snumber): Now of type rel.
108474         (zone, rel, relunit, get_date): Adjust to above changes.
108476         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
108477         Do not include unistd-safer.h.
108478         (getloadavg): Don't call fd_safer; no longer needed
108479         now that we include fcntl--.h.
108481         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
108482         (make_dir_parents): Treat ENOSYS like EEXIST.
108484         Improve quality of diagnostics on restore_cwd failure.
108485         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
108486         (make_dir_parents): Last arg is now int * (for errno), not bool *.
108487         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
108488         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
108489         each time through the loop.  Do not diagnose restore_cwd failure;
108490         that is the caller's job (and perhaps the caller does not care).
108492         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
108493         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
108494         If the file already exists but is not a directory, don't bother
108495         to try to make its parents.
108496         Close potential file descriptor leak if we can't chdir("/") (!).
108497         Don't always return true if chdir($PWD) fails; return true only
108498         if the requested action was done successfully (except for the
108499         chdir($PWD)).
108500         Don't log final directory unless we actually made it.
108501         Refactor to avoid duplicate code to fix up permissions.
108502         Don't attempt to fix up parent permissions if chdir($PWD) fails.
108504         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
108505         to make it a bit faster and (I hope) clearer.
108506         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
108507         Fix bug in formats like %2N.
108509         * lib/verify.h: New file.
108511 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
108513         Sync from coreutils.
108514         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
108516 2005-09-22  Jim Meyering  <jim@meyering.net>
108518         Sync from coreutils.
108520         * m4/lstat.m4 (gl_FUNC_LSTAT):
108521         Use AC_LIBSOURCES to require lstat.c and lstat.h.
108522         Remove obsolete comment.
108523         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
108524         * m4/xstrtod.m4: Likewise.
108526         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
108528 2005-09-22  Jim Meyering  <jim@meyering.net>
108530         Sync from coreutils.
108532         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
108534         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
108535         the .tm_year member, since otherwise gcc-4.0 would now warn about
108536         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
108538         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
108539         order to avoid an unsuppressible warning from gcc on 64-bit systems.
108541         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
108542         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
108543         when run in a time zone for which daylight savings time is in effect
108544         for the starting date.
108546         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
108547         stop us from restricting permissions of just-created absolute-named
108548         directories.
108549         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
108550         to restore initial working directory.
108551         * lib/mkdir-p.c (make_dir_parents): New parameter:
108552         different_working_dir, to tell caller if/when we change the working
108553         directory and are unable to return to the initial one.
108554         * lib/mkdir-p.h (make_dir_parents): Update prototype.
108555         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
108556         `return false'.  This fixes a bug introduced on 2004-07-30.
108558         * lib/openat.c (fdopendir): Be sure to close the supplied
108559         file descriptor before returning.  This makes our replacement
108560         implementation a little closer to Solaris's, where fdopendir
108561         ties the file descriptor to the returned DIR* pointer.
108562         * lib/openat.c (unlinkat): New function.
108563         * lib/openat.h (unlinkat): Add prototype.
108564         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
108565         (openat_restore_fail): Rename from openat_restore_die.
108566         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
108568         Provide an alternative to exiting immediately upon save_cwd or
108569         restore_cwd failure.  Now, an application can arrange e.g.,
108570         to perform a longjump in that case.
108571         * lib/openat.c: Include dirname.h.
108572         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
108573         (rpl_openat, fdopendir, fstatat): Call openat_save_die
108574         and openat_restore_die rather than calling error directly.
108575         Don't include "error.h" or "exitfail.h"; they're no longer needed.
108577         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
108578         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
108579         define.
108581         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
108582         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
108583                             int utc, int nanoseconds);
108584         Background:
108585         date should not have to allocate a megabyte of virtual memory to
108586         handle a format argument like +%1048575T.  When implemented with
108587         strftime, it must allocate such a buffer, use strftime to fill it
108588         in, print it, then free it.
108589         With fprintftime, it simply prints everything and exits.
108590         With no need for memory allocation, that's one fewer way to fail.
108591         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
108592         optional field width, not before, so we accept %9:z, not %:9z.
108593         (my_strftime): Be sure to use L_('x') for literals.
108595         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
108596         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
108597         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
108598         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
108599         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
108600         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
108601         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
108602         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
108603         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
108604         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
108605         * lib/xgethostname.c, lib/xreadlink.c:
108606         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
108608         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
108609         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
108610         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
108611         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
108612         and don't include <sys/file.h>).
108614 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
108616         Sync from coreutils.
108618         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
108619         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
108620         [!LDAV_DONE]: Avoid unused variable warning.
108622 2005-09-21  Bruno Haible  <bruno@clisp.org>
108624         * lib/unicodeio.h (unicode_to_mb): New declaration.
108626 2005-09-20  Derek Price  <derek@ximbiot.com>
108628         * lib/getaddrinfo.c: Don't include <netdb.h> included from
108629         getaddrinfo.h.
108631 2005-09-20  Bruno Haible  <bruno@clisp.org>
108633         * gnulib-tool: Remove trailing slashes from the values specified for
108634         --source-base, --m4-base, --tests-base, --aux-dir.
108635         Suggested by Simon Josefsson <jas@extundo.com>.
108637 2005-09-20  Bruno Haible  <bruno@clisp.org>
108639         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
108640         func_modules_to_filelist, func_import, func_create_testdir): Make all
108641         sorting results locale-independent, so that gnulib-cache.m4 doesn't
108642         change when gnulib-tool is invoked in a different locale.
108644 2005-09-19  Simon Josefsson  <jas@extundo.com>
108646         * m4/socklen.m4: Fix typo.
108648 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108650         Use a consistent style for including <config.h>.
108651         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
108652         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
108653         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
108654         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
108655         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
108656         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
108657         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
108658         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
108659         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
108660         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
108661         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
108662         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
108663         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
108664         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
108665         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
108666         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
108667         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
108668         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
108669         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
108670         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
108671         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
108672         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
108673         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
108674         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
108675         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
108676         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
108677         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
108678         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
108679         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
108680         lib/xstrtoumax.c, lib/yesno.c:
108681         Standardize inclusion of config.h.
108682         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
108683         lib/inttostr.h:  Removed inclusion of config.h from header files.
108684         * lib/inttostr.c:  Adjusted in-tree users.
108685         * lib/timespec.h: Remove superfluous warning to include config.h.
108686         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
108687         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
108688         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
108689         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
108690         config.h with HAVE_CONFIG_H.
108692 2005-09-19  Jim Meyering  <jim@meyering.net>
108694         * modules/pathmax (License): Change to LGPL.
108696 2005-09-19  Derek Price  <derek@ximbiot.com>
108698         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
108700 2005-09-19  Bruno Haible  <bruno@clisp.org>
108702         * gnulib-tool (import): Provide default for --tests-base.
108704 2005-09-19  Bruno Haible  <bruno@clisp.org>
108706         * doc/quote.texi: New file, extracted from gnulib.texi.
108707         * doc/ctime.texi: New file, extracted from gnulib.texi.
108708         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
108709         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
108710         * doc/gnulib.texi: Include them.
108712 2005-09-18  Bruno Haible  <bruno@clisp.org>
108714         Portability fix.
108715         * gnulib-tool (func_readlink): New function.
108716         (func_ln_if_changed): Use it.
108718 2005-09-18  Bruno Haible  <bruno@clisp.org>
108720         * gnulib-tool: Support --with-tests also with --import.
108721         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
108722         (func_import): Use variables $testsbase and $inctests. Emit a
108723         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
108724         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
108725         SUBDIRS += $testsdir.
108726         (func_create_testdir): Update.
108728 2005-09-18  Bruno Haible  <bruno@clisp.org>
108730         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
108731         instead of $dry_run.
108732         (func_cp_if_changed, func_mv_if_changed): Remove functions.
108733         (func_ln_if_changed): Don't handle dry-run here.
108734         (func_import): In dry-run mode, detect more precisely which actions
108735         would be performed, and don't use "...ing" verbs.
108737 2005-09-18  Bruno Haible  <bruno@clisp.org>
108739         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
108740         (func_import): Use join on two temporary files instead of three nested
108741         loops, in order to determine which files are new or old.
108743 2005-09-18  Bruno Haible  <bruno@clisp.org>
108745         * gnulib-tool (func_import): Comment out code that spits out the
108746         new files with --dry-run.
108748 2005-09-18  Bruno Haible  <bruno@clisp.org>
108750         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
108752 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
108754         * lib/stat-time.h: New file.
108755         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
108756         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
108757         in a different way.
108758         (timespec_cmp): New function.
108759         * lib/utimecmp.c: Include stat-time.h.
108760         (SYSCALL_RESOLUTION): Depend on whether various struct stat
108761         members exist, not on the obsolescent ST_MTIM_NSEC.
108762         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
108764 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
108766         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
108768 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
108770         * MODULES.html.sh (File system functions): Add stat-time.
108771         * modules/stat-time: New file.
108772         * modules/timespec (Files): Remove m4/st_mtim.m4; this
108773         is now done in a different way, by the stat-time module.
108774         * modules/utimecmp (Depends-on): Add stat-time.
108776 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
108778         * m4/st_mtim.m4: Remove.  Superseded by...
108779         * m4/stat-time.m4: New file.
108780         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
108781         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
108783 2005-09-15  Derek Price  <derek@ximbiot.com>
108785         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
108787 2005-09-15  Derek Price  <derek@ximbiot.com>
108789         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
108790         * lib/regex_internal.c: Ditto, using this...
108791         (__GNUC_PREREQ): ...new macro.
108792         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
108793         using...
108794         (__GNUC_PREREQ): ...this new macro.
108796         * lib/strstr.h: Include string.h. Define strstr as a macro here.
108798 2005-09-15  Derek Price  <derek@ximbiot.com>
108799             Paul Eggert  <eggert@cs.ucla.edu>
108801         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
108802         changes, consolidating in...
108803         * lib/regex_internal.h: ...this file.
108805 2005-09-13  Jim Meyering  <jim@meyering.net>
108807         * lib/canon-host.c: Filter through gnu indent and reword comments
108808         slightly.
108809         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
108811 2005-09-13  Derek Price  <derek@ximbiot.com>
108813         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
108814         failure.
108815         Reported by Jim Meyering  <jim@meyering.net>.
108817 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
108819         * lib/base64.c: Typo.
108820         (base64_encode): Put b64str in initialized data section.
108822 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
108824         Merge glibc and coreutils changes into gnulib, plus a few
108825         extra fixes.
108826         * lib/md5.c: Use #error rather than a string.
108827         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
108828         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
108829         (__attribute__): Define to empty for non recent-GCC.
108830         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
108831         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
108832         Renamed from their non-__ counterparts, with new macros replacing
108833         them if not _LIBC.  Add __THROW attribute.
108834         (rol): Remove.
108835         (struct md5_ctx): Align buffer if using GCC.
108836         * lib/sha1.h (struct sha1_ctx): Likewise.
108837         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
108838         The old name was backwards.
108839         (NOTSWAP): Remove; not used.
108840         (rol): New macro, moved here from md5.h.
108841         (sha1_process_block): Remove a FIXME that doesn't make sense.
108843 2005-09-12  Derek Price  <derek@ximbiot.com>
108845         Return usable errors from canon-host.
108846         * lib/canon-host.h: New file.
108847         * lib/canon-host.c (canon_host): Wrap...
108848         (canon_host_r): ...this new function, which now relies exclusively on
108849         getaddrinfo.
108850         (ch_strerror): New function.
108851         (last_cherror): New global.
108852         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
108853         interface.
108854         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
108855         void *.
108856         (freeaddrinfo): Free ai->ai_canonname when set.
108858 2005-09-12  Derek Price  <derek@ximbiot.com>
108860         Make canon-host require getaddrinfo.
108861         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
108862         AC_LIBSOURCE canon-host.h.  Call...
108863         (gl_PREREQ_CANON_HOST): ...this new function, which requires
108864         gl_GETADDRINFO.
108865         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
108867 2005-09-12  Derek Price  <derek@ximbiot.com>
108869         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
108870         LGPL.
108871         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
108873 2005-09-12  Derek Price  <derek@ximbiot.com>
108875         * lib/gai_strerror.c: Include config.h when available.  Include
108876         getaddrinfo.h before other headers to test interface.
108877         Reported by Larry Jones <lawrence.jones@ugs.com>.
108879 2005-09-12  Derek Price  <derek@ximbiot.com>
108880             Paul Eggert  <eggert@cs.ucla.edu>
108882         * modules/glob (Files): Add glob-libc.h.
108884 2005-09-12  Derek Price  <derek@ximbiot.com>
108885             Paul Eggert  <eggert@cs.ucla.edu>
108887         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
108888         glob_.h, glob-libc.h.
108889         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
108891 2005-09-12  Derek Price  <derek@ximbiot.com>
108892             Paul Eggert  <eggert@cs.ucla.edu>
108894         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
108895         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
108896         protecting things that should be done only in gnulib contexts.
108897         * lib/glob_.h: New file, containing only the glob things needed for
108898         gnulib.
108899         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
108900         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
108901         (glob, globfree, glob_pattern_p): Now defined simply in terms of
108902         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
108903         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
108904         and to respect the namespace rules better.
108906 2005-09-08  Simon Josefsson  <jas@extundo.com>
108908         * modules/socklen: New file.
108910 2005-09-08  Simon Josefsson  <jas@extundo.com>
108912         * m4/socklen.m4: New file.
108914 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
108916         * modules/utimens (Files): Add m4/utimbuf.m4, since
108917         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
108918         Reported by Sergey Poznyakoff.
108920 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
108922         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
108923         definitions, since that's the preferred style in glibc.
108924         Fix a minor spacing issue, and update copyright notice to match
108925         glibc's.
108927 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
108929         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
108931 2005-09-06  Simon Josefsson  <jas@extundo.com>
108933         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
108934         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
108936 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
108938         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
108939         warning.
108941 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
108943         * config/srclist.txt: Add glibc bug 1302.
108945 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
108947         Change bitset word type from unsigned int to unsigned long int,
108948         as this has better performance on typical 64-bit hosts.
108949         Port bitset code to hosts with unusual word sizes.
108950         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
108951         (build_collating_symbol):
108952         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
108953         argument is a bitset.  This is merely a style issue, but it makes
108954         it clearer that an entire array is expected.
108955         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
108956         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
108957         Port to the case where bitset_word is not the same as unsigned int.
108958         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
108959         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
108960         Likewise.
108961         * lib/regexec.c (check_dst_limits_calc_pos_1,
108962         check_subexp_matching_top):
108963         (build_trtable, group_nodes_into_DFAstates):
108964         Likewise.
108965         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
108966         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
108967         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
108968         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
108969         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
108970         * lib/regcomp.c (optimize_subexps, lower_subexp):
108971         Work even if bitset_word has holes in its bitwise representation.
108972         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
108973         * lib/regexec.c (check_dst_limits_calc_pos_1,
108974         check_subexp_matching_top):
108975         Likewise.
108976         * lib/regex_internal.c (re_string_reconstruct):
108977         Don't assume UCHAR_MAX == 255.
108978         * lib/regex_internal.h (bitset_set_all): Likewise.
108979         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
108980         All uses changed.
108981         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
108982         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
108983         All uses changed.
108984         (BITSET_WORD_MAX): New macro.
108985         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
108986         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
108987         (bitset_empty, bitset_copy):
108988         Prefer sizeof (bitset) to multiplying it out ourselves.
108989         (bitset_not_merge): Remove; unused.
108990         (bitset_contain): Return bool, not unsigned int with one bit on.
108991         All callers changed.
108992         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
108993         alignment than re_node_set; do this by defining a new internal
108994         type struct dests_alloc and using it to allocate memory.
108996 2005-09-05  Bruno Haible  <bruno@clisp.org>
108998         * gnulib-tool (func_import): Fix comparison in handling of symbolic
108999         links.
109001 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
109003         * modules/size_max (Makefile.am): Add size_max.h
109005 2005-09-04  Derek Price  <derek@ximbiot.com>
109007         * gnulib-tool (func_import): Fix reversed $symbolic logic.
109009 2005-09-03  Simon Josefsson  <jas@extundo.com>
109011         * gnulib-tool: Fix typo.
109013 2005-09-03  Simon Josefsson  <jas@extundo.com>
109015         * config/srclist.txt: Add glibc bug 1293.
109017 2005-09-03  Derek Price  <derek@ximbiot.com>
109019         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
109020         From Larry Jones <lawrence.jones@ugs.com>.
109022 2005-09-02  Simon Josefsson  <jas@extundo.com>
109024         * modules/socklen: New file.
109026 2005-09-02  Simon Josefsson  <jas@extundo.com>
109028         * modules/havelib: New module.
109030         * modules/gettext, modules/iconv, modules/lock, modules/readline:
109031         Use havelib.
109033 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
109035         Check for arithmetic overflow when calculating sizes, to prevent
109036         some buffer-overflow issues.  These patches are conservative, in the
109037         sense that when I couldn't determine whether an overflow was possible,
109038         I inserted a run-time check.
109039         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
109040         macros.
109041         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
109042         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
109043         (re_xnrealloc, re_x2nrealloc): New inline functions.
109044         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
109045         parse_bracket_exp):
109046         (build_equiv_class, build_charclass): Check for arithmetic overflow
109047         in size expression calculations.
109048         * lib/regex_internal.c (re_string_realloc_buffers):
109049         (build_wcs_upper_buffer, re_node_set_add_intersect):
109050         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
109051         (re_dfa_add_node, register_state): Likewise.
109052         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
109053         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
109054         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
109055         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
109057 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
109059         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
109060         m4/ulonglong.m4.  Problem reported by Martin Lambers.
109062 2005-09-02  Bruno Haible  <bruno@clisp.org>
109064         Support for lib vs. lib64 distinction on biarch platforms.
109065         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
109066         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
109067         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
109069 2005-09-02  Bruno Haible  <bruno@clisp.org>
109071         * gnulib-tool (import): In the other first-use case, provide defaults
109072         as well.
109074 2005-09-02  Bruno Haible  <bruno@clisp.org>
109076         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
109077         patches not yet found in the latest gettext release.
109079 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109081         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
109082         to avoid a collision with bits/local_lim.h in glibc.
109083         All uses changed.  Problem reported by Dmitry V. Levin in
109084         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
109086         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
109087         bugs in int versus size_t comparisons.
109088         (re_string_context_at): Fix bug where the code assumed that
109089         Idx is signed.
109091         Use bool where appropriate.
109092         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
109093         All callers changed.
109094         (calc_eclosure_iter): Likewise, for ROOT arg.
109095         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
109096         (build_charclass_op): Likewise, for NON_MATCH arg.
109097         * lib/regex_internal.c (re_string_allocate, re_string_construct):
109098         (re_string_construct_common): Likewise, for ICASE arg.
109099         * lib/regexec.c (re_search_2_stub, re_search_stub):
109100         Likewise, for RET_LEN arg.
109101         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
109102         (set_regs): Likewise, for FL_BACKTRACK arg.
109103         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
109104         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
109105         (calc_eclosure_iter, parse_bracket_exp):
109106         Use bool for internal variables that are booleans.
109107         * lib/regexec.c (re_search_internal, check_matching,
109108         proceed_next_node):
109109         (set_regs, build_sifted_states, sift_states_bkref):
109110         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
109111         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
109112         (find_collation_sequence_value):
109113         Likewise.
109114         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
109115         (re_node_set_compare):
109116         Return bool, not int. All callers changed.
109117         * lib/regexec.c (check_halt_node_context, check_dst_limits):
109118         (build_trtable, check_node_accept): Likewise.
109119         * lib/regex_internal.h: Include stdbool.h.
109121         Fix bugs uncovered when converting to bool.
109122         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
109123         failure instead of charging ahead blindly.
109124         * lib/regex_internal.c (register_state): Likewise.
109125         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
109126         for freeing internal storage.
109127         (group_nodes_into_DFA_states): Use unsigned int, not int, for
109128         bitset pieces used as boolean, to avoid undefined behavior
109129         on hosts that do int overflow checking.
109131 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109133         * config/srclist.txt: Add glibc bugs 1285-1287.
109135 2005-09-01  Jim Meyering  <jim@meyering.net>
109137         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
109138         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
109139         Require gl_STAT_MACROS, too.
109141 2005-09-01  Bruno Haible  <bruno@clisp.org>
109143         * gnulib-tool (import): In the first-use case, provide defaults.
109145 2005-09-01  Bruno Haible  <bruno@clisp.org>
109147         * gnulib-tool (func_import): Remove the .tmp files.
109149 2005-09-01  Bruno Haible  <bruno@clisp.org>
109151         * gnulib-tool (func_import): Fix handling of symbolic links.
109153 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109155         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
109156         old glibc regex code mishandles strings longer than 2**31 bytes.
109157         This patch fixes this when the regex code is used in gnulib
109158         (i.e., outside glibc).
109160         This patch should not affect the use of the regex code inside
109161         glibc.  No doubt this problem also needs to be handled for glibc
109162         as well, but the result will be an incompatible change to the
109163         glibc ABI, and the old ABI will have to be supported too.  That
109164         can be the subject for another patch.
109166         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
109167         governing whether the rest of this patch is active.  By default,
109168         the macro is disabled and the patch has no effect.
109169         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
109170         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
109171         (struct re_pattern_buffer, re_search, re_search_2, re_match):
109172         (re_match_2, re_set_registers): Use the new types.
109173         * lib/regex_internal.h (Idx, re_hashval_t): New types.
109174         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
109175         New macros.
109176         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
109177         (re_string_context_at, bin_tree_t, re_dfastate_t):
109178         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
109179         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
109180         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
109181         (re_string_char_size_at, re_string_wchar_at):
109182         (re_string_elem_size_at):
109183         Use the new types and macros to port to 64-bit hosts.
109184         Use unsigned types for internal values, so that the code
109185         mostly works even for arrays larger than SSIZE_MAX.
109186         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
109187         (search_duplicated_node, calc_eclosure_iter, fetch_number):
109188         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
109189         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
109190         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
109191         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
109192         (calc_inveclosure, parse_dup_op, build_range_exp):
109193         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
109194         (fetch_number, create_token_tree, mark_opt_subexp):
109195         Likewise.
109196         * lib/regex_internal.c (re_string_construct_common,
109197         create_ci_newstate):
109198         (create_cd_newstate, re_string_allocate, re_string_construct):
109199         (re_string_realloc_buffers, build_wcs_upper_buffer):
109200         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
109201         (re_string_reconstruct, re_string_peek_byte_case):
109202         (re_string_fetch_byte_case, re_string_context_at):
109203         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
109204         (re_node_set_init_copy, re_node_set_add_intersect):
109205         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
109206         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
109207         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
109208         (re_acquire_state, re_acquire_state_context, register_state):
109209         Likewise.
109210         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
109211         search_cur_bkref_entry):
109212         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
109213         (re_search_internal, re_search_2_stub, re_search_stub)
109214         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
109215         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
109216         (update_cur_sifted_state, check_dst_limits):
109217         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
109218         (check_subexp_limits, sift_states_bkref, merge_state_array):
109219         (check_subexp_matching_top, get_subexp, get_subexp_sub):
109220         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
109221         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
109222         (expand_bkref_cache, check_node_accept_bytes):
109223         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
109224         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
109225         (acquire_init_state_context, check_halt_node_context):
109226         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
109227         (sift_states_backward, clean_state_log_if_needed):
109228         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
109229         (find_recover_state, transit_state_sb, transit_state_mb):
109230         (transit_state_bkref, build_trtable, match_ctx_clean):
109231         Likewise.
109232         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
109233         to work around an assumption that REG_MISSING is negative.
109235         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
109236         (seek_collating_symbol_entry) [defined _LIBC]:
109237         (lookup_collation_sequence_value) [defined _LIBC]:
109238         (build_range_exp, build_collating_symbol) [defined _LIBC]:
109239         Use prototypes rather than old-style function definitions.
109240         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
109241         (transit_state_sb) [0]:
109242         (find_collation_sequence_value) [defined _LIBC]: Likewise.
109244         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
109245         rm_eo.
109247         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
109248         (optimize_subexps, lower_subexp):
109249         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
109250         since the signed shift might overflow.  Use 1u<<31 instead.
109251         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
109252         Likewise.
109253         * lib/regexec.c (check_dst_limits_calc_pos_1,
109254         check_subexp_matching_top): Likewise.
109256         * lib/regcomp.c (optimize_subexps, lower_subexp):
109257         Use CHAR_BIT rather than 8, for clarity.
109258         * lib/regexec.c (check_dst_limits_calc_pos_1):
109259         (check_subexp_matching_top): Likewise.
109260         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
109261         have to worry about portability issues when shifting it left.
109262         Remove no-longer-needed test for table_size > 0.
109263         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
109264         in a word, as the resulting behavior is undefined.
109265         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
109266         in one case, a <= should have been an <, and in another case the
109267         whole test was missing.
109268         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
109269         the standard name CHAR_BIT.
109270         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
109271         this is not true on one's complement and signed-magnitude hosts.
109273         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
109274         next_last_offset.
109275         (struct re_dfa_t): Remove unused member states_alloc.
109276         * lib/regcomp.c (init_dfa): Don't initialize unused members.
109278 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109280         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
109281         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
109282         and large-file glibc and in 32-bit large-file Solaris.
109284 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109286         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
109287         lengths fit in regoff_t; this isn't true if regoff_t is the same
109288         width as size_t.
109289         * lib/regex.c (re_search_internal): 5th arg is LAST_START
109290         (= START + RANGE) instead of RANGE.  This avoids overflow
109291         problems when regoff_t is the same width as size_t.
109292         All callers changed.
109293         (re_search_2_stub): Check for overflow when adding the
109294         sizes of the two strings.
109295         (re_search_stub): Check for overflow when adding START
109296         to RANGE; if it occurs, substitute the extreme value.
109298 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109300         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
109302 2005-08-31  Jim Meyering  <jim@meyering.net>
109304         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
109305         a pointer-to-const.
109306         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
109307         (register_state): Likewise.
109308         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
109309         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
109310         (group_nodes_into_DFAstates): Likewise.
109312 2005-08-31  Jim Meyering  <jim@meyering.net>
109314         * check-module: Add a FIXME comment.
109316 2005-08-31  Eric Blake  <ebb9@byu.net>
109318         * modules/unistd-safer (Files): Add unistd--.h.
109319         * modules/stdio-safer (Files): Add stdio--.h.
109321 2005-08-31  Derek Price  <derek@ximbiot.com>
109323         * lib/getdelim.c (getdelim): Return EOF on EOF.
109324         Reported by Larry Jones <lawrence.jones@ugs.com>.
109326 2005-08-31  Bruno Haible  <bruno@clisp.org>
109328         Avoid unnecessary diffs in the generated lib/Makefile.am.
109329         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
109330         the generated files.
109331         (func_import): Don't set cmd.
109333 2005-08-31  Bruno Haible  <bruno@clisp.org>
109335         * lib/strstr.c: Include <stddef.h>, for NULL.
109336         * lib/strcasestr.c: Likewise.
109337         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
109339 2005-08-31  Bruno Haible  <bruno@clisp.org>
109341         * gnulib-tool: New option --macro-prefix.
109342         (func_import): Use macro_prefix.
109343         (import): Handle option --macro-prefix.
109345 2005-08-31  Bruno Haible  <bruno@clisp.org>
109347         * gnulib-tool (import): Rename most ac_* variables to cached_*.
109348         Also use new variables cached_lgpl, cached_libtool.
109350 2005-08-31  Bruno Haible  <bruno@clisp.org>
109352         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
109353         always instantiating them.
109355 2005-08-31  Bruno Haible  <bruno@clisp.org>
109357         * gnulib-tool (func_import): Read the previous cached settings
109358         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
109359         earlier added by gnulib but are now dropped. Warn when a gnulib file
109360         overwrites a non-gnulib file.
109362 2005-08-31  Bruno Haible  <bruno@clisp.org>
109364         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
109365         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
109366         projects that don't keep autogenerated files in CVS. Put into
109367         actioncmd only the specified modules, not the transitive closure.
109369 2005-08-31  Bruno Haible  <bruno@clisp.org>
109371         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
109372         Create directories that shall be filled.
109373         (import): Don't look for gl_* macros in configure.ac. Recurse across
109374         all directories containing a gnulib-cache.m4 files, if meaningful.
109376 2005-08-31  Bruno Haible  <bruno@clisp.org>
109378         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
109379         (import): Set seen_libtool when we see gl_LIBTOOL.
109381 2005-08-31  Bruno Haible  <bruno@clisp.org>
109383         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
109384         declaration macro definitions from generated gnulib.m4.
109386 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
109388         * lib/iconvme.h: Add prototype for iconv_alloc.
109390 2005-08-29  Simon Josefsson  <jas@extundo.com>
109392         * lib/iconvme.c: Fix errno.
109394 2005-08-29  Bruno Haible  <bruno@clisp.org>
109396         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
109397         that it works when the directory contains spaces.
109399 2005-08-29  Bruno Haible  <bruno@clisp.org>
109401         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
109403 2005-08-29  Bruno Haible  <bruno@clisp.org>
109405         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
109406         Emit more advice.
109408 2005-08-29  Bruno Haible  <bruno@clisp.org>
109409         and Stepan Kasal  <kasal@ucw.cz>
109411         * check-module: If more parameters are given, check each of them
109412         separately; add more exceptions, as noted by Jim Meyering.
109413         (check_module): New procedure.
109414         (%exempt_header): Now contains all exceptions.
109416 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
109418         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
109420 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
109422         * lib/iconvme.c: Split iconv_string into iconv_alloc.
109424 2005-08-28  Bruno Haible  <bruno@clisp.org>
109426         * m4/gnulib-tool.m4: New file.
109428 2005-08-27  Jim Meyering  <jim@meyering.net>
109430         * modules/unistd-safer (Files): Add pipe-safer.c.
109431         * modules/fcntl-safer (Files): Add creat-safer.c.
109433 2005-08-27  Jim Meyering  <jim@meyering.net>
109435         * m4/stdlib-safer.m4: New file.  From coreutils.
109436         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
109437         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
109438         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
109439         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
109440         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
109442 2005-08-27  Jim Meyering  <jim@meyering.net>
109444         * lib/fopen-safer.c: Merge minor changes from coreutils.
109445         * lib/dup-safer.c: Likewise.
109446         * lib/fd-safer.c: Likewise.
109448         Merge from coreutils.
109449         * lib/stdio--.h: New file.
109450         * lib/stdlib--.h: New file.
109451         * lib/mkstemp-safer.c: New file.
109453         GNU tar needs these.
109454         * lib/pipe-safer.c: New file.
109455         * lib/creat-safer.c: New file.
109456         * lib/fcntl--.h (creat): Define to creat_safer.
109457         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
109458         * lib/unistd--.h (pipe): Define to pipe_safer.
109459         * lib/unistd-safer.h: Declare pipe_safer.
109461 2005-08-26  Simon Josefsson  <jas@extundo.com>
109463         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
109464         Haible <bruno@clisp.org>.
109466 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
109468         * lib/regex_internal.h: Remove all references to
109469         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
109470         or better.
109471         (bitset_not, bitset_merge, bitset_not_merge):
109472         (bitset_mask, re_string_allocate, re_string_construct):
109473         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
109474         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
109475         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
109476         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
109477         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
109478         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
109479         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
109480         (re_acquire_state_context):
109481         Remove unnecessary forward decls.
109482         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
109483         Put __attribute at function definition,
109484         now that the function decl has been removed.
109485         * lib/regex_internal.c (re_string_peek_byte_case):
109486         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
109487         Likewise.
109489 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
109491         * m4/regex.m4: Add AC_PREREQ(2.50).
109492         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
109494 2005-08-25  Simon Josefsson  <jas@extundo.com>
109496         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
109497         __fsetlocking.
109499 2005-08-25  Simon Josefsson  <jas@extundo.com>
109501         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
109502         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
109503         GLIBC specific code.
109505 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
109507         Make regex safe for g++.  This fixes one real bug (an "err"
109508         that should have been "*err").  g++ problem reported by
109509         Sam Steingold.
109510         * lib/regex_internal.h (re_calloc): New macro, consistent with
109511         re_malloc etc.  All callers of calloc changed to use re_calloc.
109512         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
109513         not int.  All callers changed.
109514         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
109515         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
109516         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
109517         (find_recover_state): Change "err" to "*err"; this fixes what
109518         appears to be a real bug.
109519         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
109520         versus int.
109522 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
109524         * modules/regex (Depends-on): Add malloc, since the code
109525         assumes that !malloc(0) means failure.
109527 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
109529         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
109531         alloca modernization/simplification for regex.
109532         * lib/regex.c: Remove portability cruft for alloca.  This no longer
109533         needs to be at the start of the file, and can be moved into
109534         regex_internal.h and simplified.
109535         * lib/regex_internal.h: Include <alloca.h>.
109536         (__libc_use_alloca) [!defined _LIBC]: New macro.
109537         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
109538         now works outside glibc.
109540 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
109542         * config/srclist.txt: Add glibc bugs 1241, 1245.
109544 2005-08-25  Jim Meyering  <jim@meyering.net>
109546         * lib/open-safer.c: Include <config.h>.
109547         Otherwise, we'd lose LARGEFILE support in any file using
109548         e.g. "fcntl--.h"
109550 2005-08-25  Bruno Haible  <bruno@clisp.org>
109552         * m4/minmax.m4: Require autoconf 2.52.
109553         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
109554         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
109555         alternatives of translit over the alphabet.
109556         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
109558 2005-08-24  Simon Josefsson  <jas@extundo.com>
109560         * tests/test-getpass.c: New file.
109562 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
109564         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
109565         for GNU regex features.
109567 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
109569         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
109570         * lib/regex.h (regerror): Likewise.
109572         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
109573         requires this.  (The code never needed it.)
109575         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
109576         All uses of recently-renamed identifiers changed to use the new,
109577         POSIX-compliant names.  The code will build and run just fine
109578         without these changes, but it's better to eat our own dog food
109579         and use the standard-conforming names.
109581         * lib/regex.h: Fix a multitude of POSIX name space violations.
109582         These changes have an effect only for programs that define
109583         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
109584         do not change anything for programs compiled in the normal way.
109585         Also, there is no effect on the ABI.
109587         (_REGEX_SOURCE): New macro.
109588         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
109589         defined and _GNU_SOURCE is not; this fixes a name space violation.
109591         Rename the following macros to obey POSIX requirements.
109592         The old names are still visible as macros if _REGEX_SOURCE is defined.
109593         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
109594         RE_BACKSLASH_ESCAPE_IN_LISTS.
109595         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
109596         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
109597         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
109598         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
109599         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
109600         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
109601         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
109602         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
109603         (REG_INTERVALS): renamed from RE_INTERVALS.
109604         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
109605         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
109606         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
109607         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
109608         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
109609         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
109610         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
109611         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
109612         RE_UNMATCHED_RIGHT_PAREN_ORD.
109613         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
109614         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
109615         (REG_DEBUG): renamed from RE_DEBUG.
109616         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
109617         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
109618         unusual, since we can't clash with the POSIX REG_ICASE.
109619         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
109620         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
109621         (REG_NO_SUB): renamed from RE_NO_SUB.
109622         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
109623         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
109624         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
109625         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
109626         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
109627         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
109628         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
109629         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
109630         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
109631         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
109632         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
109633         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
109634         RE_SYNTAX_POSIX_MINIMAL_BASIC.
109635         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
109636         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
109637         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
109638         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
109639         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
109640         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
109641         (REG_FIXED): Renamed from REGS_FIXED.
109642         (REG_NREGS): Renamed from RE_NREGS.
109644         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
109645         of other REG_* macros, since POSIX says the user is allowed to
109646         #undef these macros selectively.
109648         (reg_errcode_t): Update comment stating what other tables need
109649         to be consistent.
109651         Rename the following enum values to obey POSIX requirements.
109652         The old names are still visible as macros.
109653         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
109654         is not defined, since GNU is supposed to be a superset of POSIX as
109655         much as possible, and since we want reg_errcode_t to be a signed
109656         type for implementation consistency.
109657         (_REG_NOERROR): Renamed from REG_NOERROR.
109658         (_REG_NOMATCH): Renamed from REG_NOMATCH.
109659         (_REG_BADPAT): Renamed from REG_BADPAT.
109660         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
109661         (_REG_ECTYPE): Renamed from REG_ECTYPE.
109662         (_REG_EESCAPE): Renamed from REG_EESCAPE.
109663         (_REG_ESUBREG): Renamed from REG_ESUBREG.
109664         (_REG_EBRACK): Renamed from REG_EBRACK.
109665         (_REG_EPAREN): Renamed from REG_EPAREN.
109666         (_REG_EBRACE): Renamed from REG_EBRACE.
109667         (_REG_BADBR): Renamed from REG_BADBR.
109668         (_REG_ERANGE): Renamed from REG_ERANGE.
109669         (_REG_ESPACE): Renamed from REG_ESPACE.
109670         (_REG_BADRPT): Renamed from REG_BADRPT.
109671         (_REG_EEND): Renamed from REG_EEND.
109672         (_REG_ESIZE): Renamed from REG_ESIZE.
109673         (_REG_ERPAREN): Renamed from REG_ERPAREN.
109674         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
109675         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
109676         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
109677         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
109679         (_REG_RE_NAME, _REG_RM_NAME): New macros.
109680         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
109681         changed.  But support the old name if the new one is not defined
109682         and if _REGEX_SOURCE.
109684         Change the following member names in struct re_pattern_buffer.
109685         The old names are still supported if !_REGEX_SOURCE.
109686         The new names are always supported, regardless of _REGEX_SOURCE.
109687         (re_buffer): Renamed from buffer.
109688         (re_allocated): Renamed from allocated.
109689         (re_used): Renamed from used.
109690         (re_syntax): Renamed from syntax.
109691         (re_fastmap): Renamed from fastmap.
109692         (re_translate): Renamed from translate.
109693         (re_can_be_null): Renamed from can_be_null.
109694         (re_regs_allocated): Renamed from regs_allocated.
109695         (re_fastmap_accurate): Renamed from fastmap_accurate.
109696         (re_no_sub): Renamed from no_sub.
109697         (re_not_bol): Renamed from not_bol.
109698         (re_not_eol): Renamed from not_eol.
109699         (re_newline_anchor): Renamed from newline_anchor.
109701         Change the following member names in struct re_registers.
109702         The old names are still supported if !_REGEX_SOURCE.
109703         The new names are always supported, regardless of _REGEX_SOURCE.
109704         (rm_num_regs): Renamed from num_regs.
109705         (rm_start): Renamed from start.
109706         (rm_end): Renamed from end.
109708         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
109709         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
109710         Prepend __ to parameter names.
109712         Undo yesterday's changes.
109714 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
109716         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
109717         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
109718         lib/regex.c.
109720 2005-08-24  Jim Meyering  <jim@meyering.net>
109722         Sync from coreutils.
109723         * m4/fcntl-safer.m4: New file.
109725         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
109726         and object files for this module.
109728 2005-08-24  Jim Meyering  <jim@meyering.net>
109730         Sync from coreutils.
109731         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
109733 2005-08-24  Jim Meyering  <jim@meyering.net>
109735         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
109736         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
109738 2005-08-24  Jim Meyering  <jim@meyering.net>
109740         * modules/fcntl-safer: New module.
109741         * modules/fts (Depends-on): Add fcntl-safer.
109742         * MODULES.html.sh (File descriptor based Input/Output):
109743         Add fcntl-safer.
109745 2005-08-24  Bruno Haible  <bruno@clisp.org>
109747         Support for unit test modules.
109748         * modules/README: Mention tests modules.
109749         * modules/TEMPLATE-TESTS: New file.
109750         * gnulib-tool: New options --extract-tests-module, --with-tests and
109751         --tests-base (unused for the moment).
109752         (testsbase, inctests): New variables.
109753         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
109754         (func_verify_module): Exclude TEMPLATE-TESTS.
109755         (func_verify_nontests_module, func_verify_tests_module): New functions.
109756         (func_get_dependencies): Add implicit dependency for tests modules.
109757         (func_get_tests_module): New function.
109758         (func_modules_transitive_closure): When --with-tests was specified,
109759         include the unit tests as well, unless explicitly avoided.
109760         (func_emit_lib_Makefile_am): Ignore the tests modules here.
109761         (func_emit_tests_Makefile_am): New function.
109762         (func_create_testdir): When --with-tests was specified, emit a
109763         tests/ directory.
109764         * MODULES.html.sh (Future developments): Update.
109766 2005-08-24  Bruno Haible  <bruno@clisp.org>
109768         * modules/tls-tests: New file.
109769         * tests/test-tls.c: New file, from GNU gettext.
109771 2005-08-24  Bruno Haible  <bruno@clisp.org>
109773         * modules/lock-tests: New file.
109774         * tests/test-lock.c: New file, from GNU gettext.
109776 2005-08-24  Bruno Haible  <bruno@clisp.org>
109778         * lib/lock.h: Add multiple inclusion guard.
109779         * lib/tls.h: Add multiple inclusion guard.
109781 2005-08-24  Bruno Haible  <bruno@clisp.org>
109783         * gnulib-tool: Add support for the --aux-dir option to
109784         --create-testdir, --create-megatestdir, --test, --megatest.
109785         (func_create_testdir, func_create_megatestdir): Optionally emit a
109786         AC_CONFIG_AUX_DIR directive.
109787         (create-testdir, create-megatestdir, test, megatest): Provide a
109788         default value for $auxdir.
109790 2005-08-24  Bruno Haible  <bruno@clisp.org>
109792         * gnulib-tool (import): Use compound statement instead of subshell
109793         where possible.
109795 2005-08-24  Bruno Haible  <bruno@clisp.org>
109797         * gnulib-tool (import): Change --aux-dir default to "build-aux".
109799 2005-08-24  Bruno Haible  <bruno@clisp.org>
109801         * gnulib-tool (func_version): Update.
109803 2005-08-24  Bruno Haible  <bruno@clisp.org>
109805         * gnulib-tool (func_import, func_create_testdir,
109806         func_create_megatestdir): Quote all autoconf macro arguments.
109808 2005-08-24  Bruno Haible  <bruno@clisp.org>
109810         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
109811         option --force, because --force causes the aclocal.m4 of each
109812         subdirectory to be newer than the corresponding config.h.in.
109814 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
109816         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
109817         All contents moved to gl_REGEX.
109818         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
109819         assume that it does.
109821 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
109823         * lib/regex.h (REG_NOSYS)
109824         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
109825         Define, since POSIX requires it as of 2001.
109826         (_REG_ENOSYS)
109827         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
109828         New private symbol, used to keep the enum signed in all cases.
109829         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
109830         Youngman in
109831         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
109833         * lib/regex_internal.c (re_string_skip_chars, register_state):
109834         (calc_state_hash):
109835         Remove forward decls; no longer needed now that we use prototypes.
109836         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
109837         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
109838         (clean_state_log_if_needed): Likewise.
109840 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
109842         * config/srclist.txt: Add glibc bugs 1231-1233.
109844 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
109846         Fix problems reported by Sam Steingold in
109847         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
109848         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
109849         assumed that reg_errcode_t is a signed type, which is not
109850         necessarily true if _XOPEN_SOURCE is not defined.
109851         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
109852         since some compilers warn about it otherwise.
109854 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
109856         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
109857         (init_word_char, create_initial_state, duplicate_node_closure):
109858         (fetch_token, peek_token_bracket, build_range_exp):
109859         (build_collating_symbol): Remove forward decls; no longer needed
109860         now that we use prototypes.
109862         * lib/regcomp.c:
109863         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
109864         (re_compile_fastmap_iter, regcomp, regerror, regfree):
109865         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
109866         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
109867         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
109868         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
109869         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
109870         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
109871         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
109872         (build_range_exp, build_collating_symbol, parse_bracket_exp):
109873         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
109874         (build_charclass, build_charclass_op, fetch_number, create_tree):
109875         (create_token_tree, mark_opt_subexp, duplicate_tree):
109876         Use prototypes rather than old-style definitions.
109878         * lib/regex_internal.c:
109879         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
109880         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
109881         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
109882         (re_string_reconstruct, re_string_peek_byte_case):
109883         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
109884         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
109885         (re_node_set_init_copy, re_node_set_add_intersect):
109886         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
109887         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
109888         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
109889         (re_acquire_state, re_acquire_state_context, register_state):
109890         (create_ci_newstate, create_cd_newstate, free_state):
109891         Likewise.
109892         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
109893         re_search_2):
109894         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
109895         (re_search_internal, prune_impossible_nodes):
109896         (acquire_init_state_context, check_matching, static):
109897         (check_halt_node_context, check_halt_state_context, proceed_next_node):
109898         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
109899         (update_regs, sift_states_backward, build_sifted_states):
109900         (clean_state_log_if_needed, merge_state_array):
109901         (update_cur_sifted_state, add_epsilon_src_nodes):
109902         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
109903         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
109904         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
109905         (find_recover_state, check_subexp_matching_top, transit_state_mb):
109906         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
109907         (check_arrival, check_arrival_add_next_nodes):
109908         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
109909         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
109910         (check_node_accept_bytes, check_node_accept, extend_buffers):
109911         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
109912         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
109913         (sift_ctx_init):
109914         Likewise.
109916         * lib/regex_internal.h:
109917         (re_string_allocate, re_string_construct, re_string_reconstruct):
109918         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
109919         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
109920         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
109921         (re_string_context_at, re_string_peek_byte_case):
109922         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
109923         is defined, since we now use prototypes always.
109925         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
109926         C89 or better.  All uses removed.
109928 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
109930         * config/srclist.txt: Add glibc bugs 1220-1227.
109932 2005-08-20  Jim Meyering  <jim@meyering.net>
109934         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
109935         of unused local, dfa.
109937 2005-08-20  Bruno Haible  <bruno@clisp.org>
109939         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
109941 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
109943         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
109944         (re_node_set_insert_last, re_dfa_add_node):
109945         Rename local variables to avoid GCC shadowing warnings.
109947 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
109949         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
109950         [defined lint]: Suppress bogus uninitialized-variable warnings.
109952         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
109953         and let the caller return REG_ESPACE if out of space.  This
109954         removes an uninitialied-variable warning with GCC 4.0.1, and also
109955         avoids taking the address of a local variable.  All callers
109956         changed.
109958 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
109960         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
109961         $LIBCSRC/posix/regexec.c.
109962         Add glibc bug 1217 for regcomp.c.
109964 2005-08-19  Jim Meyering  <jim@meyering.net>
109966         * lib/regexec.c (proceed_next_node): Redo local variables to
109967         avoid GCC shadowing warnings.
109969 2005-08-18  Bruno Haible  <bruno@clisp.org>
109971         * lib/strstr.c (strstr): Fix return value in multibyte case.
109972         * lib/strcasestr.c (strcasestr): Likewise.
109974 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
109976         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
109978 2005-08-17  Jim Meyering  <jim@meyering.net>
109980         Make the %s format (seconds since the epoch) work for a negative
109981         number and when used with a zero-padded field width, e.g. %015s.
109983         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
109984         label so that it precedes the code to set `digits'.  Otherwise,
109985         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
109986         print `00-22'.  Now, it prints `-0022', as it should.
109988 2005-08-17  Bruno Haible  <bruno@clisp.org>
109990         * modules/strstr (Files): Add m4/mbrtowc.m4.
109991         (Depends-on): Add mbuiter.
109993 2005-08-17  Bruno Haible  <bruno@clisp.org>
109995         * modules/strcasestr: New file.
109996         * MODULES.html.sh (String handling, based on ANSI C 89): Add
109997         strcasestr.
109999 2005-08-17  Bruno Haible  <bruno@clisp.org>
110001         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
110003 2005-08-17  Bruno Haible  <bruno@clisp.org>
110005         * modules/mbuiter: New file.
110006         * MODULES.html.sh (Extended multibyte and wide character utilities):
110007         Add mbuiter.
110009 2005-08-17  Bruno Haible  <bruno@clisp.org>
110011         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
110012         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
110014 2005-08-17  Bruno Haible  <bruno@clisp.org>
110016         * m4/strcasestr.m4: New file.
110018 2005-08-17  Bruno Haible  <bruno@clisp.org>
110020         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
110021         * lib/strstr.c: Completely rewritten, with multibyte locale support.
110023 2005-08-17  Bruno Haible  <bruno@clisp.org>
110025         * lib/strcasestr.h: New file.
110026         * lib/strcasestr.c: New file.
110028 2005-08-17  Bruno Haible  <bruno@clisp.org>
110030         * lib/strcasecmp.c: Use mbuiter.h.
110032 2005-08-17  Bruno Haible  <bruno@clisp.org>
110034         * lib/mbuiter.h: New file.
110036 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
110038         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
110039         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
110040         and gl_GETOPT are both invoked via different paths (as happens
110041         with GNU tar CVS because it uses both argp and getopt), the former
110042         wins.
110044 2005-08-16  Bruno Haible  <bruno@clisp.org>
110046         * modules/tls: New file.
110047         * MODULES.html.sh (Multithreading): Add tls.
110049 2005-08-16  Bruno Haible  <bruno@clisp.org>
110051         * modules/strnlen1: New file.
110052         * MODULES.html.sh (String handling): Add strnlen1.
110054 2005-08-16  Bruno Haible  <bruno@clisp.org>
110056         * modules/strcase (Files): Add m4/mbrtowc.m4.
110057         (Depends-on): Add strnlen1, mbchar.
110059 2005-08-16  Bruno Haible  <bruno@clisp.org>
110061         * modules/mbiter: New file.
110062         * MODULES.html.sh (Extended multibyte and wide character utilities):
110063         Add mbiter.
110065 2005-08-16  Bruno Haible  <bruno@clisp.org>
110067         * modules/mbfile: New file.
110068         * MODULES.html.sh (Extended multibyte and wide character utilities):
110069         Add mbfile.
110071 2005-08-16  Bruno Haible  <bruno@clisp.org>
110073         * modules/mbchar: New file.
110074         * MODULES.html.sh (Extended multibyte and wide character utilities):
110075         New section.
110077 2005-08-16  Bruno Haible  <bruno@clisp.org>
110079         * m4/tls.m4: New file, from GNU gettext.
110081 2005-08-16  Bruno Haible  <bruno@clisp.org>
110083         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
110084         always.
110085         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
110087 2005-08-16  Bruno Haible  <bruno@clisp.org>
110089         * m4/mbiter.m4: New file.
110091 2005-08-16  Bruno Haible  <bruno@clisp.org>
110093         * m4/mbfile.m4: New file.
110095 2005-08-16  Bruno Haible  <bruno@clisp.org>
110097         * m4/mbchar.m4: New file.
110099 2005-08-16  Bruno Haible  <bruno@clisp.org>
110101         * lib/tls.h: New file, from GNU gettext.
110102         * lib/tls.c: New file, from GNU gettext.
110104 2005-08-16  Bruno Haible  <bruno@clisp.org>
110106         * lib/strnlen1.h: New file.
110107         * lib/strnlen1.c: New file.
110109 2005-08-16  Bruno Haible  <bruno@clisp.org>
110111         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
110112         (mbi_init): Update.
110113         (mbi_avail, mbi_advance): Let the iteration end before the terminating
110114         NUL byte, not after it.
110116 2005-08-16  Bruno Haible  <bruno@clisp.org>
110118         * lib/strcase.h (strcasecmp): Add note in comments.
110119         * lib/strncasecmp.c: Use code from strcasecmp.c.
110120         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
110121         (strcasecmp): Work correctly in multibyte locales.
110123 2005-08-16  Bruno Haible  <bruno@clisp.org>
110125         * lib/mbiter.h: New file.
110127 2005-08-16  Bruno Haible  <bruno@clisp.org>
110129         * lib/mbfile.h: New file.
110131 2005-08-16  Bruno Haible  <bruno@clisp.org>
110133         * lib/mbchar.h: New file.
110134         * lib/mbchar.c: New file.
110136 2005-08-16  Bruno Haible  <bruno@clisp.org>
110138         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
110139         the valid ones. Makes the comparison operations transitive:
110140         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
110141         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
110143 2005-08-15  Simon Josefsson  <jas@extundo.com>
110145         * modules/ssize_t (License): Change to 'unlimited'.
110147         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
110149 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110151         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
110152         Add comments for each pending glibc patch.
110154 2005-08-15  Bruno Haible  <bruno@clisp.org>
110156         * lib/regex.h (__restrict_arr): Don't define to __restrict if
110157         __cplusplus is defined.
110159 2005-08-14  Jim Meyering  <jim@meyering.net>
110161         Sync from coreutils.
110163         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
110164         Use the hash-table-based cycle-detection code not just when
110165         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
110166         Reported by James Youngman in
110167         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
110168         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
110169         FTS_TIGHT_CYCLE_CHECK.
110170         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
110171         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
110172         once again.
110173         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
110174         * lib/fts.c (fd_safer): Remove decl.
110175         Include fcntl--.h rather than unistd-safer.h
110176         (fts_safe_changedir): Don't call fd_safer; no longer needed
110177         now that we include fcntl--.h.
110179 2005-08-12  Simon Josefsson  <jas@extundo.com>
110181         * modules/getndelim2: Use ssize_t module.
110182         * modules/getnline: Likewise.
110183         * modules/safe-read: Likewise.
110184         * modules/xreadlink: Likewise.
110186         * modules/ssize_t: New file.
110188 2005-08-12  Simon Josefsson  <jas@extundo.com>
110190         * m4/readline.m4: Look for termcap, curses or ncurses if required.
110192 2005-08-12  Simon Josefsson  <jas@extundo.com>
110194         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
110195         ssize_t.
110197 2005-08-12  Simon Josefsson  <jas@extundo.com>
110199         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
110200         readline, getdelim and check_version.
110201         (Support for systems lacking ISO C 99: Sizes of integer types):
110202         Add size_max.
110204 2005-08-12  Bruno Haible  <bruno@clisp.org>
110206         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
110208 2005-08-11  Simon Josefsson  <jas@extundo.com>
110210         * modules/readline: New file.
110212         * modules/strnlen (Files): Add strnlen.h.
110214 2005-08-11  Simon Josefsson  <jas@extundo.com>
110216         * m4/readline.m4: New file.
110218 2005-08-11  Simon Josefsson  <jas@extundo.com>
110220         * lib/readline.h, readline.c: New file.
110222 2005-08-11  Simon Josefsson  <jas@extundo.com>
110224         * doc/gnulib.texi (Initial import, Finishing touches): Mention
110225         gl_AVOID.
110227 2005-08-11  Bruno Haible  <bruno@clisp.org>
110229         * lib/strnlen.h (strnlen): Change parameter name to match comment.
110231 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
110233         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
110235 2005-08-10  Simon Josefsson  <jas@extundo.com>
110237         * tests/test-iconvme.c: New file.
110239 2005-08-10  Simon Josefsson  <jas@extundo.com>
110241         * m4/strnlen.m4: New file.
110243         * m4/strndup.m4: Don't check for strnlen declaration, done in
110244         strnlen.m4.
110246 2005-08-10  Simon Josefsson  <jas@extundo.com>
110248         * lib/strndup.c: Use strnlen.h.
110250         * lib/strnlen.h: New file.
110252 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
110254         * README: Typos.
110256 2005-08-02  Simon Josefsson  <jas@extundo.com>
110258         * modules/readline: New file.
110260 2005-08-02  Simon Josefsson  <jas@extundo.com>
110262         * modules/getdelim: New file.
110264         * modules/getline: Rewrite, don't use getndelim2.
110266 2005-08-02  Simon Josefsson  <jas@extundo.com>
110268         * m4/getline.m4: Separate out getdelim stuff into separate module.
110270         * m4/getdelim.m4: New file.
110272 2005-08-02  Simon Josefsson  <jas@extundo.com>
110274         * lib/getline.h, getline.c: Rewrite.
110276         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
110278 2005-07-31  Bruno Haible  <bruno@clisp.org>
110280         * lib/lock.h (gl_lock_initializer): New macro.
110281         (gl_lock_define_initialized): Use it.
110282         (gl_rwlock_initializer): New macro.
110283         (gl_rwlock_define_initialized): Use it.
110284         (gl_recursive_lock_initializer): New macro.
110285         (gl_recursive_lock_define_initialized): Use it.
110287 2005-07-30  Karl Berry  <karl@gnu.org>
110289         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
110290         Report from Ben Pfaff, regarding getopt.
110292 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
110294         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
110295         normal way.
110296         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
110297         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
110298         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
110299         (gl_GETOPT): Use the new macros.  Most of the implementation
110300         is moved to the new macros.  This is for programs like Emacs
110301         that don't want all the functionality of gl_GETOPT.
110303 2005-07-26  Bruno Haible  <bruno@clisp.org>
110305         * m4/lock.m4: Update from GNU gettext.
110307 2005-07-26  Bruno Haible  <bruno@clisp.org>
110309         * lib/lock.h: Update from GNU gettext.
110310         * lib/lock.c: Update from GNU gettext.
110312 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
110314         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
110315         obsolescent AC_TRY_RUN.  Include the default includes files, for
110316         'exit'.
110318 2005-07-24  Bruno Haible  <bruno@clisp.org>
110320         * modules/visibility: New file.
110321         * MODULES.html.sh (Misc): Add visibility.
110323 2005-07-24  Bruno Haible  <bruno@clisp.org>
110325         * m4/visibility.m4: New file.
110327 2005-07-24  Bruno Haible  <bruno@clisp.org>
110329         * doc/visibility.texi: New file.
110331 2005-07-22  Bruno Haible  <bruno@clisp.org>
110333         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
110334         $(ALLOCA_H), redundant through BUILT_SOURCES.
110335         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
110336         redundant through BUILT_SOURCES.
110337         * modules/byteswap (Makefile.am): Remove explicit dependency on
110338         $(BYTESWAP_H), redundant through BUILT_SOURCES.
110339         * modules/fnmatch (Makefile.am): Remove explicit dependency on
110340         $(FNMATCH_H), redundant through BUILT_SOURCES.
110341         * modules/getopt (Makefile.am): Remove explicit dependency on
110342         $(GETOPT_H), redundant through BUILT_SOURCES.
110343         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
110344         redundant through BUILT_SOURCES.
110345         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
110346         redundant through BUILT_SOURCES.
110347         * modules/stdbool (Makefile.am): Remove explicit dependency on
110348         $(STDBOOL_H), redundant through BUILT_SOURCES.
110349         * modules/stdint (Makefile.am): Remove explicit dependency on
110350         $(STDINT_H), redundant through BUILT_SOURCES.
110351         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
110352         Remove explicit dependency on $(SYSEXITS_H).
110353         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
110355 2005-07-18  Simon Josefsson  <jas@extundo.com>
110357         * lib/check-version.c (check_version): Accept identical versions too.
110359 2005-07-18  Bruno Haible  <bruno@clisp.org>
110361         * modules/lock: New file.
110362         * MODULES.html.sh (Multithreading): New section.
110364 2005-07-18  Bruno Haible  <bruno@clisp.org>
110366         * m4/lock.m4: New file, from GNU gettext.
110368 2005-07-18  Bruno Haible  <bruno@clisp.org>
110370         * lib/lock.h: New file, from GNU gettext.
110371         * lib/lock.c: New file, from GNU gettext.
110373 2005-07-18  Bruno Haible  <bruno@clisp.org>
110375         * lib/lock.h (gl_once_t): New type.
110376         (gl_once_define, gl_once): New macros.
110377         * lib/lock.c (fresh_once): New variable.
110378         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
110379         functions.
110381 2005-07-16  Simon Josefsson  <jas@extundo.com>
110383         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
110384         workaround, suggested by Bruno.
110386 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
110388         * modules/xalloc (Depends-on): Add xalloc-die.
110389         * modules/xvasprintf (Depends-on): Add xalloc-die.
110391 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
110393         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
110394         with a minor change.
110396 2005-07-15  Bruno Haible  <bruno@clisp.org>
110398         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
110399         When using lib/poll.c, define poll as rpl_poll.
110401 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
110403         * modules/argp (Depends-on): Remove unlocked-io.
110405 2005-07-14  Derek Price  <derek@ximbiot.com>
110407         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
110408         for glob symlink bug.
110410 2005-07-14  Bruno Haible  <bruno@clisp.org>
110412         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
110413         Instead, test for *_unlocked function declarations directly.
110415 2005-07-11  Simon Josefsson  <jas@extundo.com>
110417         * modules/size_max: New file.
110419         * modules/xsize: Depend on size_max module for size_max.m4.
110421 2005-07-11  Simon Josefsson  <jas@extundo.com>
110423         * lib/size_max.h: New file.
110425 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
110427         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
110428         copyright symbol and the year.
110429         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
110430         (version_etc_va): Use parameterized copyright notice.
110431         Reword to conform to the current GNU coding standards.
110433 2005-07-11  Karl Berry  <karl@gnu.org>
110435         * doc/gnulib.texi (Quoting): new node.
110436         (Initial import): more info, from Patrice.
110438 2005-07-11  Bruno Haible  <bruno@clisp.org>
110440         * gnulib-tool (func_usage): Document option --avoid.
110441         (Command line options): Handle --avoid.
110442         (func_acceptable): New function.
110443         (func_modules_transitive_closure): Use it.
110445 2005-07-11  Bruno Haible  <bruno@clisp.org>
110447         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
110448         Reported by Jim Meyering.
110450 2005-07-10  Bruno Haible  <bruno@clisp.org>
110452         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
110453         Needed when size_t is smaller than 'unsigned int'.
110454         Reported by Paul Eggert.
110456 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
110458         * modules/argp (Depends-on): Add unlocked-io
110460 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
110462         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
110463         block of defines.
110465 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
110467         * config/srclist.txt: Comment out regcomp.c, since we have a porting
110468         fix now.
110470 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
110471         and Paul Eggert  <eggert@cs.ucla.edu>
110473         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
110474         in wint_t, not wchar_t.  Remove now-unnecessary cast.
110476 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
110478         * modules/regex (Files): Add lib/regex_internal.c,
110479         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
110480         (Depends-on): Add extensions.
110481         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
110483 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
110485         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
110486         pathconf.
110487         * m4/same.m4 (gl_SAME): Likewise.
110488         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
110490         * m4/regex.m4: Adjust to new libc regex implementation.
110491         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
110492         all the .c and .h parts of (the new) regex.
110493         Quote the m4 stuff better.
110494         Check for RE_ICASE bug of old gnulib.
110495         Check for REG_STARTEND of recent libc.
110496         Rename local variables from jm_* to gl_*.
110497         Quote operand of "test -f".
110498         Say "recent enough" version of libc, not "version 2".
110499         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
110500         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
110501         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
110502         Remove check for btowc, isascii.
110503         Require AM_LANGINFO_CODESET.
110505 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
110507         * lib/regex.c, regex.h: Sync from libc.
110508         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
110509         * lib/regexec.c:
110510         New files, synced from libc, except that regex_internal.h
110511         currently has a small porting fix.
110513 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
110515         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
110516         regex_internal.c, regexec.c.
110517         Add regex_internal.h too, but as a comment, since the libc version
110518         is currently broken in gnulib mode.
110520 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
110522         Support programs like Emacs that use gnulib but not gettext.
110523         * MODULES.html.sh (Internationalization functions): Add gettext-h.
110524         * modules/gettext-h: New file.
110525         * modules/gettext (Files): Remove lib/gettext.h.
110526         (Depends-on): Add gettext-h.
110527         (Makefile.am): Remove lib_SOURCES.
110528         * modules/argmatch, modules/c-stack, modules/closeout:
110529         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
110530         * modules/execute, modules/file-type, modules/getaddrinfo:
110531         * modules/getopt, modules/human, modules/javacomp:
110532         * modules/javaexec, modules/mkdir-p, modules/obstack:
110533         * modules/openat, modules/pagealign_alloc, modules/pipe:
110534         * modules/quotearg, modules/regex, modules/rpmatch:
110535         * modules/unicodeio, modules/userspec, modules/version-etc:
110536         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
110537         * modules/xsetenv:
110538         Depend on gettext-h, not gettext.
110540 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
110542         * gnulib-tool (func_import): Add support for 'public domain' license.
110543         * modules/alloca, modules/atexit, modules/memmove:
110544         Now public domain, not GPL.
110545         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
110546         * modules/realloc, modules/strerror, modules/strtod:
110547         Now LGPL, not GPL.
110549 2005-07-05  Bruno Haible  <bruno@clisp.org>
110551         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
110552         autoconf CVS. Needed for mingw.
110554 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
110556         Remove the dependency of the strftime module on the tzset module.
110557         * modules/strftime (Depends-on): Remove dependency on tzset.
110559 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
110561         Remove the dependency of the strftime module on the tzset module.
110562         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
110563         gl_FUNC_TZSET_CLOBBER.
110565 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
110567         Remove the dependency of the strftime module on the tzset module.
110568         * lib/strftime.c (my_strftime)
110569         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
110570         Copy the input structure, to work around some of the bug with
110571         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
110572         Solaris releases, you should also use the tzset module, but we won't
110573         require it as a dependency any more since we don't want LGPLed code
110574         to depend on GPLed code.
110576 2005-07-02  Jim Meyering  <jim@meyering.net>
110578         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
110579         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
110580         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
110581         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
110583 2005-07-02  Jim Meyering  <jim@meyering.net>
110585         * lib/backupfile.c (backup_args): Change a `0' to NULL.
110587 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
110589         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
110590         declares only 'struct timespec;' (!).
110592 2005-07-01  Jim Meyering  <jim@meyering.net>
110594         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
110595         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
110596         * lib/save-cwd.c, tempname.c:
110597         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
110598         and don't include <sys/file.h>).
110600 2005-06-29  Jim Meyering  <jim@meyering.net>
110602         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
110603         type name.  Use the variable name instead.
110604         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
110605         Likewise.
110607 2005-06-28  Simon Josefsson  <jas@extundo.com>
110609         * modules/check-version (Files): Add check-version.m4.
110611 2005-06-28  Simon Josefsson  <jas@extundo.com>
110613         * m4/check-version.m4: New file, suggested by Jim Meyering
110614         <jim@meyering.net>.
110616 2005-06-28  Simon Josefsson  <jas@extundo.com>
110618         * lib/check-version.h, lib/check-version.c: New files.
110620 2005-06-28  Simon Josefsson  <jas@extundo.com>
110622         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
110623         collision with global variable.  Better indentation.  Don't
110624         increment buffer pointer beyond buffer end.  Based on comments
110625         from Paul Eggert <eggert@cs.ucla.edu>.
110627         * lib/base64.h: Indent.
110629 2005-06-28  Simon Josefsson  <jas@extundo.com>
110631         * doc/gnulib.texi (Library version handling): New section.
110633 2005-06-28  Jim Meyering  <jim@meyering.net>
110635         * check-module (find_included_lib_files): Hard-code another
110636         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
110637         but modules/fts-lgpl (correctly) does not list those files.
110639         * modules/canonicalize (Files): Add lib/pathmax.h.
110641 2005-06-25  Simon Josefsson  <jas@extundo.com>
110643         * modules/check-version: New file.
110645 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
110647         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
110648         initializer of struct addrinfo, as an indication that we don't
110649         care how many members the structure has.
110651 2005-06-24  Derek Price  <derek@ximbiot.com>
110652         and Bruno Haible  <bruno@clisp.org>
110654         Remove stat module & update lstat.
110655         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
110656         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
110657         * m4/stat.m4: Remove this file.
110659 2005-06-24  Derek Price  <derek@ximbiot.com>
110660         and Bruno Haible  <bruno@clisp.org>
110662         Remove stat module & update lstat.
110663         * lib/stat.c: Remove this file...
110664         (slash_aware_lstat): ...moving this content and its support...
110665         * lib/lstat.c (rpl_lstat): ...into here.
110666         * lib/lstat.h: New file.
110668 2005-06-24  Derek Price  <derek@ximbiot.com>
110669         and Bruno Haible  <bruno@clisp.org>
110671         Remove stat module & update lstat.
110672         * config/srclist.txt (libc sources): Remove stat.
110674 2005-06-24  Derek Price  <derek@ximbiot.com>
110675         and Bruno Haible  <bruno@clisp.org>
110677         Remove stat module & update lstat.
110678         * MODULES.html.sh (stat): Remove.
110679         * MODULES.html: Regenerated.
110680         * modules/lstat (Description): Correct function name.
110681         (Files): Add "lstat.h".
110682         (Depends-on): Remove stat, add xalloc, stat-macros.
110683         * modules/stat: Remove this file.
110684         (Include): Add "lstat.h", remove <sys/stat.h>.
110686 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
110688         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
110689         (ranged_convert): Don't save conversion in a temporary struct.
110690         This causes a warning with GCC 4.0.0, and anyway in the typical
110691         case it's not worth the extra 100 bytes or so of code.
110692         (ranged_convert, __mktime_internal): When calling a function via a
110693         pointer P, use P () rather than (*P) (), as we now assume C89 or
110694         better.
110696 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
110698         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
110699         "who -r" failed to give output.  Problem reported by Tim Waugh.
110701         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
110702         (xcalloc): Use it to avoid needless tests.
110703         Problem reported by Jim Meyering.
110705 2005-06-20  Derek Price  <derek@ximbiot.com>
110707         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
110708         unnecessary for Autoconfs > 2.59c.
110710 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
110712         * lib/argp.h (__option_is_short): Check upper limit of
110713         __key. Isprint() requires its argument to have the value
110714         of an unsigned char or EOF.
110716 2005-06-16  Jim Meyering  <jim@meyering.net>
110718         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
110719         when either N or S is zero.
110721 2005-06-16  Derek Price  <derek@ximbiot.com>
110723         * m4/bison.m4: Declare YACC & YFLAGS precious.
110725 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
110727         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
110728         multibyte string or pattern, fall back on unibyte matching.
110729         Problem reported by James Youngman.
110731 2005-06-08  Bruno Haible  <bruno@clisp.org>
110733         * modules/csharpcomp: New file.
110734         * MODULES.html.sh (C#): Add csharpcomp.
110736 2005-06-08  Bruno Haible  <bruno@clisp.org>
110738         * m4/csharpcomp.m4: New file, from GNU gettext.
110740 2005-06-08  Bruno Haible  <bruno@clisp.org>
110742         * lib/csharpcomp.h: New file, from GNU gettext.
110743         * lib/csharpcomp.c: New file, from GNU gettext.
110744         * lib/csharpcomp.sh.in: New file, from GNU gettext.
110746 2005-06-08  Bruno Haible  <bruno@clisp.org>
110748         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
110749         warning on mingw.
110751 2005-06-07  Derek Price  <derek@ximbiot.com>
110753         Sync from CVS.
110754         * lib/glob_.h: Indent nested #ifdef.
110756 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
110758         Sync from coreutils.
110759         Use "file name" when talking about file names, instead of "filename"
110760         or "path", as per the GNU coding standards.
110761         * lib/mkdir-p.c: Renamed from makepath.c.
110762         (make_dir_parents): Renamed from make_path.  All callers changed.
110763         * lib/mkdir-p.h: Likewise.  All includers changed.
110764         * lib/filenamecat.c: Renamed from path-concat.c.
110765         (file_name_concat): Renamed from path_concat.  All callers changed.
110766         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
110767         * lib/filenamecat.h: Likewise.  All includers changed.
110768         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
110769         in comments or local variable names.
110770         * lib/basename.c: Likewise.
110771         * lib/canonicalize.c, canonicalize.h: Likewise.
110772         * lib/dirname.c, dirname.h: Likewise.
110773         * lib/euidaccess.c: Likewise.
110774         * lib/exclude.c: Likewise
110775         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
110776         * lib/fsusage.c, fsuage.h: Likewise.
110777         * lib/fts.c, fts_.h: Likewise.
110778         * lib/getcwd.c: Likewise.
110779         * lib/getloadavg.c: Likewise.
110780         * lib/mkstemp.c: Likewise.
110781         * lib/mountlist.c, mountlist.h: Likewise.
110782         * lib/openat.c, openat.h: Likewise.
110783         * lib/readlink-stub.c: Likewise.
110784         * lib/readutmp.c, readutmp.h: Likewise.
110785         * lib/rename.c: Likewise.
110786         * lib/rmdir.c: Likewise.
110787         * lib/same.c: Likewise.
110788         * lib/savedir.c: Likewise.
110789         * lib/stripslash.c: Likewise.
110790         * lib/tempname.c: Likewise.
110791         * lib/xreadlink.c: Likewise.
110792         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
110793         All uses changed.
110794         * lib/exclude.h: Likewise.
110796         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
110797         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
110798         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
110799         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
110800         * lib/pathmax.h: Include <limits.h> unconditionally, since other
110801         files have been getting away with it for years (MORE/BSD 4.3
110802         is extinct now).
110803         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
110804         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
110806         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
110807         Define to 256, not 255, as per modern POSIX.
110809 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
110811         Sync from coreutils.
110812         Use "file name" when talking about file names, instead of "filename"
110813         or "path", as per the GNU coding standards.
110814         * MODULES.html.sh: mkdir-p renamed from makepath.
110815         filenamecat renamed from path-concat.
110816         * modules/filenamecat: Renamed from modules/path-concat.
110817         (Files): filenamecat.h and filenamecat.c renamed from
110818         path-concat.h and path-concat.c.
110819         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
110820         (Include): filenamecat.h, not path-concat.h.
110821         * modules/mkdir-p: Renamed from modules/makepath.
110822         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
110823         makepath.c.
110824         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
110825         (Include): mkdir-p.h, not makepath.h.
110827 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
110829         Sync from coreutils.
110830         * m4/mkdir-p.m4: Renamed from makepath.m4.
110831         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
110832         Rename files from makepath.c to mkdir-p.c, and from
110833         makepath.h to mkdir-p.h.
110834         * m4/filenamecat.m4: Renamed from path-concat.m4.
110835         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
110836         Rename files from path-concat.c to filenamecat.c,
110837         and from path-concat.h to filenamecat.h.
110838         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
110839         "file name" in local variables or comments.
110840         * m4/rename.m4: Likewise.
110842 2005-06-01  Bruno Haible  <bruno@clisp.org>
110844         * modules/csharpexec: New file.
110845         * MODULES.html.sh (C#): New section.
110847 2005-06-01  Bruno Haible  <bruno@clisp.org>
110849         * m4/csharp.m4: New file, from GNU gettext.
110850         * m4/csharpexec.m4: New file, from GNU gettext.
110852 2005-06-01  Bruno Haible  <bruno@clisp.org>
110854         * lib/csharpexec.h: New file, from GNU gettext.
110855         * lib/csharpexec.c: New file, from GNU gettext.
110856         * lib/csharpexec.sh.in: New file, from GNU gettext.
110858 2005-05-31  Derek Price  <derek@ximbiot.com>
110859             Paul Eggert  <eggert@cs.ucla.edu>
110861         Sync from cvs.
110862         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
110864 2005-05-31  Derek Price  <derek@ximbiot.com>
110865             Paul Eggert  <eggert@cs.ucla.edu>
110867         Sync from cvs.
110868         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
110870 2005-05-29  Derek Price  <derek@ximbiot.com>
110872         * config/srclist.txt (glob_.h, glob.c): Add these files.
110874 2005-05-29  Derek Price  <derek@ximbiot.com>
110876         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
110877         * modules/glob: New file.
110878         * modules/getlogin_r: Add link to POSIX spec in description.
110880 2005-05-29  Derek Price  <derek@ximbiot.com>
110881             Paul Eggert  <eggert@cs.ucla.edu>
110883         * m4/glob.m4: New file.
110885 2005-05-29  Derek Price  <derek@ximbiot.com>
110886             Paul Eggert  <eggert@cs.ucla.edu>
110888         * lib/glob_.h, lib/glob.c: New files.
110890 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
110892         * modules/fts (Files): Remove m4/inttypes-pri.m4.
110893         * modules/fts-lgpl (Depends-on): Remove gettext.
110895 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
110897         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
110898         and don't require gt_INTTYPES_PRI.
110900 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
110902         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
110904         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
110905         the configuration hassle isn't worth it.
110906         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
110907         (LONGEST_MODIFIER, PRIuMAX): Remove.
110909 2005-05-27  Bruno Haible  <bruno@clisp.org>
110911         * lib/getlogin_r.h: Remove second include of <stddef.h>.
110913 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
110915         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
110916         _POSIX_PTHREAD_SEMANTICS for Solaris.
110918 2005-05-25  Derek Price  <derek@ximbiot.com>
110920         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
110922 2005-05-25  Derek Price  <derek@ximbiot.com>
110923             Paul Eggert  <eggert@cs.ucla.edu>
110925         * modules/getlogin_r, m4/getlogin_r.m4: New files.
110926         * lib/getlogin_r.c, getlogin_r.h: New files.
110928 2005-05-25  Bruno Haible  <bruno@clisp.org>
110929             Derek Price  <derek@ximbiot.com>
110931         * lib/getlogin_r.h: Simplify API documentation.
110933 2005-05-23  Derek Price  <derek@ximbiot.com>
110935         * modules/minmax (Files): Add m4/minmax.m4.
110936         (configure.ac): Add gl_MINMAX.
110938 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
110940         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
110941         so that unistd-safer.h (GPL'ed code) need not be included.
110943 2005-05-22  Bruno Haible  <bruno@clisp.org>
110945         * m4/minmax.m4: New file.
110946         Based on a patch by Derek Price <derek@ximbiot.com>.
110948 2005-05-22  Bruno Haible  <bruno@clisp.org>
110950         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
110951         (INT64_MIN): Fix definition.
110952         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
110954         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
110955         NEED_SIGNED_INT_TYPES.
110957         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
110958         HAVE_SYSTEM_INTTYPES.
110960 2005-05-22  Bruno Haible  <bruno@clisp.org>
110962         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
110963         Also include <sys/param.h> if it defines MIN, MAX.
110964         Based on a patch by Derek Price <derek@ximbiot.com>.
110966 2005-05-21  Jim Meyering  <jim@meyering.net>
110968         * modules/fts (Files): Add m4/inttypes-pri.m4.
110969         (Depends-on): Add lstat and remove gettext.  Alphabetize.
110971 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
110973         New fts module.
110974         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
110975         (setup_dir, free_dir): New functions.
110976         (enter_dir, leave_dir): Define trivial
110977         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
110978         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
110979         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
110980         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
110981         Move to fts-cycle.c.
110982         (fts_open): Use setup_dir.
110983         (fts_close): Use free_dir.
110984         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
110985         This adds a label and some gotos, but the alternatives were messier.
110986         Check for memory allocation failure when entering a dir.
110987         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
110988         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
110989         (FTS): New member fts_cycle, that is a union that contains the
110990         old active_dir_ht and cycle_state.  All uses changed to mention
110991         fts_cycle.ht and fts_cycle.state.
110992         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
110993         fts.c, with the following changes:
110994         (setup_dir, free_dir): New functions.
110995         (enter_dir): Now returns bool.  Return true if successful, false
110996         if memory exhausted.  All callers changed.
110997         Do not bother partly cleaning up on
110998         memory allocation failure; that is free_dir's job.
110999         However, free ad if hash_insert fails, to avoid memory leak.
111000         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
111001         fts->fts_options to see which union member to use.
111003 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
111005         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
111006         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
111008 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
111010         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
111012 2005-05-20  Jim Meyering  <jim@meyering.net>
111014         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
111015         Now a macro, to pacify GCC.
111017 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
111019         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
111020         of -1.
111022 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
111024         * lib/chown.c (rpl_chown): Return -1 on failure.
111026 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
111028         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
111029         Don't check for stddef.h.
111030         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
111031         don't use its results.
111032         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
111033         since we include them unconditionally.  Don't require
111034         AM_STDBOOL_H, since stdbool is a prerequisite.
111035         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
111036         since we assume C89 or better.
111037         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
111038         as we don't use their results.
111039         Don't check for fchdir, memmove, memset, strrchr, as we use
111040         them unconditionally.
111041         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
111042         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
111044 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
111046         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
111047         Include <stddef.h> unconditionally, since we assume C89 now.
111048         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
111049         * lib/fts.c: Include fts_.h first, to check interface.
111050         Do not include intprops.h; no longer needed.
111051         Include cycle-check.h and hash.h, since fts_.h no longer does.
111052         Remove unnecessary casts of closedir to void.
111053         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
111054         decide whether to decrement nlinks.
111055         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
111056         (FTS): Use struct hash_table * instead of Hash_table, so that
111057         we no longer need to include hash.h here.
111059 2005-05-18  Jim Meyering  <jim@meyering.net>
111061         * modules/dirfd (License): Change to LGPL.  Most of the code
111062         is already in the public domain.
111064 2005-05-18  Jim Meyering  <jim@meyering.net>
111066         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
111067         Reported by Yoann Vandoorselaere.
111069 2005-05-17  Jim Meyering  <jim@meyering.net>
111071         * m4/fts.m4: New file, from coreutils.
111073 2005-05-17  Jim Meyering  <jim@meyering.net>
111075         * lib/fts.c, lib/fts_.h: New files, from coreutils.
111077 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
111079         Sync from coreutils.
111080         * m4/unlinkdir.m4: New file.
111082 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
111084         Sync from coreutils.
111085         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
111086         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
111087         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
111088         White space changes only.
111089         * lib/makepath.c (make_path): Port to hosts where leading "//" is
111090         special.
111091         * lib/yesno.c: Include getline.h, not ctype.h.
111092         (yesno): Don't remove leading white space; POSIX doesn't allow it.
111093         Use getline to remove arbitrary restriction on response length.
111095 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
111097         * config/srclist-update: Spell out "Street" in FSF postal
111098         mail address; this is the style the FSF seems to prefer.
111100         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
111101         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
111102         this updates FSF postal mail address.
111104         Sync from coreutils.
111105         * modules/unlinkdir: New file.
111106         * modules/yesno (Depends-on): Add getline.
111107         * MODULES.html.sh (File system functions): Add unlinkdir.
111109 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
111111         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
111112         lib/strsep.h:
111113         Change the initial comment to refer to GPL, not LGPL.
111114         gnulib-tool will change it to LGPL as needed.
111116         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
111117         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
111118         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
111119         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
111120         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
111121         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
111122         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
111123         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
111124         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
111125         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
111126         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
111127         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
111128         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
111129         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
111130         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
111131         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
111132         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
111133         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
111134         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
111135         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
111136         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
111137         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
111138         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
111139         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
111140         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
111141         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
111142         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
111143         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
111144         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
111145         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
111146         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
111147         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
111148         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
111149         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
111150         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
111151         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
111152         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
111153         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
111154         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
111155         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
111156         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
111157         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
111158         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
111159         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
111160         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
111161         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
111162         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
111163         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
111164         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
111165         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
111166         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
111167         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
111168         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
111169         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
111170         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
111171         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
111172         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
111173         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
111174         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
111175         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
111176         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
111177         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
111178         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
111179         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
111180         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
111181         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
111182         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
111183         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
111184         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
111185         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
111186         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
111187         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
111188         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
111189         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
111190         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
111191         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
111192         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
111193         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
111194         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
111195         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
111196         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
111197         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
111198         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
111199         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
111200         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
111201         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
111202         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
111203         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
111204         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
111205         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
111206         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
111207         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
111208         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
111209         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
111210         lib/yesno.c, lib/yesno.h:
111211         Update FSF postal mail address.
111213 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
111215         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
111216         tests/test-memmem.c, tests/test-stpncpy.c:
111217         Update FSF postal mail address.
111219 2005-05-13  Bruno Haible  <bruno@clisp.org>
111221         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
111222         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
111223         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
111224         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
111225         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
111226         Add support for 64-bit integers in the MSVC compiler.
111228 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
111230         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
111232 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
111234         * gnulib-tool (func_import): Sort and uniquify recommended includes.
111236 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
111238         * doc/getdate.texi (General date syntax): Don't say that date
111239         date --iso-8601=ns generates acceptable dates; it doesn't yet.
111240         Problem reported by Nic Ferrier.
111242 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111244         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
111245         specified in ai_socktype. Fix invalid ai_protocol
111246         check. ai_protocol is usually set to 0 or depending on
111247         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
111248         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
111249         ai_socktype / ai_protocol in the returned addrinfo structure.
111251 2005-05-10  Simon Josefsson  <jas@extundo.com>
111253         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
111254         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
111256 2005-05-10  Karl Berry  <karl@gnu.org>
111258         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
111259         (from http://www.gnu.org/licenses).
111260         * doc/COPYING.LIB: also rename to COPYING.LESSER.
111261         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
111262         fdl.texi suffices.
111264 2005-05-10  Karl Berry  <karl@gnu.org>
111266         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
111267         (COPYING.DOC): remove.
111269         * config/srclist-update: new FSF address.
111271 2005-05-10  Derek Price  <derek@ximbiot.com>
111273         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
111274         possible.
111276 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111277             Bruno Haible  <bruno@clisp.org>
111279         * modules/inet_ntop: New file.
111280         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
111281         inet_ntop.
111283 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111284             Bruno Haible  <bruno@clisp.org>
111286         * m4/inet_ntop.m4: New file.
111288 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111289             Bruno Haible  <bruno@clisp.org>
111291         * lib/inet_ntop.h: New file.
111292         * lib/inet_ntop.c: New file, from glibc with modifications.
111294 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
111296         * modules/time_r (License): Change to LGPL.
111297         * modules/extensions (License): Change to LGPL.  Actually,
111298         the license is more permissive than that, but currently gnulib-tool
111299         doesn't know how to handle more-permissive licenses.
111301         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
111302         Problem reported by Dave Love.
111304 2005-05-08  Jim Meyering  <jim@meyering.net>
111306         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
111307         blank.
111309 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
111311         * modules/argmatch (Depends-on): Add stdbool.
111312         * modules/backupfile (Depends-on): Likewise.
111313         * modules/chdir-long (Depends-on): Likewise.
111314         * modules/closeout (Depends-on): Likewise.
111315         * modules/cycle-check (Depends-on): Likewise.
111316         * modules/dirname (Depends-on): Likewise.
111317         * modules/fnmatch (Depends-on): Likewise.
111318         * modules/fsusage (Depends-on): Likewise.
111319         * modules/fwriteerror (Depends-on): Likewise.
111320         * modules/getcwd (Depends-on): Likewise.
111321         * modules/getloadavg (Depends-on): Likewise.
111322         * modules/hard-locale (Depends-on): Likewise.
111323         * modules/makepath (Depends-on): Likewise.
111324         * modules/mountlist (Depends-on): Likewise.
111325         * modules/nanosleep (Depends-on): Likewise.
111326         * modules/posixtm (Depends-on): Likewise.
111327         * modules/quotearg (Depends-on): Likewise.
111328         * modules/readtokens (Depends-on): Likewise.
111329         * modules/readtokens0 (Depends-on): Likewise.
111330         * modules/readutmp (Depends-on): Likewise.
111331         * modules/save-cwd (Depends-on): Likewise.
111332         * modules/strftime (Depends-on): Likewise.
111333         * modules/userspec (Depends-on): Likewise.
111334         * modules/utimecmp (Depends-on): Likewise.
111335         * modules/xgetcwd (Depends-on): Likewise.
111336         * modules/xnanosleep (Depends-on): Likewise.
111337         * modules/xstrtod (Depends-on): Likewise.
111338         * modules/yesno (Depends-on): Likewise.
111340 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
111342         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
111343         needless checks.
111345 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
111347         Merge from coreutils.  Among other things,
111348         add bulletproofing for cases where stdin, stdout, or stderr are closed.
111349         * lib/fd-safer.c: New file.
111350         * lib/fcntl-safer.h, open-safer.c: Remove.
111351         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
111352         * lib/dup-safer.c: Include unistd-safer.h first.
111353         Don't include errno.h.
111354         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
111355         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
111356         * lib/file-type.c: Rely on file-type.h change.
111357         * lib/getloadavg.c: Include unistd-safer.h.
111358         (getloadavg): Use safer open.
111359         * lib/getusershell.c: Include "stdio-safer.h".
111360         (getusershell): Use safer fopen.
111361         * lib/long-options.c (long_options): Use NULL rather than 0.
111362         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
111363         'free'.
111364         * lib/modechange.c: Likewise.
111365         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
111366         (MODE_DONE): New constant.
111367         (struct mode_change): Remove 'next' member.
111368         (make_node_op_equals): New function; like the old one of the
111369         same name, except it allocates an array.
111370         (mode_compile, mode_create_from_ref): Use it.
111371         (mode_compile): Allocate result as an array, not a linked list.
111372         Parse octal string ourself, so that we catch mistakes like "+0".
111373         (mode_adjust): Arg is an array, not a linked list.
111374         * lib/modechange.c: Include stat-macros.h, xalloc.h.
111375         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
111376         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
111377         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
111378         Remove.  This is now stat-macros.h's job.
111379         (talloc): Remove.  All callers replaced by xalloc, so that
111380         our invokers don't have to worry about reporting memory failures.
111381         (make_node_op_equals): Remove.
111382         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
111383         New constants.
111384         (struct mode_change): Moved here from modechange.h.
111385         (mode_append_entry): Remove.
111386         (mode_compile): Remove MASKED_OPS arg, since it encouraged
111387         apps to have incorrect behavior.  Use simpler algorithm for head
111388         and tail.  Don't futz with umask; that's now the job of mode_adjust.
111389         Detect more invalid usages rather than having somewhat-random behavior.
111390         Don't insert an "a=" action, as that leads to incorrect behavior.
111391         (mode_compile, mode_create_from_ref): Return NULL on error instead
111392         of an enum, since now there's only one way to have an error.  All
111393         callers changed.
111394         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
111395         at the correct time.  Simplify calculation of "+u" and its ilk.
111396         Don't mishandle "+X".
111397         (mode_free): Remove "register" and localize decls.
111398         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
111399         (struct mode_change): Move to modechange.c; callers don't
111400         need to see this stuff.
111401         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
111402         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
111403         (mode_change, mode_adjust): Reflect the new signatures noted above.
111404         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
111405         that might redefine system include files.
111406         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
111407         (my_usleep): Use NULL rather than (void *) 0.
111408         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
111409         Use siginterrupt to specify that system calls should be interrupted.
111410         (rpl_nanosleep): Move initialization of suspended closer to call of
111411         my_usleep.
111412         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
111413         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
111414         (desirable_utmp_entry): New function.
111415         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
111416         using x2nrealloc, to simplify logic.
111417         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
111418         size calculation.  Do not assume utmp file is a regular file.
111419         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
111420         (READ_UTMP_CHECK_PIDS): New constant.
111421         * lib/save-cwd.c: Include unistd-safer.h.
111422         (save_cwd): Use fd_safer.
111423         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
111424         [!_LIBC] Include "stat-macros.h" instead.
111425         * lib/unistd-safer.h (fd_safer): New decl.
111427 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
111429         * modules/getloadavg (Depends-on): Add unistd-safer.
111430         * modules/getusershell (Depends-on): Add stdio-safer.
111431         * modules/lstat (Depends-on): Remove xalloc.
111432         * modules/mkstemp (Depends-on): Add stat-macros.
111433         * modules/modechange (Depends-on): Remove xstrtol.
111434         Add stat-macros, xalloc.
111435         * modules/save-cwd (Depends-on): Add unistd-safer.
111436         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
111437         * modules/unistd-safer (Files): Add lib/fd-safer.c
111438         (Makefile.am): Remove lib_SOURCES.
111440         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
111441         Remove fcntl-safer; unistd-safer supersedes it.
111443 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
111445         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
111446         AC_HEADER_STAT.
111447         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
111448         (gl_PREREQ_CHOWN): Remove.
111449         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
111450         it.  Don't require AC_HEADER_STAT.
111451         (gl_PREREQ_LSTAT): Remove.
111452         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
111453         Don't require AC_HEADER_STAT.
111454         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
111455         (gl_PREREQ_RMDIR): Remove.
111456         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
111457         mention stat-macros.h or AC_HEADER_STAT, since we'll make
111458         the stat-macros module a prerequisite.
111459         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
111460         * m4/filemode.m4 (gl_FILEMODE): Likewise.
111461         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
111462         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
111463         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
111464         variable names.
111465         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
111466         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
111467         variable prefixes.
111468         * m4/fcntl-safer.m4: Remove.
111469         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
111470         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
111471         Invoke gl_PREREQ_FD_SAFER.
111472         (gl_PREREQ_FD_SAFER): New macro.
111473         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
111474         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
111475         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
111476         Remove duplicate call to AC_LIBOBJ(readutmp).
111477         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
111479         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
111480         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
111482 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
111484         * MODULES.html.sh (Misc): Add byteswap.
111486 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
111488         * modules/getcwd (Depends-on): Add extensions.
111489         * modules/openat (Depends-on): Likewise.
111491 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
111493         * modules/byteswap: New file.
111495 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
111497         * m4/byteswap.m4: New file.
111499 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
111501         * lib/byteswap_.h: New file.
111503 2005-04-25  Karl Berry  <karl@gnu.org>
111505         * m4/gettext.m4: Update from GNU gettext 0.14.4.
111507 2005-04-25  Albert Chin  <china@thewrittenword.com>
111509         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
111510         Toolkit C bug.
111512 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
111514         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
111515         (func_ln_if_changed): Remove forcibly for no error message
111516         in case file does not exist.
111518 2005-04-19  Simon Josefsson  <jas@extundo.com>
111520         * gnulib-tool (Options): Make --symlink mean --symbolic.
111522 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
111524         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
111526 2005-04-16  Simon Josefsson  <jas@extundo.com>
111528         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
111530 2005-04-15  Simon Josefsson  <jas@extundo.com>
111532         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
111534 2005-04-15  Simon Josefsson  <jas@extundo.com>
111536         * gnulib-tool: Rename --symlink to --symbolic.
111538 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
111540         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
111541         symbolic links to files instead of copying/moving.  Add --aux-dir,
111542         specifying directory relative --dir where auxiliary build tools
111543         are placed.
111545 2005-04-14  Bruno Haible  <bruno@clisp.org>
111547         * modules/allocsa (License): Change to LGPL.
111548         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
111550 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
111552         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
111553         that "UTC +1 second" continues to work.  Problem reported
111554         by Dmitry V. Levin.
111555         (relunit_snumber): New rule.
111556         (relunit): Use it.
111558 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
111560         * lib/getdate.y (universal_time_zone_table): New constant.
111561         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
111562         universal_time_zone_table.
111563         (lookup_zone): Prefer universal_time_zone_table to
111564         local_time_zone_table, so that "GMT" time stamps are allowed in
111565         London during the summer.  Problem reported by Ian Abbott.
111567 2005-04-12  Jim Meyering  <jim@meyering.net>
111569         * lib/human.c (humblock): Set *options even when returning due to
111570         xstrtoumax conversion failure.  Thanks to a used-uninitialized
111571         warning from gcc-4.
111573 2005-04-09  Jim Meyering  <jim@meyering.net>
111575         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
111576         -Wuninitialized: initialize tm0.tm_year.
111578 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
111580         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
111581         count, since there's no maximum.  All uses changed.
111582         Add member dsts_seen.
111583         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
111584         not being INT_MAX.
111585         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
111586         Use pc_rels_seen to decide whether a date is absolute.
111588         * lib/getdate.y (number): Don't overwrite year.
111589         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
111590         check.
111592 2005-04-02  Simon Josefsson  <jas@extundo.com>
111594         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
111595         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
111597 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
111599         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
111600         where no absolute path name can be longer than PATH_MAX.
111602 2005-03-27  Jim Meyering  <jim@meyering.net>
111604         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
111606 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
111608         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
111609         "one's complement" -> "ones' complement" in comment, as per Knuth.
111610         "value of type" -> "type or expression" in comment.
111611         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
111613 2005-03-26  Jim Meyering  <jim@meyering.net>
111615         Comment nits.
111616         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
111617         Correct typos: s/or/of/.
111619 2005-03-26  Jim Meyering  <jim@meyering.net>
111621         * modules/check-include-files: Move to ../ and rename to...
111622         * check-module: ...this.
111624 2005-03-25  Jim Meyering  <jim@meyering.net>
111626         * modules/xvasprintf (Files): Add xalloc.h.
111628 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
111630         * modules/gettext (Files): config/config.rpath ->
111631         build-aux/config.rpath
111632         * modules/iconv (Files): Likewise.
111633         Problem reported by Oskar Liljeblad.
111635 2005-03-23  Jim Meyering  <jim@meyering.net>
111637         * modules/check-include-files: New script to check for
111638         missing dependencies, multiple includes, etc.
111640         * modules/c-strtold (Depends-on): Add xalloc.
111641         * modules/c-strtod (Depends-on): Add xalloc.
111642         * modules/hash (Depends-on): Add xalloc.
111643         (Files): Remove lib/xalloc.h.
111645         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
111646         * modules/userspec (Files): Add lib/inttostr.h.
111648 2005-03-23  Jim Meyering  <jim@meyering.net>
111650         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
111652 2005-03-22  Jim Meyering  <jim@meyering.net>
111654         * modules/stat-macros: New module.
111655         * modules/canonicalize, modules/euidaccess, modules/file-type,
111656         * modules/filemode, modules/lchown, modules/makepath,
111657         * modules/rmdir, modules/stat: Depend on new stat-macros module
111658         rather than listing lib/stat-macros.h manually.
111659         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
111661 2005-03-22  Jim Meyering  <jim@meyering.net>
111663         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
111665 2005-03-22  Bruno Haible  <bruno@clisp.org>
111667         * config/srclist.txt: Replace target directory 'config' with
111668         'build-aux'.
111669         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
111670         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
111671         ../build-aux/.
111673 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
111675         * modules/chdir-long (Depends-on): Add mempcpy.
111677         * modules/acl, modules/backupfile, modules/c-strtod,
111678         modules/c-strtold, modules/canon-host, modules/canonicalize,
111679         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
111680         modules/exclude, modules/exitfail, modules/file-type,
111681         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
111682         modules/getdate, modules/getline, modules/getpagesize,
111683         modules/getpass, modules/getugroups, modules/group-member,
111684         modules/hard-locale, modules/hash, modules/human, modules/idcache,
111685         modules/inttostr, modules/long-options, modules/makepath,
111686         modules/md5, modules/memcasecmp, modules/memcoll,
111687         modules/modechange, modules/mountlist, modules/path-concat,
111688         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
111689         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
111690         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
111691         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
111692         modules/strftime, modules/strndup, modules/strverscmp,
111693         modules/timespec, modules/unlocked-io, modules/userspec,
111694         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
111695         modules/yesno:
111696         Remove lib_SOURCES line from Makefile.am section, as this is now
111697         done automatically by the corresponding Autoconf macro.
111699 2005-03-21  Jim Meyering  <jim@meyering.net>
111701         Changes imported from coreutils.
111703         * lib/cycle-check.c: Don't include xalloc.h.
111705         * lib/path-concat.c: Don't include assert.h.
111706         (path_concat): Remove assertion that would have triggered
111707         for ABASE starting with more than one slash.
111708         Reported by Andreas Schwab.
111710         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
111711         properly when ABASE is an absolute file name.
111712         Correct the description of this function.
111713         Include <assert.h>.
111714         Add an assertion and a test driver.
111715         This fixes a bug introduced on 2004-07-02.
111716         Andreas Schwab reported the resulting failure of cp --parents:
111717         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
111719 2005-03-21  Jim Meyering  <jim@meyering.net>
111721         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
111722         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
111724 2005-03-21  Jim Meyering  <jim@meyering.net>
111725         and  Paul Eggert  <eggert@cs.ucla.edu>
111727         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
111728         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
111729         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
111730         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
111731         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
111732         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
111733         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
111734         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
111735         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
111736         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
111737         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
111738         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
111739         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
111740         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
111741         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
111742         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
111743         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
111744         for these modules.
111746 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
111748         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
111749         (which shouldn't happen), generate nothing instead of returning 0
111750         immediately, so that nstrftime (NULL, ...) doesn't return 0.
111752 2005-03-16  Bruno Haible  <bruno@clisp.org>
111754         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
111755         HAVE_LONGLONG_64BIT.
111757 2005-03-16  Bruno Haible  <bruno@clisp.org>
111759         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
111760         HAVE_LONGLONG_64BIT.
111762 2005-03-16  Bruno Haible  <bruno@clisp.org>
111764         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
111765         HAVE_LONGLONG_64BIT.
111767 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
111769         * lib/strftime.c (my_strftime): Prepend space to format so that we can
111770         reliably distinguish strftime failure from empty output on POSIX
111771         hosts.
111773 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
111775         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
111776         (iconv_string): Don't guess a size-zero buffer, as that might cause
111777         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
111778         result would be 'too large', where 'too large' is (heuristically)
111779         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
111780         overflow concerns.  This will prevent some unwanted malloc failures
111781         when the inputs are very large.
111783 2005-03-15  Karl Berry  <karl@gnu.org>
111785         * config/srclist.txt (config.rpath): from gettext.
111786         * config/config.rpath: update.
111788 2005-03-15  Bruno Haible  <bruno@clisp.org>
111790         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
111791         to 'negate'.
111793         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
111794         variable.
111796         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
111797         results.
111799 2005-03-14  Simon Josefsson  <jas@extundo.com>
111801         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
111802         <fx@gnu.org>.
111804 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
111806         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
111807         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
111808         intprops.h.
111809         * lib/strtol.c: Likewise.
111811 2005-03-14  Jim Meyering  <jim@meyering.net>
111813         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
111814         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
111815         to be nonzero so that we (and caller) can detect the difference
111816         between a valid zero-length expansion and an error return, even
111817         when the underlying strftime fails before writing anything into
111818         that location.
111820 2005-03-14  Bruno Haible  <bruno@clisp.org>
111822         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
111823         Update from GNU gettext 0.14.3.
111825 2005-03-10  Jim Meyering  <jim@meyering.net>
111827         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
111829 2005-03-10  Jim Meyering  <jim@meyering.net>
111831         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
111832         so that this module works on systems without fchdir.
111834 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
111836         Factor int-properties macros into a single file, except for
111837         glibc-related files.
111838         * lib/intprops.h: New file.
111839         * lib/getloadavg.c: Include it instead of limits.h.
111840         (INT_STRLEN_BOUND): Remove.
111841         * lib/human.c: Include intprops.h.
111842         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
111843         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
111844         302/1000.
111845         * lib/inttostr.h: Include intprops.h instead of limits.h.
111846         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
111847         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
111848         for consistency with intprops.h.
111849         (time_t_is_integer, twos_complement_arithmetic): Use them.
111850         * lib/sig2str.h: Include <signal.h>, intprops.h.
111851         (INT_STRLEN_BOUND): Remove.
111852         * lib/strftime.c (TYPE_SIGNED): Remove.
111853         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
111854         * lib/strtol.c: Adjust comments to match intprops.h.
111855         * lib/userspec.c: Include intprops.h.
111856         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
111857         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
111858         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
111859         instead of rolling our own expressions.
111860         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
111862         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
111863         instead of int.
111864         (my_strftime): Do not mishandle years close to INT_MAX, by doing
111865         the right thing even if adding 1900 would overflow.  Similarly
111866         for tm_mon + 1 and tm_yday + 1.
111867         Make %Y always equivalent to %C%y, and similarly for %G and %g.
111868         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
111869         (DO_SIGNED_NUMBER): New macro.
111870         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
111872 2005-03-07  Bruno Haible  <bruno@clisp.org>
111874         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
111876 2005-03-07  Bruno Haible  <bruno@clisp.org>
111878         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
111880 2005-03-04  Derek R. Price  <derek@ximbiot.com>
111882         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
111883         (func_import): Only replace files via --import when they have actually
111884         changed.
111886 2005-03-03  Derek R. Price  <derek@ximbiot.com>
111888         * m4/mmap-anon.m4: New file.
111889         * m4/pagealign_alloc.m4: New file.
111891 2005-03-03  Derek R. Price  <derek@ximbiot.com>
111892             Bruno Haible  <bruno@clisp.org>
111894         * modules/pagealign_alloc: New file.
111895         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
111897 2005-03-03  Derek R. Price  <derek@ximbiot.com>
111898             Bruno Haible  <bruno@clisp.org>
111900         * lib/pagealign_alloc.h: New file.
111901         * lib/pagealign_alloc.c: New file.
111903 2005-03-03  Bruno Haible  <bruno@clisp.org>
111905         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
111906         Use an all-permissive copyright notice, recommended by RMS.
111908 2005-03-02  Bruno Haible  <bruno@clisp.org>
111910         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
111911         of AIX, the replacement has to be done only after <string.h> is
111912         included, therefore not in config.h. stpncpy.h does the replacement,
111913         and stpncpy.c uses it.
111915 2005-03-02  Bruno Haible  <bruno@clisp.org>
111917         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
111918         stpncpy.c uses it.
111920 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
111922         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
111923         The workaround isn't strictly needed for POSIX conformance, and
111924         it's too much of a pain to configure and maintain.  We'll ask
111925         people to fix their kernels instead.
111926         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
111927         (NANOSLEEP_BUG_WORKAROUND): Remove.
111928         (xnanosleep): Remove the workaround.
111930 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
111932         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
111933         Reported by Derek Price.
111934         (Include): Add "timespec.h".
111936         * modules/xnanosleep (Depends-on): Remove gethrxtime.
111938 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
111940         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
111941         to detect nanosleep bug.
111943 2005-03-01  Bruno Haible  <bruno@clisp.org>
111945         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
111947 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
111949         * modules/gethrxtime: New file.
111950         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
111951         (Depends-on): Add gethrxtime.
111952         (configure.ac): Add gl_XNANOSLEEP.
111953         (Makefile.am): Remove lib_SOURCES line.
111955 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
111957         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
111958         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
111960 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
111962         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
111963         * lib/timespec.h (gettime): Return void, since it always
111964         succeeds now.  All uses changed.
111965         * lib/gettime.c (gettime): Likewise.
111966         [HAVE_NANOTIME]: Prefer nanotime.
111967         Assume gettimeofday succeeds, as POSIX requires.
111968         Assime time () succeeds, since other code already does.
111969         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
111970         (timespec_subtract): Remove.
111971         (NANOSLEEP_BUG_WORKAROUND): New constant.
111972         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
111973         things considerably.  Use it only on GNU/Linux hosts, since the
111974         workaround shouldn't be needed elsewhere.
111976 2005-02-24  Bruno Haible  <bruno@clisp.org>
111978         * modules/gettext (Files): Add m4/glibc2.m4.
111980 2005-02-24  Bruno Haible  <bruno@clisp.org>
111982         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
111983         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
111984         * m4/progtest.m4:
111985         Update from GNU gettext 0.14.2.
111986         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
111988 2005-02-24  Bruno Haible  <bruno@clisp.org>
111990         * lib/localcharset.c: Update from GNU gettext 0.14.2.
111991         * lib/config.charset: Update from GNU gettext 0.14.2.
111993 2005-02-24  Bruno Haible  <bruno@clisp.org>
111995         * lib/gettext.h: Update from GNU gettext 0.14.2.
111997 2005-02-23  Simon Josefsson  <jas@extundo.com>
111999         * m4/iconvme.m4: New file.
112001 2005-02-23  Jim Meyering  <jim@meyering.net>
112003         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
112004         change.
112005         Thanks to Bruno Haible for catching it.
112007 2005-02-22  Simon Josefsson  <jas@extundo.com>
112009         * modules/iconvme: New file.
112011         * MODULES.html.sh: Add iconvme.
112013 2005-02-22  Simon Josefsson  <jas@extundo.com>
112015         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
112017 2005-02-22  Simon Josefsson  <jas@extundo.com>
112019         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
112021 2005-02-22  Jim Meyering  <jim@meyering.net>
112023         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
112024         s/ifndef/ifdef/.
112026 2005-02-20  Neil Conway  <neilc@samurai.com>
112028         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
112029         returned by OSX/Darwin if the specified buffer is not large
112030         enough for the hostname.
112032 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
112034         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
112035         pass it to _help, otherwise the latter coredumps trying to
112036         dereference state.root_argp.
112038 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
112040         * modules/chdir-long (Depends-on): Add memrchr.
112041         * modules/memrchr (Files): Add lib/memrchr.h.
112042         (Include): "memrchr.h".
112044 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
112046         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
112048 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
112050         * lib/memrchr.h: New file.
112051         * lib/chdir-long.c: Include it.
112052         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
112053         Don't bother including stddef.h.
112055 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
112057         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
112058         inclusion.
112059         Include <sys/types.h>, for dev_t.
112060         (ME_DUMMY, ME_REMOTE): Move from here....
112061         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
112062         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
112063         Dmitry V. Levin.
112064         Include mountlist.h first, to test the interface.
112066 2005-01-29  Bruno Haible  <bruno@clisp.org>
112068         * lib/progname.c (program_name): Initialize.
112069         Needed when linking statically on MacOS X.
112071 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
112073         Sync from coreutils.
112074         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
112075         (Depends-on): Add c-strtod.
112076         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
112078 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
112080         Sync from coreutils.
112081         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
112083         Remove files that are specific to coreutils.
112084         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
112086 2005-01-28  Bruno Haible  <bruno@clisp.org>
112088         * modules/javacomp: New file.
112089         * MODULES.html.sh (Java): Add javacomp.
112091 2005-01-28  Bruno Haible  <bruno@clisp.org>
112093         * m4/javacomp.m4: New file, from GNU gettext.
112095 2005-01-28  Bruno Haible  <bruno@clisp.org>
112097         * lib/javacomp.sh.in: New file, from GNU gettext.
112098         * lib/javacomp.h: New file, from GNU gettext.
112099         * lib/javacomp.c: New file, from GNU gettext.
112101 2005-01-26  Simon Josefsson  <jas@extundo.com>
112103         * lib/gai_strerror.c: Use GPL in header.
112105 2005-01-26  Bruno Haible  <bruno@clisp.org>
112107         * modules/javaexec: New file.
112108         * MODULES.html.sh (Java): Add javaexec.
112110 2005-01-26  Bruno Haible  <bruno@clisp.org>
112112         * m4/javaexec.m4: New file, from GNU gettext.
112114 2005-01-26  Bruno Haible  <bruno@clisp.org>
112116         * lib/javaexec.sh.in: New file, from GNU gettext.
112117         * lib/javaexec.h: New file, from GNU gettext.
112118         * lib/javaexec.c: New file, from GNU gettext.
112120 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
112122         * modules/lchown (Depends-on): Remove lchown.h
112124 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
112126         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
112127         must be defined if the header file was not found, in order
112128         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
112130 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
112132         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
112133         initializers for struct pentry_state.
112134         (__argp_error): Check return value of __asprintf
112135         (__argp_failure): Translate error message
112137         * lib/argp-parse.c: Removed braces around the expansion of N_()
112139 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
112141         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
112142         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
112143         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
112144         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
112145         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
112146         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
112147         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
112148         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
112149         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
112150         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
112151         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
112152         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
112153         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
112154         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
112155         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
112156         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
112157         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
112158         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
112159         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
112160         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
112161         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
112162         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
112163         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
112164         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
112165         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
112166         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
112167         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
112168         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
112169         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
112170         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
112171         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
112172         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
112173         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
112174         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
112175         xstrtol.m4, xstrtoumax.m4, yesno.m4:
112176         Use an all-permissive copyright notice, recommended by RMS.
112178 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
112180         * modules/chdir-long (Depends-on): Remove mempcpy.
112182 2005-01-21  Jim Meyering  <jim@meyering.net>
112184         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
112185         same value as for Solaris 9.
112187         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
112188         component length.  This included changing the parameter to be
112189         of type `char *' rather than `char const *'.
112190         * lib/chdir-long.h (chdir_long): Update prototype.
112192         * lib/openat.c (fdopendir, fstatat): New functions.
112193         * lib/openat.h: Include headers required for use of DIR and struct
112194         stat.
112195         [AT_SYMLINK_NOFOLLOW]: Define.
112196         (fdopendir, fstatat): Add prototypes.
112198 2005-01-21  Bruno Haible  <bruno@clisp.org>
112200         * modules/classpath: New file.
112201         * MODULES.html.sh (Java): Add classpath.
112203 2005-01-21  Bruno Haible  <bruno@clisp.org>
112205         * lib/classpath.h: New file, from GNU gettext.
112206         * lib/classpath.c: New file, from GNU gettext.
112208 2005-01-20  Simon Josefsson  <jas@extundo.com>
112210         * modules/version-etc-fsf: New file.
112212 2005-01-20  Simon Josefsson  <jas@extundo.com>
112214         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
112215         * lib/version-etc.c: Remove version_etc_copyright.
112216         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
112217         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
112219 2005-01-20  Simon Josefsson  <jas@extundo.com>
112221         * lib/base64.h (isbase64): Add.
112223         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
112224         using a unsigned prototype, don't inline.
112225         (base64_decode): Use it.
112227 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
112229         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
112230         it.
112232 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
112234         * lib/save-cwd.c (save_cwd): Remove code to support the case
112235         where fchdir is missing or flaky.
112237 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
112239         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
112241 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
112243         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
112244         AC_LIBSOURCES now does this.
112245         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
112246         with new ullong_max module.
112248 2005-01-19  Bruno Haible  <bruno@clisp.org>
112250         * modules/sh-quote: New file.
112251         * MODULES.html.sh (Executing programs): Add sh-quote.
112253 2005-01-19  Bruno Haible  <bruno@clisp.org>
112255         * lib/sh-quote.h: New file, from GNU gettext.
112256         * lib/sh-quote.c: New file, from GNU gettext.
112258 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
112260         Merge from coreutils.
112261         * m4/ullong_max.m4: New file.
112262         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
112263         (gl_MACROS): Assume localeconv exists.
112265 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
112267         Merge changes from coreutils, as described below in several
112268         changelogs dated today.
112270         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
112271         (O_DIRECTORY): Remove; not needed here, since "." must be
112272         a directory.  All uses removed.
112273         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
112274         universal on Suns, and we also need to test for IRIX.
112275         Revamp code to use 'if' rather than '#if'.
112276         Avoid unnecessary comparison of cwd->desc to 0.
112278         * lib/utimens.c (futimens): Robustify the previous patch, by checking
112279         for known valid error numbers rather than observed invalid ones.
112281 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
112283         * modules/ullong_max: New file.
112285         * modules/chdir-long, modules/openat: New files.
112286         * modules/save-cwd (Depends-on): Depend on chdir-long.
112287         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
112289 2005-01-18  Jim Meyering  <jim@meyering.net>
112291         Merge from coreutils.
112292         * m4/chdir-long.m4, m4/openat.m4: New files.
112293         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
112294         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
112295         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
112296         is sane and DOES follow symlinks.  Besides, testing 20 different
112297         systems found no broken chown implementations.
112298         Prompted by a change in rsync's copy of this macro.
112299         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
112301         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
112303         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
112304         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
112305         NULL-means-set-to-current-time semantics.
112306         Remove temporary file immediately, rather than waiting
112307         for configure's at-exit trap code to do it.
112309 2005-01-18  Jim Meyering  <jim@meyering.net>
112311         * lib/version-etc.c (version_etc_copyright): Update copyright date.
112313         * lib/utimens.c (futimens): Account for the fact that futimes
112314         can also fail with errno == ENOSYS or errno == ENOENT.
112315         Patch from Dmitry V. Levin.
112317         Change the name of the robust chdir function from chdir to chdir_long.
112318         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
112319         (restore_cwd): Use chdir_long, not chdir.
112320         * lib/chdir-long.c: Renamed from chdir.c.
112321         * lib/chdir-long.h: Renamed from chdir.h.
112322         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
112323         Hurd.
112325 2005-01-18  Bruno Haible  <bruno@clisp.org>
112327         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
112328         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
112329         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
112330         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
112331         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
112332         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
112333         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
112334         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
112335         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
112336         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
112337         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
112338         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
112339         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
112340         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
112341         Use an all-permissive copyright notice, recommended by RMS.
112343 2005-01-18  Bob Proulx  <bob@proulx.com>
112345         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
112346         simplify offsetof() macro construct to avoid compile failure with
112347         native HP-UX 11.0 ANSI C compiler.
112349 2005-01-17  Bruno Haible  <bruno@clisp.org>
112351         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
112352         redundant because stpncpy.m4 takes care of it.
112354 2005-01-17  Bruno Haible  <bruno@clisp.org>
112356         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
112358 2005-01-17  Bruno Haible  <bruno@clisp.org>
112360         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
112361         used.
112363 2005-01-17  Bruno Haible  <bruno@clisp.org>
112365         * lib/fwriteerror.h (fwriteerror): Change specification to include
112366         fclose.
112367         * lib/fwriteerror.c: Include <stdbool.h>.
112368         (fwriteerror): At the end, close the file stream. Record whether
112369         stdout was already closed.
112371 2005-01-17  Bruno Haible  <bruno@clisp.org>
112373         * lib/execute.c (environ): Declare if needed.
112374         * lib/pipe.c (environ): Likewise.
112375         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
112377 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
112379         * modules/argp: Depend on vsnprintf
112381 2005-01-10  Jim Meyering  <jim@meyering.net>
112383         * modules/closeout (Depends-on): Add atexit.
112385 2005-01-06  Bruno Haible  <bruno@clisp.org>
112387         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
112389 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
112391         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
112392         definitions to be after all include files, to avoid collisions.
112393         Problem reported by Bob Proulx.
112395 2005-01-04  Jim Meyering  <jim@meyering.net>
112397         Changes imported from coreutils.
112398         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
112399         as the mkstemp template, use a temporary directory and an
112400         8.3-friendly template to avoid trouble on systems like DJGPP.
112401         Reported by Juan M. Guerrero via Stepan Kasal.
112402         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
112403         close. Remove the temporary directory right away, rather than waiting
112404         for configure's at-exit trap code to do it.
112405         Suggestion from Stepan Kasal.
112407 2005-01-01  Simon Josefsson  <jas@extundo.com>
112409         * gnulib-tool: Print #include directives when --import'ing.
112411 2004-12-28  Simon Josefsson  <jas@extundo.com>
112413         * tests/test-base64.c: Include required header files.  Remove
112414         unused variables.
112416 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
112418         * modules/error (Depends-on): Remove gettext.
112420 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
112422         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
112423         not needed.  This removes a dependency on the gettext module.
112424         [defined _LIBC]: Do not include <libintl.h>; not needed.
112426 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
112428         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
112429         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
112431 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
112433         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
112434         HAVE_DECL_STRTOLD.
112436 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
112438         * modules/getdate (Depends-on): Remove alloca-opt.
112440 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
112442         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
112444 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
112446         * lib/argp-parse.c: Include <stddef.h>.
112447         (alignof, alignto): New macros.
112448         (parser_init): Don't assume that void * is aligned sufficiently
112449         for struct option.
112451         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
112452         need to extend the stack.
112453         (YYINITDEPTH): New macro, so that the initial stack isn't overly
112454         large.
112456 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
112458         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
112460 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
112462         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
112463         (2004-10-24) change.  Apparently this was a false alarm.
112465         * modules/getdate: Depend on alloca-opt, not alloca.
112467 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
112469         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
112470         Remove now-obsolete comment about AIX.
112471         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
112472         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
112473         (YYMAXDEPTH): New macro.
112475 2004-12-18  Simon Josefsson  <jas@extundo.com>
112477         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
112479 2004-12-18  Bruno Haible  <bruno@clisp.org>
112481         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
112483 2004-12-18  Bruno Haible  <bruno@clisp.org>
112485         * lib/fatal-signal.c (fatal_signals): Make non-const.
112486         (init_fatal_signals): New function.
112487         (uninstall_handlers, install_handlers): Ignore signals that were set to
112488         SIG_IGN.
112489         (at_fatal_signal): Call init_fatal_signals.
112490         (init_fatal_signal_set): Likewise. Ignore signals that were set to
112491         SIG_IGN.
112492         Reported by Paul Eggert.
112494 2004-12-18  Bruno Haible  <bruno@clisp.org>
112496         * doc/alloca.texi: New file.
112497         * doc/alloca-opt.texi: New file.
112499 2004-12-17  Jim Meyering  <jim@meyering.net>
112501         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
112502         Otherwise, install-sh could exit with improper exit status when
112503         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
112505 2004-12-16  Simon Josefsson  <jas@extundo.com>
112507         * tests/test-base64.c: Add license.
112509 2004-12-15  Stepan Kasal  <address@hidden>
112511         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
112513 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
112515         * modules/getcwd (Files): Add m4/d-ino.m4.
112516         Suggested by Mark D. Baushke.
112518 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
112520         * lib/getdate.y (textint): New member "negative".
112521         (time_zone_hhmm): New function.
112522         Expect 14 shift-reduce conflicts, not 13.
112523         (o_colon_minutes): New rule.
112524         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
112525         (yylex): Set the "negative" member of signed numbers.
112527 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
112529         * doc/getdate.texi (Time of day items, Time zone items):
112530         Describe new formats +00:00, UTC+00:00.
112532 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
112534         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
112535         spurious "-l"s.  Problem reported by Stepan Kasal.
112537 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
112539         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
112540         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
112542 2004-12-04  Simon Josefsson  <jas@extundo.com>
112544         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
112545         Vandoorselaere <yoann@prelude-ids.org>.
112547 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
112549         Changes imported from coreutils.
112550         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
112551         exist.
112552         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
112554 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
112556         Changes imported from coreutils.
112557         * lib/hard-locale.c: Assume <locale.h> exists.
112558         Include "strdup.h".
112559         (GLIBC_VERSION): New macro.
112560         (hard_locale): Assume setlocale exists.
112561         Rewrite to avoid #ifdef.
112562         Use strdup rather than malloc + strcpy.
112563         * lib/human.c: Assume <locale.h> exists.
112564         (human_readable): Assume localeconv exists.
112566 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
112568         * modules/hard-locale (Depends-on): Add strdup.
112570 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
112572         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
112573         convert T2, not T.  (Imported from libc.)
112575 2004-11-30  Simon Josefsson  <jas@extundo.com>
112577         * modules/restrict (License): Change to LGPL.
112579 2004-11-30  Simon Josefsson  <jas@extundo.com>
112581         * m4/restrict.m4: Add copyright and copying conditions.
112583 2004-11-30  Simon Josefsson  <jas@extundo.com>
112585         * m4/base64.m4: New file.
112587 2004-11-30  Simon Josefsson  <jas@extundo.com>
112589         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
112590         base64.
112592         * tests/test-base64.c: New file.
112594         * modules/base64: New file.
112596 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
112598         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
112599         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
112601         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
112603 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
112605         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
112606         (__getcwd.c): Don't restore errno; glibc doesn't.
112607         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
112608         first, falling back to our code only if its results look suspicious.
112609         Ensure that the resulting buffer is only as large as necessary.
112611         * lib/readutmp.c: Include readutmp.h first.
112612         Include <errno.h>, since readutmp.h no longer does that.
112613         * lib/readutmp.h: Don't include <errno.h>,
112614         <sys/param.h>, <time.h>; not needed to establish interface.
112615         (errno): Remove decl.
112616         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
112617         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
112618         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
112620 2004-11-28  Simon Josefsson  <jas@extundo.com>
112622         * lib/base64.h, base64.c: New file.
112624 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
112626         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
112628 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
112630         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
112631         (Depends-on): Remove pathmax, same.  Add mempcpy.
112632         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
112633         (Makefile.am): Append getcwd.h to lib_SOURCES.
112634         (Include): Add getcwd.h.
112635         (Maintainer): Change from Jim Meyering to "all, glibc",
112636         since getdate now uses intended-for-glibc code.
112637         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
112638         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
112640 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
112642         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
112643         HP's ANSI C compiler.
112644         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
112645         Declaring int functions causes warnings on some modern systems and
112646         shouldn't be needed to compile on ancient ones.
112647         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
112648         defined.
112650         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
112651         with the following changes.
112652         (__set_errno): Parenthesize properly.
112653         Include <stdbool.h>.
112654         (MIN, MAX, MATCHING_INO): New macros.
112655         (__getcwd): Define with prototype, not K&R form.
112656         Use heuristics to allocate default buffer on stack if possible.
112657         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
112658         behavior, and to avoid the PATH_MAX limit when computing
112659         ../../../../...
112660         Use MATCHING_INO to compare inode number to file.
112661         Check for arithmetic overflow in size calculations.
112662         Fix bug in reallocation of dot array that caused getcwd to fail
112663         on directories nested deeper than 75.
112664         Be more careful about saving errno on error.
112665         Do not use realloc; use only free+malloc, as this is a bit
112666         more flexible and avoids a needless copy operation.
112667         Do not inspect st_dev and st_ino for symbolic links; POSIX
112668         doesn't specify the latter.
112669         Check for closedir errors.
112670         Avoid needless casts.
112671         Use "#ifdef weak_alias" around weak_alias, to be like other
112672         glibc code.
112673         The following changes to getcwd.c have effect only when used in
112674         gnulib; they have no effect inside glibc proper.
112675         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
112676         as alloca isn't used.
112677         (alloca, __alloca): Likewise.
112678         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
112679         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
112680         unconditionally, as gnulib assumes C89 or better.
112681         Do not include <sys/param.h>.
112682         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
112683         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
112684         better.
112685         (NULL) [!defined NULL]: Remove; we assume C89 or better.
112686         Include <dirent.h> in a way that is compatible with modern Autoconf.
112687         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
112688         New macros, if not already defined.
112689         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
112690         Use "_LIBC", not "defined _LIBC", for consistency.
112691         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
112692         a mempcpy module.
112693         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
112694         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
112695         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
112696         credit only to Jim Meyering and adjust the copyright dates.
112697         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
112698         <stdlib.h>, <unistd.h>, "pathmax.h".
112699         Instead, include "xgetcwd.h" (first) and "getcwd.h".
112700         (INITIAL_BUFFER_SIZE): Remove.
112701         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
112703 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
112705         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
112706         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
112707         Use the _ONCE methods, for efficiency.
112708         Check for fcntl.h.  In test program, include <errno.h>
112709         and <fcntl.h> if available.  Remove old K&R cruft from
112710         test program.  Check for common errors in GNU/Linux,
112711         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
112712         don't do AC_LIBOBJ, as that's getcwd.m4's job.
112713         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
112714         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
112715         name accordingly.
112716         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
112717         accommodate new getcwd.c.
112718         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
112719         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
112720         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
112721         that's all we need now.
112723 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
112725         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
112726         argp-parse.c depends on getopt internals, that means we should
112727         always use our getopt, to be on the safe side.
112728         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
112729         order not to spoil the result of an eventual previous invocation
112730         of gl_GETOPT_SUBSTITUTE.
112732 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
112734         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
112735         redefinition warnings. To avoid them, include the defines
112736         in `#if !defined __need_getopt ... #endif'. The only place
112737         where __getopt_argv_const is used is in definitions
112738         of getopt_long and getopt_long_only below, which are as well
112739         protected by `#ifndef __need_getopt'.
112740         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
112741         __need_getopt after including <stdio.h> and <unistd.h> These
112742         headers might have defined it.
112744 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
112746         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
112748 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
112750         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
112751         (futimens): New function, which uses futimes if available.
112752         (futimens, utimens): Support timespec==NULL, with same semantics
112753         as utime and utimens.
112754         * lib/utimens.h (futimens): New decl.
112756 2004-11-23  Jim Meyering  <jim@meyering.net>
112758         * lib/getopt_.h: Remove trailing blanks.
112760 2004-11-23  Jim Meyering  <jim@meyering.net>
112762         * lib/__fpending.c: Add comment.
112764 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
112766         * modules/canonicalize (Depends-on): Add xreadlink.
112767         Problem reported by James Youngman.
112769 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
112771         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
112772         New macros.
112773         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
112774         optopt): Use them instead of invoking ## directly; otherwise, the
112775         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
112777 2004-11-19  Bruno Haible  <bruno@clisp.org>
112779         * lib/strtok_r.c: Move comments from here...
112780         * lib/strtok_r.h: ... to here.
112782 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
112784         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
112785         implementations that mishandle size_t overflow.
112787 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
112789         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
112790         might fail.  Problem reported by Yoann Vandoorselaere.
112791         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
112792         implementations that mishandle size_t overflow.
112794 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
112796         * modules/canon-host (Depends-on): Add strdup.
112798 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
112800         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
112802 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
112804         * lib/canon-host.c: Include "strdup.h".
112805         (canon_host): Use getaddrinfo if available, so that IPv6 works.
112806         Use strdup instead of malloc/strcpy to duplicate strings.
112808         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
112809         (human_space_before_unit): New constant.
112810         * lib/human.c (human_readable): Support it.
112812         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
112813         (xgetcwd): Set errno correctly when failing.
112814         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
112815         the failure is actually due to a PATH_MAX problem.
112817         Further getopt changes to make it more likely that glibc will
112818         buy the changes back.
112819         * lib/getopt.c (POSIXLY_CORRECT): New constant.
112820         (getopt): Use it, so to preserve glibc semantic
112821         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
112822         when compiling for libc.
112823         * lib/getopt_.h (__getopt_argv_const): Bring it back.
112824         (getopt_long, getopt_long_only): Use it.
112826         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
112827         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
112828         (getopt): Argv is now char * const *, as per standard.
112829         (_getopt_internal_r, _getopt_internal): Argv is now char **,
112830         not char *__getopt_argv_const *.
112831         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
112832         _getopt_long_only_r): Likewise.
112833         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
112834         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
112835         _getopt_long_r, _getopt_long_only_r): Likewise.
112836         * lib/getopt_.h (__getopt_argv_const): Remove.
112837         (getopt): Argv is now char * const *, as per standard.
112839         * lib/getdate.y (tORDINAL): New token.
112840         (day, relunit): Allow it for relative times.
112841         (relative_time_table): Use tORDINAL for ordinals.
112843 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
112845         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
112846         Document that "second" isn't allowed as an ordinal number.
112848 2004-11-16  Jim Meyering  <jim@meyering.net>
112850         * modules/closeout (Depends-on): Add fpending.
112852 2004-11-15  Jim Meyering  <jim@meyering.net>
112854         * lib/closeout.c: Include "__fpending.h" once again.
112855         Include <stdbool.h>.
112856         (close_stdout): Don't fail just because stdout was closed initially,
112857         since some programs don't write to stdout in the normal course of
112858         operation (other than --version and --help), and we don't want this
112859         function to make e.g. `touch file >&-' fail.
112860         But do fail if it was closed and someone has tried to write to it.
112861         E.g., `printf foo >&-' must fail.
112863 2004-11-13  Jim Meyering  <jim@meyering.net>
112865         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
112867 2004-11-12  Simon Josefsson  <jas@extundo.com>
112869         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
112870         small doc fix is still pending.
112872 2004-11-11  Simon Josefsson  <jas@extundo.com>
112874         * modules/strtok_r: New file.
112876         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
112877         strtok_r.
112879 2004-11-11  Simon Josefsson  <jas@extundo.com>
112881         * m4/strtok_r.m4: New file.
112883         * m4/getopt.m4: Replace opterr.
112885 2004-11-11  Simon Josefsson  <jas@extundo.com>
112887         * lib/strtok_r.h, strtok_r.c: New file.
112889 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
112891         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
112892         of replacing opterr, getopt, etc.  This should handle the
112893         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
112895 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
112897         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
112898         we can stop lying to compilers about the constness of argv when we
112899         are compiled outside glibc.
112900         (getopt, getopt_long, getopt_long_only): Use it.
112901         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
112902         _getopt_internal, getopt): Likewise.
112903         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
112904         _getopt_long_only_r): Likewise.
112905         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
112906         _getopt_long_r, _getopt_long_only_r): Likewise.
112908         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
112909         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
112910         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
112911         the other external symbols.
112912         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
112913         declaration, since the above renaming now works around collisions.
112915 2004-11-11  Jim Meyering  <jim@meyering.net>
112917         * lib/linebreak.c: Remove trailing blanks.
112918         * lib/alloca_.h: Likewise.
112919         * lib/acosl.c: Likewise.
112920         * lib/euidaccess.c: Likewise.
112921         * lib/allocsa.h: Likewise.
112923 2004-11-10  Simon Josefsson  <jas@extundo.com>
112925         * m4/getaddrinfo.m4: New file.
112927 2004-11-10  Simon Josefsson  <jas@extundo.com>
112929         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
112931 2004-11-10  Simon Josefsson  <jas@extundo.com>
112933         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
112934         getaddrinfo.
112936         * modules/getaddrinfo: New file.
112938 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
112940         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
112942 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
112944         * lib/mktime.c (SHR): New macro, which is a portable
112945         substitute for >> that should work even on Crays.
112946         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
112947         Problem reported by Mark D. Baushke in
112948         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
112949         * lib/getdate.y (SHR): Likewise.
112950         (tm_diff): Use it.
112951         * lib/strftime.c (SHR): Likewise.
112952         (tm_diff): Use it.
112953         * lib/quotearg.c (struct quoting_options): Use unsigned int for
112954         quote_these_too, so that right shifts are well defined.  All uses
112955         changed.
112957 2004-11-10  Jim Meyering  <jim@meyering.net>
112959         Ensure that no close failure goes unreported.
112960         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
112961         return early when it seems there's nothing to flush.
112962         Don't include __fpending.h.
112964 2004-11-10  Jim Meyering  <jim@meyering.net>
112966         * modules/closeout (Depends-on): Remove fpending.
112968 2004-11-10  Jim Meyering  <jim@meyering.net>
112970         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
112972 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
112974         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
112975         gl_FUNC_STRFTIME.
112976         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
112977         and AC_REQUIRE when possible, to avoid duplicate checks.
112978         Check for <wchar.h>.
112980 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
112982         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
112984 2004-11-09  Bruno Haible  <bruno@clisp.org>
112986         * m4/sockpfaf.m4: New file.
112988 2004-11-05  Bruno Haible  <bruno@clisp.org>
112990         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
112991         Reported by Mark D. Baushke <mdb@cvshome.org>.
112993 2004-11-04  Bruno Haible  <bruno@clisp.org>
112995         2004-09-11  Bruno Haible  <bruno@clisp.org>
112996                 * allocsa.valgrind: New file.
112997         2004-02-06  Bruno Haible  <bruno@clisp.org>
112998                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
112999                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
113000                 Reported by Christopher Seip <chris.seip@hp.com>.
113002 2004-11-04  Bruno Haible  <bruno@clisp.org>
113004         * modules/allocsa (Files): Add lib/allocsa.valgrind.
113005         (Makefile.am): Distribute it.
113007 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
113009         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
113010         with errno == ERANGE if the buffer is too small.
113011         Problem reported by Mark D. Baushke.
113013 2004-11-03  Albert Chin  <china@thewrittenword.com>
113014             Paul Eggert  <eggert@cs.ucla.edu>
113016         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
113017         equivalent, substitute $ac_type for equivalent type rather than
113018         blindly using uint32_t *always* which won't work if uint32_t is not
113019         available.  Define _UINT32_T to work around typedef of uint32_t if
113020         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
113021         2.5.1.
113023 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
113025         * m4/jm-macros.m4: Sync from coreutils.
113026         (gl_MACROS): Check for mbrlen, for pathchk.
113027         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
113029 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
113031         * lib/xreadlink.c (MAXSIZE): New macro.
113032         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
113033         size does not exceed MAXSIZE.  Avoid cast.
113034         As suggested by Mark D. Baushke in
113035         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
113036         if readlink fails with buffer size just under MAXSIZE, try again
113037         with MAXSIZE.
113039 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
113041         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
113043 2004-11-02  Derek R. Price  <derek@ximbiot.com>
113044         and  Paul Eggert  <eggert@cs.ucla.edu>
113046         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
113047         (get_date): Overparenthesize to avoid GCC warning.
113049 2004-11-02  Bruno Haible  <bruno@clisp.org>
113051         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
113052         returns void.
113054 2004-11-02  Bruno Haible  <bruno@clisp.org>
113056         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
113057         function returns void.
113059 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
113061         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
113062         fflush_unlocked, flockfile, funlockfile, funlockfile,
113063         fputs_unlocked, putc_unlocked.
113065 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
113067         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
113068         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
113069         already declared.
113071 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
113073         * modules/getdate (Files): Add doc/getdate.texi.
113074         (Depends-on): Add setenv, xalloc.
113076 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
113078         * lib/getdate.y: Add support for TZ="foo" within a date string.
113079         Fix some bugs near time_t boundaries.  Reject dates with
113080         out-of-range components, e.g., "Sept 31".
113081         Include <stdlib.h>, "setenv.h", "xalloc.h".
113082         (ISDIGIT_LOCALE): Remove; unused.
113083         Note that the TZ and time functions used here are not reentrant.
113084         (mktime_ok, get_tz): New functions.
113085         (TZBUFSIZE): New constant.
113086         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
113087         This requires that we sometimes generate our own TZ="XXX..." setting.
113089 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
113091         * doc/getdate.texi: New file, from coreutils with modifications for
113092         the new TZ parsing.
113094 2004-10-27  Derek R. Price  <derek@ximbiot.com>
113096         * lib/mktime.c (not_equal_tm): Remove redundant check.
113098 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
113100         * modules/regex (lib_SOURCES): Add regex.c.
113101         Reported by James Youngman in
113102         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
113104 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
113106         * lib/getdate.y: Use Bison 1.875 features, and some minor
113107         code cleanups.  This change does not affect semantics.
113108         Don't include <stdlib.h>; no longer needed.
113109         Don't include unlocked-io.h; only the "#if TEST" code uses
113110         stdio, and performance isn't crucial there.
113111         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
113112         Bison 1.875 features as described below.
113113         All uses of "PC." replaced by "pc->".
113114         (YYSTYPE): Add a forward declaration.
113115         (yylex, yyerror): Use full prototypes in forward decls.
113116         Use "%pure-parser" rather than obsolescent "%pure_parser".
113117         Use %parse-param and %lex-param instead of obsolescent
113118         YYPARSE_PARAM and YYLEX_PARAM.
113119         (meridian_table, month_and_day_table, time_units_table,
113120         relative_time_table, time_zone_table, military_table,
113121         lookup_zone, lookup_word, get_date):
113122         Use NULL instead of 0 where appropriate.
113123         (to_hour): Avoid abort (), to avoid a dependency on
113124         stdlib.h.
113125         (yyerror, yylex): Now accepts parser_control * arg.
113126         (main) [TEST]: Use '\0' rather than 0 for char.
113128 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
113130         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
113132 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
113134         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
113135         It's now the caller's responsibility to handle the case where
113136         !HAVE_GETPAGESIZE && !defined getpagesize.
113138         * lib/mktime.c (leapyear): Arg is long int, not int.
113140 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
113142         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
113144 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
113146         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
113147         missing.  Problem reported by James Youngman.
113149 2004-10-16  Simon Josefsson  <jas@extundo.com>
113151         * gnulib-tool: Fix comments.  Fix parse problem.
113152         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
113154 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
113156         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
113157         implementation of getopt_long.  Problem reported by Alexander Taler in:
113158         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
113160 2004-10-15  Bruno Haible  <bruno@clisp.org>
113162         * gnulib-tool: Untabify. Initialize supplied_libname.
113163         (func_usage): More homogenous output.
113164         (func_modules_transitive_closure, func_modules_to_filelist,
113165         func_emit_lib_Makefile_am): New functions.
113166         (func_import): New function, extracted from big case statement. Use
113167         func_get_license, func_modules_transitive_closure,
113168         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
113169         opt_lgpl. Don't use test -a, as it's not portable.
113170         (func_create_testdir): Use func_modules_transitive_closure,
113171         func_modules_to_filelist, func_emit_lib_Makefile_am.
113173 2004-10-15  Bruno Haible  <bruno@clisp.org>
113175         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
113177 2004-10-15  Bruno Haible  <bruno@clisp.org>
113179         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
113180         the portions belonging to each module.
113181         Suggested by Derek Robert Price <derek@ximbiot.com>.
113183 2004-10-12  Simon Josefsson  <jas@extundo.com>
113185         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
113186         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
113187         to real functions.
113189 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
113191         * modules/vsnprintf: New file.
113193 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
113195         * m4/vsnprintf.m4: New file.
113197 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
113199         * lib/vsnprintf.h: New file.
113200         * lib/vsnprintf.c: New file.
113202 2004-10-11  Bruno Haible  <bruno@clisp.org>
113204         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
113205         vsnprintf.
113207 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
113209         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
113211 2004-10-07  Bruno Haible  <bruno@clisp.org>
113213         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
113214         fits into the provided buffer.
113216 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
113218         * lib/diacrit.c, diacrit.h: Add GPL notice.
113220         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
113221         notice.
113222         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
113223         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
113224         This avoids a potential constant-folding bug.
113226 2004-10-05  Bruno Haible  <bruno@clisp.org>
113228         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
113229         for the declaration of strsep.
113231 2004-10-05  Bruno Haible  <bruno@clisp.org>
113233         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
113235 2004-10-04  Simon Josefsson  <jas@extundo.com>
113237         * modules/memmem: New file.
113238         * tests/test-memmem.c: New file.
113239         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
113241 2004-10-04  Simon Josefsson  <jas@extundo.com>
113243         * m4/memmem.m4: New file.
113245 2004-10-04  Simon Josefsson  <jas@extundo.com>
113247         * lib/memmem.h: New file.
113248         * lib/memmem.c: New file, taken from glibc.
113250 2004-10-04  Simon Josefsson  <jas@extundo.com>
113252         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
113253         '#ifdef USE_UNLOCKED_IO'.
113255 2004-10-04  Simon Josefsson  <jas@extundo.com>
113257         * config/srclist.txt: Add memmem from glibc.
113259 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
113261         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
113263         * modules/argmatch, modules/argp, modules/closeout, modules/error,
113264         modules/exclude, modules/getdate, modules/getline,
113265         modules/getndelim2, modules/getpass, modules/getpass-gnu,
113266         modules/getusershell, modules/linebuffer, modules/md5,
113267         modules/mountlist, modules/posixtm, modules/readtokens,
113268         modules/readutmp, modules/regex, modules/sha1,
113269         modules/version-etc, modules/yesno:
113270         Remove dependency on unlocked-io.
113272 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
113274         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
113276         * m4/unlocked-io.m4: Add copyright notice.
113277         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
113279 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
113281         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
113282         * lib/xmalloc.c (xmemdup): Likewise.
113283         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
113284         XFREE): Remove these long-obsolescent macros.
113285         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
113286         * lib/xstrdup.c: Remove.
113288         * lib/regex.c (re_comp): Cast gettext return value to char *,
113289         Problem reported by Martin Neitzel via Mark D. Baushke.
113291 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
113293         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
113294         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
113295         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
113296         regex.c, sha1.c, version-etc.c, yesno.c:
113297         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
113298         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
113299         the includer's responsibility.
113301         Sync from coreutils.
113303         * lib/modechange.c (mode_compile): Don't decrement a pointer that
113304         points to the start of a string, as the C Standard says the
113305         resulting behavior is undefined.
113307         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
113308         simple -> simple_backups, numbered_existing ->
113309         numbered_existing_backups, numbered -> numbered_backups
113310         to avoid shadowing problems.  All uses changed.
113311         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
113312         * lib/backupfile.c (check_extension, numbered_backup):
113313         Rename locals to avoid shadowing 'basename'.
113314         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
113315         once.
113317         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
113318         * lib/.cvsignore: Add getopt.h.
113320 2004-10-04  Bruno Haible  <bruno@clisp.org>
113322         * modules/README: New file.
113323         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
113324         not a module.
113326 2004-10-02  Jim Meyering  <jim@meyering.net>
113328         * lib/dirfd.h, getpagesize.h: Add copyright notice.
113330 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
113332         * modules/strsep: New file.
113334 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
113336         * m4/strsep.m4: New file.
113338 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
113340         * lib/strsep.h: New file.
113341         * lib/strsep.c: New file.
113343 2004-10-01  Simon Josefsson  <jas@extundo.com>
113345         * lib/snprintf.c (snprintf): Handle size==0.
113347 2004-10-01  Simon Josefsson  <jas@extundo.com>
113348             Bruno Haible  <bruno@clisp.org>
113350         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
113351         (snprintf): Declare 'args'.
113353 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
113355         * lib/snprintf.c: Remove comments as to why each header is needed.
113357 2004-10-01  Bruno Haible  <bruno@clisp.org>
113359         * MODULES.html.sh: Add strsep.
113361 2004-09-30  Simon Josefsson  <jas@extundo.com>
113363         * modules/snprintf: New file.
113365 2004-09-30  Simon Josefsson  <jas@extundo.com>
113367         * m4/snprintf.m4: New file.
113369 2004-09-30  Simon Josefsson  <jas@extundo.com>
113371         * lib/snprintf.h, lib/snprintf.c: New files.
113373 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
113375         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
113376         (hol_entry_help): Never translate an empty string.
113377         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
113378         * lib/argp.h (OPTION_NO_TRANS): New option.
113380 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
113382         * modules/argp (Maintainer): Replace Simon Josefsson
113383         by Sergey Poznyakoff.
113385 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
113387         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
113388         changes merged back into glibc.
113390 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
113392         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
113394 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
113396         * lib/xvasprintf.c: Include xalloc.h.
113397         (xvasprintf): Use xalloc_die, not xmalloc_die.
113399 2004-09-29  Bruno Haible  <bruno@clisp.org>
113401         * modules/alloca-opt: New file, derived from modules/alloca.
113402         * modules/allocsa: Depend on alloca-opt instead of alloca.
113403         * modules/setenv: Likewise.
113404         * modules/vasnprintf: Likewise.
113405         * MODULES.html.sh: Add alloca-opt.
113407 2004-09-28  Simon Josefsson  <jas@extundo.com>
113409         * gnulib-tool: New parameter --lgpl, to asseert that modules are
113410         LGPL, and to replace license template from GPL to LGPL.
113412 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
113414         * modules/dummy: Change license to LGPL.
113416 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
113418         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
113420 2004-09-24  Simon Josefsson  <jas@extundo.com>
113422         * modules/minmax (License): Change from GPL to LGPL.
113424 2004-09-23  Simon Josefsson  <jas@extundo.com>
113426         * gnulib-tool (--import): Typo.
113428 2004-09-23  Simon Josefsson  <jas@extundo.com>
113430         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
113432 2004-09-22  Bruno Haible  <bruno@clisp.org>
113434         * modules/*: Add 'License' field.
113435         * gnulib-tool: Accept --extract-license option.
113436         (func_get_license): New function.
113438 2004-09-21  Bruno Haible  <bruno@clisp.org>
113440         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
113441         Reported by Simon Josefsson.
113443 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
113445         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
113446         gl_AC_TYPE_LONG_LONG.
113448 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
113450         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
113452 2004-09-18  Simon Josefsson  <jas@extundo.com>
113453         and  Paul Eggert  <eggert@cs.ucla.edu>
113455         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
113456         calls with autoreconf.  Define GL_LIB.
113458 2004-09-14  Karl Berry  <karl@gnu.org>
113460         * config/srclist.txt: unsync setenv.c, sigh.
113462 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
113464         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
113465         Problem reported by Bruno Haible in:
113466         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
113468 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
113470         * config/srclist.txt: Comment out argp-pvh.c.
113472 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
113474         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
113475         in case some system header has #define'd it.  Problem reported by
113476         Soeren D. Schulze in
113477         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
113479 2004-09-09  Karl Berry  <karl@gnu.org>
113481         * regex.[ch]: delete from the root.  These were supposed to be
113482                 synced with emacs cvs, but this has not happened for about
113483                 a year, and anyway nothing else uses emacs regex.[ch].
113484                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
113485                 lib/regex[.ch] is untouched.
113487 2004-09-09  Bruno Haible  <bruno@clisp.org>
113489         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
113491 2004-09-09  Bruno Haible  <bruno@clisp.org>
113493         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
113494         modifications.
113495         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
113497 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
113499         * modules/xvasprintf: New file.
113500         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
113502 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
113504         * lib/xvasprintf.h: New file.
113505         * lib/xvasprintf.c: New file.
113506         * lib/xasprintf.c: New file.
113508 2004-09-08  Bruno Haible  <bruno@clisp.org>
113510         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
113512 2004-09-08  Bruno Haible  <bruno@clisp.org>
113514         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
113515         length is > INT_MAX.
113516         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
113517         more.
113519 2004-09-08  Bruno Haible  <bruno@clisp.org>
113521         * lib/stdint_.h: New file, taken from GNU clisp.
113523 2004-09-08  Bruno Haible  <bruno@clisp.org>
113524             Oskar Liljeblad  <oskar@osk.mine.nu>
113526         * modules/stdint: New file.
113527         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
113529 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
113531         Import from coreutils.
113532         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
113533         strings on unbounded length.  alloca's performance benefits aren't
113534         that important here.
113535         (V_STRDUP): Remove.
113536         (parse_with_separator): New function, with most of the internals
113537         of the old parse_user_spec.  Allow user to omit both user and group,
113538         for compatibility with FreeBSD.
113539         Clone only the user name, not the entire spec.
113540         Do not set *uid, *gid unless entirely successful.
113541         Avoid memory leak in some failing cases.
113542         Fix regression for USER.GROUP reported by Dmitry V. Levin in
113543         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
113544         (parse_user_spec): Rewrite to use parse_with_separator.
113546 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
113548         * modules/userspec: Don't depend on alloca.
113550 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
113552         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
113554 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
113556         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
113557         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
113558         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
113560 2004-08-16  Simon Josefsson  <jas@extundo.com>
113562         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
113563         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
113564         Add --dry-run for --import.
113565         Let user provided command line parameters override configure.ac
113566         settings.
113568 2004-08-12  Simon Josefsson  <jas@extundo.com>
113570         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
113571         as discussed with Paul Eggert in threads rooted at
113572         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
113573         and
113574         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
113575         Before, the test was empty, and relied on ELIDE_CODE in source
113576         code.)
113577         (gl_PREREQ_GETOPT): New macro.
113578         (gl_GETOPT): Use them.
113580 2004-08-12  Simon Josefsson  <jas@extundo.com>
113582         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
113583         * lib/getopt_.h: Renamed from getopt.h.
113585 2004-08-12  Simon Josefsson  <jas@extundo.com>
113587         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
113588         Change default library name from libfoo to libgnu.
113589         Now, if you have a configure.ac that says:
113590                 gl_SOURCE_BASE(gl)
113591                 gl_M4_BASE(gl/m4)
113592                 gl_MODULES(error getopt etcetera)
113593                 gl_INIT
113594         you can import all you need by running:
113595                 ../gnulib/gnulib-tool --import
113597         * modules/getopt (Files): Rename getopt.h to getopt_.h.
113598         (Makefile.am): Rewrite, use logic from argz.
113599         (Include): Use <getopt.h> instead of "getopt.h".
113601 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
113603         * modules/argp (Files): Add m4/unlocked-io.m4.
113604         (Depends-on): Add extensions.
113606 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
113608         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
113609         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
113610         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
113611         Check for program_invocation_name, program_invocation_short_name,
113612         flockfile, funlockfile, features.h, _getopt_long_only_r.
113614 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
113616         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
113617         its complicated substitute.
113618         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
113619         and program_invocation_name.
113620         (__argp_basename) [!_LIBC]: Remove; the only use was
113621         replaced by its body.
113622         (__argp_short_program_name): Change condition from
113623         !defined __argp_short_program_name to
113624         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
113625         to match argp-namefrob.h.
113626         (__argp_failure): Don't assume strerror_r returns char *.
113627         * lib/argp-parse.c (N_): Define unconditionally.
113628         (argp_default_options): Fill out initializers with 0 to avoid
113629         gcc warnings.
113631 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
113633         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
113634         getopt1.c.
113636 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
113638         Merge from coreutils.
113640         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
113642         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
113643         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
113645 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
113647         Merge from coreutils.
113649         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
113650         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
113651         for Reliant Unix 5.43.
113653         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
113654         (union fooround): Use uintmax_t, not long int.
113655         The rest is a merge from libc:
113656         [defined _LIBC]: Include <shlib-compat.h>.
113657         (_obstack) [defined _LIBC]: Remove after 2.3.4.
113659         * lib/settime.c (settime): Recode to avoid warning with
113660         Sun Forte C 6U2.
113662         * lib/strverscmp.c: Convert to UTF-8.
113664 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
113666         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
113667         m4/uintmax_t.m4.
113669 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
113671         * modules/xalloc-die: New file.
113672         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
113674         * modules/md5 (Files): Add m4/uint32_t.m4.
113675         * modules/sha1: Renamed from modules/sha.
113676         (Files):
113677         Rename lib/sha.h to lib/sha1.h.
113678         Rename lib/sha.c to lib/sha1.c.
113679         Rename m4/sha.m4 to m4/sha1.m4.
113680         (lib_SOURCES): Likewise.
113681         (configure.ac): Rename gl_SHA to gl_SHA1.
113682         (Include): sha.h -> sha1.h.
113684 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
113686         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
113687         * m4/sha1.m4: Renamed from sha.m4.
113688         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
113690 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
113692         * lib/obstack.h (obstack_empty_p):
113693         Don't assume that chunk->contents is suitably aligned.
113694         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
113695         Likewise. Problem reported by Benno in
113696         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
113698         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
113699         readable.  This could be improved further but it'd take some work.
113701 2004-08-08  Simon Josefsson  <jas@extundo.com>
113703         * modules/xgethostname (Depends-on): Remove exit and error (not
113704         used).
113706         * modules/getpass-gnu: Add getpass.h.
113707         (Depends-on): Add stdbool.
113708         * modules/getpass: Add getpass.h.
113710 2004-08-08  Simon Josefsson  <jas@extundo.com>
113712         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
113713         Check getpass declaration.
113715 2004-08-08  Simon Josefsson  <jas@extundo.com>
113717         * lib/xgethostname.c: Don't include error.h (not used).
113719         * lib/getpass.h: Add.
113720         * lib/getpass.c: Include getpass.h first.
113722 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
113724         * lib/xalloc-die.c: New file.
113725         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
113726         All uses removed.
113727         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
113728         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
113729         xalloc-die.c.
113730         (_, N_, xalloc_die): Move to xalloc-die.c.
113731         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
113732         so that we needn't mess with xalloc_msg_memory_exhausted.
113734         * lib/sha1.h: Renamed from sha.h.
113735         (SHA1_H): Renamed from _SHA_H.
113736         (sha1_ctx): Renamed from sha_ctx.
113737         (sha1_init_ctx): Renamed from sha_init_ctx.
113738         (sha1_process_block): Renamed from sha_process_block.
113739         (sha1_process_bytes): Renamed from sha_process_bytes.
113740         (sha1_finish_ctx): Renamed from sha_finish_ctx.
113741         (sha1_read_ctx): Renamed from sha_read_ctx.
113742         (sha1_stream): Renamed from sha_stream.
113743         (sha1_buffer): Renamed from sha_buffer.
113744         * lib/sha1.c: Likewise; renamed from sha.c.
113745         Do not include <sys/types.h>.
113746         Include <stddef.h> rather than <stdlib.h>.
113748 2004-08-08  Bruno Haible  <bruno@clisp.org>
113750         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
113751         FILESYSTEM_PREFIX_LEN.
113752         * lib/progreloc.c: Likewise.
113753         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
113755 2004-08-06  Simon Josefsson  <jas@extundo.com>
113757         * modules/progname (Depends-on): Don't depend on stdbool.
113759 2004-08-06  Simon Josefsson  <jas@extundo.com>
113761         * modules/getsubopt: New file.
113762         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
113763         getsubopt.
113765 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
113767         More merge from coreutils.
113769         * m4/utimens.m4, m4/utimecmp.m4: New files.
113770         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
113771         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
113772         prereq.m4, sha.m4: Import changes from coreutils.
113774 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
113776         More merge from coreutils.
113777         * modules/raise, modules/readtokens0, modules/utimens:
113778         * modules/utimecmp, module/xnanosleep: New files.
113779         * modules/strftime: Add lib/strftime.h.
113780         Change include from <time.h> to "strftime.h".
113781         * modules/yesno: Add lib/yesno.h.
113782         * modules/backupfile: Remove lib/addext.c.
113783         * modules/euidaccess: Add stat-macros.h.
113784         * modules/canonicalize, modules/euidaccess,
113785         modules/filemode, modules/lchown, modules/makepath,
113786         modules/rmdir, modules/stat: Likewise.
113788 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
113790         Merge from tar.
113791         * lib/argp-help.c (make_hol, hol_append): Don't assume that
113792         SIZE_MAX is a valid preprocessor constant.
113793         (__argp_basename): Change from "#ifndef _LIBC"
113794         to "#ifndef __argp_short_program_name", so that
113795         we don't compile these functions for tar.
113797         More merges from coreutils.
113798         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
113799         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
113800         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
113801         * lib/addext.c: Remove; no longer needed.
113802         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
113803         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
113804         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
113805         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
113806         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
113807         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
113808         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
113809         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
113810         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
113811         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
113812         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
113813         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
113814         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
113815         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
113816         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
113817         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
113818         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
113819         Import changes from coreutils.
113821 2004-08-05  Simon Josefsson  <jas@extundo.com>
113823         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
113825 2004-08-05  Simon Josefsson  <jas@extundo.com>
113827         * m4/getsubopt.m4: New file.
113829 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
113831         Merge from coreutils.
113833         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
113834         * m4/getcwd-path-max.m4: New files.
113836         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
113837         FILESYSTEM_PREFIX_LEN ->
113838         FILE_SYSTEM_PREFIX_LEN.
113839         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
113840         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
113841         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
113842         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
113844         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
113845         prerequisite modules now handle the DOS stuff.
113846         Don't check for unistd.h.
113848 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
113850         Merge from coreutils.
113852         * lib/.gdb-history: Remove; this doesn't belong here.
113854         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
113855         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
113856         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
113857         * lib/getcwd.c: New files.
113859         * lib/dirname.h: Include <stdbool.h>.
113860         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
113861         for consistency with POSIX terminology.  All uses changed.
113862         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
113863         (strip_trailing_slashes): Use bool for booleans.
113864         * lib/stripslash.c (strip_trailing_slashes): Likewise.
113866         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
113867         sometimes returns a positive errno value even when it succeeds.
113868         (print_errno_message) [!LIBC]: Fall back on strerror if
113869         __strerror_r fails.
113871         * lib/path-concat.c (mempcpy): Don't define if a system header defines
113872         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
113873         (longest_relative_suffix): New function.
113874         (path_concat): Use it.  Assume first argument is not NULL.
113875         Port to DOS.  Omit redundant separators.
113876         Report an error instead of returning NULL.
113877         Use mempcpy instead of memcpy.
113878         (xpath_concat): Remove: not declared or used.
113880         * lib/same.h: Include <stdbool.h>
113881         (same_name): Return bool, not int.
113882         * lib/same.c (same_name): Likewise.
113883         (errno): Don't declare; we assume C89 or better now.
113885         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
113886         if not already defined.
113888         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
113889         * lib/dup-safer.c (errno): Likewise.
113891 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
113893         Merge from coreutils.
113894         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
113895         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
113896         * modules/path-concat: Don't depend on strdup.
113898 2004-08-03  Simon Josefsson  <jas@extundo.com>
113900         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
113901         * lib/progname.h: Don't include stdbool.h.
113903 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
113905         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
113906         * MODULES.html.sh (func_all_modules): Remove fatal.
113908 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
113910         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
113912 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
113914         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
113915         working.
113917 2004-08-02  Simon Josefsson  <jas@extundo.com>
113919         * lib/getsubopt.h: New file, with comments from Bruno Haible.
113920         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
113921         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
113923 2004-08-01  Simon Josefsson  <jas@extundo.com>
113925         * lib/xgetdomainname.c: Include stdlib.h, for free().
113927 2004-07-19  Bruno Haible  <bruno@clisp.org>
113929         * MODULES.html.sh (func_all_modules): Add dummy.
113931 2004-07-16  Simon Josefsson  <jas@extundo.com>
113933         * modules/dummy: New file.
113935 2004-07-16  Simon Josefsson  <jas@extundo.com>
113937         * lib/dummy.c: New file.
113939 2004-07-16  Bruno Haible  <bruno@clisp.org>
113941         * lib/backupfile.h: Add extern "C" for C++.
113942         * lib/closeout.h: Likewise.
113943         * lib/copy-file.h: Likewise.
113944         * lib/findprog.h: Likewise.
113945         * lib/full-write.h: Likewise.
113946         * lib/pathname.h: Likewise.
113947         * lib/progname.h: Likewise.
113948         * lib/stpcpy.h: Likewise.
113949         * lib/stpncpy.h: Likewise.
113950         * lib/strcase.h: Likewise.
113951         * lib/strstr.h: Likewise.
113952         * lib/xalloc.h: Likewise.
113954         * lib/mbswidth.h: Add extern "C" for C++.
113955         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
113957 2004-07-13  Robert Millan  <robertmh@gnu.org>
113959         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
113961 2004-07-09  Simon Josefsson  <jas@extundo.com>
113963         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
113964         failed without this.)
113966 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
113968         * modules/chown (Files): Add lib/fchown-stub.c, since
113969         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
113971 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
113973         * lib/fchown-stub.c: New file.
113975 2004-06-24  Jim Meyering  <jim@meyering.net>
113977         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
113979 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
113981         * modules/argz: Omit "#include".
113983         * MODULES.html.sh (func_all_modules): Add calloc, to match
113984         2004-06-01 addition of calloc module.
113986 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
113988         * m4/argz.m4: New file, which is autoupdated from libtool.
113990 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
113992         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
113993         libtool.
113995 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
113997         * config/srclist-update: Don't insist on "USA." before the
113998         close-comment, as libtool omits the period and puts the */ on a
113999         separate line.
114000         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
114001         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
114003 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
114005         * modules/argz: New file.
114006         * MODULES.html.sh (func_all_modules): Add argz.
114008 2004-06-12  Jim Meyering  <jim@meyering.net>
114009         and  Paul Eggert  <eggert@cs.ucla.edu>
114011         * modules/hash (Files): Add lib/xalloc.h.
114012         * modules/pipe (Depends-on): Add wait-process.
114013         * modules/stat (Depends-on): Add xalloc.
114014         * modules/userspec (Files): Add lib/userspec.h.
114015         * modules/xstrto
114017         Upgrade from gettext-0.13.
114018         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
114019         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
114020         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
114022 2004-06-10  Jim Meyering  <jim@meyering.net>
114024         * lib/calloc.c: New file.
114026 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
114028         * lib/getdate.y (yylex): Allow space between sign and number.
114029         Problem reported by Dan Jacobson.
114031 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
114033         Merge from coreutils CVS.
114035         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
114036         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
114037         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
114038         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
114039         xstrtol.m4: Fix copyright date and/or serial number.
114041         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
114042         See if we need an fchown replacement.
114043         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
114044         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
114045         and use the replacement function if we detect either defect.
114047         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
114048         gl_UTIMECMP.
114050 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
114051         and  Jim Meyering  <jim@meyering.net>
114053         Merge from coreutils CVS.
114055         * lib/stat-macros.h: New file, with contents from file-type.h
114056         and coreutils' system.h.
114057         * lib/file-type.c: Include "stat-macros.h".
114058         * lib/file-type.h (file_type): Move all macro definitions to new file,
114059         stat-macros.h.
114061         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
114062         Wrap old code with this conditional.
114063         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
114064         function that does not dereference symlinks.
114065         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
114067         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
114068         dependency problems.
114069         (xreadlink): Accept new arg SIZE, for efficiency.
114070         All decls and uses changed.
114071         * lib/xreadlink.h: Include <stddef.h>, for size_t.
114073         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
114074         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
114076         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
114077         sysexits.h.
114079 2004-06-01  Jim Meyering  <jim@meyering.net>
114081         * m4/calloc.m4: New file.
114083 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
114085         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
114086         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
114087         Also, fix a typo in a diagnostic.
114089 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
114091         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
114092         or AC_FUNC_REALLOC.
114094 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
114096         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
114097         macros to be defined.
114098         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
114099         the allocator returns NULL because the requested size is zero.
114101 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
114103         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
114104         var.  Add comment explaining why libc still defines it.  This
114105         merges the following patch from glibc:
114106         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
114108 2004-05-20  Andreas Schwab  <schwab@suse.de>
114110         * m4/free.m4: Replace free if it not known to work, not the other
114111         way round.
114113 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
114115         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
114116         present in glibc since revision 1.1 of this file.
114117         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
114118         obstack_alignment_mask, obstack_alloc, obstack_base,
114119         obstack_blank, obstack_blank_fast, obstack_chunk_size,
114120         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
114121         obstack_grow0, obstack_init, obstack_int_grow,
114122         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
114123         obstack_next_free, obstack_object_size, obstack_ptr_grow,
114124         obstack_ptr_grow_fast, obstack_room): Remove declarations of
114125         nonexistent functions.
114127 2004-05-18  Karl Berry  <karl@gnu.org>
114129         * config/srclist.txt: break link for vasnprintf.c.
114131 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
114133         Port obstack to the AS/400, where pointers are 16 bytes wide and
114134         you cannot cast an integer to a valid pointer.  This patch is
114135         currently waiting to be integrated into glibc; see
114136         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
114138         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
114139         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
114140         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
114141         (struct obstack): temp member is now a union of a pointer and
114142         an integer, instead of an integer.  All integer uses changed.
114143         This does not affect the physical layout of struct obstack,
114144         except on hosts (like the AS/400) where the size or alignment of
114145         void * is greater than that of ptrdiff_t.
114146         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
114147         __STDC__)]: Store temporary in pointer member of union, not
114148         integer member.
114149         * lib/obstack.c: Include <stddef.h>, for offsetof.
114150         (struct fooalign): Remove; it doesn't need a name.
114151         (union fooround): Change double to long double, and add void *.
114152         (DEFAULT_ALIGNMENT): Use offsetof to compute.
114153         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
114154         not a macro.  Hence the values are always int; so remove all
114155         casts-to-int in uses.
114157 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
114159         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
114160         we can get this patch merged into glibc.
114162 2004-05-17  Derek R. Price  <derek@ximbiot.com>
114163             Paul Eggert  <eggert@cs.ucla.edu>
114165         * m4/argp: Depend on alloca.
114167 2004-05-17  Derek R. Price  <derek@ximbiot.com>
114168             Paul Eggert  <eggert@cs.ucla.edu>
114170         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
114171         freecoding.
114173 2004-05-17  Bruno Haible  <bruno@clisp.org>
114175         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
114176         precision that consists of a '.' followed by an empty digit string.
114177         Patch by Tor Lillqvist <tml@iki.fi>.
114179 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
114181         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
114182         for backward compatibility with older code.  We need our own
114183         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
114184         it under some other name, and our alloca.h will define it.
114186 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
114187             Derek Price  <derek@ximbiot.com>
114189         * lib/alloca.c: Include <alloca.h>, to get our interface.
114190         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
114191         include <alloca.h> first.  Use C89 prototype for alloca; this
114192         requires including <stddef.h> for size_t.  Use extern "C" if C++.
114193         Use #elif for simplicity, since we can assume C89 now.
114194         Don't try to source the system alloca.h since it will not be found
114195         and to prevent recursively including its replacement.
114196         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
114197         * lib/regex.c: Likewise.
114199 2004-05-16  Derek Price  <derek@ximbiot.com>
114200             Paul Eggert  <eggert@cs.ucla.edu>
114202         getline cleanup.  This changes the getndelim2 API: both order of
114203         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
114204         no delimiter).
114206         * lib/getline.c: Don't include stddef.h or stdio.h, since our
114207         interface does that.
114208         (getline): Always use getdelim, so that we don't have two
114209         copies of this code.
114210         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
114211         if available.
114212         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
114213         (GETNDELIM2_MAXIMUM): New macro.
114214         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
114215         instead of the old practice of delim2==0.  All callers changed.
114216         Return -1 on overflow, instead of returning junk.
114217         Do not set *linesize unless allocation succeeds.
114218         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
114219         that we include sys/types.h.
114220         * lib/getnline.h: Likewise.
114221         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
114222         (getndelim2): Reorder arguments.
114223         * lib/getnline.c (getnline, getndelim):
114224         Don't discard the NMAX argument.
114225         (getnline): Invoke getndelim, to avoid code duplication.
114226         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
114227         of (size_t) -1 by callers of the getnline family.
114229 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
114231         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
114232         Check for gettimeofday.
114233         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
114234         Check for settimeofday, stime.
114236 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
114238         * lib/nanosleep.c (suspended): Change its type from int to
114239         sig_atomic_t volatile.
114240         (first_call): Make it private to rpl_nanosleep, and have it
114241         be zero initially as that's a bit faster.
114242         (my_usleep): Round up fractional times instead of truncating them,
114243         as this is the usual meaning for 'sleep'.
114245         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
114246         doesn't work.
114247         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
114248         (ENOSYS): Define if not defined.
114249         (settime): Fall back on stime if it exists and settimeofday fails.
114250         But don't bother with fallbacks if a method fails with errno == EPERM.
114252 2004-05-11  Jim Meyering  <jim@meyering.net>
114254         Prior to this change, the save_cwd caller required read access to the
114255         current directory on most systems (ones with the fchdir function).
114257         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
114258         fails, try write-only, and finally, resort to using xgetcwd.
114260 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
114262         * lib/obstack.c, obstack.h: Import changes from libc.
114264 2004-04-28  Bruno Haible  <bruno@clisp.org>
114266         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
114267         also implicitly appends .exe to executables.
114268         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
114269         accepts Windows pathnames.
114270         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
114271         Treat Cygwin like Windows, since it now accepts Windows pathnames.
114272         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
114273         Treat Cygwin like Windows, since it now accepts Windows pathnames.
114274         Reported by Derek Robert Price <derek@ximbiot.com>.
114276 2004-04-21  Karl Berry  <karl@gnu.org>
114278         * config/srclist.txt (localcharset.c): break sync.
114280 2004-04-20  Paul Eggert  <eggert@twinsun.com>
114282         * m4/host-os.m4: Add a copyright notice.
114284 2004-04-20  Jim Meyering  <jim@meyering.net>
114286         Change UTILS_ to gl_ in AC_DEFINE'd names.
114287         Change utils_- and jm_-prefixed variables, too.
114288         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
114289         UTILS_FUNC_MKDIR_TRAILING_SLASH.
114290         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
114292         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
114293         Don't emit trailing blanks.
114294         Also rename jm_-prefixed variables to have gl_ prefix.
114296         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
114297         Also rename jm_-prefixed variables to have gl_ prefix.
114299         * m4/jm-macros.m4: Reflect the renamings.
114300         * m4/prereq.m4: Likewise.
114302 2004-04-20  Jim Meyering  <jim@meyering.net>
114304         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
114305         memory.
114307 2004-04-20  Jim Meyering  <jim@meyering.net>
114308             Bruno Haible  <bruno@clisp.org>
114310         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
114311         memory when realloc fails.
114313 2004-04-19  Jim Meyering  <jim@meyering.net>
114315         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
114316         now that readutmp.c may call `free (0)'.
114318 2004-04-19  Bruno Haible  <bruno@clisp.org>
114320         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
114321         * m4/inttypes_h.m4: Likewise.
114322         * m4/stdint_h.m4: Likewise.
114323         * m4/intmax_t.m4: Likewise.
114324         * m4/uintmax_t.m4: Likewise.
114326 2004-04-18  Jim Meyering  <jim@meyering.net>
114328         * m4/prereq.m4: Don't forbid jm_ prefix.
114330         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
114331         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
114332         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
114333         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
114334         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
114335         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
114336         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
114337         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
114338         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
114339         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
114340         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
114341         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
114342         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
114343         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
114344         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
114345         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
114346         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
114347         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
114348         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
114350 2004-04-18  Jim Meyering  <jim@meyering.net>
114352         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
114353         failure, don't leak memory and do call END_UTMP_ENT.
114355 2004-04-16  Jim Meyering  <jim@meyering.net>
114357         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
114358         coreutils' stat program.
114359         (gl_PREREQ): Don't require jm_PREREQ_STAT.
114361 2004-04-11  Paul Eggert  <eggert@twinsun.com>
114363         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
114364         C89.
114365         (CHAR_BIT): Remove, since we assume C89.
114366         Include <stdint.h> if available, as per current Autoconf CVS advice.
114368 2004-03-31  Jim Meyering  <jim@meyering.net>
114370         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
114371         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
114372         * m4/xalloc.m4: Likewise.
114374 2004-03-30  Paul Eggert  <eggert@twinsun.com>
114376         Merge from coreutils.
114378         * m4/inttostr.m4: New file.
114379         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
114380         Require AM_STDBOOL_H and gl_TIMESPEC instead.
114381         Require gl_CLOCK_TIME.
114382         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
114384 2004-03-30  Paul Eggert  <eggert@twinsun.com>
114386         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
114387         not bool, to be more consistent with Unix conventions.
114388         Suggested by Bruno Haible.
114390         Merge from coreutils.
114392         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
114393         * lib/umaxtostr.c: New files.
114395         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
114396         the usual <time.h> dance.
114397         (get_date): Change signature to support fractional time stamps.
114398         All callers changed.
114399         * lib/getdate.y: Include "getdate.h" first, as we can now
114400         assume C89 and don't need to worry about 'const'.
114401         Similarly, include "unlocked-io.h" near start, not in middle.
114402         Include <limits.h>.
114403         (textint.value): Use long int rather than int.
114404         (textint.digits): Use size_t rather than int.
114405         (BILLION, LOG10_BILLION): New constants.
114406         (parser_control): New member rel_ns.  Members day_ordinal,
114407         time_zone, month, day, hour, minutes, rel_year, rel_month,
114408         rel_day, rel_hour, rel_minutes, rel_seconds
114409         are now long int, not int.  Member seconds is now struct timespec,
114410         not int.  New member timespec_seen.  Members dates_seen, days_seen,
114411         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
114412         not int.
114413         (%union.intval): Now long int, not int.
114414         New member timespec.
114415         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
114416         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
114417         (spec): Now is a timespec or an item list.
114418         (timespec, items): New nonterminals.
114419         (time, rel, relunit, number, get_date):
114420         Add support for fractional seconds.
114421         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
114422         (gmtime, localtime, mktime): Remove decls; not needed with C89.
114423         (to_hour): First arg is now long int, not int.
114424         (to_year): Returns long int, not int.
114425         Don't treat year -70 like 70.
114426         (tm_diff): Returns long int, not int.
114427         (lookup_word): Use bool instead of int when appropriate.
114428         (yylex): Use size_t for count, not int.
114429         Detect overflow when parsing large integer constants.
114430         Add support for fractions.
114431         (get_date): Make pointers 'const' if possible.
114432         Use more-portable code to detect integer overflow.
114433         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
114434         Don't use ctime; it's not reliable if the year has >4 digits.
114436         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
114437         This is for compatibility with BSD.
114439         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
114440         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
114441         From coreutils' system.h.
114443         * lib/userspec.c: Don't include "posixver.h".
114444         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
114445         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
114446         compatible extension.  Simplify code by removing a boolean int
114447         that was always nonzero if a string was nonnull.
114449 2004-03-30  Jim Meyering  <jim@meyering.net>
114451         Merge from coreutils.
114453         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
114454         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
114455         on some systems one must include <grp.h> before it.
114456         Reported by Christian Krackowizer.
114458 2004-03-30  Jim Meyering  <jim@meyering.net>
114460         Merge from coreutils.
114462         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
114464         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
114465         an empty input stream.
114467         * lib/readtokens.c: Include <stdbool.h>.
114468         (readtoken): Use `size_t' rather than int/long.
114469         All callers adjusted.
114470         Use `bool' rather than `int' where appropriate.
114471         Use memset rather than an explicit loop.
114472         Use x2nrealloc rather than xrealloc.
114473         Allow the use of `\0' as a delimiter.
114474         (readtokens): Likewise.
114475         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
114477 2004-03-30  Jim Meyering  <jim@meyering.net>
114479         * m4/realloc.m4: Remove file, since now it does no more than
114480         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
114481         the `configure.ac' section of module/realloc.
114482         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
114484 2004-03-30  Bruno Haible  <bruno@clisp.org>
114486         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
114487         nonnull.
114489 2004-03-29  Paul Eggert  <eggert@twinsun.com>
114491         Merge changes to getloadavg.c from coreutils and Emacs.
114493         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
114494         Define to an expression, not to the empty string.
114495         Include cloexec.h and xalloc.h.
114496         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
114497         Use set_cloexec_flag rather than rolling our own.
114498         * lib/cloexec.c, lib/cloexec.h: New files.
114500 2004-03-29  Paul Eggert  <eggert@twinsun.com>
114502         * m4/cloexec.m4: New file.
114504 2004-03-18  Paul Eggert  <eggert@twinsun.com>
114506         * lib/getopt.h: Sync with libc CVS.
114508 2004-03-18  Paul Eggert  <eggert@twinsun.com>
114509             Bruno Haible  <bruno@clisp.org>
114511         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
114512         mbswidth.
114514 2004-03-18  Paul Eggert  <eggert@twinsun.com>
114515             Bruno Haible  <bruno@clisp.org>
114517         * lib/mbswidth.h: Include <wchar.h> only if
114518         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
114519         <wchar.h>.
114520         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
114522 2004-03-09  Paul Eggert  <eggert@twinsun.com>
114524         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
114525         Sync with libc CVS.
114526         * lib/getopt_int.h: New file, also synced from libc.
114528 2004-03-09  Paul Eggert  <eggert@twinsun.com>
114530         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
114531         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
114532         Bring back getopt.c, getopt.h, getopt1.c.
114534 2004-03-07  Paul Eggert  <eggert@twinsun.com>
114536         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
114537         All uses changed.  Check for sa_sigaction member; this fixes
114538         a bug first reported by Jason Andrade in
114539         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
114541 2004-03-07  Paul Eggert  <eggert@twinsun.com>
114543         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
114544         '#if' expressions.  Unlike the code it replaces, it does not
114545         depend on (defined _SC_PAGESIZE).  However, it does depend on
114546         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
114547         first reported by Jason Andrade in
114548         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
114550 2004-02-25  Simon Josefsson  <jas@extundo.com>
114552         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
114554 2004-02-25  Simon Josefsson  <jas@extundo.com>
114556         * lib/strdup.h: New file.
114557         * lib/strdup.c: Include it.
114558         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
114559         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
114561 2004-02-23  Karl Berry  <karl@gnu.org>
114563         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
114564         (from fencepost.gnu.org:/gd/gnuorg).
114566 2004-02-23  Karl Berry  <karl@gnu.org>
114568         * config/srclistvars.sh (GNUORG) [karl]: redefine.
114569         * config/srclist.txt: add maintain/standards documents.
114571 2004-02-18  Bruno Haible  <bruno@clisp.org>
114573         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
114574         Reported by Derek Robert Price <derek@ximbiot.com>.
114576 2004-02-16  Karl Berry  <karl@gnu.org>
114578         * config/mkinstalldirs, install-sh: update from automake.
114580 2004-02-06  Karl Berry  <karl@gnu.org>
114582         * m4/po.m4: update from gettext 0.14.1.
114584 2004-02-06  Karl Berry  <karl@gnu.org>
114586         * lib/config.charset: update from gettext 0.14.1.
114588 2004-02-05  Paul Eggert  <eggert@twinsun.com>
114590         Add comments and code, prompted by suggestions from Bruno Haible
114591         for sh-quote.
114592         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
114593         describing the enum quoting_style values.
114594         * lib/quotearg.c (quotearg_alloc): New function.
114595         (quotearg_buffer_restyled): Treat lone { and } as special.
114596         Treat = as special.  Work around bug with older shells
114597         that "see" a '\' that is really the 2nd byte of a multibyte char.
114598         Quote empty string with shell_quoting_style.
114600 2004-02-03  Bruno Haible  <bruno@clisp.org>
114602         * m4/pipe.m4: New file, from GNU gettext.
114604 2004-02-03  Bruno Haible  <bruno@clisp.org>
114606         * lib/pipe.h: New file, from GNU gettext.
114607         * lib/pipe.c: New file, from GNU gettext.
114609 2004-01-27  Bruno Haible  <bruno@clisp.org>
114611         * m4/execute.m4: New file, from GNU gettext.
114613 2004-01-27  Bruno Haible  <bruno@clisp.org>
114615         * lib/execute.h: New file, from GNU gettext.
114616         * lib/execute.c: New file, from GNU gettext.
114617         * lib/w32spawn.h: New file, from GNU gettext.
114619 2004-01-24  Paul Eggert  <eggert@twinsun.com>
114621         Merge from diffutils.
114623         * lib/file-type.c (file_type): Add typed memory objects.
114624         * lib/file-type.h (S_TYPEISTMO): New macro.
114626         * lib/c-stack.h (c_stack_action): Remove argv argument.
114627         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
114628         (die): Don't calculate message unless segv_action returns.
114629         (get_stack_location, min_address_from_argv, max_address_from_argv,
114630         volatile stack_base, volatile_stack_size): Remove.
114631         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
114632         that every segmentation violation is a stack overflow.  (Ouch!)
114633         See Debian bug 136249 (still outstanding) for more info about why
114634         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
114636 2004-01-24  Paul Eggert  <eggert@twinsun.com>
114638         Exit-status fix from coreutils.
114640         Use exit_failure consistently in place of EXIT_FAILURE,
114641         so that program exit statuses are consistent on failure.
114643         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
114644         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
114645         * lib/argmatch.h: Comment fix to match the above.
114646         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
114647         Now a macro referring to exit_failure, instead of a separate
114648         variable.  Include "exitfail.h" to get it.
114649         * lib/xstrtol.h: Include "exitfail.h".
114650         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
114652         * lib/long-options.c (parse_long_options): Use prototype
114653         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
114654         for clarity.
114656 2004-01-21  Jim Meyering  <jim@meyering.net>
114658         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
114659         so as not to conflict with a different-sized __mktime_internal
114660         function in GNU libc.
114661         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
114662         Problem building statically-linked `ls' reported by Michael Brunnbauer.
114664 2004-01-20  Karl Berry  <karl@gnu.org>
114666         * config/config.guess: update from config.
114668         * config/srclistvars.sh: GNUWWWLICENSES for karl.
114670 2004-01-20  Bruno Haible  <bruno@clisp.org>
114672         Safer stack allocation.
114673         * lib/setenv.c: Include allocsa.h.
114674         (alloca): Remove fallback definition.
114675         (freea): Remove macro.
114676         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
114677         instead of freea.
114679 2004-01-20  Bruno Haible  <bruno@clisp.org>
114681         * m4/eealloc.m4: New file, from GNU gettext.
114683 2004-01-20  Bruno Haible  <bruno@clisp.org>
114685         * m4/allocsa.m4: New file, from GNU gettext.
114687 2004-01-20  Bruno Haible  <bruno@clisp.org>
114689         * lib/xallocsa.h: New file, from GNU gettext.
114690         * lib/xallocsa.c: New file, from GNU gettext.
114692 2004-01-20  Bruno Haible  <bruno@clisp.org>
114694         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
114696 2004-01-20  Bruno Haible  <bruno@clisp.org>
114698         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
114699         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
114700         specially.
114702 2004-01-20  Bruno Haible  <bruno@clisp.org>
114704         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
114705         patch.
114707 2004-01-20  Bruno Haible  <bruno@clisp.org>
114709         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
114711 2004-01-20  Bruno Haible  <bruno@clisp.org>
114713         * lib/eealloc.h: New file.
114715 2004-01-20  Bruno Haible  <bruno@clisp.org>
114717         * lib/binary-io.h: Avoid warnings on Cygwin.
114719 2004-01-20  Bruno Haible  <bruno@clisp.org>
114721         * lib/allocsa.h: New file, from GNU gettext.
114722         * lib/allocsa.c: New file, from GNU gettext.
114724 2004-01-18  Karl Berry  <karl@gnu.org>
114726         * doc/gpl.texi, doc/lgpl.texi: new files.
114728 2004-01-18  Karl Berry  <karl@gnu.org>
114730         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
114731         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
114733 2004-01-15  Paul Eggert  <eggert@twinsun.com>
114735         Merge from coreutils.
114737         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
114738         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
114739         (gl_DEFAULT_POSIX2_VERSION): Move
114740         the documentation from 'configure' into 'config.hin',
114741         so that 'configure --help' isn't burdened by it and
114742         we don't have to worry about its formatting there.
114743         Reword the documentation so that it's more succinct
114744         and can be run together into a single paragraph.
114745         * m4/same.m4 (gl_SAME): Check for pathconf.
114747 2004-01-15  Paul Eggert  <eggert@twinsun.com>
114749         Merge from coreutils.
114751         * lib/posixver.c: Include posixver.h.
114753         * lib/same.c: Include <stdbool.h>, <limits.h>.
114754         (_POSIX_NAME_MAX): Define if not defined.
114755         (MIN): New macro.
114756         (same_name): If file names are silently truncated, report
114757         that the file names are the same if they are the same after
114758         the silent truncation.
114760         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
114761         conversion function.
114762         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
114763         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
114764         longer needed.
114766 2004-01-15  Jim Meyering  <jim@meyering.net>
114768         Merge from coreutils.
114770         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
114771         if no library is required.
114772         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
114773         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
114774         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
114775         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
114776         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
114777         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
114778         value, $ac_cv_search_crypt, if it's "none required".
114779         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
114780         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
114781         not gl_FUNC_GETLOADAVG.
114782         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
114783         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
114785 2004-01-15  Jim Meyering  <jim@meyering.net>
114787         Merge from coreutils.
114789         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
114790         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
114791         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
114793         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
114794         optional configure-time default.
114796         * lib/version-etc.c (version_etc_copyright): Update copyright date.
114798         * lib/xreadlink.c (xreadlink): Correct outdated comment.
114800 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
114802         Merge from coreutils.
114804         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
114805         value, $ac_cv_search_nanosleep, if it's "none required".
114807 2004-01-14  Paul Eggert  <eggert@twinsun.com>
114809         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
114810         with like-named macro in fnmatch.c.
114811         (EXT): Use an internal constant instead.
114813         Merge fnmatch patches from glibc.
114814         * lib/fnmatch.c (mbsinit): Remove define.
114815         Add libc_hidden_ver (__fnmatch, fnmatch).
114816         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
114817         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
114819 2004-01-14  Karl Berry  <karl@gnu.org>
114821         * config/install-sh: update from automake.
114823 2004-01-13  Karl Berry  <karl@gnu.org>
114825         * config/install-sh: update from automake.
114827 2004-01-09  Karl Berry  <karl@gnu.org>
114829         * config/install-sh: update from automake.
114831 2004-01-05  Karl Berry  <karl@gnu.org>
114833         * config/config.{sub,guess}: update from config.
114835 2003-12-31  Karl Berry  <karl@gnu.org>
114837         * config/depcomp: update from automake.
114839 2003-12-14  Karl Berry  <karl@gnu.org>
114841         * lib/config.charset: update from gettext-runtime.
114843 2003-12-03  Paul Eggert  <eggert@twinsun.com>
114845         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
114846         Bug reported by Alfred M. Szmidt.
114848 2003-12-03  Bruno Haible  <bruno@clisp.org>
114850         * m4/gettext.m4: Upgrade from gettext-0.13.
114851         * m4/po.m4: Upgrade from gettext-0.13.
114852         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
114853         * m4/intmax.m4: New file, from gettext-0.13.
114854         * m4/printf-posix.m4: New file, from gettext-0.13.
114856 2003-11-29  Karl Berry  <karl@gnu.org>
114858         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
114860 2003-11-25  Paul Eggert  <eggert@twinsun.com>
114861             Bruno Haible  <bruno@clisp.org>
114863         * lib/printf-parse.h: Don't include sys/types.h.
114864         (ARG_NONE): New macro.
114865         (char_directive): Change type of *arg_index fields to size_t.
114866         * lib/printf-parse.c: Don't include sys/types.h.
114867         (SSIZE_MAX): Remove macro.
114868         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
114869         Remove unnecessary overflow check.
114870         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
114871         fields.
114873 2003-11-25  Bruno Haible  <bruno@clisp.org>
114875         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
114877 2003-11-25  Bruno Haible  <bruno@clisp.org>
114879         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
114880         gt_TYPE_SSIZE_T.
114882 2003-11-24  Paul Eggert  <eggert@twinsun.com>
114884         * modules/alloca: Remove dependency on xalloc.
114886 2003-11-24  Paul Eggert  <eggert@twinsun.com>
114888         * lib/alloca.c: Remove dependency on xalloc module.
114889         (xalloc_die): Remove.
114890         (memory_full) [!defined emacs]: New macro.
114891         [!defined emacs]: Don't include xalloc.h.
114892         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
114893         address arithmetic overflows.  Change datatypes a bit to avoid
114894         unnecessary casts.
114896 2003-11-22  Jim Meyering  <jim@meyering.net>
114898         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
114899         s/size/size_t/.
114901 2003-11-21  Karl Berry  <karl@gnu.org>
114903         * config/config.{sub,guess}: update from config.
114905 2003-11-18  Karl Berry  <karl@gnu.org>
114907         * config/config.{sub,guess}: update from config.
114909         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
114911 2003-11-17  Paul Eggert  <eggert@twinsun.com>
114913         * README: Mention that S+T cannot overflow if S is the size of
114914         an existing object and T is sufficiently small.
114916 2003-11-17  Jim Meyering  <jim@meyering.net>
114918         On systems without utime and without a utimes function capable of
114919         dealing with a NULL struct utimbuf* argument, this utime replacement
114920         could -- in unusual circumstances -- leak a file descriptor.
114921         * lib/utime.c: Include <unistd.h> and <errno.h>.
114922         (utime_null): Be sure to close `fd' and to preserve errno.
114923         Reported by Geoff Collyer via Arnold Robbins.
114925 2003-11-17  Bruno Haible  <bruno@clisp.org>
114927         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
114928         (Depends-on): Add xsize.
114930 2003-11-17  Bruno Haible  <bruno@clisp.org>
114932         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
114934 2003-11-17  Bruno Haible  <bruno@clisp.org>
114936         * lib/vasnprintf.c (alloca): Remove fallback definition.
114937         (freea): Remove definition.
114938         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
114939         Reported by Paul Eggert.
114941 2003-11-16  Paul Eggert  <eggert@twinsun.com>
114942             Bruno Haible  <bruno@clisp.org>
114944         Protect against address arithmetic overflow.
114945         * lib/printf-args.h: Include stddef.h.
114946         (arguments): Change type of field 'count' to size_t.
114947         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
114948         'unsigned int' where appropriate.
114949         * lib/printf-parse.h: Include sys/types.h.
114950         (char_directive): Change type of *arg_index fields to ssize_t.
114951         (char_directives): Change type of fields 'count', max_*_length to
114952         size_t.
114953         * lib/printf-parse.c: Include sys/types.h and xsize.h.
114954         (SSIZE_MAX): Define fallback value.
114955         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
114956         instead of 'int' where appropriate. Check a_allocated, d_allocated
114957         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
114958         * lib/vasnprintf.c: Include xsize.h.
114959         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
114960         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
114961         overflow. Avoid wraparound when converting a width or precision from
114962         decimal to binary.
114964 2003-11-16  Bruno Haible  <bruno@clisp.org>
114966         Update from GNU gettext.
114967         * lib/printf-parse.c: Generalize to it can be compiled for wide
114968         strings.
114969         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
114970         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
114971         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
114972         SNPRINTF): New macros.
114973         Don't include <alloca.h> if the file is used inside libintl.
114974         (local_wcslen): New function, for Solaris 2.5.1.
114975         (VASNPRINTF): Use it instead of wcslen.
114977 2003-11-16  Bruno Haible  <bruno@clisp.org>
114979         * lib/xsize.h (xmax): New function.
114980         (xsum, xsum3, xsum4): Declare as "pure" functions.
114982 2003-11-12  Paul Eggert  <eggert@twinsun.com>
114984         * modules/xalloc (Files): Undo latest change, since xalloc.h
114985         no longer needs SIZE_MAX or PTRDIFF_MAX.
114987 2003-11-12  Paul Eggert  <eggert@twinsun.com>
114989         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
114990         gl_PTRDIFF_MAX.
114992 2003-11-12  Paul Eggert  <eggert@twinsun.com>
114994         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
114995         "return", to pacify some unknown compiler.  Problem reported
114996         by Joerg Schilling.
114998 2003-11-12  Paul Eggert  <eggert@twinsun.com>
115000         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
115001         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
115002         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
115003         heuristic is just as accurate as far as we know, and it removes a
115004         dependency on size_max.m4 and ptrdiff_max.m4.
115006 2003-11-11  Bruno Haible  <bruno@clisp.org>
115008         * modules/xsize (Files): Add m4/size_max.m4.
115009         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
115011 2003-11-11  Bruno Haible  <bruno@clisp.org>
115013         * m4/size_max.m4: New file.
115014         * m4/ptrdiff_max.m4: New file.
115015         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
115016         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
115017         (gl_XALLOC): Invoke it.
115019 2003-11-11  Bruno Haible  <bruno@clisp.org>
115021         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
115022         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
115023         defined.
115025 2003-11-10  Paul Eggert  <eggert@twinsun.com>
115027         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
115028         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
115029         rejected some allocations of exactly SIZE_MAX - 2 bytes.
115030         From Bruno Haible.
115031         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
115032         not (size_t) -1, since it's defined here.
115034 2003-11-09  Karl Berry  <karl@gnu.org>
115036         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
115038 2003-11-06  Paul Eggert  <eggert@twinsun.com>
115040         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
115041         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
115042         Reject sizes of exactly SIZE_MAX bytes.
115043         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
115044         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
115046 2003-11-05  Bruno Haible  <bruno@clisp.org>
115048         * lib/xsize.h: Include limits.h, to avoid a possible collision with
115049         SIZE_MAX defined in <limits.h> on Solaris.
115051 2003-11-04  Jim Meyering  <jim@meyering.net>
115053         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
115054         variable names, rather than @VAR@.
115055         * modules/poll: Likewise.
115057 2003-11-04  Bruno Haible  <bruno@clisp.org>
115059         * modules/xsize: New file.
115060         * modules/linebreak: Depend on xsize.
115061         * MODULES.html.sh (func_all_modules): Add xsize.
115063 2003-11-04  Bruno Haible  <bruno@clisp.org>
115065         * m4/xsize.m4: New file.
115067 2003-11-04  Bruno Haible  <bruno@clisp.org>
115069         * lib/xsize.h: New file.
115070         * lib/linebreak.c: Include xsize.h.
115071         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
115072         argument for overflow.
115073         Suggested by Paul Eggert.
115075 2003-11-03  Karl Berry  <karl@gnu.org>
115077         * config/config.{guess,sub}: update from config.
115079 2003-11-03  Jim Meyering  <jim@meyering.net>
115081         * modules/userspec (lib_SOURCES): Add userspec.h.
115082         (Include): Add "userspec.h".
115083         Improve description.
115085 2003-11-03  Jim Meyering  <jim@meyering.net>
115087         * lib/userspec.c: Include "userspec.h".
115088         * lib/userspec.h: New file.
115090 2003-11-03  Bruno Haible  <bruno@clisp.org>
115092         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
115094 2003-11-03  Bruno Haible  <bruno@clisp.org>
115096         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
115097         available, to avoid (extremely rare) race condition.
115098         Suggested by Paul Eggert.
115100 2003-11-02  Karl Berry  <karl@gnu.org>
115102         * config/srclist.txt (vasprintf.c): sync broken, sigh.
115104 2003-10-31  Paul Eggert  <eggert@twinsun.com>
115106         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
115107         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
115108         (read_filesystem_list): Set and use me_type_malloced.
115109         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
115110         whatever the type happens to be), for brevity and consistency.
115111         Check for size calculation overflow on Alphas running OSF/1.
115113 2003-10-31  Jim Meyering  <jim@meyering.net>
115115         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
115117         * lib/linebuffer.c: Include <string.h> for declaration of memset.
115119 2003-10-30  Paul Eggert  <eggert@twinsun.com>
115120             Bruno Haible  <bruno@clisp.org>
115122         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
115123         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
115125 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
115127         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
115128         netbsd*-gnu*.  Suggested by Robert Millan.
115130 2003-10-29  Paul Eggert  <eggert@twinsun.com>
115132         * modules/group-member: Depend on stdbool.
115134 2003-10-29  Paul Eggert  <eggert@twinsun.com>
115136         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
115138 2003-10-29  Paul Eggert  <eggert@twinsun.com>
115140         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
115141         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
115142         after the 'gnu' in these cases.  This fixes some bugs in the
115143         previous change, and is based on suggestions by Robert Millan.
115145 2003-10-29  Paul Eggert  <eggert@twinsun.com>
115147         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
115148         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
115149         no longer needed.
115150         * lib/quotearg.c (quotearg_n_options): Use it.
115151         * lib/group-member.c: Include <stdbool.h>.
115152         (free_group_info): Arg is now const *; don't free arg.
115153         (get_group_info): Now returns bool and accepts struct group_info *,
115154         rather than returning a malloc'ed struct group_info *.
115155         All uses changed.  Check for overflow in internal size calculation.
115157         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
115158         rather than xmalloc/xrealloc.
115159         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
115160         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
115161         conformance bug: the old code used a pointer after freeing the
115162         storage that it addressed.
115163         * lib/hash.c (hash_initialize): Simplify the code by using
115164         xalloc_oversized rather than doing it by hand.
115165         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
115166         the buffer preserved.  Use free and xmalloc instead.
115167         * lib/quotearg.c (quotearg_n_options): Likewise.
115168         Use a simpler test for size overflow.  Don't use xalloc_oversized
115169         because unsigned int might be wider than size_t (!); this suggests
115170         that we should switch from unsigned int to size_t for slot numbers.
115172 2003-10-28  Paul Eggert  <eggert@twinsun.com>
115174         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
115175         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
115176         NetBSD kernels.  Requested by Richard Stallman.
115178 2003-10-27  Paul Eggert  <eggert@twinsun.com>
115180         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
115181         to allocate the returned structure.  Do not allocate a subarray,
115182         as x2nrealloc will do that.
115183         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
115184         instead of xnrealloc.
115185         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
115187 2003-10-27  Bruno Haible  <bruno@clisp.org>
115189         * lib/stdbool_.h: Better support for BeOS.
115191 2003-10-26  Paul Eggert  <eggert@twinsun.com>
115193         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
115194         now uses inline.
115196 2003-10-26  Paul Eggert  <eggert@twinsun.com>
115198         * lib/xalloc.h (xalloc_oversized): New static inline function, for
115199         callers that want to do their own size-overflow checking.  Include
115200         <stdbool.h>, since xalloc_oversized returns bool.
115201         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
115202         to use xalloc_oversized.
115204         Add two functions x2realloc, x2nrealloc, for programs that grow
115205         arrays dynamically by doubling their sizes.
115206         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
115207         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
115208         New functions.
115210         Port to C99 semantics for 'inline' of external functions.
115211         Bug reported by Bruno Haible.
115212         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
115213         with the old contents of xnmalloc.
115214         (xnmalloc, xmalloc): Use it.
115215         (xnrealloc_inline): New static inline function,
115216         with the old contents of xnrealloc.
115217         (xnrealloc, xrealloc): Use it.
115219         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
115220         that.
115222 2003-10-26  Karl Berry  <karl@gnu.org>
115224         * config/srclist.txt (COPYING.DOC): no longer available from
115225         /gd/gnuorg; don't know where the ultimate source is.
115227 2003-10-25  Paul Eggert  <eggert@twinsun.com>
115229         Fix several address-calculation bugs in the hash modules,
115230         plus some minor code cleanup.
115232         * lib/hash.h: Include <stdbool.h>, for bool.
115233         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
115234         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
115235         hash_get_n_entries, hash_get_max_bucket_length,
115236         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
115237         hash_rehash): Use size_t rather than unsigned.
115238         * lib/hash.c (struct hash_table, hash_get_n_buckets,
115239         hash_get_n_buckets_used, hash_get_n_entries,
115240         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
115241         hash_get_entries, hash_do_for_each, hash_string, is_prime,
115242         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
115243         Likewise.
115244         (SIZE_MAX): Define if not defined.
115245         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
115246         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
115247         hash_print):
115248         Use const * when possible.
115249         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
115250         (check_tuning): Fix bug: if tuning parameters were very close to
115251         0 or 1, rounding errors could have caused subscript violations.
115252         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
115253         (hash_initialize): Add 'fail:' label
115254         to free table and return NULL, and use it to simplify code.
115255         Use calloc rather than clearing the storage ourself.
115256         (hash_initialize, hash_rehash): Check for arithmetic overflow in
115257         buffer size calculations.
115258         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
115259         Include <stddef.h>, for size_t.
115260         * lib/hash-pjw.c (hash_pjw): Likewise.
115261         Switch to method described by Bruno Haible.
115262         Include <limits.h>, for CHAR_BIT.
115263         (SIZE_BITS): New macro.
115265 2003-10-23  Paul Eggert  <eggert@twinsun.com>
115267         * m4/getline.m4 (AM_FUNC_GETLINE):
115268         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
115269         hosts.  Problem reported by Derek Robert Price in
115270         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
115271         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
115272         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
115274 2003-10-21  Paul Eggert  <eggert@twinsun.com>
115276         * lib/getndelim2.c (getndelim2): When size calculation overflows,
115277         ceiling the allocation at NMAX bytes rather than silently
115278         discarding input bytes before NMAX is reached.  This makes
115279         a difference only if NMAX exceeds SIZE_MAX / 2.
115281         * lib/obstack.c: Merge from glibc.
115282         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
115283         Add libc_hidden_def (_obstack_newchunk).
115284         (_obstack_free) [! defined _LIBC]: Remove.
115285         [defined _LIBC]: Make a strong alias from obstack_free, rather than
115286         a clone of the function body.
115287         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
115288         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
115290         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
115291         glibc.
115292         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
115293         arg to memcpy.
115295         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
115296         (obstack_ptr_grow_fast, obstack_int_grow_fast):
115297         Don't use lvalue casts, as GCC plans to remove support for them
115298         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
115299         was also present in the non-GCC version, indicating that this
115300         code had always been buggy and had never been widely used.
115301         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
115302         Use the fast variant of each macro, rather than copying the
115303         definiens of the fast variant; that way, we'll be more likely to
115304         catch future bugs in the fast variants.
115306 2003-10-20  Bruno Haible  <bruno@clisp.org>
115308         * modules/wait-process: New file.
115309         * MODULES.html.sh (func_all_modules): Add wait-process.
115311 2003-10-20  Bruno Haible  <bruno@clisp.org>
115313         * m4/wait-process.m4: New file.
115315 2003-10-20  Bruno Haible  <bruno@clisp.org>
115317         * lib/wait-process.h: New file, from GNU gettext.
115318         * lib/wait-process.c: New file, from GNU gettext.
115320 2003-10-19  Jim Meyering  <jim@meyering.net>
115322         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
115323         HPUX 10.20.
115325 2003-10-18  Karl Berry  <karl@gnu.org>
115327         * config/config.guess: update from config.
115329 2003-10-16  Paul Eggert  <eggert@twinsun.com>
115331         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
115332         (getgroups): First arg is int, not size_t.
115333         Don't let 'free' mangle errno.
115335 2003-10-16  Paul Eggert  <eggert@twinsun.com>
115337         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
115339 2003-10-16  Karl Berry  <karl@gnu.org>
115341         * config/config.{guess,sub}: update from config.
115343 2003-10-16  Jim Meyering  <jim@meyering.net>
115345         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
115346         memcpy.
115348 2003-10-15  Paul Eggert  <eggert@twinsun.com>
115350         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
115351         (SIZE_MAX): Remove.
115352         (new_exclude, add_exclude_file): Initial size no longer needs to
115353         be a power of 2.
115354         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
115355         our own address arithmetic overflow checking.
115357         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
115358         (fnmatch): Do not alloca more than 2000 wide characters;
115359         instead, use malloc for large buffers.
115360         Check for address arithmetic overflow, and return -1
115361         with errno set to ENOMEM in that case.
115362         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
115363         (NEW_PATTERN): Do not alloca more than 8000 bytes;
115364         instead, return -1.  Check for address arithmetic overflow.
115366 2003-10-14  Paul Eggert  <eggert@twinsun.com>
115368         Handle invalid suffixes and overflow independently, so that
115369         callers can treat them independently as needed.  Fix some bugs in
115370         suffix handling, e.g., "100k@" was not diagnosed as an invalid
115371         suffix for a human-readable blocksize.  The major caller-visible
115372         change is the addition of a new
115373         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
115374         that both overflow and suffix chars were found.
115376         * lib/human.c (humblock): Don't check separately for invalid suffix
115377         char; that is xstrtoumax's job (now that its bug is fixed).
115378         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
115379         INTMAX_MAX]: New macros.
115380         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
115381         TYPE_MAXIMUM): New macros.
115382         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
115383         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
115384         if overflow occurs, as it's what __strtol does and it's more useful
115385         in practice.
115386         (__xstrtol): If __strtol reports some error other than ERANGE,
115387         reflect it to the caller as LONGINT_INVALID.  If it reports
115388         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
115389         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
115390         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
115391         value.
115392         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
115393         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
115394         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
115395         [defined UINTMAX_MAX]: New macros.
115397 2003-10-14  Bruno Haible  <bruno@clisp.org>
115399         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
115401 2003-10-14  Bruno Haible  <bruno@clisp.org>
115403         * m4/sig_atomic_t: New file, from GNU gettext.
115404         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
115406 2003-10-14  Bruno Haible  <bruno@clisp.org>
115408         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
115409         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
115410         Also use volatile where needed.
115412 2003-10-12  Paul Eggert  <eggert@twinsun.com>
115414         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
115415         Change maintainer from Bruno Haible to 'all'.
115417 2003-10-12  Paul Eggert  <eggert@twinsun.com>
115419         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
115421 2003-10-12  Paul Eggert  <eggert@twinsun.com>
115423         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
115424         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
115425         and define in terms of the other primitives.
115426         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
115427         (SIZE_MAX): Define if not already defined.
115428         (array_size_overflow): New function.
115429         (xalloc_die): Abort instead of exiting if 'error' returns.
115430         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
115431         (xmalloc, xrealloc): Use them.
115432         (xcalloc): Check for address arithmetic overflow.
115433         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
115434         a bit faster than strcpy.
115436 2003-10-10  Simon Josefsson  <jas@extundo.com>
115438         * modules/argp (Depends-on): Add restrict and strcase.
115440 2003-10-10  Simon Josefsson  <jas@extundo.com>
115442         * m4/argp.m4: Add AC_C_INLINE.
115444 2003-10-08  Paul Eggert  <eggert@twinsun.com>
115446         Merge getpass from libc, plus a few fixes.
115448         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
115449         Include <stdbool.h>.
115450         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
115451         __fsetlocking to empty.
115452         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
115453         do include <bits/libc-lock.h>.
115454         Do not include <fcntl.h>; not needed.
115455         [_LIBC]: Include <wchar.h>.
115456         (NOTCANCEL_MODE): New macro.
115457         (flockfile, funlockfile) [_LIBC]: New macros.
115458         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
115459         [!_LIBC]: New macros.
115460         (call_fclose): New function.
115461         (getpass): Use it.  Save tty stream separately; this simplifies the
115462         code and makes it more reliable if stdin happens to equal stdout.
115463         Invoke __fsetlocking on tty.
115464         Handle thread cancellation if needed.
115465         Namespace cleanup (use __tcgetattr, __getline).
115466         Use bool for Booleans.
115467         [USE_IN_LIBIO]: Handle wide streams.
115468         [!_LIBC]: Unconditionally do the fseek, since we don't know what
115469         stream might go where.
115471         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
115472         doesn't have to include <stdio.h> before us.
115473         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
115474         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
115475         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
115476         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
115477         if not declared, so that we can use getpass.c code from libc without
115478         rewriting it.
115479         (flockfile, ftrylockfile, funlockfile): New macros.
115481 2003-10-08  Paul Eggert  <eggert@twinsun.com>
115483         * modules/getpass: Depend on stdbool.
115485 2003-10-08  Paul Eggert  <eggert@twinsun.com>
115487         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
115489 2003-10-07  Karl Berry  <karl@gnu.org>
115491         * config/config.{guess,sub}: update from config.
115493 2003-10-06  Jim Meyering  <jim@meyering.net>
115494             Bruno Haible  <bruno@clisp.org>
115496         This lets translators provide better translations for the
115497         "Written by ..." part of --version output.
115498         * lib/version-etc.h: Include stdarg.h.
115499         (version_etc_copyright): Declare as readonly.
115500         (version_etc): Make this function variadic with a NULL-terminated list
115501         of author name strings.
115502         (version_etc_va): New declaration.
115503         * lib/version-etc.c: Include stdarg.h, stdlib.h.
115504         (version_etc_copyright): Declare as readonly.
115505         (version_etc_va): New function. Provide a different translatable string
115506         for each possible number of authors < 10. Abbreviate when there are 10
115507         authors or more.
115508         (version_etc): Make this function variadic. Call version_etc_va.
115509         Suggestion from Gary V. Vaughan.
115511         * lib/long-options.h (parse_long_options): Change prototype: the
115512         authors string is moved to the end and becomes variadic.
115513         * lib/long-options.c: Include stdarg.h.
115514         (parse_long_options): Make this function variadic, too.
115515         Call version_etc_va, not version_etc.
115517 2003-10-06  Bruno Haible  <bruno@clisp.org>
115519         * modules/version-etc-2: Remove file.
115520         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
115522 2003-10-06  Bruno Haible  <bruno@clisp.org>
115524         * modules/fatal-signal: New file.
115525         * MODULES.html.sh (func_all_modules): Add fatal-signal.
115527 2003-10-06  Bruno Haible  <bruno@clisp.org>
115529         * m4/fatal-signal.m4: New file.
115530         * m4/signalblocking.m4: New file, from GNU gettext.
115532 2003-10-06  Bruno Haible  <bruno@clisp.org>
115534         * lib/version-etc-2.h: Remove file.
115535         * lib/version-etc-2.c: Remove file.
115537 2003-10-06  Bruno Haible  <bruno@clisp.org>
115539         * lib/fatal-signal.h: New file, from GNU gettext.
115540         * lib/fatal-signal.c: New file, from GNU gettext.
115542 2003-10-05  Paul Eggert  <eggert@twinsun.com>
115544         * README: Rework advice for preventing empty .o files.
115545         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
115546         not <sys/types.h>.
115548 2003-10-04  Karl Berry  <karl@gnu.org>
115550         * lib/argp*: update from libc.
115552 2003-10-04  Karl Berry  <karl@gnu.org>
115554         * config/config.{guess,sub}: update from config.
115556 2003-10-02  Bruno Haible  <bruno@clisp.org>
115558         * modules/lchown (Include): Add lchown.h.
115559         * modules/time_r (Include): Use "..." syntax.
115560         * modules/xgetdomainname (Include): Add xgetdomainname.h.
115562 2003-10-01  Simon Josefsson  <jas@extundo.com>
115564         * MODULES.html.sh (func_all_modules): Move gethostname from section
115565         'based on' to section 'lacking' POSIX:2001.
115567 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
115569         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
115570         to output mode on the same stream.
115572 2003-09-29  Paul Eggert  <eggert@twinsun.com>
115574         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
115575         Fix arg typo in previous patch.
115577 2003-09-28  Jim Meyering  <jim@meyering.net>
115579         * lib/error.c: Correct cpp indentation.
115581 2003-09-27  Paul Eggert  <eggert@twinsun.com>
115583         * modules/free: New file.
115585 2003-09-27  Paul Eggert  <eggert@twinsun.com>
115587         * m4/free.m4: New file.
115589 2003-09-27  Paul Eggert  <eggert@twinsun.com>
115591         * lib/minmax.h (MIN, MAX)
115592         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
115593         Omit the special code that used __typeof__, since we worry that
115594         it could be more trouble than it's worth.  See:
115595         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
115596         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
115598         * lib/free.c: New file.
115600 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
115602         Trivial fixes to Makefile.am parts of module listings.
115603         * modules/strstr: Append strstr.h to lib_SOURCES.
115604         * modules/strcase: Likewise, for strcase.h.
115606 2003-09-27  Karl Berry  <karl@gnu.org>
115608         * config/mkinstalldirs: update from automake.
115610 2003-09-26  Paul Eggert  <eggert@twinsun.com>
115612         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
115613         (error_tail): Do not loop, reallocating temporary buffer, since
115614         the output cannot contain more wide characters than the input
115615         contains bytes, the size must be big enough already.  This avoids
115616         one potential size overflow calculation.  Check for size overflow
115617         when calculating temporary buffer size.  Free temporary buffer
115618         when done, if it was allocated with malloc; this plugs a memory
115619         leak.  Remove casts from void * to pointers, that are no longer
115620         needed now that we're assuming C89 or better.
115622         Merge error changes from glibc.
115624         * lib/error.c, error.h: Update copyright notice header to match glibc.
115625         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
115626         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
115627         Disable cancellation while printing error.
115628         * lib/error.h: Prepend __ to parameter names.
115630 2003-09-26  Jim Meyering  <jim@meyering.net>
115632         * lib/error.c (error_tail): Move some declarations
115633         into inner scope where the local variables are used.
115635 2003-09-26  Bruno Haible  <bruno@clisp.org>
115637         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
115638         stpncpy().
115639         Don't define stpncpy through config.h; it's now done through stpncpy.h.
115641 2003-09-26  Bruno Haible  <bruno@clisp.org>
115643         * lib/stpncpy.h (gnu_stpncpy): New declaration.
115644         (stpncpy): Define as alias for gnu_stpncpy.
115645         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
115647 2003-09-25  Simon Josefsson  <jas@extundo.com>
115649         * lib/xgetdomainname.h: New file.
115650         * lib/xgetdomainname.c: New file.
115652 2003-09-25  Simon Josefsson  <jas@extundo.com>
115653             Bruno Haible  <bruno@clisp.org>
115655         * modules/getdomainname: New file.
115656         * modules/xgetdomainname: New file.
115657         * MODULES.html.sh (func_all_modules): Add getdomainname,
115658         xgetdomainname.
115660 2003-09-25  Simon Josefsson  <jas@extundo.com>
115661             Bruno Haible  <bruno@clisp.org>
115663         * m4/getdomainname.m4: New file.
115665 2003-09-25  Simon Josefsson  <jas@extundo.com>
115666             Bruno Haible  <bruno@clisp.org>
115668         * lib/getdomainname.h: New file.
115669         * lib/getdomainname.c: New file.
115671 2003-09-25  Karl Berry  <karl@gnu.org>
115673         * lib/argp-fmtstream.c, argp-help.c: update from libc.
115675 2003-09-25  Karl Berry  <karl@gnu.org>
115677         * config/install-sh: update from automake.
115679 2003-09-25  Bruno Haible  <bruno@clisp.org>
115681         * modules/version-etc-2: New file, from modules/version-etc with
115682         modifications.
115683         * MODULES.html.sh (func_all_modules): Add version-etc-2.
115685 2003-09-25  Bruno Haible  <bruno@clisp.org>
115687         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
115688         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
115690 2003-09-24  Simon Josefsson  <jas@extundo.com>
115692         * modules/xgethostname: Add xgethostname.h.
115694 2003-09-24  Paul Eggert  <eggert@twinsun.com>
115696         * lib/linebuffer.c (freebuffer): Don't free the argument, just
115697         the buffer associated with the argument.  Bug reported by
115698         Simon Josefsson.
115700 2003-09-24  Paul Eggert  <eggert@twinsun.com>
115702         * README: Document assumptions that 'int' is at least 32 bits
115703         wide, that integer arithmetic is 2's complement without overflow,
115704         that there are no holes in integer values, that adding sizes of
115705         two nonoverlapping objects can't overflow, and that all-bits-zero
115706         yields scalar zero.  Fix spelling and capitalization typos.
115708 2003-09-19  Karl Berry  <karl@gnu.org>
115710         * lib/argp.h: update from libc.
115712 2003-09-17  Paul Eggert  <eggert@twinsun.com>
115714         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
115715         to avoid spurious warnings like "AC_RUN_IFELSE was called before
115716         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
115718 2003-09-17  Paul Eggert  <eggert@twinsun.com>
115720         * gnulib-tool: Use "test -h", not "test -L", for portability
115721         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
115722         (tags_regexp): Remove, since \| doesn't conform to POSIX.
115723         (sed_extract_prog): Issue s commands one-by-one, rather than
115724         using \| in one s command.
115726 2003-09-16  Paul Eggert  <eggert@twinsun.com>
115728         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
115729         input error, instead of returning NULL the next time we are called
115730         (and therefore losing track of errno).
115732 2003-09-16  Bruno Haible  <bruno@clisp.org>
115734         * gnulib-tool (func_create_testdir): Warn about duplicated
115735         dependencies.
115737 2003-09-15  Paul Eggert  <eggert@twinsun.com>
115739         * modules/argmatch, modules/fatal, modules/obstack,
115740         modules/xalloc, modules/xgethostname: Sort dependencies by
115741         importance, not alphabetically.
115743 2003-09-15  Paul Eggert  <eggert@twinsun.com>
115745         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
115746         fails, so that the caller gets the proper errno.
115748         * lib/readutmp.c (read_utmp): Likewise.
115749         Check for fstat error.  Close stream and free storage
115750         when failing.
115752 2003-09-14  Karl Berry  <karl@gnu.org>
115754         * config/srclist.txt (strdup.c): disable for c89 changes.
115756 2003-09-14  Jim Meyering  <jim@meyering.net>
115758         * lib/getloadavg.c: Correct cpp indentation.
115759         * lib/strdup.c: Likewise.
115760         * lib/vasnprintf.c: Likewise.
115762 2003-09-14  Bruno Haible  <bruno@clisp.org>
115764         * modules/fwriteerror: New file.
115765         * MODULES.html.sh (func_all_modules): Add fwriteerror.
115767 2003-09-14  Bruno Haible  <bruno@clisp.org>
115769         * lib/fwriteerror.h: New file.
115770         * lib/fwriteerror.c: New file.
115772 2003-09-12  Paul Eggert  <eggert@twinsun.com>
115774         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
115775         modules/xgethostname, modules/xalloc: Depend on exit.
115777 2003-09-12  Paul Eggert  <eggert@twinsun.com>
115779         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
115781         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
115782         and AC_MINIX, too, so that their extensions are available.
115784         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
115785         This macro has been superseded by gl_BACKUPFILE.
115787         More patches to assume C89 or better.
115789         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
115791         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
115792         unconditionally.
115793         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
115794         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
115795         Include <string.h>, <stdlib.h> unconditionally.
115796         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
115797         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
115798         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
115799         headers or for string.h.
115800         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
115801         or strtoul.
115803         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
115804         headers.
115805         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
115806         * m4/userspec.m4 (gl_USERSPEC): Likewise.
115807         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
115808         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
115809         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
115810         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
115811         memcpy, memset.
115812         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
115813         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
115814         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
115815         strtol.
115816         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
115817         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
115818         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
115819         strtoul.
115821 2003-09-12  Paul Eggert  <eggert@twinsun.com>
115823         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
115824         * lib/obstack.c [!defined _LIBC]: Likewise.
115825         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
115826         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
115827         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
115829         More changes to assume C89 or better.
115831         * lib/error.c (error_tail): Assume vprintf.
115833         * lib/argmatch.c (getenv): Remove decl.
115834         * lib/progreloc.c (get_full_program_name): Define via prototype.
115835         * lib/setenv.c (clearenv): Likewise.
115836         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
115837         needed.
115838         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
115839         (malloc, memcpy): Remove decls.
115840         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
115841         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
115842         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
115843         (memcpy): Remove macro.
115844         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
115845         (__P): Remove.  All uses removed.
115846         (PTR): Remove.  All uses changed to void *.
115847         (CHAR_BIT, NULL): Remove.
115848         (spaces, zeros, memset_space, memset_zero)
115849         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
115850         Remove.
115851         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
115852         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
115853         Define with prototype.
115854         Remove now-unnecessary prototype decl.
115855         (extra_args_spec): Assume ANSI C.  All uses changed.
115856         (extra_args_spec_iso): Remove.
115857         (my_strftime, emacs_strftimeu): Define via prototype.
115858         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
115859         unconditionally.
115860         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
115861         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
115862         (strtoul, strtol): Remove decls.
115863         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
115864         LONG_MAX): Remove.
115865         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
115866         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
115867         (LOCALE_PARAM_PROTO): New macro.
115868         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
115869         (INTERNAL (strtol), strtol): Define with a prototype.
115870         (PARAMS): Remove.  All uses removed.
115871         * lib/tempname.c: Include <string.h> unconditionally.
115872         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
115873         * lib/xgethostname.c (main): Define with a prototype.
115874         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
115875         Include <stdlib.h> unconditionally.
115876         (calloc, malloc, realloc, free): Remove decls.
115877         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
115878         Include <stdlib.h> unconditionally.  Sort include file names.
115879         (strtod): Remove.
115880         (xstrtod): Define with a prototype.
115881         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
115882         (strtol, strtoul): Remove decls.
115884 2003-09-11  Paul Eggert  <eggert@twinsun.com>
115886         More patches to assume C89 or better.
115887         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
115888         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
115889         string.h, memchr, STDC_HEADERS.
115891 2003-09-11  Paul Eggert  <eggert@twinsun.com>
115893         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
115894         Include <stdlib.h>, <string.h> unconditionally.
115895         Remove now-unnecessary cast to char *.
115896         * lib/strnlen.c: Include <string.h> unconditionally.
115897         * lib/yesno.c (yesno): Define with a prototype.
115899 2003-09-11  Bruno Haible  <bruno@clisp.org>
115901         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
115903 2003-09-10  Jim Meyering  <jim@meyering.net>
115905         * lib/error.c: Correct indentation of cpp directives.
115907 2003-09-10  Bruno Haible  <bruno@clisp.org>
115909         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
115910         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
115911         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
115912         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
115913         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
115914         <stdlib.h> and <string.h> checks.
115915         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
115916         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
115918 2003-09-10  Bruno Haible  <bruno@clisp.org>
115920         * lib/strcspn.c: Include <string.h> unconditionally.
115921         * lib/strpbrk.c: Include <string.h> unconditionally.
115922         * lib/strstr.c: Include <string.h> unconditionally.
115923         * lib/unicodeio.c: Include <string.h> unconditionally.
115924         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
115925         * lib/unsetenv.c: Likewise.
115926         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
115927         * lib/yesno.c: Include <stdlib.h> unconditionally.
115928         (rpmatch): Add prototype.
115930 2003-09-09  Paul Eggert  <eggert@twinsun.com>
115932         More patches to assume C89 or better.
115933         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
115934         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
115935         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
115936         or for string.h.
115937         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
115938         stdlib.h.
115939         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
115940         C headers.
115941         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
115942         string.h.
115943         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
115944         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
115945         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
115946         or for string.h.
115947         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
115948         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
115949         C headers.
115950         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
115951         memcpy.
115952         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
115953         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
115954         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
115955         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
115956         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
115957         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
115958         string.h, free.
115959         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
115960         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
115961         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
115962         C headers, or for string.h.
115963         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
115964         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
115965         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
115966         headers, memory.h, stdlib.h, string.h, strings.h.
115967         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
115968         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
115969         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
115970         strchr.
115971         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
115972         headers, memory.h, string.h.
115973         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
115974         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
115975         free.
115976         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
115977         headers.
115978         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
115979         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
115980         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
115981         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
115982         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
115984 2003-09-09  Paul Eggert  <eggert@twinsun.com>
115986         More K&R removal.
115988         * lib/acosl.c (main): Use a prototype.
115989         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
115990         tanl.c: Likewise.
115992         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
115994         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
115995         (getopt, etopt_long, getopt_long_only, _getopt_internal)
115996         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
115997         with a prototype.
115998         * lib/getopt.c (const): Remove macro.
115999         Include <string.h> unconditionally.
116000         (my_index): Remove; all uses changed to strchr.
116001         (strlen): Remove decl.
116002         (exchange): Remove forward decl; no longer needed.
116003         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
116004         Define with prototype.
116005         * lib/getopt1.c (const): Remove macro.
116006         (getopt_long, getopt_long_only, main): Define with prototype.
116008         * lib/getugroups.c: Include <string.h> unconditionally.
116010         * lib/getusershell.c: Include <stdlib.h> unconditionally.
116011         (getusershell, setusershell, endusershell, readname, main):
116012         Define with prototypes.
116014         * lib/group-member.c: Include group-member.h first.
116015         Include <stdlib.h> unconditionally.
116017         * lib/hard-locale.c: Include hard-locale.h first.
116018         Include <stdlib.h>, <string.h> unconditionally.
116020         * lib/hash.c (free, malloc): Remove decls.
116021         Include <stdlib.h> unconditionally.
116023         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
116024         (getenv): Do not declare.
116026         * lib/idcache.c: Include <string.h> unconditionally.
116028         * lib/long-options.c: Include long-options.h first, to test interface.
116029         Include <stdlib.h> unconditionally.
116031         * lib/makepath.c: Include makepath.h first, to test interface.
116032         Include <stdlib.h> and <string.h> unconditionally.
116034         * lib/linebuffer.c: Include <stdlib.h>.
116035         (free): Remove decl.
116037         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
116038         stddef.h. rpl_malloc returns void *, not char *.
116039         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
116040         prototype.
116042         * lib/md5.h: Include <limits.h> unconditionally.
116043         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
116044         (__P): Remove; all uses removed.
116045         * lib/md5.c: Include "md5.h" first.
116046         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
116047         md5_buffer, md5_process_bytes, md5_process_block):
116048         Define with prototypes.
116049         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
116050         * lib/sha.c: Include "sha.h" first.
116051         Include <stdlib.h>, <string.h> unconditionally.
116053         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
116054         * lib/memcmp.c (__ptr_t): Likewise.
116055         * lib/memrchr.c (__ptr_t): Likewise.
116056         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
116057         Include <string.h> unconditionally.
116058         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
116059         * lib/memchr.c: Include <stdlib.h> unconditionally.
116060         * lib/memchr.c (LONG_MAX): Remove.
116061         * lib/memrchr.c (LONG_MAX): Likewise.
116062         * lib/memchr.c (__memchr): Define via a prototype.
116063         * lib/memrchr.c (__memrchr): Likewise.
116064         * lib/memcmp.c (__P): Remove, and remove all uses.
116065         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
116066         Remove forward decls; no longer needed.
116067         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
116068         Use types required by C89 in prototype.
116070         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
116071         * lib/savedir.c: Likewise.
116072         * lib/mkdir.c (free): Remove decl.
116073         * lib/rmdir.c (rmdir): Define with a prototype.
116074         * lib/savedir.c: Include savedir.h first, to test interface.
116076         * lib/mktime.c (STDC_HEADERS): Remove.
116077         Include <stdlib.h>, <string.h> unconditionally.
116079         * lib/modechange.c: Include <stdlib.h> unconditionally.
116080         (malloc): Remove decl.
116082         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
116083         (free): Remove decl.
116085         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
116086         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
116087         (This type really should be intptr_t, but that's a C99ism.)
116088         (_obstack_memcpy): Remove: all uses changed to memcpy.
116089         Include <string.h> unconditionally.
116090         (struct obstack): Assume __STDC__ for types of members
116091         chunkfun, freefun, extra_arg.
116092         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
116093         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
116094         obstack_begin, obstack_specify_allocation,
116095         obstack_specify_allocation_with_arg, obstack_chunkfun,
116096         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
116097         Remove unprototyped decls and the macros that use them.
116098         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
116099         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
116100         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
116101         (defined __STDC__ && __STDC__)]:
116102         Remove nonprototyped code.
116103         Include <stdlib.h> unconditionally.
116104         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
116105         _obstack_allocated_p, _obstack_free, obstack_free,
116106         _obstack_memory_used, print_and_abort):
116107         Define using prototypes.
116108         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
116109         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
116110         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
116111         obstack_next_free, obstack_object_size, obstack_room) [0]:
116112         Remove unused, unprototyped code.
116114         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
116116         * lib/physmem.c (physmem_total, physmem_available, main): Define
116117         with prototypes.
116119         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
116120         (main): Define with a prototype.
116122         * lib/posixver.c (getenv): Remove decl.
116124         * lib/putenv.c (malloc): Returns void *, not char *.
116125         Include <string.h> unconditionally.
116126         (strchr, memcpy, NULL): Do not define.
116128         * lib/readtokens.c: Include readtokens.h first, to test interface.
116129         Include <stdlib.h>, <string.h> unconditionally.
116130         (init_tokenbuffer): Define with a prototype.
116132         * lib/regex.c (PARAMS): Remove.  All uses removed.
116133         All uses of _RE_ARGS removed, too.
116134         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
116135         unconditionally.
116136         (bzero): Assume memset exists.
116137         (memcmp, memcpy, NULL): Remove.
116138         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
116139         char, or assignments to local vars of type signed char.
116140         (init_syntax_once, PREFIX(extract_number_and_incr),
116141         PREFIX(print_partial_compiled_pattern),
116142         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
116143         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
116144         PREFIX(regex_grow_registers), PREFIX(regex_compile),
116145         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
116146         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
116147         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
116148         wcs_compile_range, byte_compile_range, truncate_wchar,
116149         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
116150         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
116151         count_mbs_length, wcs_re_match_2_internal,
116152         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
116153         PREFIX(alt_match_null_string_p),
116154         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
116155         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
116156         regfree, PREFIX(extract_number)): Define with prototype.  Remove
116157         now-unnecessary declaration, if any.
116158         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
116159         regcomp, regexec):
116160         Remove now-unnecessary casts among pointer types.
116161         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
116163         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
116164         (free): Remove decl.
116166         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
116168         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
116169         (free): Remove decl.
116171         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
116172         * lib/xgetcwd.c: Likewise.
116174         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
116175         (free): Remove decl.
116177         * lib/strchrnul.c (strchrnul): Define with a prototype.
116178         Fix bug: c_in was not converted to char before searching.
116180         The following changes are not K&R related:
116182         * lib/group-member.h: Include <sys/types.h>, so that this file is
116183         self-contained.
116184         * lib/makepath.h: Likewise.
116186         * lib/getusershell.c (readname, default_index, line_size, readname):
116187         Use size_t, not int, for sizes.
116188         (readname): If the size overflows, report an error instead of
116189         looping forever.
116191 2003-09-09  Paul Eggert  <eggert@twinsun.com>
116193         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
116194         libc.
116196 2003-09-09  Paul Eggert  <eggert@twinsun.com>
116198         * README: New section: portability guidelines.
116200 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
116202         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
116203         C89 spec.
116205 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
116207         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
116209 2003-09-08  Paul Eggert  <eggert@twinsun.com>
116211         Assume C89 or better; remove K&R cruft.
116212         A few of these changes were first proposed by Derek Robert Price
116213         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
116215         * lib/addext.c: Include <string.h> unconditionally.
116216         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
116217         Don't declare getenv or malloc.
116219         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
116220         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
116221         (NULL): Remove.
116222         (find_stack_direction, alloca): Use prototypes.
116224         * lib/atexit.c (atexit): Define using a prototype.
116226         * lib/basename.c, dirname.c, stripslash.c:
116227         Include <string.h> unconditionally.
116229         * lib/bcopy.c: Include <stddef.h>.
116230         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
116232         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
116234         * lib/error.h (error, error_at_line, error_print_progname)
116235         [! (defined (__STDC__) && __STDC__)]: Remove decls.
116236         * lib/error.c: Include error.h first, to check interface.
116237         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
116238         (VA_START): Remove; all uses changeed to va_start.
116239         (exit, strerror): Remove decls.
116240         (error_print_progname): Prototype uncondionally.
116241         Don't include <errno.h>; no longer needed.
116242         (private_strerror): Remove.
116243         (error_tail): Always define.
116244         (error, error_at_line): Assume C89 or better; always use prototypes.
116245         * lib/fatal.c: Include "fatal.h" first, to test interface.
116246         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
116247         (VA_START): Remove; all uses changed to va_start.
116248         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
116249         this case.
116250         (exit): Remove decl.
116251         (fatal): Prototype unconditionally.  Assume va_start works.
116252         Abort at end, to pacify gcc.
116254         * lib/euidaccess.c (main): Define with a prototype.
116256         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
116258         * lib/exitfail.c: Include <stdlib.h> unconditionally.
116260         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
116261         prototypes.
116262         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
116263         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
116264         (getenv): Remove decl.
116265         (fnmatch): Define using a prototype.
116266         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
116267         (FCT): Define using a prototype.
116269         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
116271         * lib/gethostname.c: Include <stddef.h>.
116272         (gethostname): Define with prototype.  Length is size_t, not int.
116274 2003-09-08  Paul Eggert  <eggert@twinsun.com>
116276         Assume C89 or better; remove K&R cruft.
116277         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
116278         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
116279         string.h, getenv, malloc.
116280         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
116281         headers.
116282         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
116283         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
116284         do not check for strerror.
116285         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
116286         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
116287         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
116288         do not check for doprnt or vprintf.
116289         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
116290         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
116292 2003-09-08  Paul Eggert  <eggert@twinsun.com>
116294         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
116295         getversion.c should have been removed then, but was accidentally
116296         preserved.
116298         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
116299         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
116301 2003-09-08  Karl Berry  <karl@gnu.org>
116303         * config/config.sub, config.guess, srclistvars.sh: update from savannah
116304                 config, forget about prep.
116306         * config/depcomp, missing: update from automake.
116308 2003-09-07  Paul Eggert  <eggert@twinsun.com>
116310         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
116311         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
116313 2003-09-07  Paul Eggert  <eggert@twinsun.com>
116315         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
116316         copy_tm_result.  Bug reported by Simon Josefsson in
116317         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
116319 2003-09-06  Paul Eggert  <eggert@twinsun.com>
116321         * m4/time_r.m4: New file.
116322         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
116323         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
116324         is. Check for timegm declaration.
116325         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
116326         Do not check for gmtime_r.
116327         Replace mktime if __mktime_internal does not exist and if mktime
116328         hasn't been replaced already.
116330 2003-09-06  Paul Eggert  <eggert@twinsun.com>
116332         * lib/time_r.c, lib/time_r.h: New files.
116334         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
116335         __localtime_r.
116336         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
116337         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
116339         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
116340         __gmtime_r.
116341         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
116342         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
116343         Include <time_r.h>.
116345         * lib/timegm.c: Switch to glibc implementation, with the following
116346         changes:
116347         [defined HAVE_CONFIG_H]: Include <config.h>.
116348         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
116349         (__mktime_internal) [!defined _LIBC]: New decl.
116350         (__gmtime_r) [!defined _LIBC]: New macro and function.
116351         (timegm): Use a prototype, since gnulib assumes C89.
116352         Do not bother declaring tmp to be const, as it's not really usefu.
116353         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
116354         (timegm): Declare only if HAVE_DECL_TIMEGM.
116356 2003-09-06  Paul Eggert  <eggert@twinsun.com>
116358         * MODULES.html.sh (func_all_modules): Add time_r.
116359         * modules/time_r: New file.
116360         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
116361         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
116363 2003-09-03  Paul Eggert  <eggert@twinsun.com>
116365         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
116366         Bug reported by Lute Kamstra in
116367         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
116369         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
116370         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
116371         course with correspondingly smaller numbers for tomorrow and
116372         yesterday.  From Tadayoshi Funaba.  Originally installed into
116373         sh-utils on 1999-08-07, but the patch got lost (I guess during the
116374         coreutils merge?).
116376 2003-08-31  Simon Josefsson  <jas@extundo.com>
116378         * modules/timegm: New file.
116379         * MODULES.html.sh (func_all_modules): Add timegm.
116381 2003-08-31  Simon Josefsson  <jas@extundo.com>
116383         * m4/timegm.m4: New file.
116385 2003-08-31  Simon Josefsson  <jas@extundo.com>
116387         * lib/timegm.h: New file.
116388         * lib/timegm.c: New file.  Based on
116389         wget-1.8.2/src/http.c:mktime_from_utc.
116391 2003-08-31  Karl Berry  <karl@gnu.org>
116393         * lib/argp.h: update from libc.
116395 2003-08-28  Bruno Haible  <bruno@clisp.org>
116397         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
116398         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
116399         followed by '#define fnmatch fnmatch_posix' gives an error.
116401 2003-08-28  Bruno Haible  <bruno@clisp.org>
116403         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
116404         warning on QNX, which defines O_BINARY to 000000.
116406 2003-08-27  Jim Meyering  <jim@meyering.net>
116408         * m4/mkstemp.m4: Require that the system mkstemp be able to create
116409         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
116410         would fail after 32.  Reported by Danny Levinson.  Details here:
116411         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
116413 2003-08-24  Bruno Haible  <bruno@clisp.org>
116415         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
116416         MSVC7 <stdio.h> is included later.
116418 2003-08-22  Simon Josefsson  <jas@extundo.com>
116420         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
116422 2003-08-20  Karl Berry  <karl@gnu.org>
116424         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
116426 2003-08-20  Bruno Haible  <bruno@clisp.org>
116428         * modules/progname: New file.
116429         * MODULES.html.sh (func_all_modules): Add progname.
116431 2003-08-20  Bruno Haible  <bruno@clisp.org>
116433         * lib/progname.h: New file, from GNU gettext.
116434         * lib/progname.c: New file, from GNU gettext.
116435         * lib/progreloc.c: New file, from GNU gettext.
116437 2003-08-19  Jim Meyering  <jim@meyering.net>
116439         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
116440         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
116442 2003-08-19  Bruno Haible  <bruno@clisp.org>
116444         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
116445         more.
116447 2003-08-19  Bruno Haible  <bruno@clisp.org>
116449         * lib/xstrdup.c: Assume <string.h> exists.
116451 2003-08-18  Paul Eggert  <eggert@twinsun.com>
116453         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
116454         in makefile rules.
116456 2003-08-18  Jim Meyering  <jim@meyering.net>
116458         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
116459         * m4/lib-ld.m4: Likewise.
116461 2003-08-18  Jim Meyering  <jim@meyering.net>
116463         * lib/setenv.h: Indent nested cpp directive.
116464         * lib/vasnprintf.c: Remove trailing blanks.
116466 2003-08-17  Simon Josefsson  <jas@extundo.com>
116468         * modules/xstrndup: New file.
116469         * MODULES.html.sh (func_all_modules): Add xstrndup.
116471 2003-08-17  Simon Josefsson  <jas@extundo.com>
116473         * modules/argp: Fix autoconf macro name. Add more dependencies.
116475 2003-08-17  Simon Josefsson  <jas@extundo.com>
116477         * m4/xstrndup.m4: New file.
116479 2003-08-17  Simon Josefsson  <jas@extundo.com>
116481         * m4/argp.m4: New file.
116483 2003-08-17  Simon Josefsson  <jas@extundo.com>
116484             Bruno Haible  <bruno@clisp.org>
116486         * lib/xstrndup.h: New file.
116487         * lib/xstrndup.c: New file.
116489 2003-08-17  Bruno Haible  <bruno@clisp.org>
116491         * modules/strndup (Files, Include): Add lib/strndup.h.
116493 2003-08-17  Bruno Haible  <bruno@clisp.org>
116495         * modules/euidaccess (Files): Add lib/euidaccess.h.
116497 2003-08-17  Bruno Haible  <bruno@clisp.org>
116499         * lib/strndup.h: New file.
116501 2003-08-17  Bruno Haible  <bruno@clisp.org>
116503         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
116504         like AC_GNU_SOURCE.
116505         * modules/extensions (configure.ac): Comment out the invocation of
116506         gl_USE_SYSTEM_EXTENSIONS.
116508 2003-08-16  Paul Eggert  <eggert@twinsun.com>
116510         Merges from coreutils, etc.
116511         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
116512         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
116513         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
116514         fixing a typo.
116515         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
116516         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
116518 2003-08-16  Paul Eggert  <eggert@twinsun.com>
116520         Document merge from coreutils.
116521         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
116522         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
116523         * modules/utime: Add m4/utimes-null.m4.
116525 2003-08-16  Paul Eggert  <eggert@twinsun.com>
116527         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
116528         space, undoing this 2003-08-12 change:
116529         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
116531 2003-08-16  Paul Eggert  <eggert@twinsun.com>
116533         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
116534         strtoul.c from libc, undoing this 2003-08-12 change:
116535         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
116537 2003-08-16  Jim Meyering  <jim@meyering.net>
116539         Merges from coreutils.
116540         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
116541         prefix.  Adjust cache variables similarly.  Create 500 rather than
116542         just 300 files, to exercise bug on Darwin6.5, too.
116543         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
116544         $missing_dir.
116545         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
116546         AM_SYS_POSIX_TERMIOS.
116547         Reported by mkc@mathdogs.com.
116548         Also change use of $am_cv_sys_posix_termios
116549         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
116550         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
116551         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
116552         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
116553         in /proc/mounts until it finds one with matching device number.  This
116554         is unnecessary when the FILE argument *is* a mount point.  No stat call
116555         is necessary in that case.  So, disable the statvfs-testing code on
116556         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
116557         as RedHat bug# 84846.
116558         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
116559         to 1MB, so as not to render systems with no stack size limit (e.g.,
116560         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
116561         Include <unistd.h>.  On some systems,
116562         it is required for the definition of _SC_PAGESIZE.
116564 2003-08-16  Jim Meyering  <jim@meyering.net>
116566         Merge from coreutils.
116567         * lib/xstrtoimax.c: #else #if -> #elif.
116568         * lib/xstrtoumax.c: Likewise.
116570 2003-08-16  Jim Meyering  <jim@meyering.net>
116572         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
116573         * m4/utimes.m4: Removed.
116574         * m4/utimes-null.m4: Renamed from utimes.m4.
116576         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
116577         to 1MB, so as not to render systems with no stack size limit (e.g.,
116578         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
116579         Include <unistd.h>.  On some systems,
116580         it is required for the definition of _SC_PAGESIZE.
116582 2003-08-16  Jim Meyering  <jim@meyering.net>
116583         and Paul Eggert  <eggert@cs.ucla.edu>
116585         Merges from coreutils, etc.
116587         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
116588         using the latest version from cvs.  This avoids problems with #line
116589         directives using a vendor (Sun) compiler.
116590         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
116591         Don't set GETGROUPS_LIB here; now it's
116592         done via getgroups.m4's wrapper function.
116593         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
116594         rather than just in sh-util/configure.in, so that the
116595         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
116596         same.
116597         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
116598         AC_FUNC_GETLOADAVG where to find getloadavg.c.
116599         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
116600         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
116601         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
116602         Remove code that is now done by the newly-required macros.
116603         Append $(EXEEXT) to DF_PROG.
116604         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
116605         Do not invoke or require the following here,
116606         since prereq.m4 or some gnulib .m4 now does this for us:
116607         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
116608         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
116609         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
116610         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
116611         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
116612         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
116613         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
116614         AC_FUNC_OBSTACK.
116615         Do not replace the following functions, as this is now the job
116616         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
116617         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
116618         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
116619         atexit getpass, strdup, getpagesize.
116620         Replace 'raise'.
116621         Do not check for the following functions, as this is now the job
116622         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
116623         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
116624         setregid.
116625         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
116626         Check for sys/sysctl.h.
116627         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
116628         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
116629         of checking for ssize_t ourselves.
116631         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
116632         Require every macro that gnulib/modules/* suggests for us.
116633         (jm_PREREQ_ADDEXT): New macro.
116634         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
116635         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
116637         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
116638         (gl_PHYSMEM): Use it.
116639         Also check for `table' function.
116640         Check for new headers and functions.
116641         Add check for sys/sysmp.h.
116642         With suggestions from Kaveh Ghazi.
116643         Ignore headers that are present but cannot be compiled.  This
116644         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
116645         C 5.4.
116647 2003-08-15  Paul Eggert  <eggert@twinsun.com>
116649         Document merge from coreutils.
116650         * modules/userspec: Depend on posixver.
116651         * modules/strftime: Depend on tzset.
116653 2003-08-15  Paul Eggert  <eggert@twinsun.com>
116655         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
116656         rather than tab, after '#' in shell-script copyright notices.
116657         Suggested by Bruno Haible.
116659 2003-08-15  Paul Eggert  <eggert@twinsun.com>
116661         * config/srclist-update: Use three spaces, rather than tab, after '#'
116662         in shell-script copyright notices.  Suggested by Bruno Haible.
116663         Remove unnecessary parenthesization in regular expression.
116665 2003-08-15  Jim Meyering  <jim@meyering.net>
116667         Merge from coreutils.
116668         * lib/xgethostname.c: Include <stdlib.h>.
116669         (xghostname): Don't exit for anything other than memory-related
116670         failure; just return NULL.
116671         * lib/userspec.c: Include "posixver.h".
116672         (parse_user_spec): Accept `.' as a separator only
116673         in pre-POSIX-200112 mode.
116674         * lib/strtoimax.c: Use #elif rather than #else #if.
116675         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
116676         Remove function, now that we can rely on a working tzset function.
116677         [!_LIBC]: Ensure that the required autoconf test has been run.
116678         [!defined _NL_CURRENT && HAVE_STRFTIME]:
116679         Use underlying_strftime for %r.
116680         * lib/sha.c: Merge in some clean-up and optimization changes from
116681         glibc.
116682         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
116683         Ensure that it is a multiple of 64.
116684         Rearrange loop exit tests so as to avoid performing an
116685         additional fread after encountering an error or EOF.
116686         * lib/realloc.c: Update copyright date.
116688 2003-08-15  Jim Meyering  <jim@meyering.net>
116689         and Paul Eggert  <eggert@twinsun.com>
116691         Merge from coreutils.
116692         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
116693         member but strut utmpx does not.  Needed for AIX 4.3.3.
116694         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
116696 2003-08-15  Jim Meyering  <jim@meyering.net>
116697         and Paul Eggert  <eggert@cs.ucla.edu>
116699         Merges from coreutils, etc.
116700         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
116701         Require gl_FUNC_TZSET_CLOBBER.
116702         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
116703         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
116704         members.
116706 2003-08-14  Paul Eggert  <eggert@twinsun.com>
116708         Help the merge from coreutils.
116709         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
116710         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
116711         * m4/tzset.m4: Use it too.
116713 2003-08-14  Paul Eggert  <eggert@twinsun.com>
116715         * modules/tzset: New file.
116717 2003-08-14  Jim Meyering  <jim@meyering.net>
116719         Merges from coreutils.
116720         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
116721         variable names, rather than @FNMATCH_H@.
116722         * modules/alloca: Likewise for $(ALLOCA_H).
116724         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
116725         the three copies of the literal target, `fnmatch.h'.
116726         * modules/alloca (alloca.h): Likewise.
116728 2003-08-14  Jim Meyering  <jim@meyering.net>
116730         Merge from coreutils.
116731         * m4/tzset.m4: New file.
116732         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
116733         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
116734         otherwise, AIX 5.1 systems would end up using the latter.
116735         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
116736         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
116737         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
116738         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
116740 2003-08-14  Jim Meyering  <jim@meyering.net>
116742         Merge from coreutils.
116743         * lib/obstack.h: Whitespace changes.
116744         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
116745         and xcalloc return values.
116746         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
116747         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
116748         hang on OSF/1 5.1 for DIR on both local and remote file systems.
116749         Reported by (and fix confirmed by) Nelson H. F. Beebe.
116750         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
116751         error from mntctl.
116752         Use mntctl's return value to drive the entry-processing loop, since
116753         we can't rely on the value of the vmt_length member in the last
116754         entry.  On some systems doing so could result in exhausting
116755         virtual memory.  Based in part on a patch from Mike Jetzer.
116757 2003-08-14  Jim Meyering  <jim@meyering.net>
116758         and Paul Eggert  <eggert@twinsun.com>
116760         Merges from coreutils, plus other fixes.
116761         * lib/physmem.c: Merge in portability changes from gcc/libiberty
116762         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
116763         for credits and details.  Thanks to Kaveh Ghazi for helping
116764         to keep these files in sync.
116765         (ARRAY_SIZE): Define it.
116766         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
116767         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
116768         (memcasecmp): Don't assume size_t fits in unsigned int.
116769         Remove casts and duplicate code.
116770         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
116771         (memcpy): Remove definition.
116772         Merge in some clean-up and optimization changes from glibc.
116773         [BLOCKSIZE]: Move definition to top of file.
116774         Ensure that it is a multiple of 64.
116775         Rearrange loop exit tests so as to avoid performing an
116776         additional fread after encountering an error or EOF.
116777         * lib/md5.h (md5_uintptr): Define.
116778         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
116779         return to the initial working directory.  Preserve errno
116780         for caller.
116781         * lib/idcache.c: Include "xalloc.h".
116782         (xmalloc, xrealloc): Remove decls.
116783         (getuser): Remove casts no longer required in C89.
116784         * lib/human.c: Include stdio.h, for sprintf.
116785         * lib/group-member.c: Include "xalloc.h".
116786         (xmalloc, xrealloc): Remove decls.
116787         (get_group_info): Remove casts no longer required in C89.
116788         * lib/getusershell.c (readname): Remove casts no longer required in
116789         C89.
116790         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
116791         * lib/getline.c: Whitespace fix, from coreutils.
116793 2003-08-13  Paul Eggert  <eggert@twinsun.com>
116795         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
116796         Check for isascii.
116798         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
116799         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
116800         Undo previous (whitespace-only) change.
116802 2003-08-13  Paul Eggert  <eggert@twinsun.com>
116804         * lib/exclude.c: Include <ctype.h>
116805         (IN_CTYPE_DOMAIN): New macro.
116806         (is_space): New fn.
116807         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
116808         and empty lines.
116810         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
116811         Undo previous (whitespace-only) change.
116813 2003-08-13  Paul Eggert  <eggert@twinsun.com>
116815         * config/srclist-update: Change update back to the old behavior,
116816         leaving whitespace alone.  Use one 'sed' command rather than a
116817         pipeline.
116818         (fixlicense): Now a variable, not a function.
116819         (remove_trailing_blanks): Remove.
116820         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
116821         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
116822         Undo previous (whitespace-only) change.
116824 2003-08-12  Paul Eggert  <eggert@twinsun.com>
116826         Merge from coreutils.
116827         * modules/euidaccess: Add lib_SOURCES, include for new
116828         file euidaccess.h
116830 2003-08-12  Paul Eggert  <eggert@twinsun.com>
116832         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
116833         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
116834         Normalize leading white space and remove trailing white space.
116836         Merge from coreutils
116837         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
116839         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
116840         0.12.1.  These files are now being upgraded automatically by
116841         ../config/srclist-update.
116843 2003-08-12  Paul Eggert  <eggert@twinsun.com>
116845         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
116846         Normalize leading white space and remove trailing white space.
116847         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
116848         notice, as per ../config/srclist-update.
116850         Merge from coreutils.
116851         * lib/euidaccess.h: New file.
116852         * lib/euidaccess.c: Include it.
116853         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
116854         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
116855         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
116857 2003-08-12  Paul Eggert  <eggert@twinsun.com>
116859         * config/srclist-update: Add copyright notice.
116860         (remove_id_lines, remove_trailing_blanks): New constants.
116861         (fixfile): Use them to normalize spacing a bit in copied files.
116862         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
116863         Normalize leading white space and remove trailing white space.
116865         * config/texinfo.tex: Sync with texinfo.
116867         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
116868         strtoul.c from libc, to merge coreutils whitespace changes.
116870         * config/srclist.txt: Get the following m4 files from gettext:
116871         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
116872         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
116873         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
116874         wint_t.m4.
116876 2003-08-12  Karl Berry  <karl@gnu.org>
116878         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
116879         been made.
116881 2003-08-11  Paul Eggert  <eggert@twinsun.com>
116883         * modules/gnu-source, m4/gnu-source.m4:
116884         Remove; we're assuming Autoconf 2.54 or later now.
116885         Suggested by Bruno Haible.
116886         * MODULES.html.sh (func_all_modules): Remove gnu-source.
116888 2003-08-11  Bruno Haible  <bruno@clisp.org>
116890         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
116892 2003-08-11  Bruno Haible  <bruno@clisp.org>
116894         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
116895         (vasnprintf): Use it instead of wcslen.
116897 2003-08-11  Bruno Haible  <bruno@clisp.org>
116899         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
116900         value to ensure that _Bool promotes to int. Use #define for _Bool when
116901         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
116903 2003-08-10  Karl Berry  <karl@gnu.org>
116905         * lib/regex.h: update from libc (whitespace fix).
116907 2003-08-09  Paul Eggert  <eggert@twinsun.com>
116909         Merge some files from coreutils.  These changes were
116910         originally made by Jim Meyering.
116911         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
116912         many older Unixes require this.
116913         * lib/alloca.c (alloca): Remove cast to argument of free;
116914         no longer needed in C89.
116915         * lib/alloca_.h, regex.h: Fix white space to match
116916         what GNU indent does.
116918 2003-08-09  Paul Eggert  <eggert@twinsun.com>
116920         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
116921         apparently Emacs's Unicode mode got confused before my 2003-08-05
116922         checkin.
116924 2003-08-08  Paul Eggert  <eggert@twinsun.com>
116926         * m4/extensions.m4: New file.
116927         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
116928         Require gl_USE_SYSTEM_EXTENSIONS.
116929         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
116930         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
116932 2003-08-08  Paul Eggert  <eggert@twinsun.com>
116934         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
116935         * modules/extensions, modules/gnu-source: New files.
116936         * modules/timespec, modules/unlocked-io: Depend on extensions.
116938 2003-08-07  Paul Eggert  <eggert@twinsun.com>
116940         * modules/restrict: New file.
116941         * MODULES.html.sh (func_all_modules): Add restrict.
116942         * modules/regex: Depend on restrict.
116944 2003-08-07  Paul Eggert  <eggert@twinsun.com>
116946         * m4/restrict.m4: New file.
116947         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
116949 2003-08-07  Bruno Haible  <bruno@clisp.org>
116951         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
116952         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
116954 2003-08-07  Bruno Haible  <bruno@clisp.org>
116956         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
116957         makes the module 'getndelim2' compatible with the module 'getline'.
116959 2003-08-05  Paul Eggert  <eggert@twinsun.com>
116961         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
116962         byte with "\201" to avoid glitches when editing that source file
116963         with multi-gnome-terminal.
116965 2003-08-05  Paul Eggert  <eggert@twinsun.com>
116967         * lib/bumpalloc.h: Remove.
116969 2003-08-05  Paul Eggert  <eggert@twinsun.com>
116971         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
116972         * modules/bumpalloc: Remove.
116974 2003-08-04  Paul Eggert  <eggert@twinsun.com>
116976         * lib/getloadavg.c: Change copyright notice and spacing to conform to
116977         GNU coding style.
116979         Merge from coreutils.
116980         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
116981         1. From glibc.
116982         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
116983         from Karl Berry, implemented by Jim Meyering.
116984         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
116985         from Dmitry V. Levin.
116986         Remove anachronistic cast of xrealloc.
116987         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
116988         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
116989         type. Otherwise, it wouldn't compile with at least /bin/cc on
116990         ymp-cray-unicos9.0.2.X.
116991         Combine two mostly-identical uses of alloca into one.
116992         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
116994 2003-08-04  Dave Love  <d.love@dl.ac.uk>
116996         [From Emacs.]
116998         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
116999         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
117000         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
117001         obsolete NLIST_NAME_UNION.
117002         [__GNU__]: Undef BSD and FSCALE.
117003         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
117005 2003-08-03  Paul Eggert  <eggert@twinsun.com>
117007         * lib/stdbool_.h (_Bool): Make it signed char, instead of
117008         an enum type, so that it's guaranteed to promote to int.  See:
117009         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
117011 2003-08-03  Karl Berry  <karl@gnu.org>
117013         * config/depcomp: update from automake.
117015 2003-07-31  Paul Eggert  <eggert@twinsun.com>
117017         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
117018         (strerror): Don't assume that a printable int fits in 14 bytes.
117020 2003-07-31  Bruno Haible  <bruno@clisp.org>
117022         * modules/getpass-gnu: New file.
117023         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
117025 2003-07-31  Bruno Haible  <bruno@clisp.org>
117027         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
117029 2003-07-24  Karl Berry  <karl@gnu.org>
117031         * config/missing: update from automake.
117033 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
117034             Bruno Haible  <bruno@clisp.org>
117036         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
117037         * lib/getline.c (getline, getdelim): Likewise.
117038         Remove _GNU_SOURCE define; now it's defined in config.h through
117039         m4/getline.m4.
117041 2003-07-23  Karl Berry  <karl@gnu.org>
117043         * config/config.sub: update from prep.
117045 2003-07-22  Paul Eggert  <eggert@twinsun.com>
117047         * modules/xalloc (Depends-on): Add exitfail.
117048         * modules/xmemcoll: Likewise.
117050 2003-07-22  Paul Eggert  <eggert@twinsun.com>
117052         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
117053         over-parenthesization in macros.
117055         Sync with coreutils.
117057         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
117058         required by C99.
117060         Use `exit_failure' for xalloc and xmemcoll instead of their own
117061         private exit-failure variables.
117062         * lib/xalloc.h (xalloc_exit_failure): Remove.
117063         * lib/xmalloc.c: Likewise.  Include exitfail.h.
117064         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
117065         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
117066         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
117067         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
117069 2003-07-20  Jim Meyering  <jim@meyering.net>
117071         * modules/closeout (Depends-on): Add exitfail.
117072         Suggestion from Bruno Haible.
117074 2003-07-19  Karl Berry  <karl@gnu.org>
117076         * config/config.sub: update from prep.
117078 2003-07-18  Paul Eggert  <eggert@twinsun.com>
117080         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
117081         Remove.
117082         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
117083         to test that it can stand by itself.  Include "exitfail.h".
117084         Clients should set exit_failure instead.
117085         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
117087 2003-07-18  Bruno Haible  <bruno@clisp.org>
117089         * modules/getndelim2: New file.
117090         * modules/getline: Share files with module getndelim2.
117091         * modules/getnline: Depend on getndelim2 instead of sharing files with
117092         it. Add getnline.c to lib_SOURCES.
117093         * MODULES.html.sh (func_all_modules): Add getndelim2.
117095 2003-07-18  Bruno Haible  <bruno@clisp.org>
117097         * m4/getndelim2.m4: New file.
117098         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
117099         invoke gl_PREREQ_GETNDELIM2.
117100         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
117101         gl_PREREQ_GETNDELIM2.
117102         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
117103         gl_GETNDELIM2.
117105 2003-07-18  Bruno Haible  <bruno@clisp.org>
117107         * lib/getndelim2.h: New file.
117108         * lib/getndelim2.c: Make into a module of its own. Include config.h,
117109         getndelim2.h.
117110         (getndelim2): Make non-static. Change return type to ssize_t.
117111         * lib/getline.h: Change argument names.
117112         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
117113         * lib/getnline.c: Include getndelim2.h.
117115 2003-07-18  Andreas Schwab  <schwab@suse.de>
117117         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
117119 2003-07-17  Karl Berry  <karl@gnu.org>
117121         * config/config.sub: update from prep.
117123 2003-07-17  Bruno Haible  <bruno@clisp.org>
117125         * modules/getnline: New file.
117126         * modules/getline: Add lib/getndelim2.c to source file list.
117127         * MODULES.html.sh (func_all_modules): Add getnline.
117129 2003-07-17  Bruno Haible  <bruno@clisp.org>
117131         * m4/getnline.m4: New file.
117133 2003-07-17  Bruno Haible  <bruno@clisp.org>
117135         * m4/Makefile.am.in: Remove file.
117136         * m4/Makefile.am: Remove file.
117137         * m4/Makefile.in: Remove file.
117139 2003-07-17  Bruno Haible  <bruno@clisp.org>
117141         * lib/getnline.h: New file.
117142         * lib/getnline.c: New file.
117143         * lib/getndelim2.c: New file, extracted from getline.c.
117144         (getndelim2): Renamed from getdelim2, with added nmax argument.
117145         * lib/getline.c: Include getndelim2.c.
117146         (getdelim2): Moved out to getndelim2.c.
117147         (getline, getdelim): Update.
117149 2003-07-17  Bruno Haible  <bruno@clisp.org>
117151         * lib/Makefile.am: Remove file.
117152         * lib/Makefile.in: Remove file.
117154 2003-07-17  Bruno Haible  <bruno@clisp.org>
117156         * configure.in: Remove file.
117157         * Makefile.in: Remove file.
117159 2003-07-17  Bruno Haible  <bruno@clisp.org>
117161         * MODULES.html.sh: Put the </BODY> right before </HTML>.
117163 2003-07-16  Karl Berry  <karl@gnu.org>
117165         * config/srclist-update: was running fixlicense twice, which caused
117166                 texinfo.tex to be nullified for some reason.  Simplify,
117167                 $gplsrc is no longer needed as far as I can see?
117169 2003-07-16  Jim Meyering  <jim@meyering.net>
117171         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
117173 2003-07-15  Paul Eggert  <eggert@twinsun.com>
117175         * config/srclist.txt: Get the following files from gettext-runtime/intl
117176         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
117177         ref-del.sin.  From Bruno Haible.
117178         * config/srclist-update (fixfile): Change grep pattern again, since the
117179         previous fix didn't work (there was another trailing $).  Use
117180         '[$]' to escape the $s.
117182 2003-07-15  Karl Berry  <karl@gnu.org>
117184         * lib/vasnprintf.c: update from gettext.
117186 2003-07-15  Karl Berry  <karl@gnu.org>
117188         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
117189         gets expanded when surrounded by '$'.
117191 2003-07-15  Jim Meyering  <jim@meyering.net>
117193         * modules/save-cwd: Don't depend on error.  From Derek Price.
117195 2003-07-15  Jim Meyering  <jim@meyering.net>
117197         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
117199 2003-07-14  Simon Josefsson  <jas@extundo.com>
117201         * modules/mempcpy: New file.
117202         * MODULES.html.sh (func_all_modules): Add mempcpy.
117204 2003-07-14  Simon Josefsson  <jas@extundo.com>
117206         * m4/mempcpy.m4: New file.
117208 2003-07-14  Simon Josefsson  <jas@extundo.com>
117210         * lib/mempcpy.h: New file.
117211         * lib/mempcpy.c: New file.
117213 2003-07-14  Paul Eggert  <eggert@twinsun.com>
117215         * modules/getdate, modules/posixtm: Depend on mktime.
117217 2003-07-14  Paul Eggert  <eggert@twinsun.com>
117219         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
117220         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
117221         unicodeio.c, unicodeio.h, unlocked-io.h:
117222         Switch from LGPL to GPL.
117224 2003-07-14  Paul Eggert  <eggert@twinsun.com>
117226         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
117227         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
117228         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
117229         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
117230         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
117231         updated automatically by ../config/srclist-update.  This changes
117232         their license from LPGL to GPL.
117234 2003-07-14  Paul Eggert  <eggert@twinsun.com>
117236         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
117237         assumed to refer to the root of the most recent stable gettext version.
117238         * config/srclistvars.sh: Add defaults for eggert.
117239         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
117240         Match "This program" as well as "The program".  This is needed
117241         for gettext.
117243 2003-07-14  Jim Meyering  <jim@meyering.net>
117245         Don't emit diagnostics.  Let callers do that.
117246         * lib/save-cwd.c: Don't include "error.h".
117247         (save_cwd): Don't call error.  Ensure that errno is valid
117248         when returning nonzero.
117250         * lib/save-cwd.h (restore_cwd): Update prototype.
117251         * lib/save-cwd.c (restore_cwd): Remove two parameters.
117252         Simplify.  Don't call error upon failure.  Let callers do that.
117253         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
117254         when auditing is enabled.  But don't bother updating the #if.
117256 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
117258         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
117259         it breaks C++ compilation.
117260         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
117262 2003-07-10  Simon Josefsson  <jas@extundo.com>
117264         * modules/strchrnul (Makefile.am): Add strchrnul.h.
117266 2003-07-10  Jim Meyering  <jim@meyering.net>
117268         * m4/clock_time.m4: Remove trailing blank.
117269         * m4/intmax_t.m4: Likewise.
117271 2003-07-10  Jim Meyering  <jim@meyering.net>
117273         * lib/vasnprintf.c: Remove trailing blanks.
117274         Make cpp indentation consistent.
117276 2003-07-09  Paul Eggert  <eggert@twinsun.com>
117278         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
117279         posixver.c, strftime.c, strnlen.c, strverscmp.c:
117280         Switch from LGPL to GPL.
117282 2003-07-09  Paul Eggert  <eggert@twinsun.com>
117284         * config/srclist.txt: Sort sublists.  Add
117285         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
117286         that differ from gnulib for one reason or another; we'd like this list
117287         to be smaller but for now let's document what we have.
117289 2003-07-08  Paul Eggert  <eggert@twinsun.com>
117291         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
117292         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
117293         and sweeter "eval x=$x".
117294         * config/srclist.txt: Get lib/argp* from glibc.
117296 2003-07-07  Paul Eggert  <eggert@twinsun.com>
117298         * lib/mktime.c: Fix some boundary cases and remove need for floating
117299         point.
117301         Issue a compile-time diagnostic if time_t is floating point, or if
117302         two's complement arithmetic is not in effect, or if arithmetic
117303         right shift does not propagate the sign.  These assumptions were
117304         all in the original code but they weren't checked.
117306         (TIME_T_MIDPOINT, verify): New macros.
117307         (__isleap): Remove; it has integer overflow problems.
117308         (leapyear): New function, without those problems.
117309         (ydhms_tm_diff): Remove; splitting into two parts.
117310         (ydhms_diff): New function, containing the arithmetic part of
117311         the old ydhms_tm_diff function.  Issue a compile-time
117312         diagnostic if we are not using C99 integer division.
117313         Avoid casts when possible.
117314         (guess_time_tm): New function, containing the checking part of
117315         the old ydhms_tm_diff function.  Return the new value, rather than
117316         the difference between it and the old.  Accept a new argument T
117317         so that *T specifies the old value.  Check for overflow in the result.
117319         (__mktime_internal): Use a time_t offset, not a long int offset.
117320         This undoes the 2003-06-04 change, which is no longer needed now
117321         that we have better overflow checking.
117322         (localtime_offset): Likewise.
117324         (__mktime_internal): Avoid harmful overflow on hosts where time_t
117325         and long are 64-bit but int is only 32-bit.
117326         (ydhms_diff): Use long int to store year1 and yday1.
117327         Issue a compile-time diagnostic if long int is not wide enough.
117329         (__mktime_internal): Use long int to store adjusted year and yday.
117330         Use plain C rather than preprocessor commands, if that doesn't
117331         affect efficiency.
117332         Check for overflow (and try to repair) after each probe
117333         rather than checking only at the very end.  This avoids some bugs
117334         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
117335         does not equal GMT offset at maximum time).
117336         Use integer to check for overflow rather than floating point; this
117337         is more portable to non-IEEE hosts, and is a tad faster.
117338         When we detect that we are oscillating between two values,
117339         don't check whether tm_isdst has the requested value, since
117340         we already know the answer.  When tm_isdst has the wrong value,
117341         use a different heuristic to find the right one, based on the
117342         extreme values actually observed in practice in tz2003a,
117343         rather than the (overly optimistic) "previous 3 calendar quarters".
117345         (not_equal_tm, print_tm, check_result): Use "const T" rather than
117346         "T const" to accommodate glibc style.
117347         (check_result): Use less-confusing report format.  "long" -> "long int.
117348         (main): Likewise.
117349         Don't loop if the iteration overflows time_t.
117350         Allow a negative step in the iteration.
117352 2003-07-06  Karl Berry  <karl@gnu.org>
117354         * config/depcomp: update from automake.
117355         * config/config.sub: update from prep.
117357 2003-07-03  Karl Berry  <karl@gnu.org>
117359         * config/config.guess: update from prep.
117361 2003-07-01  Paul Eggert  <eggert@twinsun.com>
117363         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
117364         xreadlink.c now includes it unconditionally.
117366 2003-07-01  Paul Eggert  <eggert@twinsun.com>
117368         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
117369         having it depend on HAVE_SYS_TYPES_H.
117371 2003-07-01  Bruno Haible  <bruno@clisp.org>
117373         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
117374         <sys/types.h> should be sufficient.
117375         Reported by Paul Eggert.
117377 2003-06-26  Karl Berry  <karl@gnu.org>
117379         * config/depcomp: update from automake.
117381 2003-06-26  Bruno Haible  <bruno@clisp.org>
117383         * modules/human: Depend on module stdbool.
117385 2003-06-25  Bruno Haible  <bruno@clisp.org>
117387         * modules/readlink: New file.
117388         * modules/xreadlink: Depend on it.
117389         * MODULES.html.sh (func_all_modules): Add readlink.
117391 2003-06-25  Bruno Haible  <bruno@clisp.org>
117393         * m4/readlink.m4: New file.
117395 2003-06-25  Bruno Haible  <bruno@clisp.org>
117397         * lib/readlink.c: New file.
117399 2003-06-22  Karl Berry  <karl@gnu.org>
117401         * config/srclist.txt: update mkinstalldirs from automake.
117402         * config/mkinstalldirs: update.
117404 2003-06-22  Bruno Haible  <bruno@clisp.org>
117406         Portability to mingw32.
117407         * m4/ssize_t.m4: New file, from GNU gettext.
117408         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
117409         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
117411 2003-06-22  Bruno Haible  <bruno@clisp.org>
117413         * modules/safe-read: Add m4/ssize_t.m4.
117414         * modules/xreadlink: Add m4/ssize_t.m4.
117416 2003-06-20  Bruno Haible  <bruno@clisp.org>
117418         Assume C89, so PARAMS isn't needed.
117419         * lib/unicodeio.h (PARAMS): Remove.
117420         * lib/unicodeio.c: Don't use PARAMS.
117422 2003-06-18  Karl Berry  <karl@gnu.org>
117424         * config/config.{guess,sub}: update from prep.
117426 2003-06-18  Jim Meyering  <jim@meyering.net>
117428         Merge changes from coreutils.
117429         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
117430         Remove explicit declarations of xmalloc and realloc.
117431         Include xalloc.h.
117432         (read_utmp): Remove anachronistic cast of xmalloc.
117434 2003-06-17  Paul Eggert  <eggert@twinsun.com>
117436         Assume C89, so PARAMS isn't needed.
117437         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
117438         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
117439         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
117440         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
117441         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
117442         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
117443         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
117444         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
117445         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
117446         lib/xstrtod.h, lib/xstrtol.h: Likewise.
117447         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
117448         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
117449         no longer needed. Anyway, config.h should always be included before any
117450         other file.
117452 2003-06-11  Simon Josefsson  <jas@extundo.com>
117454         * modules/sysexits: New file.
117455         * MODULES.html.sh (func_all_modules): Add sysexits.
117457 2003-06-11  Simon Josefsson  <jas@extundo.com>
117459         * lib/sysexit_.h: New file.
117461 2003-06-11  Derek Price  <derek@ximbiot.com>
117463         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
117464         necessary.
117466 2003-06-11  Bruno Haible  <bruno@clisp.org>
117468         * m4/sysexits.m4: New file.
117470 2003-06-10  Simon Josefsson  <jas@extundo.com>
117472         * lib/argp.h: New file, from glibc.
117473         * lib/argp-ba.c: New file, from glibc.
117474         * lib/argp-eexst.c: New file, from glibc.
117475         * lib/argp-fmtstream.c: New file, from glibc.
117476         * lib/argp-fmtstream.h: New file, from glibc.
117477         * lib/argp-fs-xinl.c: New file, from glibc.
117478         * lib/argp-help.c: New file, from glibc.
117479         * lib/argp-namefrob.h: New file, from glibc.
117480         * lib/argp-parse.c: New file, from glibc.
117481         * lib/argp-pv.c: New file, from glibc.
117482         * lib/argp-pvh.c: New file, from glibc.
117483         * lib/argp-xinl.c: New file, from glibc.
117485 2003-06-10  Simon Josefsson  <jas@extundo.com>
117487         * modules/strchrnul: New file.
117489 2003-06-10  Simon Josefsson  <jas@extundo.com>
117491         * modules/argp: New file.
117493 2003-06-10  Simon Josefsson  <jas@extundo.com>
117495         * m4/strchrnul.m4: New file.
117497 2003-06-10  Simon Josefsson  <jas@extundo.com>
117499         * lib/strchrnul.h: New file.
117500         * lib/strchrnul.c: New file.
117502 2003-06-10  Bruno Haible  <bruno@clisp.org>
117504         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
117506 2003-06-07  Karl Berry  <karl@gnu.org>
117508         * config/config.{guess,sub}: update from prep.
117510 2003-06-07  Jim Meyering  <jim@meyering.net>
117512         * modules/strtod: Use $(...) notation, not @...@ for
117513         AC_REPLACE'd variables.
117514         * modules/localcharset: Likewise.
117516 2003-06-07  Jim Meyering  <jim@meyering.net>
117518         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
117519         in place of my name in the copyright comment.
117520         Remove definition and uses of __P.
117522         From coreutils.
117523         * lib/stat.c: Don't declare xmalloc explicitly.
117524         Instead, include "xalloc.h".
117525         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
117526         xrealloc, and xcalloc return values.
117527         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
117528         Improve comment.
117529         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
117531 2003-06-07  Bruno Haible  <bruno@clisp.org>
117533         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
117534         avoid AC_CONFIG_LINKS.
117535         * modules/fnmatch (Makefile.am): Use explicit creation rule for
117536         fnmatch.h, to avoid AC_CONFIG_LINKS.
117537         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
117539 2003-06-07  Bruno Haible  <bruno@clisp.org>
117541         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
117542         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
117543         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
117544         directory.
117545         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
117546         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
117547         directory.
117549 2003-06-06  Jim Meyering  <jim@meyering.net>
117551         Merge from coreutils.
117552         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
117553         Consolidate declarations and initializations of *_base* locals.
117555         Merge from coreutils.
117556         This avoids a core dump on systems without GNU putenv,
117557         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
117558         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
117559         (unsetenv): New static function, from GNU libc.
117560         (rpl_putenv): Use it.
117562         * lib/modechange.c: Remove trailing blanks.
117564         Merge from coreutils.
117565         * lib/fsusage.c: Remove declaration of statfs.
117566         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
117568         * lib/posixtm.c: Include <stdbool.h> unconditionally.
117570 2003-06-06  Jim Meyering  <jim@meyering.net>
117572         * lib/stdbool_.h: Renamed from stdbool.h.in.
117574 2003-06-06  Jim Meyering  <jim@meyering.net>
117575             Bruno Haible  <bruno@clisp.org>
117577         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
117578         Adjust Makefile.am snippet not to redirect directly to target.
117579         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
117581 2003-06-05  Paul Eggert  <eggert@twinsun.com>
117583         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
117584         mismatch, look in future quarters as well as past.  This fixes a
117585         bug when processing fall-backwards gaps immediately after a long
117586         period of daylight-saving time.
117588         * lib/mktime.c: Assume freestanding C89 or better.
117589         (HAVE_LIMITS_H): Remove.  Assume it's 1.
117590         (__P): Remove; not used.
117591         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
117592         (mktime, not_equal_tm, print_tm, check_result,
117593         main): Use prototypes.  Use const * where appropriate.
117594         (main): Fix typo in testing code that uncovered by above changes.
117595         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
117597 2003-06-04  Paul Eggert  <eggert@twinsun.com>
117599         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
117600         locale.h, localeconv.  This merges changes from coreutils.
117602         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
117603         It can be removed after the next Autoconf is released.
117604         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
117605         needed.
117607 2003-06-04  Paul Eggert  <eggert@twinsun.com>
117609         * lib/mktime.c: Fix Debian bug 177940
117610         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
117611         (localtime_offset): Now long int, not time_t, because we want it
117612         to be guaranteed to be signed.  All uses changed.
117613         (__mktime_internal): If overflow would occur when adding offset,
117614         don't add it.
117616         Merge 'human' changes from coreutils.  Rewrite to support
117617         locale-specific notations like thousands separators.
117618         * lib/human.c: Simplify authorship notice.
117619         Include human.h immediately after config.h.
117620         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
117621         <limits.h>: Do not include, since human.h does.
117622         (SIZE_MAX, UINTMAX_MAX): New macros.
117623         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
117624         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
117625         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
117626         (power_letter): Renamed from suffixes.
117627         (generate_suffix_backwards): Remove.
117628         (adjust_value): Now takes int style (because of human.h changes)
117629         and long double value (for greater precision on some platforms).
117630         (group_number): New function.
117631         (human_readable): Use it.  Use integer options, not enum.
117632         Put the options before the sizes in the arg list.
117633         Support all the new options.
117634         The old human_readable function has been removed;
117635         use inttostr.h instead.
117636         (human_readable, default_block_size, humblock):
117637         Use uintmax_t, not int, for block sizes.
117638         (human_readable_inexact, block_size_types): Remove.
117639         (block_size_opts): New constant.
117640         (human_options): Renamed from human_block_size, with new signature
117641         that allows block sizes up to UINTMAX_MAX.  All callers changed.
117642         * lib/human.h: Add copyright and authorship notice.
117643         Include <limits.h> and <stdbool.h> unconditionally.
117644         (PARAMS): Remove.  All uses removed.
117645         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
117646         (enum human_inexact_style): Remove tag; now a nameless enum.
117647         (human_floor, human_ceiling, human_round_to_even): Now have
117648         values 2, 0, 1 rather than -1, 1, 0.
117649         (human_group_digits, human_suppress_point_zero, human_autoscale,
117650         human_base_1024, human_SI, human_B): New constants.
117651         (human_readable_inexact, human_block_size): Remove.
117652         (human_readable): Size args are now uintmax_t, not int.
117653         (human_options): New decl.
117655         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
117656         unnecessary now that we assume C89 or better.  This change
117657         imported from coreutils.
117659         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
117660         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
117661         in the 2003-05-30 sync from glibc.
117663         .h files should stand alone, but we shouldn't include <sys/types.h>
117664         if we can get away with just <stddef.h>.
117666         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
117667         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
117668         rather than <sys/types.h>, as we merely need size_t.
117669         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
117670         to get size_t.
117671         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
117672         Include <stdio.h>, to get FILE.
117673         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
117674         memcasecmp.h has included <stddef.h> and all we need is size_t.
117675         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
117676         our interface, instead of including <sys/types.h>
117678 2003-06-04  Paul Eggert  <eggert@twinsun.com>
117680         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
117681         now, as glibc mktime is buggy on non-glibc systems.
117683 2003-06-03  Karl Berry  <karl@gnu.org>
117685         * config/config.sub: update from prep.
117687 2003-06-02  Paul Eggert  <eggert@twinsun.com>
117689         [from coreutils]
117690         Fix some minor time-related bugs with POSIX time arguments.
117691         Some valid time stamps were being rejected (notably -1, and
117692         time stamps before 1900 on 64-bit hosts).  And some invalid
117693         time stamps were being accepted, e.g. September 31.
117695         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
117696         that we can return (time_t) -1 successfully.
117697         * lib/posixtm.c: Likewise.
117698         [HAVE_STDBOOL_H]: Include <stdbool.h>.
117699         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
117700         (t): Remove static var.
117701         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
117702         of static var.  All uses changed.
117703         (year): Do not reject years before 1900; they can occur with
117704         64-bit time_t.
117705         (posix_time_parse): Do not check for out-of-range components;
117706         that is now the caller's responsibility, since our checks were
117707         only approximations.
117708         (posixtime): Use mktime to check for out-of-range components,
117709         since it knows them exactly.
117710         If mktime returns (time_t) -1, check whether an error actually occurred
117711         by invoking localtime on -1.
117712         (main) [TEST_POSIXTIME]: Check for input data errors, and report
117713         posixtime failures better.
117714         Improve the test data (in comments only).
117716 2003-06-02  Karl Berry  <karl@gnu.org>
117718         * config/mkinstalldirs (version): new variable.
117719         (--version): new option.
117720         (usage): improve message.
117722 2003-05-30  Karl Berry  <karl@gnu.org>
117724         * lib/mktime.c: update from libc.
117726 2003-05-30  Bruno Haible  <bruno@clisp.org>
117728         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
117729         * config/config.rpath: Upgrade to gettext-0.12.1.
117731 2003-05-30  Bruno Haible  <bruno@clisp.org>
117733         * m4/gettext.m4: Upgrade to gettext-0.12.1.
117734         * m4/nls.m4: New file, from gettext-0.12.1.
117735         * m4/po.m4: New file, from gettext-0.12.1.
117736         * m4/progtest.m4: Upgrade to gettext-0.12.1.
117738 2003-05-30  Bruno Haible  <bruno@clisp.org>
117740         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
117741         * lib/localcharset.h: Likewise.
117742         * lib/localcharset.c: Likewise.
117744 2003-05-29  Karl Berry  <karl@gnu.org>
117746         * config/config.rpath: update from gettext.
117748 2003-05-28  Paul Eggert  <eggert@twinsun.com>
117750         Assume the headers required for C89 freestanding compilers.
117751         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
117752         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
117753         * m4/human.m4 (gl_HUMAN): Likewise.
117754         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
117755         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
117756         * m4/userspec.m4 (gl_USERSPEC): Likewise.
117757         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
117758         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
117759         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
117761 2003-05-28  Paul Eggert  <eggert@twinsun.com>
117763         Assume the headers required for C89 freestanding compilers.
117764         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
117765         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
117766         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
117767         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
117768         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
117769         define, since <limits.h> is guaranteed to do that.
117770         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
117771         * lib/exclude.c: Include <stdbool.h> unconditionally.
117772         * lib/tempname.c: Include <stddef.h> unconditionally.
117773         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
117774         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
117775         <stddef.h> does that.
117776         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
117777         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
117778         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
117779         needed.
117780         * lib/xstrtol.c: Likewise.
117781         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
117782         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
117784         * lib/addext.c (addext): Use assignment rather than cast, to avoid
117785         warnings on some platforms.
117787         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
117788         arbitrarily.
117790 2003-05-26  Jim Meyering  <jim@meyering.net>
117792         Merge in a change from coreutils:
117793         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
117794         that is guaranteed to be `no'.  Use `no_such_member' to indicate
117795         that condition, rather than `-1' which is slightly misleading.
117796         Change the name of the cache variable to have the gl_ prefix.
117797         Prompted by a patch from Richard Dawe for DJGPP.
117799 2003-05-24  Karl Berry  <karl@gnu.org>
117801         * config/config.guess: update from prep.
117803 2003-05-22  Karl Berry  <karl@gnu.org>
117805         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
117807 2003-05-20  Karl Berry  <karl@gnu.org>
117809         * config/config.guess: update from prep.
117811 2003-05-18  Karl Berry  <karl@gnu.org>
117813         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
117814         might actually be set by the user.
117816         * config/depcomp, install-sh, mdate-sh: update from automake.
117818 2003-05-17  Bruno Haible  <bruno@clisp.org>
117820         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
117821         invalid expansion for AC_EGREP_CPP.
117822         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
117823         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
117824         Suggested by Akim Demaille <akim@epita.fr> in
117825         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
117827 2003-05-12  Jim Meyering  <jim@meyering.net>
117829         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
117830         the space-padded-by-default conversion specifiers, %e, %k, %l.
117832 2003-05-12  Bruno Haible  <bruno@clisp.org>
117834         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
117835         the string is longer than 4 KB.
117837 2003-05-11  Karl Berry  <karl@gnu.org>
117839         * config/config.{guess,sub}: update from prep.
117841 2003-05-09  Bruno Haible  <bruno@clisp.org>
117843         * modules/error: Add m4/strerror_r.m4 to file list.
117845 2003-05-03  Bruno Haible  <bruno@clisp.org>
117847         Upgrade to Unicode-4.0.
117848         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
117849         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
117850         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
117851         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
117852         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
117853         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
117854         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
117855         Change width of U+E0100..U+E01EF from 1 to 0.
117857 2003-04-25  Jim Meyering  <jim@meyering.net>
117859         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
117860         of type size_t, not int.
117862 2003-04-25  Bruno Haible  <bruno@clisp.org>
117864         * lib/copy-file.c: Include <stddef.h>, for size_t.
117866 2003-04-21  Paul Eggert  <eggert@twinsun.com>
117868         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
117869         code which expansion is under static control.  Patch imported from
117870         Akim Demaille's patch to Bison; see
117871         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
117873 2003-04-14  Bruno Haible  <bruno@clisp.org>
117875         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
117877 2003-04-11  Jim Meyering  <jim@meyering.net>
117879         Merge changes from Coreutils.
117881         2003-03-22  Jim Meyering  <jim@meyering.net>
117883         * lib/strftime.c (widen): Cast alloca return value to proper type.
117885         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
117887         From GNU libc.
117888         * lib/strftime.c (my_strftime): Handle very large width
117889         specifications for numeric values correctly.  Improve checks for
117890         overflow.
117892         2003-01-19  Jim Meyering  <jim@meyering.net>
117894         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
117895         definitions.
117896         (nl_get_alt_digit) [! defined my_strftime]: Define.
117897         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
117898         _nl_get_alt_digit and _nl_get_walt_digit.
117900         * lib/strftime.c (my_strftime): Merge in locale-related changes from
117901         libc. These changes have no effect outside of _LIBC.
117903 2003-04-10  Bruno Haible  <bruno@clisp.org>
117905         * modules/findprog: New file.
117906         * MODULES.html.sh (func_all_modules): Add it.
117908 2003-04-10  Bruno Haible  <bruno@clisp.org>
117910         * m4/findprog.m4: New file.
117911         * m4/eaccess.m4: New file.
117913 2003-04-10  Bruno Haible  <bruno@clisp.org>
117915         * lib/findprog.h: New file, from GNU gettext.
117916         * lib/findprog.c: New file, from GNU gettext.
117918 2003-04-05  Jim Meyering  <jim@meyering.net>
117920         Merge changes from Coreutils.
117922         * lib/exclude.h (PARAMS): Remove definition and uses.
117923         * lib/exclude.c: Remove uses of `PARAMS'.
117925         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
117926         Add test-cases for DOS filenames. Declare program_name.
117927         (main): Set up program_name.  Patch by Rich Dawe.
117929         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
117930         error from mntctl.
117931         Use mntctl's return value to drive the entry-processing loop, since
117932         we can't rely on the value of the vmt_length member in the last
117933         entry.  On some systems doing so could result in exhausting
117934         virtual memory.  Based in part on a patch from Mike Jetzer.
117936 2003-04-04  Bruno Haible  <bruno@clisp.org>
117938         * modules/linebreak: New file.
117939         * MODULES.html.sh (func_all_modules): Add it.
117941 2003-04-04  Bruno Haible  <bruno@clisp.org>
117943         * m4/linebreak.m4: New file.
117945 2003-04-04  Bruno Haible  <bruno@clisp.org>
117947         * lib/linebreak.h: New file, from GNU gettext.
117948         * lib/linebreak.c: New file, from GNU gettext with slight
117949         modifications.
117950         * lib/lbrkprop.h: New file, from GNU gettext.
117952 2003-04-03  Bruno Haible  <bruno@clisp.org>
117954         * modules/utf8-ucs4: New file.
117955         * modules/utf16-ucs4: New file.
117956         * modules/ucs4-utf8: New file.
117957         * modules/ucs4-utf16: New file.
117958         * MODULES.html.sh (func_all_modules): Add them.
117960 2003-04-03  Bruno Haible  <bruno@clisp.org>
117962         * m4/utf-ucs4.m4: New file.
117963         * m4/ucs4-utf.m4: New file.
117965 2003-04-03  Bruno Haible  <bruno@clisp.org>
117967         * lib/utf8-ucs4.h: New file, from GNU gettext.
117968         * lib/utf16-ucs4.h: New file, from GNU gettext.
117969         * lib/ucs4-utf8.h: New file, from GNU gettext.
117970         * lib/ucs4-utf16.h: New file, from GNU gettext.
117972 2003-04-02  Bruno Haible  <bruno@clisp.org>
117974         * modules/binary-io: New file.
117975         * MODULES.html.sh (func_all_modules): Add it.
117977 2003-04-02  Bruno Haible  <bruno@clisp.org>
117979         * lib/binary-io.h: New file, from GNU gettext.
117981 2003-04-01  Bruno Haible  <bruno@clisp.org>
117983         * modules/pathname: New file.
117984         * MODULES.html.sh (func_all_modules): Add it.
117986 2003-04-01  Bruno Haible  <bruno@clisp.org>
117988         * lib/pathname.h: New file, from GNU gettext.
117989         * lib/concatpath.c: New file, from GNU gettext.
117991 2003-03-30  Bruno Haible  <bruno@clisp.org>
117993         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
117995 2003-03-30  Bruno Haible  <bruno@clisp.org>
117997         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
117998         function chown() doesn't exist.
118000 2003-03-28  Bruno Haible  <bruno@clisp.org>
118002         * modules/copy-file: New file.
118003         * MODULES.html.sh (func_all_modules): Add it.
118005 2003-03-28  Bruno Haible  <bruno@clisp.org>
118007         * m4/copy-file.m4: New file.
118009 2003-03-28  Bruno Haible  <bruno@clisp.org>
118011         * lib/copy-file.h: New file, from GNU gettext.
118012         * lib/copy-file.c: New file, from GNU gettext.
118014 2003-03-18  Jim Meyering  <jim@meyering.net>
118016         * lib/quote.c (quote_n): Fix typo in comment.
118018 2003-03-18  Bruno Haible  <bruno@clisp.org>
118020         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
118021         checking.
118022         * m4/onceonly_2_57.m4: Likewise.
118024 2003-03-17  Bruno Haible  <bruno@clisp.org>
118026         * m4/onceonly.m4: Require autoconf 2.54 or newer.
118027         (m4_quote): Remove macro.
118028         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
118030 2003-03-14  Jim Meyering  <jim@meyering.net>
118032         Merge changes from Coreutils.
118033         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
118034         to be const, in order to avoid warnings.
118035         (obstack_room): Likewise.
118036         (obstack_empty_p): Likewise.
118038 2003-03-14  Bruno Haible  <bruno@clisp.org>
118040         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
118041         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
118043 2003-03-13  Paul Eggert  <eggert@twinsun.com>
118045         Merge changes from Bison.
118046         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
118047         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
118048         when compiling Bison 1.875's `bitset bset = obstack_alloc
118049         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
118050         * lib/hash.c: Include <stdbool.h> unconditionally.
118052 2003-03-13  Paul Eggert  <eggert@twinsun.com>
118054         * m4/onceonly.m4 (m4_quote): New macro.
118055         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
118056         Quote AC_FOREACH variable-expansions properly.
118058 2003-03-13  Paul Eggert  <eggert@twinsun.com>
118060         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
118062 2003-03-09  Paul Eggert  <eggert@twinsun.com>
118064         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
118065         Reported by Bruce Becker; see:
118066         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
118068 2003-03-03  Paul Eggert  <eggert@twinsun.com>
118069             Bruno Haible  <bruno@clisp.org>
118071         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
118072         Reported by John Hughes, see
118073         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
118075 2003-02-20  Bruno Haible  <bruno@clisp.org>
118077         * MODULES.html.sh (func_all_modules): Add poll.
118079 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
118081         * modules/poll: New file.
118083 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
118085         * lib/poll_.h: New file.
118086         * lib/poll.c: New file.
118088 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
118090         * m4/poll.m4: New file.
118092 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
118094         * modules/mathl: New file.
118096 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
118098         * lib/mathl.h: New file.
118099         * lib/acosl.c: New file.
118100         * lib/asinl.c: New file.
118101         * lib/atanl.c: New file.
118102         * lib/ceill.c: New file.
118103         * lib/cosl.c: New file.
118104         * lib/expl.c: New file.
118105         * lib/floorl.c: New file.
118106         * lib/frexpl.c: New file.
118107         * lib/ldexpl.c: New file.
118108         * lib/logl.c: New file.
118109         * lib/sincosl.c: New file.
118110         * lib/sinl.c: New file.
118111         * lib/sqrtl.c: New file.
118112         * lib/tanl.c: New file.
118113         * lib/trigl.c: New file.
118114         * lib/trigl.h: New file.
118116 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
118118         * m4/mathl.m4: New file.
118120 2003-02-18  Bruno Haible  <bruno@clisp.org>
118122         * MODULES.html.sh (func_all_modules): Add mathl.
118124 2003-02-17  Bruno Haible  <bruno@clisp.org>
118126         * modules/mkdtemp: New module.
118127         * MODULES.html.sh (func_all_modules): Add it.
118129 2003-02-17  Bruno Haible  <bruno@clisp.org>
118131         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
118133 2003-02-17  Bruno Haible  <bruno@clisp.org>
118135         * lib/mkdtemp.h: New file, from GNU gettext.
118136         * lib/mkdtemp.c: New file, from GNU gettext.
118138 2003-02-02  Jim Meyering  <jim@meyering.net>
118140         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
118141         e.g. glibc-2.2.93.
118143 2003-01-31  Bruno Haible  <bruno@clisp.org>
118145         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
118146         'rpl_rename'.
118147         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
118148         'rpl_strnlen'.
118149         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
118150         'rpl_strtod'.
118151         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
118152         'rpl_utime'.
118154 2003-01-31  Bruno Haible  <bruno@clisp.org>
118156         * lib/rename.c: #undef rename before defining rpl_rename.
118157         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
118159 2003-01-30  Bruno Haible  <bruno@clisp.org>
118161         * modules/vasnprintf, modules/vasprintf: New modules.
118162         * MODULES.html.sh (func_all_modules): Add them.
118164 2003-01-30  Bruno Haible  <bruno@clisp.org>
118166         * m4/signed.m4: New file, from GNU gettext.
118167         * m4/longdouble.m4: New file, from GNU gettext.
118168         * m4/wchar_t.m4: New file, from GNU gettext.
118169         * m4/wint_t.m4: New file, from GNU gettext.
118170         * m4/vasnprintf.m4: New file.
118171         * m4/vasprintf.m4: New file.
118173 2003-01-30  Bruno Haible  <bruno@clisp.org>
118175         * lib/printf-args.h: New file, from GNU gettext.
118176         * lib/printf-args.c: New file, from GNU gettext.
118177         * lib/printf-parse.h: New file, from GNU gettext.
118178         * lib/printf-parse.c: New file, from GNU gettext.
118179         * lib/vasnprintf.h: New file, from GNU gettext.
118180         * lib/vasnprintf.c: New file, from GNU gettext.
118181         * lib/asnprintf.c: New file, from GNU gettext.
118182         * lib/vasprintf.h: New file, from GNU gettext with modifications.
118183         * lib/vasprintf.c: New file, from GNU gettext.
118184         * lib/asprintf.c: New file, from GNU gettext.
118186 2003-01-29  Bruno Haible  <bruno@clisp.org>
118188         * modules/stpncpy: New module.
118189         * MODULES.html.sh (func_all_modules): Add it.
118191 2003-01-29  Bruno Haible  <bruno@clisp.org>
118193         * m4/stpncpy.m4: New file.
118195 2003-01-29  Bruno Haible  <bruno@clisp.org>
118197         * lib/stpncpy.h: New file, from GNU gettext with modifications.
118198         * lib/stpncpy.c: New file, from GNU gettext with modifications.
118200 2003-01-28  Bruno Haible  <bruno@clisp.org>
118202         * modules/c-ctype: New module.
118203         * MODULES.html.sh (func_all_modules): Add it.
118205 2003-01-28  Bruno Haible  <bruno@clisp.org>
118207         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
118208         Paul Eggert.
118209         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
118210         Paul Eggert.
118212 2003-01-27  Bruno Haible  <bruno@clisp.org>
118214         * modules/xsetenv: New module.
118215         * MODULES.html.sh (func_all_modules): Add it.
118217 2003-01-27  Bruno Haible  <bruno@clisp.org>
118219         * lib/xsetenv.h: New file, from GNU gettext.
118220         * lib/xsetenv.c: New file, from GNU gettext.
118222 2003-01-23  Jim Meyering  <jim@meyering.net>
118224         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
118225         from working on systems without dirfd (at least Irix and OSF1/Tru64).
118227 2003-01-23  Bruno Haible  <bruno@clisp.org>
118229         * modules/minmax: New module.
118230         * MODULES.html.sh (func_all_modules): Add it.
118232 2003-01-23  Bruno Haible  <bruno@clisp.org>
118234         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
118235         Eggert.
118237 2003-01-22  Bruno Haible  <bruno@clisp.org>
118239         * modules/exit: New module.
118240         * MODULES.html.sh (func_all_modules): Add it.
118242 2003-01-22  Bruno Haible  <bruno@clisp.org>
118244         * lib/exit.h: New file, from GNU gettext.
118246 2003-01-19  Bruno Haible  <bruno@clisp.org>
118248         * gnulib-tool: Recognize option --extract-maintainer.
118249         (func_get_maintainer): New function.
118250         * modules/*: Add Maintainer entry.
118252 2003-01-16  Jim Meyering  <jim@meyering.net>
118254         * m4/regex.m4: The `regex' struct is both input and output.
118255         Initialize it before each use.  Patch by Tim Waugh.
118257 2003-01-16  Bruno Haible  <bruno@clisp.org>
118259         * MODULES.html.sh: Add a table of contents. Add the module name as
118260         leftmost column. Add hyperlinks.
118262 2003-01-15  Bruno Haible  <bruno@clisp.org>
118264         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
118266 2003-01-15  Bruno Haible  <bruno@clisp.org>
118268         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
118269         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
118270         suffix.
118272 2003-01-15  Bruno Haible  <bruno@clisp.org>
118274         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
118276 2003-01-15  Bruno Haible  <bruno@clisp.org>
118278         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
118279         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
118281 2003-01-14  Jim Meyering  <jim@meyering.net>
118283         * lib/same.c (same_name): Tweak a comment.
118285 2003-01-14  Bruno Haible  <bruno@clisp.org>
118287         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
118288         when a string comparison is sufficient.
118290 2003-01-14  Bruno Haible  <bruno@clisp.org>
118292         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
118293         'unsigned int'.
118295 2003-01-14  Bruno Haible  <bruno@clisp.org>
118297         * lib/hash-pjw.c: Add comment about low quality of this function.
118299 2003-01-13  Bruno Haible  <bruno@clisp.org>
118301         * modules/stpcpy: Distribute lib/stpcpy.h.
118302         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
118304 2003-01-13  Bruno Haible  <bruno@clisp.org>
118306         * modules/*: Add a description.
118307         * modules/strpbrk: Fix Makefile.am snippet.
118308         * modules/strtoimax: Fix dependencies.
118309         * modules/strtoumax: Likewise.
118311 2003-01-13  Bruno Haible  <bruno@clisp.org>
118313         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
118314         * modules/alloca (Makefile.am): All object files depend on alloca.h.
118315         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
118317 2003-01-13  Bruno Haible  <bruno@clisp.org>
118319         * gnulib-tool (func_create_testdir): Store config/* files in the main
118320         directory.
118321         * config.rpath: Move to ...
118322         * config/config.rpath: ... here.
118323         * modules/gettext: Contains config/config.rpath, not config.rpath.
118324         * modules/iconv: Likewise.
118326 2003-01-12  Paul Eggert  <eggert@twinsun.com>
118328         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
118329         to avoid collisions with libcurses and libreadline.
118331         * m4/getstr.m4: Remove.
118332         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
118334 2003-01-12  Paul Eggert  <eggert@twinsun.com>
118336         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
118337         to avoid collisions with libcurses and libreadline.
118339         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
118340         * lib/getstr.h, getstr.c: Remove.
118341         * lib/getline.c: Include "getline.h", to check interface.
118342         Move body of old getstr.c here: this defines MIN_CHUNK and
118343         declares getdelim2, which is renamed from getstr.
118344         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
118346         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
118347         All uses changed.
118348         * lib/linebuffer.h: Likewise.
118349         (readline): Remove backward-compatibility macro.
118351 2003-01-12  Paul Eggert  <eggert@twinsun.com>
118353         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
118354         to avoid collisions with libcurses and libreadline.
118355         * getstr: Remove.
118356         * MODULES.html.sh: Remove getstr.
118357         * modules/getline: Depend on unlocked-io, not getstr.
118359 2003-01-12  Jim Meyering  <jim@meyering.net>
118361         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
118363 2003-01-10  Bruno Haible  <bruno@clisp.org>
118365         * modules/alloca: Change Makefile.am requirements. Simplify Include
118366         requirements. Add lib/alloca_.h to file list.
118368 2003-01-10  Bruno Haible  <bruno@clisp.org>
118370         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
118372 2003-01-10  Bruno Haible  <bruno@clisp.org>
118374         * lib/alloca_.h: New file.
118375         * lib/getdate.y: Unconditionally include alloca.h.
118376         * lib/makepath.c: Likewise.
118377         * lib/setenv.c: Likewise.
118378         * lib/userspec.c: Likewise.
118380 2003-01-09  Karl Berry  <karl@gnu.org>
118382         * MODULES.html.sh: include `dirname $0` in PATH, to find
118383         gnulib-tool.
118385 2003-01-09  Bruno Haible  <bruno@clisp.org>
118387         * modules/stdbool: Change configure.ac, Makefile.am requirements.
118388         Simplify Include requirements. Add lib/stdbool.h.in to file list.
118390 2003-01-09  Bruno Haible  <bruno@clisp.org>
118392         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
118394 2003-01-09  Bruno Haible  <bruno@clisp.org>
118396         * lib/stdbool.h.in: New file.
118398 2003-01-09  Bruno Haible  <bruno@clisp.org>
118400         * gnulib-tool (func_all_modules): Ignore files ending in ~.
118401         * MODULES.html.sh: Likewise.
118403 2003-01-08  Jim Meyering  <jim@meyering.net>
118405         * lib/full-write.c: Undefine and define-away `const' after inclusion
118406         of errno.h, not before.  Suggestion from Bruno Haible.
118408 2003-01-08  Bruno Haible  <bruno@clisp.org>
118410         * modules/full-read: Depend on full-write.
118412 2003-01-08  Bruno Haible  <bruno@clisp.org>
118414         * lib/safe-read.c: Include specification header first, to ensure its
118415         selfcontainedness.
118416         * lib/full-write.c: Likewise.
118418 2003-01-07  Jim Meyering  <jim@meyering.net>
118420         * lib/full-write.c: Rework so that it may serve to define full_read,
118421         too.
118422         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
118424 2003-01-07  Bruno Haible  <bruno@clisp.org>
118426         * lib/strtoimax.c: Include <stdint.h> as an alternative to
118427         <inttypes.h>.
118428         * lib/xstrtol.h: Likewise.
118429         * lib/xstrtoimax.c: Likewise.
118430         * lib/xstrtoumax.c: Likewise.
118431         * lib/human.h: Likewise.
118433         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
118434         on systems that have <inttypes.h> but not <stdint.h>.
118436 2003-01-07  Bruno Haible  <bruno@clisp.org>
118438         * MODULES.html.sh: Add copyright notice.
118439         (missed_files): Omit CVS directory entries.
118440         (func_module): Make it work with sed-3.02.
118441         * MODULES.txt: Remove file.
118443 2003-01-06  Jim Meyering  <jim@meyering.net>
118445         * lib/version-etc.c: Update year in translatable copyright string.
118447 2003-01-03  Karl Berry  <karl@gnu.org>
118449         * config/config.{guess,sub}: update from prep.
118451 2003-01-02  Karl Berry  <karl@gnu.org>
118453         * doc/COPYING.DOC: belatedly updated to 1.2.
118455 2003-01-01  Karl Berry  <karl@gnu.org>
118457         * gnulib-tool (func_verify_module): report module name $module in
118458         error message, not $1.
118459         * gnulib-tool (create-testdir): don't complain if destdir couldn't
118460         be created, only if it doesn't exist.
118461         * gnulib-tool (last_checkin_date): don't expand the $Date here.
118463 2002-12-31  Paul Eggert  <eggert@twinsun.com>
118465         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
118467 2002-12-31  Paul Eggert  <eggert@twinsun.com>
118469         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
118470         memcmp if strcoll doesn't work.
118472 2002-12-31  Bruno Haible  <bruno@clisp.org>
118474         * lib/utime.c (utime_null): No need to call ftruncate if the file was
118475         nonempty.
118477 2002-12-31  Bruno Haible  <bruno@clisp.org>
118479         * lib/memcoll.c (STRCOLL): New macro.
118480         (memcoll): Use it.
118482 2002-12-31  Bruno Haible  <bruno@clisp.org>
118484         * lib/localcharset.h: New file.
118485         * lib/localcharset.c: Include it.
118486         * lib/unicodeio.c: Likewise.
118488 2002-12-31  Bruno Haible  <bruno@clisp.org>
118490         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
118491         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
118493 2002-12-31  Bruno Haible  <bruno@clisp.org>
118495         * lib/getline.h: Include <stddef.h>, for size_t.
118497         * lib/unicodeio.h: Include <stddef.h>, for size_t.
118498         * lib/unicodeio.c: Don't include <stddef.h>.
118500 2002-12-31  Bruno Haible  <bruno@clisp.org>
118502         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
118503         HAVE_TM_ZONE.
118505 2002-12-24  Karl Berry  <karl@gnu.org>
118507         * config/config.guess: update from prep.
118509 2002-12-24  Bruno Haible  <bruno@clisp.org>
118511         General infrasructure.
118512         * m4/README: Rewritten.
118513         * m4/onceonly.m4: New file.
118514         * m4/onceonly_2_57.m4: New file.
118516         Module atexit.
118517         * m4/atexit.m4: New file.
118519         Module strtod.
118520         * m4/strtod.m4: New file.
118522         Module strtol.
118523         * m4/strtol.m4: New file.
118525         Module strtoul.
118526         * m4/strtoul.m4: New file.
118528         Module memchr.
118529         * m4/memchr.m4: New file.
118531         Module memcmp.
118532         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
118533         (jm_FUNC_MEMCMP): Invoke it.
118535         Module memcpy.
118536         * m4/memcpy.m4: New file.
118538         Module memmove.
118539         * m4/memmove.m4: New file.
118541         Module memset.
118542         * m4/memset.m4: New file.
118544         Module strcspn.
118545         * m4/strcspn.m4: New file.
118547         Module strpbrk.
118548         * m4/strpbrk.m4: New file.
118550         Module strstr.
118551         * m4/strstr.m4: New file.
118553         Module strerror.
118554         * m4/strerror.m4: New file.
118556         Module mktime.
118557         * m4/mktime.m4: Renamed from jm-mktime.m4.
118558         (gl_PREREQ_MKTIME): New macro.
118559         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
118561         Module malloc.
118562         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
118563         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
118564         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
118566         Module realloc.
118567         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
118568         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
118569         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
118571         Module strftime.
118572         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
118573         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
118574         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
118575         gl_TM_GMTOFF.
118576         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
118578         Module xalloc.
118579         * m4/xalloc.m4: New file.
118581         Module alloca.
118582         * m4/alloca.m4: New file.
118584         Module putenv.
118585         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
118586         (jm_FUNC_PUTENV): Invoke it.
118588         Module setenv.
118589         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
118590         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
118591         when invoked twice.
118592         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
118593         gt_FUNC_SETENV.
118595         Module memrchr.
118596         * m4/memrchr.m4: New file.
118598         Module stpcpy.
118599         * m4/stpcpy.m4: New file.
118601         Module strcase.
118602         * m4/strcase.m4: New file.
118604         Module strdup.
118605         * m4/strdup.m4: New file.
118607         Module strnlen.
118608         * m4/strnlen.m4: New file.
118610         Module strndup.
118611         * m4/strndup.m4: New file.
118613         Module xstrtod.
118614         * m4/xstrtod.m4: New file.
118616         Module xstrtol.
118617         * m4/xstrtol.m4: New file.
118619         Module getdate.
118620         * m4/getdate.m4: New file.
118622         Module unlocked-io.
118623         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
118624         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
118625         * m4/jm-glibc-io.m4n: Remove file.
118627         Module long-options.
118628         * m4/long-options.m4: New file.
118630         Module md5.
118631         * m4/md5.m4: New file.
118633         Module sha.
118634         * m4/sha.m4: New file.
118636         Module getstr.
118637         * m4/getstr.m4: New file.
118639         Module getline.
118640         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
118641         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
118642         <sys/types.h>, for size_t. Use the function name gnu_getline, not
118643         simply getline. Infoke gl_PREREQ_GETLINE.
118645         Module obstack.
118646         * m4/obstack.m4: New file.
118648         Module hash.
118649         * m4/hash.m4: New file.
118651         Module readtokens.
118652         * m4/readtokens.m4: New file.
118654         Module strverscmp.
118655         * m4/strverscmp.m4: New file.
118657         Module stdbool.
118658         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
118659         OSF/1.
118661         Module strtoll.
118662         * m4/strtoll.m4: New file.
118664         Module strtoull.
118665         * m4/strtoull.m4: New file.
118667         Module strtoimax.
118668         * m4/strtoimax.m4: New file.
118670         Module strtoumax.
118671         * m4/strtoumax.m4: New file.
118673         Module xstrtoimax.
118674         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
118675         jm_AC_PREREQ_XSTRTOIMAX.
118676         Moved the strtol prerequisites to strtol.m4.
118677         Moved the strtoll prerequisites to strtoll.m4.
118678         Moved the strtoimax prerequisites to strtoimax.m4.
118680         Module xstrtoumax.
118681         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
118682         jm_AC_PREREQ_XSTRTOUMAX.
118683         Moved the strtoul prerequisites to strtoul.m4.
118684         Moved the strtoull prerequisites to strtoull.m4.
118685         Moved the strtoumax prerequisites to strtoumax.m4.
118687         Module chown.
118688         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
118689         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
118691         Module dup2.
118692         * m4/dup2.m4: New file.
118694         Module ftruncate.
118695         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
118696         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
118698         Module getgroups.
118699         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
118700         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
118702         Module gettimeofday.
118703         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
118704         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
118705         gl_PREREQ_GETTIMEOFDAY.
118707         Module mkdir.
118708         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
118709         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
118711         Module mkstemp.
118712         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
118713         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
118714         jm_AC_TYPE_UINTMAX_T.
118715         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
118717         Module stat.
118718         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
118719         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
118721         Module lstat.
118722         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
118723         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
118725         Module timespec.
118726         * m4/timespec.m4 (gl_TIMESPEC): New macro.
118727         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
118728         * m4/st_mtim.m4: Indentation.
118730         Module nanosleep.
118731         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
118732         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
118733         gl_PREREQ_NANOSLEEP.
118735         Module regex.
118736         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
118737         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
118738         (gl_REGEX): New macro.
118740         Module rename.
118741         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
118742         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
118744         Module rmdir.
118745         * m4/rmdir.m4: New file.
118747         Module utime.
118748         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
118749         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
118750         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
118752         Module dirname.
118753         * m4/dirname.m4: New file.
118755         Module getopt.
118756         * m4/getopt.m4: New file.
118758         Module unistd-safer.
118759         * m4/unistd-safer.m4: New file.
118761         Module fnmatch.
118762         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
118763         declaration.
118764         (gl_PREREQ_FNMATCH_EXTRA): New macro.
118765         (gl_FUNC_FNMATCH_POSIX): New macro.
118766         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
118767         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
118768         simply fnmatch.
118770         Module exclude.
118771         * m4/exclude.m4: New file.
118773         Module human.
118774         * m4/human.m4: New file.
118776         Module acl.
118777         * m4/acl.m4: Nop.
118779         Module backupfile.
118780         * m4/backupfile.m4: New file.
118781         * m4/d-ino.m4: Indentation.
118783         Module fsusage.
118784         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
118785         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
118786         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
118788         Module dirfd.
118789         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
118790         requirements.
118792         Module euidaccess.
118793         * m4/euidaccess.m4: New file.
118795         Module file-type.
118796         * m4/file-type.m4: New file.
118798         Module fileblocks.
118799         * m4/fileblocks.m4: New file.
118801         Module filemode.
118802         * m4/filemode.m4: New file.
118804         Module isdir.
118805         * m4/isdir.m4: New file.
118807         Module lchown.
118808         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
118809         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
118811         Module makepath.
118812         * m4/makepath.m4: New file.
118814         Module modechange.
118815         * m4/modechange.m4: New file.
118817         Module mountlist.
118818         * m4/mountlist.m4: New file.
118819         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
118820         Indentation.
118822         Module path-concat.
118823         * m4/path-concat.m4: New file.
118825         Module pathmax.
118826         * m4/pathmax.m4: New file.
118828         Module same.
118829         * m4/same.m4: New file.
118831         Module save-cwd.
118832         * m4/save-cwd.m4: New file.
118834         Module savedir.
118835         * m4/savedir.m4: New file.
118837         Module xgetcwd.
118838         * m4/xgetcwd.m4: New file.
118839         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
118841         Module xreadlink.
118842         * m4/xreadlink.m4: New file.
118844         Module safe-read.
118845         * m4/safe-read.m4: New file.
118847         Module safe-write.
118848         * m4/safe-write.m4: New file.
118850         Module closeout.
118851         * m4/closeout.m4: New file.
118853         Module stdio-safer.
118854         * m4/stdio-safer.m4: New file.
118856         Module getpass.
118857         * m4/getpass.m4: New file.
118859         Module getugroups.
118860         * m4/getugroups.m4: New file.
118862         Module group-member.
118863         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
118864         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
118866         Module idcache.
118867         * m4/idcache.m4: New file.
118869         Module userspec.
118870         * m4/userspec.m4: New file.
118872         Module gettime.
118873         * m4/clock_time.m4: New file.
118874         * m4/gettime.m4: New file.
118876         Module settime.
118877         * m4/settime.m4: New file.
118879         Module posixtm.
118880         * m4/posixtm.m4: New file.
118882         Module gethostname.
118883         * m4/gethostname.m4: New file.
118885         Module canon-host.
118886         * m4/canon-host.m4: New file.
118888         Module gettext.
118889         * m4/codeset.m4: New file, from gettext-0.11.5.
118890         * m4/gettext.m4: New file, from gettext-0.11.5.
118891         * m4/glibc21.m4: New file, from gettext-0.11.5.
118892         * m4/iconv.m4: New file, from gettext-0.11.5.
118893         * m4/intdiv0.m4: New file, from gettext-0.11.5.
118894         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
118895         * m4/inttypes.m4: New file, from gettext-0.11.5.
118896         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
118897         * m4/isc-posix.m4: New file, from gettext-0.11.5.
118898         * m4/lcmessage.m4: New file, from gettext-0.11.5.
118899         * m4/lib-ld.m4: New file, from gettext-0.11.5.
118900         * m4/lib-link.m4: New file, from gettext-0.11.5.
118901         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
118902         * m4/progtest.m4: New file, from gettext-0.11.5.
118903         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
118904         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
118905         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
118907         Module localcharset.
118908         * m4/localcharset.m4: New file.
118910         Module hard-locale.
118911         * m4/hard-locale.m4: New file.
118913         Module mbswidth.
118914         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
118915         onceonly macros.
118916         * m4/mbrtowc.m4: Add comment.
118918         Module memcasecmp.
118919         * m4/memcasecmp.m4: New file.
118921         Module memcoll.
118922         * m4/memcoll.m4: New file.
118924         Module unicodeio.
118925         * m4/unicodeio.m4: New file.
118927         Module rpmatch.
118928         * m4/rpmatch.m4: New file.
118930         Module yesno.
118931         * m4/yesno.m4: New file.
118933         Module exitfail.
118934         * m4/exitfail.m4: New file.
118936         Module c-stack.
118937         * m4/c-stack.m4 (gl_C_STACK): New macro.
118938         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
118940         Module error.
118941         * m4/error.m4 (gl_ERROR): New macro.
118942         (jm_PREREQ_ERROR): Use onceonly macros.
118944         Module fatal.
118945         * m4/fatal.m4: New file.
118947         Module getloadavg.
118948         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
118949         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
118951         Module getpagesize.
118952         * m4/getpagesize.m4: New file.
118954         Module getusershell.
118955         * m4/getusershell.m4: New file.
118957         Module physmem.
118958         * m4/physmem.m4: New file.
118960         Module posixver.
118961         * m4/posixver.m4: New file.
118963         Module quotearg.
118964         * m4/quotearg.m4: New file.
118966         Module quote.
118967         * m4/quote.m4: New file.
118969         Module readutmp.
118970         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
118972         Module sig2str.
118973         * m4/sig2str.m4: New file.
118975         Other.
118976         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
118977         ulonglong.m4.
118978         * m4/intmax_t.m4: New file.
118979         * m4/d-type.m4: Indentation.
118980         * m4/jm-macros.m4: Update.
118981         * m4/prereq.m4 (jm_PREREQ): Update.
118982         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
118983         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
118984         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
118985         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
118986         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
118987         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
118988         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
118989         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
118990         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
118991         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
118992         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
118993         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
118994         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
118995         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
118996         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
118997         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
118998         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
118999         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
119000         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
119002 2002-12-24  Bruno Haible  <bruno@clisp.org>
119004         * MODULES.txt: Update according to m4/ changes.
119006         Module gettext.
119007         * config.rpath: New file, from gettext-0.11.5.
119009         * modules/*: New module descriptions.
119010         * gnulib-tool: New file.
119011         * MODULES.html.sh: New file.
119013 2002-12-21  Karl Berry  <karl@gnu.org>
119015         * doc/fdl.texi: update to version 1.2.
119017 2002-12-19  Karl Berry  <karl@gnu.org>
119019         * config/config.guess: update from prep.
119021 2002-12-18  Bruno Haible  <bruno@clisp.org>
119023         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
119024         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
119026 2002-12-17  Bruno Haible  <bruno@clisp.org>
119028         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
119029         stdlib.h, string.h.
119031 2002-12-17  Bruno Haible  <bruno@clisp.org>
119033         * lib/canon-host.c (strdup): Remove unused declaration.
119035         * lib/fsusage.c: Include full_read.h.
119036         (get_fs_usage): Use full_read instead of safe_read.
119038         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
119040 2002-12-12  Karl Berry  <karl@gnu.org>
119042         * config/config.guess: update from prep.
119044 2002-12-11  Bruno Haible  <bruno@clisp.org>
119046         * m4/setenv.m4: New file, from gettext-0.11.5.
119048 2002-12-11  Bruno Haible  <bruno@clisp.org>
119050         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
119051         not unsetenv().
119052         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
119053         modifications:
119055         2002-12-11  Bruno Haible  <bruno@clisp.org>
119057                 * setenv.c (alloca): Fall back to malloc.
119058                 (freea): New macro.
119059                 (setenv): Use freea() to free memory allocated with alloca().
119061         2002-11-13  Bruno Haible  <bruno@clisp.org>
119063                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
119064                 function declarations.
119065                 * unsetenv.c (unsetenv): Likewise.
119067         2002-03-04  Bruno Haible  <bruno@clisp.org>
119069                 Portability to AIX 4.3.3.
119070                 * unsetenv.c: New file, extracted from setenv.c.
119071                 * setenv.c: Move the unsetenv() function to unsetenv.c.
119073         2001-12-20  Bruno Haible  <bruno@clisp.org>
119075                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
119076                 use malloc instead. For SunOS 4.
119078         2001-12-11  Bruno Haible  <bruno@clisp.org>
119080                 * setenv.c: Declare alloca.
119081                 (compar_fn_t): New typedef.
119082                 (KNOWN_VALUE, STORE_VALUE): Use it.
119084         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
119085         setenv.h.
119087 2002-12-10  Paul Eggert  <eggert@twinsun.com>
119089         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
119090         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
119091         Choose values that are less likely to collide with system fnmatch
119092         options.
119093         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
119094         defined (e.g., a pure POSIX system).
119095         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
119096         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
119098 2002-12-06  Paul Eggert  <eggert@twinsun.com>
119100         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
119101         a pain in practice to deal with generated m4 files.  This change
119102         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
119104         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
119105         and jm-glibc-io.m4, as they are no longer a special case.
119106         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
119107         kludge and the auto-generation stuff.  Check only whether the
119108         functions are declared, not whether they exist, since older hosts
119109         that don't declare the functions can't use the optimization anyway.
119111 2002-12-06  Jim Meyering  <jim@meyering.net>
119113         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
119115         Merge in changes from libc's misc/error.c, in preparation
119116         for the merge of gnulib's changes back into libc.
119118         * lib/error.c (_): Define only if not already defined.
119119         Move definition to follow all #include directives.
119120         Include unlocked-io.h only if !_LIBC.
119121         [_LIBC]: Include <libio/libioP.h>.
119122         [USE_IN_LIBIO]: Include <libio/iolibio.h>
119123         (fflush): Tweak definition to use INTUSE.
119124         (putc): Define.
119126 2002-12-05  Paul Eggert  <eggert@twinsun.com>
119128         * lib/alloca.c [defined emacs]: Include "lisp.h".
119129         (xalloc_die) [defined emacs]: New macro.
119130         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
119131         [! defined emacs]: Include <xalloc.h>.
119132         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
119133         (pointer): Typedef to POINTER_TYPE *.
119134         (malloc): Remove decl; we now always use xmalloc.
119135         (alloca): Use old-style definition, since Emacs needs this.
119136         Check for arithmetic overflow when computing combined size.
119138 2002-12-04  Paul Eggert  <eggert@twinsun.com>
119140         Do not generate unlocked-io.h automatically, since it's easier to
119141         maintain it by hand.
119143         * lib/unlocked-io.h: New file, from GNU diffutils,
119144         but with proper copyright notice and attribution.
119145         * lib/gen-uio: Remove.
119146         * lib/Makefile.am: Add copyright notice.
119147         (libfetish_a_SOURCES): Add unlocked-io.h.
119148         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
119149         (DISTCLEANFILES, io_functions): Remove macros.
119150         (EXTRA_DIST): Remove gen_uio.
119151         (unlocked-io.h): Remove rule.
119153 2002-12-04  Jim Meyering  <jim@meyering.net>
119155         Reflect the fact that stat.c and lstat.c are no longer generated.
119156         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
119157         (DISTCLEANFILES): Likewise.
119158         (EXTRA_DIST): Likewise.
119159         (all_local): Don't depend on stat.c or lstat.c.
119160         (stat.c, lstat.c): Remove rules.
119161         (EXTRA_DIST): Remove xstat.in.
119163         * lib/xstat.in: Remove file.  Contents moved into stat.c.
119164         * lib/stat.c: New file.  Contents mostly from xstat.in.
119165         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
119166         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
119168         * lib/safe-read.c: Rework so that it may serve to define safe_write,
119169         too.
119170         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
119172 2002-12-03  Jim Meyering  <jim@meyering.net>
119174         * lib/safe-read.c, safe-write.c: Change variable names and comments,
119175         but not semantics, to minimize the differences between these two files.
119176         (safe_read): Change comment to mention SAFE_READ_ERROR.
119178         * lib/safe-read.c (IS_EINTR): Define.
119179         (safe_read): Use IS_EINTR in place of in-function cpp directives.
119181 2002-12-02  Jim Meyering  <jim@meyering.net>
119183         * lib/safe-read.c (EINTR): Define.
119184         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
119185         (INT_MAX): Provide fallback.
119186         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
119188         * lib/safe-read.h (SAFE_READ_ERROR): Define.
119190 2002-12-02  Bruno Haible  <bruno@clisp.org>
119192         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
119193         Define, taken from safe-read.c.
119194         (INT_MAX): Provide fallback.
119195         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
119196         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
119198         * lib/safe-read.c (EINTR): Remove definition.
119199         (safe_read): Don't use EINTR if it is absent.
119201 2002-12-01  Jim Meyering  <jim@meyering.net>
119203         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
119204         zero.
119205         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
119207 2002-11-27  Paul Eggert  <eggert@twinsun.com>
119209         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
119210         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
119211         with `if (! (value < limit)) abort ();', for readability.
119213 2002-11-26  Karl Berry  <karl@gnu.org>
119215         * lib/strdup.c: copy from libc again, with jim's ok.
119216         * lib/.cppi-disable: re-add strdup.c
119218 2002-11-25  Karl Berry  <karl@gnu.org>
119220         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
119221         instead of "strtol.c".
119223 2002-11-25  Karl Berry  <karl@gnu.org>
119225         * config/install-sh: update from automake for variable quoting, $0 in
119226         error msgs, etc.
119228         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
119229         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
119230         entry.
119232 2002-11-25  Jim Meyering  <jim@meyering.net>
119234         * lib/mktime.c: Sync from libc, now that it has the latest fix.
119236 2002-11-24  Karl Berry  <karl@gnu.org>
119238         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
119239         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
119241 2002-11-24  Jim Meyering  <jim@meyering.net>
119243         Update from coreutils:
119245         * lib/mktime.c: Merge in changes from libc.
119247         Avoid a link-time failure on some Linux systems.
119248         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
119249         (otherwise).
119250         (__mon_yday): Declare with the STATIC attribute.
119251         (__mktime_internal): Likewise.
119252         Based on a report from Greg Schafer.
119254 2002-11-23  Jim Meyering  <jim@meyering.net>
119256         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
119257         Use `unsigned', not `int', as type of index.
119259         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
119261         * lib/fsusage.c: Remove unneeded parentheses around operands of
119262         `defined'.
119264 2002-11-22  Paul Eggert  <eggert@twinsun.com>
119266         * lib/quotearg.h: Allow multiple inclusion by surrounding with
119267         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
119268         so that we can be included first.
119269         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
119270         * lib/quotearg.c: Include quotearg.h immediately after config.h.
119271         No need to include stddef.h or sys/types.h any more.
119272         Surround local include files with "", not "<>".
119273         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
119274         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
119275         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
119276         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
119277         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
119278         (ISPRINT): Remove; no longer needed now that we assume C89.
119280         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
119281         Preserve errno.
119283         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
119284         quotearg_char): Use SIZE_MAX rather than
119285         (size_t) -1 when we are talking about "infinity".
119287         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
119289 2002-11-22  Paul Eggert  <eggert@twinsun.com>
119291         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
119292         hint that one should use `if (! x) abort ();' rather than `assert
119293         (x);', and anyway it's one less thing to worry about configuring.
119294         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
119295         hash_rehash, hash_insert): Use abort rather than assert.
119297 2002-11-22  Bruno Haible  <bruno@clisp.org>
119299         * lib/safe-read.h: Assume C89. Add comments.
119300         (safe_read): Change return type to size_t.
119301         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
119302         byte counts > SSIZE_MAX correctly.
119303         * lib/safe-write.h: New file.
119304         * lib/safe-write.c: New file.
119305         * lib/full-read.h: New file.
119306         * lib/full-read.c: New file.
119307         * lib/full-write.h: Assume C89. Add comments.
119308         * lib/full-write.c: Include safe-write.h.
119309         (full_write): Rewritten to use safe_write.
119310         Suggested by Jim Meyering and Paul Eggert.
119312 2002-11-21  Jim Meyering  <jim@meyering.net>
119314         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
119316         Merge in changes from the coreutils.
119318         2002-09-25  Paul Eggert  <eggert@twinsun.com>
119319         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
119320         <stdint.h>.
119321         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
119322         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
119323         int.  Work more efficiently if X is the same width as uintmax_t.
119324         Do not compare X to -1, to avoid bogus compiler warning.
119325         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
119326         Don't assume that f_frsize and f_bsize are the same type.
119328         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
119329         warning on FreeBSD.
119331         * lib/makepath.c (make_path): Restore umask *before* creating the final
119332         component.
119333         (make_path): Minor reformatting.
119335         * lib/xmalloc.c: Adjust to work with new autoconf macros,
119336         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
119337         HAVE_MALLOC/HAVE_REALLOC.
119339         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
119340         dummy ones.  At least on GNU/Linux systems, `auto' means something
119341         else.
119342         From Michael Stone.
119344 2002-11-21  Bruno Haible  <bruno@clisp.org>
119346         Remove case insensitive option matching.
119347         * lib/argmatch.h (argcasematch): Remove declaration.
119348         (ARGCASEMATCH): Remove macro.
119349         (__xargmatch_internal): Remove case_sensitive argument.
119350         (XARGMATCH): Update.
119351         (XARGCASEMATCH): Remove macro.
119352         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
119353         case_sensitive argument.
119354         (argcasematch): Remove function.
119355         (__xargmatch_internal): Remove case_sensitive argument.
119356         (main): Use XARGMATCH instead of XARGCASEMATCH.
119358         * lib/xmalloc.c: Change compile-time error message. Add comment about
119359         required autoconf version.
119361 2002-11-20  Paul Eggert  <eggert@twinsun.com>
119363         Merge argmatch cleanups from Bison.  Assume C89.
119365         * lib/argmatch.c: Include config.h here, not in argmatch.h.
119366         Include stdlib.h, for EXIT_FAILURE.
119367         Always include <string.h>, since we assume C89.
119368         (EXIT_FAILURE): Remove pre-C89 bug workaround.
119369         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
119370         Include <stddef.h> instead, since it's all we need for size_t.
119371         (PARAMS): Remove.  All uses removed.
119372         (ARRAY_CARDINALITY): Do not bother to #undef.
119373         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
119374         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
119375         Remove unnecessary parentheses.
119376         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
119377         Insert necessary parentheses.
119378         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
119379         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
119381 2002-11-19  Bruno Haible  <bruno@clisp.org>
119383         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
119384         * lib/mbswidth.h: Include <stddef.h>, for size_t.
119386         * lib/mbswidth.h (PARAMS): Remove macro.
119387         (mbswidth, mbsnwidth): Use ANSI C function declarations.
119388         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
119390         * lib/gcd.h (PARAMS): Remove macro.
119391         (gcd): Use ANSI C function declarations.
119392         * lib/gcd.c (gcd): Likewise.
119394 2002-11-15  Bruno Haible  <bruno@clisp.org>
119396         * lib/strcspn.c: Include <stddef.h>.
119397         (strcspn): Use ANSI C function declaration. Change return type to
119398         size_t. Use NULL.
119399         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
119400         (strpbrk): Use NULL.
119401         * lib/strpbrk.h (PARAMS): Remove macro.
119402         (strpbrk): Use ANSI C function declaration.
119403         * lib/strstr.c: Don't include <sys/types.h>.
119404         * lib/strstr.h (PARAMS): Remove macro.
119405         (strstr): Use ANSI C function declarations.
119407 2002-11-14  Karl Berry  <karl@gnu.org>
119409         * config/mkinstalldirs: `do' on separate line, instead of
119410         `for var; do'.
119412 2002-11-06  Bruno Haible  <bruno@clisp.org>
119414         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
119415         * lib/gcd.c (gcd): Likewise.
119417 2002-11-05  Bruno Haible  <bruno@clisp.org>
119419         * lib/gcd.h: New file, from gettext-0.11.5.
119420         * lib/gcd.c: New file, from gettext-0.11.5.
119422 2002-11-05  Bruno Haible  <bruno@clisp.org>
119424         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
119425         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
119426         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
119427         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
119429         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
119430         <libintl.h>.
119431         * lib/makepath.c: Include gettext.h instead of <locale.h> and
119432         <libintl.h>.
119434         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
119435         * lib/human.c: Include gettext.h instead of <libintl.h>.
119436         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
119437         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
119438         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
119439         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
119440         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
119441         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
119442         (textdomain): Remove definition.
119443         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
119445         * lib/long-options.c: Remove include of <libintl.h> and definition of
119446         _.
119447         * lib/same.c: Remove include of <libintl.h> and definition of _.
119449 2002-11-04  Owen Taylor  <otaylor@redhat.com>
119451         * lib/config.charset: A few additions for Solaris.
119453 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
119455         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
119456         * lib/localcharset.c (locale_charset): Declare as extern "C".
119458 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
119460         * lib/config.charset: msdos in uk_UA uses CP1125.
119462 2002-11-04  Bruno Haible  <bruno@clisp.org>
119464         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
119465         * lib/strcase.h: New file, from GNU gettext-0.11.5.
119466         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
119467         * lib/strstr.h: New file, from GNU gettext-0.11.5.
119468         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
119470 2002-11-04  Bruno Haible  <bruno@clisp.org>
119472         * lib/localcharset.c (locale_charset): Don't return an empty string.
119474 2002-11-04  Bruno Haible  <bruno@clisp.org>
119476         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
119477         aliases.
119479 2002-11-04  Bruno Haible  <bruno@clisp.org>
119481         * lib/config.charset: Update for newest glibc. Add canonical names
119482         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
119484 2002-11-04  Bruno Haible  <bruno@clisp.org>
119486         * lib/config.charset: Add support for NetBSD.
119488 2002-11-04  Bruno Haible  <bruno@clisp.org>
119490         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
119492 2002-11-01  Bruno Haible  <bruno@clisp.org>
119494         * configure.in: Add AC_CONFIG_AUX_DIR call.
119495         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
119496         test/Makefile.
119497         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
119499 2002-09-28  Karl Berry  <karl@gnu.org>
119501         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
119502         installed automake until the next release, since changes have been
119503         made.
119505 2002-09-25  Karl Berry  <karl@gnu.org>
119507         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
119508         * lib/getopt*: copy from libc/posix.
119509         * lib/gettext.h: copy from gettext.
119510         * lib/.cppi-disable: add strdup.c, gettext.h.
119512 2002-09-25  Karl Berry  <karl@gnu.org>
119514         * config/srclist.txt: enable gettext.h check.
119515         * config/config.{guess,sub}: update from prep.
119516         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
119517                 from automake 1.6.3.
119518         See srclist*.
119520 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
119522         * regex.c (PATFETCH): Remove the translating fetch.
119523         (PATFETCH_RAW): Rename to PATFETCH.
119524         (set_image_of_range): New fun.
119525         (SET_RANGE_TABLE_WORK_AREA): Use it.
119526         (regex_compile): Don't translate the pattern chars so eagerly.
119527         Only do it when inserting an `exactn' bytecode or when handling
119528         a char-range.
119529         (mutually_exclusive_p): Avoid empty statement.
119531 2002-07-06  Jim Meyering  <meyering@lucent.com>
119533         * m4/README: Don't mention Makefile.am.in.
119534         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
119536 2002-07-01  Jim Meyering  <meyering@lucent.com>
119538         * lib/c-stack.c: Include sys/time.h.
119539         From Volker Borchert.
119541 2002-06-26  Paul Eggert  <eggert@twinsun.com>
119543         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
119545 2002-06-26  Paul Eggert  <eggert@twinsun.com>
119547         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
119548         New macro.  Use it uniformly instead of
119549         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
119550         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
119551         reported by Vin Shelton.
119553 2002-06-22  Paul Eggert  <eggert@twinsun.com>
119555         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
119556         Do not assume SA_SIGINFO behavior.
119557         Bug reported by Jim Meyering on NetBSD 1.5.2.
119559 2002-06-22  Jim Meyering  <meyering@lucent.com>
119561         * m4/c-stack.m4: New file, from diffutils-2.8.2.
119562         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
119564         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
119565         now that configure.ac uses AC_GNU_SOURCE.
119566         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
119567         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
119569         Update to latest tools.  Suggestions from Paul Eggert.
119570         * m4/stdbool.m4: New file, from diffutils-2.8.2.
119571         * m4/gnu-source.m4: Update from diffutils-2.8.2.
119572         * m4/fnmatch.m4: Likewise.
119573         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
119574         to AC_HEADER_STDBOOL
119576 2002-06-22  Jim Meyering  <meyering@lucent.com>
119578         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
119579         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
119581 2002-06-22  Jim Meyering  <meyering@lucent.com>
119583         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
119585         * lib/exitfail.c, exitfail.h: Likewise.
119586         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
119588         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
119589         of fnmatch.h.
119590         (EXTRA_DIST): Add fnmatch_loop.c.
119591         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
119593         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
119594         * lib/fnmatch.c: Update from diffutils-2.8.2.
119595         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
119596         * lib/fnmatch.h: Remove file.
119598 2002-06-21  Jim Meyering  <meyering@lucent.com>
119600         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
119601         * m4/mbrtowc.m4: Likewise.
119603         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
119604         * m4/mbswidth.m4: Reflect name change:
119605         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
119606         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
119608         * m4/lib-link.m4: Update from gettext-0.11.2.
119609         * m4/gettext.m4: Likewise.
119611         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
119612         From Alfred M. Szmidt.
119614 2002-06-18  Paul Eggert  <eggert@twinsun.com>
119616         * lib/file-type.h: Report an error if neither S_ISREG nor
119617         S_IFREG is defined, instead of using a test specific to glibc
119618         2.2.  This should be safe, since POSIX requires S_ISREG and
119619         Unix Version 7 had S_IFREG.  We don't need to check for
119620         <sys/types.h> since we don't use any symbols that it defines.
119622 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
119624         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
119625         $@-t, so that each temporary file name is unique and valid in the first
119626         8 characters, for operation under DOS.
119628 2002-06-15  Paul Eggert  <eggert@twinsun.com>
119630         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
119632 2002-06-15  Jim Meyering  <meyering@lucent.com>
119634         Work even with DJGPP 2.03, which lacks support for symlinks.
119635         From Richard Dawe.
119636         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
119637         is defined.
119638         * lib/lchown.c (S_ISLNK): Likewise.
119640 2002-06-15  Jim Meyering  <meyering@lucent.com>
119642         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
119643         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
119644         have been included before this file.
119646 2002-06-14  Jim Meyering  <meyering@lucent.com>
119648         * lib/file-type.h: Use the version from diffutils-2.8.2.
119649         * lib/file-type.c: Likewise.
119651 2002-06-07  Jim Meyering  <meyering@lucent.com>
119653         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
119654         They're needed at least for NetBSD 1.5.2.
119655         ($statxfs_includes): Include those same headers.
119656         ($statxfs_includes): Include sys/vfs.h if available.
119657         ($statxfs_includes): Likewise for sys/statvfs.h.
119658         Check for the following members in both structs statfs and statvfs:
119659         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
119661 2002-06-01  Jim Meyering  <meyering@lucent.com>
119663         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
119664         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
119666 2002-05-28  Jim Meyering  <meyering@lucent.com>
119668         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
119669         Reported by Volker Borchert.
119671 2002-05-27  Jim Meyering  <meyering@lucent.com>
119673         Fix a problem seen only on nonconforming systems whereby ls.c's
119674         use of localtime, and then of gettimeofday would cause trouble:
119675         the localtime call used to initialize rpl_gettimeofday's save
119676         mechanism would clobber ls's current local time information so
119677         that in any long listing the first file would always be listed
119678         with date 1970-01-01.  Analysis by Volker Borchert.
119680         * lib/gettimeofday.c (localtime): Undefine.
119681         (rpl_localtime): New function.
119683 2002-05-27  Jim Meyering  <meyering@lucent.com>
119685         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
119686         localtime.
119688         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
119689         use the replacement function; it wouldn't resolve at link time.
119690         Reported by Volker Borchert.
119692 2002-05-22  Jim Meyering  <meyering@lucent.com>
119694         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
119695         file-type.h.
119696         * lib/file-type.h: New file.
119697         * lib/file-type.c (file_type): New file/function.  Extracted from
119698         diffutils.
119700 2002-04-30  Jim Meyering  <meyering@lucent.com>
119702         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
119704 2002-04-29  Paul Eggert  <eggert@twinsun.com>
119706         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
119708 2002-04-29  Paul Eggert  <eggert@twinsun.com>
119710         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
119711         Do not check for alloca.h (no longer used) or stdbool.h (was never
119712         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
119714 2002-04-29  Paul Eggert  <eggert@twinsun.com>
119716         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
119718 2002-04-29  Jim Meyering  <meyering@lucent.com>
119720         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
119721         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
119722         Use AC_FUNC_STRNLEN here instead.
119724         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
119725         With autoconf-2.53a, it's part of AC_PROG_CC.
119727 2002-04-28  Paul Eggert  <eggert@twinsun.com>
119729         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
119730         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
119732 2002-04-28  Paul Eggert  <eggert@twinsun.com>
119734         * lib/sig2str.h, lib/sig2str.c: New files.
119735         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
119737 2002-04-28  Paul Eggert  <eggert@twinsun.com>
119739         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
119740         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
119741         of 127, since 64 is the largest conceivable number for ancient
119742         nonstandard hosts.
119743         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
119745 2002-04-28  Jim Meyering  <meyering@lucent.com>
119747         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
119749 2002-04-24  Jim Meyering  <meyering@lucent.com>
119751         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
119752         (jm_PREREQ): Use it.
119754         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
119755         mach/mach.h fcntl.h.
119756         Check for this function: setlocale.
119758 2002-04-24  Jim Meyering  <meyering@lucent.com>
119760         * lib/gettext.h: New file, from Gettext.
119761         * lib/Makefile.am (INCLUDES): Remove -I../intl.
119762         (libfetish_a_SOURCES): Add gettext.h.
119764 2002-04-16  Jim Meyering  <meyering@lucent.com>
119766         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
119767         ut_pid, ut_id, ut_exit.
119769 2002-04-16  Jim Meyering  <meyering@lucent.com>
119771         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
119772         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
119773         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
119775 2002-04-12  Jim Meyering  <meyering@lucent.com>
119777         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
119778         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
119779         existence of the getmntinfo function.  Needed for Darwin 5.3.
119781         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
119782         This is necessary at least on Darwin 5.3.
119784         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
119785         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
119786         strnlen.o in the library, and that makes some versions of ranlib
119787         object.
119789 2002-04-12  Jim Meyering  <meyering@lucent.com>
119791         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
119793 2002-04-09  Jim Meyering  <meyering@lucent.com>
119795         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
119796         to be more precise.  Rather than saying we're checking whether the
119797         function `works', say what we're testing.
119798         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
119799         Reported by Bruno Haible.
119801 2002-03-10  Jim Meyering  <meyering@lucent.com>
119803         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
119804         Suggestion from Santiago Vila.
119806 2002-03-08  Jim Meyering  <meyering@lucent.com>
119808         * lib/rename.c: Mention that this wrapper is needed also on
119809         mips-dec-ultrix4.4 systems.
119811 2002-03-02  Jim Meyering  <meyering@lucent.com>
119813         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
119814         not HAVE_CLOCK_SETTIME.
119816 2002-02-27  Paul Eggert  <eggert@twinsun.com>
119818         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
119819         Check for clock_settime.
119821 2002-02-27  Paul Eggert  <eggert@twinsun.com>
119823         * lib/nanosleep.h: Rename to....
119824         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
119826         * lib/gettime.c: New file.
119827         * lib/settime.c: New file.
119828         * lib/stime.c: Remove.
119830         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
119831         timespec.h.  Remove nanosleep.h.
119833 2002-02-25  Paul Eggert  <eggert@twinsun.com>
119835         * m4/acl.m4: New file.
119836         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
119837         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
119839 2002-02-25  Paul Eggert  <eggert@twinsun.com>
119841         * lib/acl.c, lib/acl.h: New files.
119842         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
119844 2002-02-24  Jim Meyering  <meyering@lucent.com>
119846         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
119847         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
119848         cause trouble.  Reported by Nelson Beebe.
119850 2002-02-23  Paul Eggert  <eggert@twinsun.com>
119852         * lib/path-concat.c (xpath_concat): Reorder code to pacify
119853         compilers that don't know that xalloc_die never returns.
119855 2002-02-20  Jim Meyering  <meyering@lucent.com>
119857         * lib/getdate.c: Regenerate using bison-1.33.
119859 2002-02-17  Jim Meyering  <meyering@lucent.com>
119861         * config/config.guess (main): Don't use `head -1'; it's no longer
119862         portable. Use `sed 1q' instead.
119864 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
119866         * m4/codeset.m4: Upgrade to gettext-0.11.
119867         * m4/gettext.m4: Upgrade to gettext-0.11.
119868         * m4/glibc21.m4: Upgrade to gettext-0.11.
119869         * m4/iconv.m4: Upgrade to gettext-0.11.
119870         * m4/isc-posix.m4: Upgrade to gettext-0.11.
119871         * m4/lcmessage.m4: Upgrade to gettext-0.11.
119872         * m4/lib-ld.m4: New file, from gettext-0.11.
119873         * m4/lib-link.m4: New file, from gettext-0.11.
119874         * m4/lib-prefix.m4: New file, from gettext-0.11.
119875         * m4/progtest.m4: Upgrade to gettext-0.11.
119877 2002-02-15  Paul Eggert  <eggert@twinsun.com>
119879         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
119880         (jm_PREREQ): Use it.
119882 2002-02-15  Paul Eggert  <eggert@twinsun.com>
119884         * lib/posixver.c, lib/posixver.h: New files.
119885         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
119887 2002-02-02  Paul Eggert  <eggert@twinsun.com>
119888             Bruno Haible  <bruno@clisp.org>
119890         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
119891         (fwrite_success_callback): New declaration.
119892         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
119893         print_unicode_char. Call failure callback instead of error.
119894         (fwrite_success_callback): New function.
119895         (exit_failure_callback): New function.
119896         (fallback_failure_callback): New function.
119897         (print_unicode_char): Call unicode_to_mb.
119899 2002-01-26  Jim Meyering  <meyering@lucent.com>
119901         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
119902         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
119904 2002-01-26  Jim Meyering  <meyering@lucent.com>
119906         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
119908 2002-01-22  Paul Eggert  <eggert@twinsun.com>
119910         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
119912 2002-01-22  Jim Meyering  <meyering@lucent.com>
119914         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
119915         Otherwise, some versions of automake would omit the rule that makes
119916         Makefile from Makefile.in.
119918 2002-01-21  Paul Eggert  <eggert@twinsun.com>
119920         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
119921         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
119922         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
119923         (memcoll): Set errno to zero if there is no error.
119925         * lib/quotearg.c (quotearg_buffer_restyled):
119926         Fix bug with quoting buffers containing NUL when backslashing escapes.
119927         This bug was exposed by the other changes in this patch.
119928         (quotearg_n_options): New arg ARGSIZE.
119929         All callers changed.
119930         (quoting_options_from_style): New function.
119931         (quotearg_n_style): Use it.
119932         (quotearg_n_style_mem): New function.
119934         * lib/quotearg.h (quotearg_n_style_mem): New function.
119936 2002-01-19  Jim Meyering  <meyering@lucent.com>
119938         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
119939         Remove useless quotes: DF_PROG="df".
119940         * m4/strnlen.m4: New file.
119942 2002-01-16  Paul Eggert  <eggert@twinsun.com>
119944         * lib/backupfile.c (ISDIGIT): Comment fix.
119945         * lib/getdate.y (ISDIGIT): Likewise.
119946         * lib/posixtm.c (ISDIGIT, year): Likewise.
119947         * lib/strverscmp.c (ISDIGIT): Likewise.
119948         * lib/userspec.c (ISDIGIT): Likewise.
119950 2002-01-16  Jim Meyering  <meyering@lucent.com>
119952         * lib/getdate.y: Add three semicolons, each just before a closing
119953         brace. Bison (as of version 1.31) no longer papers over that mistake.
119955 2002-01-05  Jim Meyering  <meyering@lucent.com>
119957         * lib/version-etc.c (version_etc_copyright): Update copyright year.
119959 2001-12-19  Paul Eggert  <eggert@twinsun.com>
119961         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
119962         not silently exit merely because the output buffer happens to
119963         have nothing pending.
119965 2001-12-18  Paul Eggert  <eggert@twinsun.com>
119967         See the big note in ../ChangeLog.
119968         * lib/human.c (suffixes): Prefer K to k for 1024.
119969         (generate_suffix_backwards): New function.
119970         (human_readable_inexact): Use it.
119971         * lib/xstrtol.c (__xstrtol): If there is no number but there
119972         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
119973         Accept 'K' as well as 'k'.
119975 2001-12-15  Jim Meyering  <meyering@lucent.com>
119977         * lib/regex.h (__restrict_arr): Update from libc.
119979         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
119980         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
119981         (STREQ): Define.
119983 2001-12-14  Jim Meyering  <meyering@lucent.com>
119985         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
119986         Suggestion from Bruno Haible.
119988 2001-12-10  Jim Meyering  <meyering@lucent.com>
119990         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
119991         xrealloc, Instead, include "xalloc.h".
119992         (initbuffer): Don't cast xmalloc return value to char*.
119993         (readline): Reword comment.
119994         Don't cast xrealloc return value to char*
119995         Return NULL, not 0.
119997 2001-12-09  Jim Meyering  <meyering@lucent.com>
119999         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
120000         about `signed and unsigned type in conditional expression'.
120001         * lib/posixtm.c (posix_time_parse): Likewise.
120003         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
120005         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
120006         to avoid a pedantic warning.
120008         * lib/getstr.c: Don't include assert.h.
120009         (getstr): Remove warning-evoking assertions.
120010         Return -1 if offset parameter is out of bounds.
120011         Change the type of a local from int to size_t.
120013         * lib/strftime.c (my_strftime_localtime_r): Include this function
120014         definition in the `#if ! HAVE_TM_GMTOFF' block.
120016         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
120017         Include xalloc.h instead.
120019 2001-12-02  Jim Meyering  <meyering@lucent.com>
120021         * lib/tempname.c: Don't declare getenv, thus reverting the change of
120022         2001-11-18.  It's no longer necessary, now that stdlib.h is always
120023         included.
120025         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
120026         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
120028 2001-11-30  Akim Demaille  <akim@epita.fr>
120030         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
120031         before being defined.
120033 2001-11-27  Paul Eggert  <eggert@twinsun.com>
120035         * lib/quotearg.h (quotearg_n, quotearg_n_style):
120036         First arg is int, not unsigned.
120037         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
120038         (SIZE_MAX, UINT_MAX): New macros.
120039         (quotearg_n_options): Abort if N is negative.
120040         Avoid overflow check on hosts where size_t is 64 bits and int
120041         is 32 bits, as overflow is impossible there.
120042         Fix off-by-one typo that caused unnecessary reallocation.
120044 2001-11-27  Jim Meyering  <meyering@lucent.com>
120046         * lib/tempname.c: Merge with version from libc.
120047         * lib/regex.c: Likewise.
120049         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
120050         systems for which STDC_HEADERS is 0, it was not included, resulting in
120051         a warning about an integer-to-pointer conversion problem with getenv.
120052         Reported by Volker Borchert.
120054 2001-11-26  Jim Meyering  <meyering@lucent.com>
120056         * lib/gtod.h: Remove file.
120057         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
120058         * lib/gettimeofday.c: Don't include gtod.h.
120059         (GTOD_init): Remove function.
120060         (rpl_gettimeofday): Do its job here instead, rather than aborting.
120061         Suggestion from Volker Borchert.
120063 2001-11-23  Jim Meyering  <meyering@lucent.com>
120065         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
120066         it.
120067         * lib/hash.c (struct hash_table): Define it here instead.
120069 2001-11-22  Jim Meyering  <meyering@lucent.com>
120071         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
120073 2001-11-20  Jim Meyering  <meyering@lucent.com>
120075         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
120076         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
120078 2001-11-19  Jim Meyering  <meyering@lucent.com>
120080         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
120081         directory.  Use "conftestXXXXXX" as the template.
120082         Suggestion from Paul Eggert.
120084         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
120085         immediately, so the test doesn't mistakenly hit the max-open-files
120086         limit.
120088 2001-11-18  Paul Eggert  <eggert@twinsun.com>
120090         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
120091         (TEMPORARIES): New macro.
120092         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
120093         removes an artificial limitation (e.g. HP-UX 10.20, where
120094         TMP_MAX is 17576).
120096 2001-11-18  Jim Meyering  <meyering@lucent.com>
120098         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
120100 2001-11-18  Jim Meyering  <meyering@lucent.com>
120102         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
120103         on SunOS 4.
120105         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
120106         files will be created before anything else.
120108 2001-11-17  Paul Eggert  <eggert@twinsun.com>
120110         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
120111         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
120113 2001-11-17  Jim Meyering  <meyering@lucent.com>
120115         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
120116         Prompted by a report from Bob Proulx.
120118         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
120119         Instead, require UTILS_FUNC_MKSTEMP.
120121 2001-11-17  Jim Meyering  <meyering@lucent.com>
120123         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
120124         Now, that's done as part of AC_FUNC_STRTOD.
120126 2001-11-17  Jim Meyering  <meyering@lucent.com>
120128         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
120129         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
120130         rather than group writable.  Patch by Juan F. Codagnone.
120132         * lib/readtokens.c: Remove explicit declarations of xmalloc and
120133         xrealloc, Instead, include "xalloc.h".
120135         * lib/mountlist.c: Include unlocked-io.h after all system headers.
120136         Remove explicit declarations of xmalloc, xrealloc,
120137         and xstrdup.  Instead, include "xalloc.h".
120139         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
120140         unlocked-io.h.
120141         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
120142         Likewise.
120143         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
120145         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
120146         Reported by Padraig Brady.
120148         * lib/mkstemp.c: #undef mkstemp.
120149         Include config.h.
120150         (rpl_mkstemp): Rename from mkstemp.
120151         Protoize.
120153 2001-11-16  Jim Meyering  <meyering@lucent.com>
120155         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
120156         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
120157         determine the amount of total physical memory, use pstat_getstatic.
120158         HPUX-11 doesn't define _SC_PHYS_PAGES.
120159         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
120160         If sysconf couldn't be used to determine the amount of available
120161         physical memory, use both pstat_getstatic and pstat_getdynamic.
120162         Based on a patch from Bob Proulx.
120164 2001-11-10  Jim Meyering  <meyering@lucent.com>
120166         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
120167         (jm_PREREQ): Use it.
120169 2001-11-09  Jim Meyering  <meyering@lucent.com>
120171         * m4/jm-macros.m4: Require autoconf-2.52f.
120172         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
120173         Use these AC_-prefixed names, not the AM_-prefixed ones.
120175         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
120177 2001-11-05  Jim Meyering  <meyering@lucent.com>
120179         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
120181 2001-11-04  Jim Meyering  <meyering@lucent.com>
120183         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
120184         $DEFS.
120186 2001-11-03  Jim Meyering  <meyering@lucent.com>
120188         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
120189         of AC_DEFUN.
120191         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
120192         know the name of the variable in the macro definition.
120194 2001-11-03  Jim Meyering  <meyering@lucent.com>
120196         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
120197         in argmatch_to_argument call.
120199         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
120200         argument.
120202         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
120203         e.g., a fault due to an attempt to free a NULL pointer.
120205 2001-11-01  Jim Meyering  <meyering@lucent.com>
120207         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
120208         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
120210 2001-11-01  Jim Meyering  <meyering@lucent.com>
120212         * lib/dirfd.c, lib/dirfd.h: New files.
120213         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
120215         * lib/hash.c (hash_print) [TESTING]: Clean up.
120217 2001-10-22  Paul Eggert  <eggert@twinsun.com>
120219         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
120220         to avoid a warning if -Wall.
120222 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
120224         * README: New file
120225         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
120226         (per RMS's instructions, this is now the canonical source)
120227         * lgpl/, gpl/: New directories.
120229 2001-10-21  Paul Eggert  <eggert@twinsun.com>
120231         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
120233 2001-10-21  Jim Meyering  <meyering@lucent.com>
120235         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
120236         this code would end up calling gettext even in packages built
120237         with --disable-nls.
120238         * lib/getopt.c (_): Likewise.
120239         * lib/regex.c (_): Likewise.
120241 2001-10-20  Paul Eggert  <eggert@twinsun.com>
120243         * m4/error.m4 (jm_PREREQ_ERROR):
120244         Do not invoke AC_CHECK_FUNCS with strerror_r, as
120245         AC_FUNC_STRERROR_R does that.
120246         Check for strerror declaration.
120248         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
120249         are supposed to have them these days.
120250         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
120251         Merge changes from latest Autoconf CVS.
120252         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
120253         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
120254         POSIX decided to standardize on the int flavor of strerror_r.
120256 2001-10-20  Paul Eggert  <eggert@twinsun.com>
120258         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
120259         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
120260         Use strerror_r that is only a macro, even if it is not a function.
120261         (strerror): Check for HAVE_DECL_STRERROR before declaring.
120262         (private_strerror): Use prototypes, not old-style function definition.
120263         (print_errno_message): New function.
120264         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
120265         char*-flavored one.
120266         (error_tail, error, error_at_line): Use it.
120268 2001-10-11  Jim Meyering  <meyering@lucent.com>
120270         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
120271         and quote_n (1, ... to avoid clobbering a buffer.
120273 2001-10-05  Jim Meyering  <meyering@lucent.com>
120275         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
120276         hash-pjw.h.
120277         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
120278         * lib/hash-pjw.h: New file.
120280 2001-09-30  Jim Meyering  <meyering@lucent.com>
120282         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
120283         `struct fsstat' has the `f_fstypename' member.
120284         Use that to define FS_TYPE, which is now used to make
120285         the getfsstat link test tighter.
120287 2001-09-30  Jim Meyering  <meyering@lucent.com>
120289         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
120290         Include <sys/ucred.h>, for Apple Darwin.
120291         Include sys/mount.h and sys/fs_types.h only if available.
120292         (FS_TYPE): Define.
120293         (read_filesystem_list): Use FS_TYPE.
120295 2001-09-29  Paul Eggert  <eggert@twinsun.com>
120297         * lib/exclude.c (excluded_filename): 0 -> false, since it's
120298         a boolean context.
120300 2001-09-29  Jim Meyering  <meyering@lucent.com>
120302         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
120303         [one-argument getmntent function]): Include stdio.h before mntent.h.
120304         SunOS 4.1.x needs it for the declaration of `FILE'.
120305         Patch by Volker Borchert.
120307         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
120308         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
120309         sys/fs_types.h, and make the link-test for getfsstat guard #include
120310         directives with appropriate #if HAVE_*_H tests so that we can
120311         detect getfsstat on Apple Darwin1.3.7 systems.
120312         Reported by Nelson Beebe.
120313         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
120315 2001-09-28  Paul Eggert  <eggert@twinsun.com>
120317         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
120318         #defines strtoimax.  Also treat the other strto* functions
120319         like strtoimax.
120321         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
120322         Check for strtoul and strtoumax,
120323         as those declarations are made even in the signed case.
120324         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
120325         Likewise, for strtol and strtoimax.
120327 2001-09-28  Paul Eggert  <eggert@twinsun.com>
120329         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
120330         #defines strtoimax.  Also treat the other strto* functions
120331         like strtoimax.
120333         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
120334         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
120335         (strtoimax, strtoumax): Do not declare if already defined as a macro.
120337 2001-09-26  Jim Meyering  <meyering@lucent.com>
120339         Most macros in unlocked-io.h had the wrong number of arguments.
120340         * lib/gen-uio: New script.
120341         (USE_UNLOCKED_IO): Define to 1 if not already defined.
120342         * lib/unlocked-io.hin: Remove file.
120343         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
120344         rather than trying to embed it here.
120345         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
120346         Reported by Padraig Brady.
120348 2001-09-25  Volker Borchert  <bt@teknon.de>
120350         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
120351         `result'.
120353 2001-09-24  Jim Meyering  <meyering@lucent.com>
120355         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
120357 2001-09-23  Jim Meyering  <meyering@lucent.com>
120359         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
120360         instead of the mere test for existence of mntent.h.  The latter
120361         would get a false-positive on AIX 3.4 systems.
120362         In the outer getmntent if-block, don't die if neither of the getmntent
120363         tests succeeds.  Instead, just fall through and continue with the
120364         remaining tests.
120366 2001-09-23  Jim Meyering  <meyering@lucent.com>
120368         * lib/mountlist.c: Remove useless parentheses in #if directives.
120369         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
120370         the deprecated MOUNTED symbol is no longer defined in mntent.h.
120372 2001-09-22  Jim Meyering  <meyering@lucent.com>
120374         * m4/gettext.m4: New file.  From gettext.
120375         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
120376         * m4/progtest.m4: Likewise
120377         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
120378         * m4/glibc21.m4: Likewise.
120380         * m4/libintl.m4: Remove.  No longer used.
120382 2001-09-22  Jim Meyering  <meyering@lucent.com>
120384         * lib/localcharset.c: Update from latest gettext.
120385         * lib/config.charset: Likewise.
120387 2001-09-20  Jim Meyering  <meyering@lucent.com>
120389         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
120390         strtoimax.
120391         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
120392         strtoumax.
120394 2001-09-20  Jim Meyering  <meyering@lucent.com>
120396         * lib/xstrtol.c (strtoimax): Guard declaration with
120397         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
120398         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
120399         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
120400         (strtoumax): Likewise, for completeness (it wasn't necessary).
120402 2001-09-17  Paul Eggert  <eggert@twinsun.com>
120404         * lib/strtoimax.c (HAVE_LONG_LONG):
120405         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
120406         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
120407         to work around bug in IBM C compiler.
120409 2001-09-17  Jim Meyering  <meyering@lucent.com>
120411         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
120412         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
120413         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
120414         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
120415         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
120416         whenever the right hand side need not be expanded by the shell.
120418 2001-09-16  Paul Eggert  <eggert@twinsun.com>
120420         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
120421         library.  It's not correct, as some older glibcs are buggy.
120422         fnmatch wasn't fixed until glibc 2.2.
120424         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
120425         special shell magic here.
120427 2001-09-16  Jim Meyering  <meyering@lucent.com>
120429         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
120430         * m4/jm-macros.m4: Require it.
120432 2001-09-16  Jim Meyering  <meyering@lucent.com>
120434         * lib/mkdir.c: New file.
120436 2001-09-15  Jim Meyering  <meyering@lucent.com>
120438         * m4/jm-macros.m4: Check for help2man.
120440 2001-09-11  Jim Meyering  <meyering@lucent.com>
120442         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
120443         The body, by Paul Eggert, was moved here from configure.in.
120444         * m4/jm-macros.m4: Require UTILS_HOST_OS.
120446 2001-09-04  Paul Eggert  <eggert@twinsun.com>
120448         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
120449         (jm_PREREQ): Use it.
120451 2001-09-04  Paul Eggert  <eggert@twinsun.com>
120453         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
120454         Use ssize_t, not int, to store result of readlink.
120455         Check for ssize_t overflow as well as size_t overflow,
120456         as POSIX says the result of readlink is implementation-defined
120457         when ssize_t overflows.
120458         Remove unnecessary cast to char*.
120459         Use free+malloc instead of realloc, as the storage doesn't need
120460         to be preserved and it's clearer and can be more efficient that way.
120461         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
120462         * lib/xreadlink.h (xreadlink): Update prototype.
120464 2001-09-04  Paul Eggert  <eggert@twinsun.com>
120466         * lib/xgetcwd.c: Revert some of the previous change; intead,
120467         fix the HAVE_GETCWD_NULL code to behave more like the
120468         !HAVE_GETCWD_NULL code used to.
120470         Include "xalloc.h".
120471         (xgetcwd): Do not return NULL when memory is exhausted; instead,
120472         invoke xalloc_die.
120474 2001-09-03  Paul Eggert  <eggert@twinsun.com>
120476         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
120477         sys/param.h, as pathmax.h includes them.
120479 2001-09-03  Paul Eggert  <eggert@twinsun.com>
120481         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
120482         (jm_PREREQ_XGETCWD): New macro.
120484         * m4/getcwd.m4: New file.
120486 2001-09-03  Paul Eggert  <eggert@twinsun.com>
120488         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
120489         like the HAVE_GETCWD_NULL code.
120490         Include pathmax.h if not HAVE_GETCWD.
120491         Do not include xalloc.h.
120492         (INITIAL_BUFFER_SIZE): New symbol.
120493         Do not use xmalloc / xrealloc, since the caller is responsible for
120494         handling errors.  Preserve errno around `free' during failure.
120495         Do not overrun buffer when using getwd.
120497 2001-09-03  Paul Eggert  <eggert@twinsun.com>
120499         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
120500         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
120501         getcwd (NULL, 0).
120503 2001-09-03  Paul Eggert  <eggert@twinsun.com>
120505         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
120506         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
120507         spotted by Jim Meyering.
120509 2001-09-03  Jim Meyering  <meyering@lucent.com>
120511         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
120512         failure.
120514 2001-09-02  Jim Meyering  <meyering@lucent.com>
120516         * lib/error.c: Update from GNU libc.
120518 2001-09-01  Jim Meyering  <meyering@lucent.com>
120520         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
120521         Used by df.
120523 2001-09-01  Jim Meyering  <meyering@lucent.com>
120525         * lib/xreadlink.c: New file.
120526         * lib/xreadlink.h: New file.
120527         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
120528         xreadlink.h.
120530         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
120531         doesn't conflict with sparc Solaris 7's definition in
120532         /usr/include/sys/int_types.h.
120534         * lib/exclude.c: Use `""', not `<>' to #include non-system header
120535         files.
120536         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
120537         and strncasecmp as r-values.  Unixware didn't have declarations.
120539 2001-08-31  Paul Eggert  <eggert@twinsun.com>
120541         * lib/xstrtol.h: Add copyright notice.
120542         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
120543         LONGINT_INVALID_SUFFIX_CHAR.
120545 2001-08-31  Paul Eggert  <eggert@twinsun.com>
120547         * lib/xstrtol.c (strtoimax): New decl.
120549 2001-08-31  Paul Eggert  <eggert@twinsun.com>
120551         * lib/xgetcwd.c: Don't include pathmax.h.
120552         Include stdlib.h and unistd.h if available.
120553         Include xalloc.h.
120554         (xmalloc, xstrdup, free): Remove decls.
120555         (xgetcwd): Don't assume sizes fit in unsigned.
120556         Check for overflow when computing sizes.
120557         Simplify reallocation code.
120559 2001-08-31  Paul Eggert  <eggert@twinsun.com>
120561         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
120562         a directory's st_size can have an arbitrary value, so the old
120563         usage could waste an arbitrary amount of memory.  All uses
120564         changed.
120565         * lib/savedir.h: Update prototype.
120567 2001-08-31  Paul Eggert  <eggert@twinsun.com>
120569         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
120571         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
120572         old strtoimax.c.
120574         Also, make the following further changes to make this file's
120575         configuration more similar to that of strtol.c:
120576         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
120577         (strtoumax, uintmax_t, strtoull, strtol): Remove.
120578         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
120579         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
120580         changed to signed values.
120582         And make the following changes as well:
120583         Fix copyright notice, as 1999 was missing.
120584         (verify): New macro.
120585         (strtoimax): Check sizes at compile-time, not run-time.
120586         Prefer strtol to strtoll if both work.
120587         (main): Remove; it was not that useful and was a pain to maintain.
120589         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
120591 2001-08-31  Jim Meyering  <meyering@lucent.com>
120593         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
120594         Use an initial, malloc'd, buffer of length 128 rather than
120595         a statically allocated one of length 1024.
120597 2001-08-30  Paul Eggert  <eggert@twinsun.com>
120599         Simplify code, partly by assuming autoconf 2.52 semantics.
120601         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
120603         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
120604         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
120605         All uses removed.
120606         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
120607         Move AC_REQUIRE to next-to-top level, to avoid confusion.
120608         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
120609         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
120610         jm_AC_HEADER_INTTYPES_H.
120611         * m4/jm-macros.m4 (jm_MACROS): Likewise.
120613         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
120615         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
120616         Quote first arg of AC_DEFUN.
120617         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
120618         since they are needed to parse the include file even if we need
120619         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
120620         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
120621         but with opposite signedness.
120623 2001-08-30  Paul Eggert  <eggert@twinsun.com>
120625         Merge 'exclude' changes from tar 1.13.22.
120626         This fixes one or two unlikely storage allocation overflow bugs,
120627         but doesn't change user-visible behavior otherwise.
120629 2001-08-30  Paul Eggert  <eggert@twinsun.com>
120631         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
120632         (jm_PREREQ_EXCLUDE): New macro.
120634 2001-08-30  Paul Eggert  <eggert@twinsun.com>
120636         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
120637         tm to be declared.
120639 2001-08-30  Paul Eggert  <eggert@twinsun.com>
120641         * lib/hash.c: Remove '2001' from copyright notice.
120643 2001-08-30  Paul Eggert  <eggert@twinsun.com>
120645         * lib/full-write.h: New file.
120646         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
120647         * lib/full-write.c: Correct credits, as cccp.c no longer
120648         exists and anyway it was so heavily changed from the old cccp
120649         code as to be unrecognizable.  Include full-write.h.
120650         (full_write): Return size_t, with short writes meaning failure.
120651         All callers changed.  This fixes a bug with large buffers
120652         on 64-bit hosts.
120653         * lib/utime.c: Include full-write.h.
120655 2001-08-30  Paul Eggert  <eggert@twinsun.com>
120657         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
120658         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
120659         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
120660         Include if available.
120661         (<xalloc.h>): Include
120662         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
120663         (verify): New macro.  Use it to verify that EXCLUDE macros do not
120664         collide with FNM macros.
120665         (struct patopts): New struct.
120666         (struct exclude): Use it, as exclude patterns now come with options.
120667         (new_exclude): Support above changes.
120668         (new_exclude, add_exclude_file):
120669         Initial size must now be a power of two to simplify overflow checking.
120670         (free_exclude, fnmatch_no_wildcards): New function.
120671         (excluded_filename): No longer requires options arg, as the options
120672         are determined by add_exclude.  Now returns bool, not int.
120673         (excluded_filename, add_exclude):
120674         Add support for the fancy new exclusion options.
120675         (add_exclude, add_exclude_file): Now takes int options arg.
120676         Check for arithmetic overflow when computing sizes.
120677         (add_exclude_file): xrealloc might modify errno, so don't
120678         realloc until after errno might be used.
120680         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
120681         New macros.
120682         (free_exclude): New decl.
120683         (add_exclude, add_exclude_file): Now takes int options arg.
120684         (excluded_filename): No longer requires options arg, as the options
120685         are determined by add_exclude.  Now returns bool, not int.
120687 2001-08-30  Paul Eggert  <eggert@twinsun.com>
120689         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
120691 2001-08-27  Jim Meyering  <meyering@lucent.com>
120693         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
120695         * lib/version-etc.c (N_): Remove definition.
120696         Revert most of last change.
120697         Instead, simply don't mark the `Copyright...' string for translation.
120698         Based on advice from Paul Eggert.
120700         * lib/strtoxmax.c: Tweak comment.
120702 2001-08-26  Jim Meyering  <meyering@lucent.com>
120704         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
120706         * m4/xstrtoimax.m4: New file.
120707         * m4/xstrtoumax.m4: Add comments explaining why we
120708         AC_REPLACE_FUNCS(strtol).
120710 2001-08-26  Jim Meyering  <meyering@lucent.com>
120712         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
120713         of copyright with `%s' so translators don't get an untranslated
120714         message in 2002.
120715         (COPYRIGHT_YEAR): Define.
120716         (version_etc): Use fprintf rather than fputs.
120717         Suggestion from Ulrich Drepper.
120719         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
120721         * lib/strtoll.c: New file, from GNU libc.
120722         * lib/xstrtoimax.c: New file.
120724         * lib/xstrtol.h: Add xstrtoimax.
120725         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
120726         * lib/strtoimax.c: New file.  Likewise, but first define
120727         STRTOUXMAX_SIGNED.
120729         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
120730         ...
120731         * lib/strtoxmax.c: ... then renamed to this.
120733 2001-08-18  Paul Eggert  <eggert@twinsun.com>
120735         * m4/inttypes.m4: Add AC_PREREQ(2.13).
120736         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
120737         (jm_AC_TYPE_INTMAX_T): New macro.
120738         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
120740         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
120742         * m4/longlong.m4: Renamed from ulonglong.m4.
120743         * m4/inttypes.m4: Renamed from inttypes_h.m4.
120744         * m4/uintmax_t.m4: Removed.
120746 2001-08-13  Paul Eggert  <eggert@twinsun.com>
120748         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
120749         Port to Solaris 8, where 'sed' requires a space after the 'r'
120750         command, and where sh dislikes "$/".  Clean up the spacing a bit.
120751         Redirect output to $tmp just once.
120753 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
120755         * lib/addext.c (<errno.h>): Include.
120756         (errno): Declare if not defined.
120757         (addext): Work correctly when pathconf returns -1 and leaves
120758         errno alone because there is no limit.  Also, work even if
120759         pathconf returns a value greater than SIZE_MAX.
120761 2001-08-12  Jim Meyering  <meyering@lucent.com>
120763         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
120764         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
120765         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
120766         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
120767         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
120768         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
120769         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
120770         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
120771         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
120772         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
120773         utime.m4, utimes.m4, xstrtoumax.m4:
120774         Quote the first argument in each use of AC_DEFUN.
120776 2001-08-12  Jim Meyering  <meyering@lucent.com>
120778         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
120779         Simply `return getcwd (NULL, 0);'.
120780         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
120781         Use 1300 as initial value for length, not PATH_MAX.
120783         * lib/pathmax.h: Clean up cpp syntax.
120785 2001-08-12  Jim Meyering  <meyering@lucent.com>
120787         * lib/gettimeofday.c: New file.
120788         * lib/gtod.h: New file.
120789         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
120791 2001-08-05  Jim Meyering  <meyering@lucent.com>
120793         * m4/jm-macros.m4: Require autoconf-2.52.
120795 2001-08-04  Jim Meyering  <meyering@lucent.com>
120797         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
120798         stmt, to get in sync with glibc.
120800 2001-08-03  Paul Eggert  <eggert@twinsun.com>
120802         The following changes are from gettext 0.10.39 as maintained by
120803         Bruno Haible.
120805         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
120806         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
120807         with inverted sense.  All uses changed.
120809         * lib/mbswidth.c: Don't include <limits.h>.
120810         Include <stdlib.h> and <string.h> unconditionally.
120811         (iswcntrl, mbsinit, ISCNTRL): New macros.
120812         (mbsnwidth): Use K&R style function declarations.
120813         Don't bother checking for MB_LEN_MAX == 1, since the compiler
120814         can optimize it when MB_CUR_MAX == 1.
120815         The width of control characters is zero, not 1.
120817 2001-08-03  Paul Eggert  <eggert@twinsun.com>
120819         The following changes are from gettext 0.10.39 as maintained by
120820         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
120822         * m4/codeset.m4: Upgrade to serial AM1.
120823         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
120824         all uses changed.  Quote first arg of AC_DEFUN.
120825         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
120827         * m4/iconv.m4: Upgrade to serial AM2.
120828         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
120829         Add --with-libconv-prefix.
120830         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
120831         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
120832         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
120833         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
120834         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
120836         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
120837         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
120838         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
120839         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
120840         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
120841         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
120842         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
120843         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
120844         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
120846         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
120847         string.h any more.
120849         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
120850         not the default value.
120852         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
120853         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
120854         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
120855         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
120856         Also check for iswcntrl, used for wcwidth fallback.
120857         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
120858         to Autoconf 2.13.
120860 2001-08-03  Jim Meyering  <meyering@lucent.com>
120862         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
120863         as it was in the original.  Reported by Paul Eggert.
120865 2001-07-16  Jim Meyering  <meyering@lucent.com>
120867         * m4/gettimeofday.m4: New file.
120868         Prompted by a report from Bernhard Baehr.
120870 2001-07-15  Jim Meyering  <meyering@lucent.com>
120872         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
120873         stuff. Now it's in ../Makefile.cfg.
120875 2001-07-15  Jim Meyering  <meyering@lucent.com>
120877         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
120878         (BUILT_SOURCES): Add unlocked-io.h.
120879         (io_functions): Define.
120880         (unlocked-io.h): New rule.
120881         (DISTCLEANFILES): Add unlocked-io.h.
120882         (all-local): Depend on unlocked-io.h, to ensure it is created.
120884         * lib/unlocked-io.hin: New file
120886         * lib/regex.c: Update from glibc.
120888 2001-07-05  Jim Meyering  <meyering@lucent.com>
120890         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
120891         recommendation.
120892         (libfetish_a_SOURCES): Put all .h files here instead.
120893         Remove a thus-exposed (better checks in automake) duplicate and
120894         two unnecessary .h files.
120896 2001-07-04  Jim Meyering  <meyering@lucent.com>
120898         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
120899         that generates jm-glibc-io.m4 so that it doesn't trigger any make
120900         distcheck failure.
120902 2001-07-02  Jim Meyering  <meyering@lucent.com>
120904         The following changes were prompted by suggestions from Bruno Haible.
120906         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
120907         is now generated.
120908         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
120909         definition of EXTRA_DIST.
120910         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
120911         ensure that the generated file is created/updated whenever the list
120912         of $(unlocked_functions) is changed.
120913         (jm-glibc-io.m4): New rule.
120914         (unlocked-io.h): New rule -- currently unused.
120916 2001-06-24  Jim Meyering  <meyering@lucent.com>
120918         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
120919         unmatched right bracket, rather than kludging it with an extra,
120920         falsely-matching quote in a comment.  Patch by Akim Demaille.
120922 2001-06-11  Jim Meyering  <meyering@lucent.com>
120924         * lib/regex.c: Update from GNU libc.
120926 2001-05-27  Jim Meyering  <meyering@lucent.com>
120928         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
120929         Check for ut_type in struct utmp.
120931 2001-05-27  Jim Meyering  <meyering@lucent.com>
120933         * lib/readutmp.h (UT_TYPE): Define.
120935 2001-05-24  Jim Meyering  <meyering@lucent.com>
120937         * lib/argmatch.c: Include "quote.h".
120938         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
120939         quote function.  Reported by Göran Uddeborg.
120941 2001-05-22  Jim Meyering  <meyering@lucent.com>
120943         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
120944         now that we use the package-supplied version unconditionally.
120945         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
120947 2001-05-21  Jim Meyering  <meyering@lucent.com>
120949         * m4/regex.m4: Change a couple backticks to single quotes to avoid
120950         shell syntax errors.
120952 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
120954         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
120956 2001-05-20  Paul Eggert  <eggert@twinsun.com>
120958         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
120959         Don't bother to check library strftime, since
120960         we'll be using our own my_strftime function anyway.
120961         Define my_strftime instead of strftime.
120963 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
120965         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
120966         which is not yet declared.
120968 2001-05-15  Jim Meyering  <meyering@lucent.com>
120970         * m4/regex.m4: Use proper quoting so brackets appear in the test
120971         program.
120972         Reported by, and with help from, Bruno Haible.
120974 2001-05-13  Jim Meyering  <meyering@lucent.com>
120976         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
120977         undefined.
120979 2001-05-11  Paul Eggert  <eggert@twinsun.com>
120981         dirname code cleanup.  base_name now behaves more compatibly
120982         with POSIX basename when given file names that have trailing
120983         slashes, and similarly for dir_name.  Add new primitives
120984         base_len and dir_len.  Put the directory-name-related decls
120985         into dirname.h.
120987         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
120988         * lib/backupfile.c (base_name): Likewise.
120989         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
120990         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
120991         * lib/makepath.c (strip_trailing_slashes): Likewise.
120992         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
120993         ISSLASH): Likewise.
120994         * lib/rename.c (strip_trailing_slashes): Likewise.
120995         * lib/same.c (base_name): Likewise.
120996         * lib/stripslash.c (ISSLASH): Likewise.
120998         * lib/addext.c: Include <dirname.h> after size_t is defined.
120999         * lib/backupfile.c: Likewise.
121001         * lib/addext.c (addext): Use base_len to trim redundant
121002         trailing slashes instead of doing it ourselves.
121003         But do not trim the last slash if it is not redundant.
121005         * lib/backupfile.c (find_backup_file_name,
121006         max_backup_version): Use base_len instead of rolling it ourselves.
121007         Handle the case of "" and (on DOS) "C:" correctly.
121009         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
121010         needed. Include <string.h>, <dirname.h>.
121011         (base_name): Allow file names ending in slashes, other than names
121012         that are all slashes.  In this case, return the basename followed
121013         by the slashes.  This is more general, and can be used in places
121014         where the original base_name purposely had an assertion failure.
121015         (base_len): New function.
121017         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
121018         Do not include <assert.h>; no longer needed.
121019         Include xalloc.h.
121020         (memrchr): Remove decl.
121021         (dir_name_r): Remove.
121022         (dir_len): Renamed from dirlen.  All callers changed.
121023         Rewrite in terms of base_name, for simplicity and consistency.
121024         (dir_name): Never return NULL.  All callers changed.
121025         Do not include <stdlib.h> in test program; no longer needed.
121026         return 0; is fine for test program.
121028         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
121029         New macros.
121030         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
121032         * lib/path-concat.c (path_concat): Use base_len to compute
121033         base length, not strlen; this means we cannot rely on memcpy
121034         to null-terminate.
121036         * lib/same.c (STREQ): Remove.
121037         (same_name): Handle the case where the basename ends in trailing '/'.
121039         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
121040         a slash was stripped.  Do not strip the last slash after a
121041         file system prefix.
121043 2001-05-11  Paul Eggert  <eggert@twinsun.com>
121045         * lib/Makefile.am (libfetish_a_SOURCES):
121046         Add strftime.c, since we now compile it on all hosts.
121048         * lib/strftime.c (my_strftime):
121049         Define to nstrftime if emacs, but only if my_strftime is not defined.
121050         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
121051         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
121052         Add one more extra argument: a nanoseconds value.
121053         All uses changed.
121054         (ns): New macro.
121055         (my_strftime function): Add %N format.
121056         (emacs_strftimeu): Renamed from emacs_strftime,
121057         with extra ut argument.
121059 2001-05-09  Paul Eggert  <eggert@twinsun.com>
121061         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
121063 2001-04-21  Jim Meyering  <meyering@lucent.com>
121065         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
121066         doesn't interfere.
121068 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
121070         * m4/ftruncate.m4: Check for chsize.
121071         Link with ftruncate.o unconditionally if ftruncate is missing.
121072         This was required when cross-compiling to i586-mingw32msvc.
121074 2001-04-08  Jim Meyering  <meyering@lucent.com>
121076         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
121077         recomputed; that's necessary when the offset spans a DST transition.
121078         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
121080 2001-04-02  Jim Meyering  <meyering@lucent.com>
121082         * lib/regex.h, regex.c: Update from GNU libc.
121084 2001-03-24  Jim Meyering  <meyering@lucent.com>
121086         * m4/jm-macros.m4: Require autoconf-2.49d.
121088 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
121090         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
121092 2001-03-19  Paul Eggert  <eggert@twinsun.com>
121094         * lib/version-etc.c (version_etc_copyright): Update to 2001.
121096 2001-03-17  Jim Meyering  <meyering@lucent.com>
121098         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
121099         now that the version in autoconf is equivalent.
121100         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
121102         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
121103         Suggestion from Akim Demaille.
121105         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
121106         (jm_PREREQ_TEMPNAME): New function.
121108 2001-03-16  Paul Eggert  <eggert@twinsun.com>
121110         * lib/tempname.c (uint64_t): Define to uintmax_t if
121111         not defined, and if UINT64_MAX is not defined.
121112         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
121113         Reported by John David Anglin.
121115 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
121117         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
121118         resolve alias if codeset is empty.
121119         * lib/config.charset (BeOS): Use wildcard syntax.
121121 2001-03-13  Jim Meyering  <meyering@lucent.com>
121123         * lib/path-concat.c (path_concat)
121124         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
121125         concatenating e.g., `C:' and `foo'.
121126         From Bruno Haible.
121128 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
121130         * lib/localcharset.c (locale_charset): Don't use
121131         setlocale(LC_CTYPE,NULL). Don't return NULL.
121132         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
121134 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
121136         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
121137         support for DOS/DJGPP.
121139 2001-03-01  Paul Eggert  <eggert@twinsun.com>
121141         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
121142         lacks mkstemp.  Compile our own tempname.c if we compile our own
121143         mkstemp.c, as mkstemp relies on tempname.
121145 2001-03-01  Jim Meyering  <meyering@lucent.com>
121147         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
121148         AH_VERBATIM really does output its argument verbatim.
121150 2001-02-28  Paul Eggert  <eggert@twinsun.com>
121152         * lib/Makefile.am (libfetish_a_SOURCES):
121153         Add dup-safer.c, fopen-safer.c.
121154         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
121156         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
121157         * lib/unistd-safer.h: New files.
121159 2001-02-25  Paul Eggert  <eggert@twinsun.com>
121161         The mkstemp replacement is taken from glibc 2.2.2, with some
121162         portability fixes for use outside glibc, as follows:
121164         * lib/tempname.c (struct_stat64): New macro.
121165         (direxists, __gen_tempname): Use it.
121166         This avoids a portability problem with Solaris 8.
121168         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
121169         (<stddef.h>, <stdint.h>, <string.h>):
121170         Include only if STDC_HEADERS || _LIBC.
121171         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
121172         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
121173         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
121174         (__set_errno): Define this macro if <errno.h> doesn't.
121175         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
121176         Define these macros if <stdio.h> doesn't.
121177         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
121178         Define these macros if <sys/stat.h>
121179         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
121180         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
121181         __xstat64): Define if not _LIBC.
121182         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
121183         (__gen_tempname): Invoke gettimeofday only if
121184         HAVE_GETTIMEOFDAY || _LIBC;
121185         otherwise, fall back on plain "time".
121186         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
121188         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
121190         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
121192 2001-02-18  Paul Eggert  <eggert@twinsun.com>
121194         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
121196 2001-02-17  Paul Eggert  <eggert@twinsun.com>
121198         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
121199         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
121200         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
121201         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
121203 2001-02-17  Paul Eggert  <eggert@twinsun.com>
121205         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
121206         Remove workaround macros for hosts that have mbrtowc but not
121207         mbstate_t, as we now insist on proper declarations for both
121208         before using mbrtowc.
121210 2001-02-17  Jim Meyering  <meyering@lucent.com>
121212         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
121213         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
121214         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
121215         UnixWare 7.1.1.
121217         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
121218         rather than AC_CACHE_VAL.
121220 2001-02-17  Jim Meyering  <meyering@lucent.com>
121222         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
121223         around included file name.
121225         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
121227         * lib/strftime.c: Update from GNU libc (the only changes were to
121228         comments).
121230 2001-02-17  Jim Meyering  <meyering@lucent.com>
121232         * lib/regex.c: Update from libc.
121234 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
121236         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
121237         clash.
121239 2001-02-16  Paul Eggert  <eggert@twinsun.com>
121241         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
121242         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
121243         Reported by Mark Hounschell via Paul Eggert.
121245 2001-02-07  Jim Meyering  <meyering@lucent.com>
121247         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
121249 2001-02-05  Jim Meyering  <meyering@lucent.com>
121251         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
121252         it includes the patch required for `large file' support with at least
121253         HP-UX's 10.20 /bin/cc.
121255 2001-02-03  Jim Meyering  <meyering@lucent.com>
121257         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
121258         AS_IF, now that it works once again (mysteriously).
121259         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
121261 2001-01-30  Jim Meyering  <meyering@lucent.com>
121263         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
121264         * m4/chown.m4: Rename conftestchown to conftest.chown.
121265         * m4/rename.m4: s/conftestdir/conftest.d1/ and
121266         s/conftestdir2/conftest.d2/.
121267         * m4/utimes.m4: s/conftestdata/conftest.data/
121268         Inspired by Pavel Roskin's change in autoconf.
121270 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
121272         * lib/config.charset: Update for FreeBSD 4.2.
121274 2001-01-27  Jim Meyering  <meyering@lucent.com>
121276         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
121277         a use of AS_IF.
121278         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
121280 2001-01-26  Jim Meyering  <meyering@lucent.com>
121282         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
121283         quotearg.c includes it.
121285 2001-01-26  Jim Meyering  <meyering@lucent.com>
121287         * lib/quotearg.c: Include stddef.h.
121288         * lib/quote.c: Include stddef.h.
121289         Reported by Axel Kittenberger.
121291         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
121292         line in double quotes so that it evokes a better diagnostic.
121293         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
121294         Reported by Axel Kittenberger.
121296 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
121298         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
121299         as if it was a `charset'.
121301 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
121303         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
121304         has const.
121306 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
121308         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
121309         to avoid a warning.  Add back 'const' to inptr.
121311 2001-01-20  Jim Meyering  <meyering@lucent.com>
121313         Be sure that headers are checked before used in code compiled
121314         for the type checks.
121315         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
121316         In place of that, invoke jm_CHECK_ALL_TYPES.
121317         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
121318         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
121319         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
121320         The check for ssize_t was mistakenly run before the test for unistd.h.
121322         The configure-time check for stdbool.h was missing.
121323         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
121324         (jm_PREREQ_HASH): New function.
121326 2001-01-17  Jim Meyering  <meyering@lucent.com>
121328         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
121329         for autoconf-2.49c.
121330         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
121332 2001-01-16  Jim Meyering  <meyering@lucent.com>
121334         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
121335         From Bruno Haible.
121337 2001-01-14  Jim Meyering  <meyering@lucent.com>
121339         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
121340         foo and bar.  Create conftestdir/ in the script, not in the C code.
121341         Remove directories in the script, not in the C code.
121342         Remove conftestdir{,2} before trying to create the directory.
121343         Make the entire configure script fail if the mkdir fails.
121345 2001-01-14  Jim Meyering  <meyering@lucent.com>
121347         * lib/rename.c: New file.  From Volker Borchert.
121348         Include stdlib.h, string.h or strings.h, and xalloc.h.
121349         Use strip_trailing_slashes rather than open-coding it.
121351 2001-01-03  Paul Eggert  <eggert@twinsun.com>
121353         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
121355 2001-01-03  Jim Meyering  <meyering@lucent.com>
121357         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
121358         of local `inptr' to avoid warning with some system declarations of
121359         iconv.
121361 2001-01-02  Volker Borchert  <bt@teknon.de>
121363         * m4/rename.m4: New file.
121364         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
121366 2001-01-01  Jim Meyering  <meyering@lucent.com>
121368         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
121369         even on systems with utmpx.h.  It's necessary for the declaration of
121370         utmp's ut_user member.  Reported by Andreas Jaeger.
121372         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
121373         available. They are required for the declarations of getgrgid and
121374         getpwuid resp.
121375         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
121376         Reported by Andreas Jaeger.
121378 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
121380         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
121381         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
121382         so `make install' also works in VPATH builds.
121384 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
121386         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
121387         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
121388         can be used in subdirectories.
121390 2000-12-29  Paul Eggert  <eggert@twinsun.com>
121392         * lib/modechange.c: Do not assume that mode_t uses the
121393         traditional octal encoding.  E.g. "chmod 1 FOO" should set
121394         the other-execute bit of FOO even if S_IXOTH != 1.
121396         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
121397         WOTH, XOTH, ALLM): New macros.
121398         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
121399          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
121400         Use them.
121401         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
121402         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
121403         (mode_compile):
121404         No need to use uintmax_t; unsigned long is long enough.
121405         Don't bother to get suffix since we don't use it.
121407 2000-12-26  Jim Meyering  <meyering@lucent.com>
121409         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
121410         better with autoheader.
121412 2000-12-24  Jim Meyering  <meyering@lucent.com>
121414         * lib/hash.c (is_prime): Return explicit boolean values.
121415         (hash_get_first): Return NULL to appease Irix5.6's 89.
121416         Reported by Nelson Beebe.
121418 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
121420         * lib/localcharset.c (locale_charset): Add support for Win32.
121422 2000-12-18  Paul Eggert  <eggert@twinsun.com>
121424         * lib/physmem.h, lib/physmem.c: New files.
121426         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
121427         (noinst_HEADERS): Add physmem.h.
121429         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
121430         't' for compatibility with Solaris 8 sort.
121432 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
121434         * lib/config.charset: Add support for BeOS.
121436 2000-12-17  Jim Meyering  <meyering@lucent.com>
121438         * m4/dos.m4 (jm_AC_DOS): New file and macro.
121439         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
121441 2000-12-16  Jim Meyering  <meyering@lucent.com>
121443         This bug had a serious impact on chown: `chown N:M FILE' (for integer
121444         N and M) would have treated it like `chown N:N FILE'.
121446         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
121448 2000-12-16  Jim Meyering  <meyering@lucent.com>
121450         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
121451         SHELLS_FILE to a file name that's useful on djgpp systems.
121452         Include stdlib.h.
121453         (ADDITIONAL_DEFAULT_SHELLS): Define.
121454         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
121455         Based mostly on a patch from Prashant TR.
121457 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
121459         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
121460         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
121461         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
121463 2000-12-08  Andreas Schwab  <schwab@suse.de>
121465         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
121466         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
121468 2000-12-07  Jim Meyering  <meyering@lucent.com>
121470         * lib/stripslash.c (ISSLASH): Define.
121471         (strip_trailing_slashes): Use ISSLASH rather than comparing against
121472         `/'.
121473         From Prashant TR.
121475         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
121476         (dir_name_r): Declare this function as static.
121477         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
121478         manifest itself on a name containing a mix of slashes and
121479         backslashes.
121480         Make this function work with names starting with a DOS-style
121481         drive letter and colon prefix.
121482         (dir_name): Append `.' if necessary.
121483         Based mostly on patches from Prashant TR and Eli Zaretskii.
121485         * lib/dirname.h (dir_name_r): Remove prototype.
121487 2000-12-06  Paul Eggert  <eggert@twinsun.com>
121489         * m4/off_t-format.m4: Remove this file.
121490         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
121492 2000-12-06  Jim Meyering  <meyering@lucent.com>
121494         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
121495         replacement strtoull, we may well need the replacement strtoul, too.
121496         Check for declarations of strtoul and strtoull.
121497         Check for strtol.  Mainly as a cue to cause automake to include
121498         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
121499         Check for limits.h -- strtol.c needs it.
121501 2000-12-05  Jim Meyering  <meyering@lucent.com>
121503         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
121505 2000-12-04  Jim Meyering  <meyering@lucent.com>
121507         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
121508         Also include memory.h, stdlib.h, unistd.h if appropriate.
121509         Reported by Andreas Jaeger (conflicting declaration of malloc).
121511 2000-12-02  Jim Meyering  <meyering@lucent.com>
121513         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
121514         * m4/jm-macros.m4 (jm_MACROS): require it.
121516 2000-12-02  Jim Meyering  <meyering@lucent.com>
121518         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
121520 2000-12-01  Paul Eggert  <eggert@twinsun.com>
121522         * lib/memrchr.c: Include <config.h> before any system include file.
121524 2000-11-30  Jim Meyering  <meyering@lucent.com>
121526         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
121528 2000-11-30  Jim Meyering  <meyering@lucent.com>
121530         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
121532 2000-11-29  Paul Eggert  <eggert@twinsun.com>
121534         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
121536 2000-11-26  Jim Meyering  <meyering@lucent.com>
121538         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
121540 2000-11-22  Paul Eggert  <eggert@twinsun.com>
121542         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
121543         size of (size_t) -1; it's not portable.
121545 2000-11-17  Jim Meyering  <meyering@lucent.com>
121547         * lib/strstr.c: Update from GNU libc.
121549 2000-11-17  Akim Demaille  <akim@epita.fr>
121551         * lib/obstack.h: Formatting changes.
121552         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
121553         prevent type checking.
121554         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
121555         cast the value to (void *): assigning a `foo *' to a `void *'
121556         variable is valid.
121557         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
121559 2000-11-16  Jim Meyering  <meyering@lucent.com>
121561         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
121563 2000-11-11  Jim Meyering  <meyering@lucent.com>
121565         * lib/error.c: Add a couple #includes, merging from GNU libc version.
121567 2000-11-10  Jim Meyering  <meyering@lucent.com>
121569         * lib/obstack.h: Update from GNU libc.
121570         * lib/obstack.c: Likewise.
121572 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
121574         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
121576 2000-11-06  Paul Eggert  <eggert@twinsun.com>
121578         * lib/getusershell.c (setusershell): Use rewind rather than
121579         fseek/fseeko, to avoid configuration hassles with fseeko.
121580         Don't bother opening SHELLS_FILE if shellstream is NULL;
121581         it's not necessary.
121583 2000-11-05  Jim Meyering  <meyering@lucent.com>
121585         * lib/makepath.h (make_dir): Declare.
121586         * lib/makepath.c (make_dir): Remove `static' attribute.
121587         Tweak a comment.
121589 2000-11-04  Jim Meyering  <meyering@lucent.com>
121591         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
121593 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
121595         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
121596         last one in a bucket, advance to the next bucket.
121598 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
121600         * lib/fnmatch.c: Do not comment out all the code if we are using
121601         the GNU C library, because in some cases we are replacing buggy
121602         code in the GNU C library itself.
121604 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
121606         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
121607         (regex_compile): Catch bogus \(\1\).
121609 2000-10-30  Paul Eggert  <eggert@twinsun.com>
121611         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
121612         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
121613         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
121615 2000-10-30  Paul Eggert  <eggert@twinsun.com>
121617         * lib/error.h, getline.h, modechange.h:
121618         Remove "2000" from Copyright line, as the file hasn't been
121619         changed this year other than in the copyright notice.
121621         * lib/xalloc.h: Add "2000" to Copyright line, as this file
121622         was changed this year.
121624 2000-10-29  Jim Meyering  <meyering@lucent.com>
121626         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
121627         renaming.
121628         * m4/ls-mntd-fs.m4: Likewise
121630 2000-10-29  Jim Meyering  <meyering@lucent.com>
121632         * lib/xstat.in: Fix grammar in comment.
121634 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
121636         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
121637         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
121638         doesn't define __restrict_arr.
121640 2000-10-28  Jim Meyering  <meyering@lucent.com>
121642         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
121643         (jm_PREREQ_MEMCHR): New function.
121645 2000-10-28  Jim Meyering  <meyering@lucent.com>
121647         * lib/memchr.c: Update from libc.
121648         Adjust for portability:
121649         [HAVE_STDLIB_H]: Include stdlib.h.
121650         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
121651         Undef __memchr, too.
121652         [!weak_alias]: Define __memchr to memchr.
121654         * lib/regex.c: Update from libc.
121655         * lib/regex.h: Likewise.
121656         * lib/getopt1.c: Likewise.
121657         * lib/memcmp.c: Likewise.
121659         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
121660         Avoid using fseek, when possible -- it's broken by design.
121661         Patch by Ulrich Drepper.
121663 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
121665         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
121666         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
121667         Giving in to popular pressure to shut up the compiler with casts.
121669 2000-10-26  Jim Meyering  <meyering@lucent.com>
121671         * lib/strftime.c: Update from libc.
121673 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
121675         * regex.c: More `unsigned char' -> `re_char' changes.
121676         Also change several `int' into `re_wchar_t'.
121677         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
121678         (PUSH_FAILURE_POINTER): Don't cast any more.
121679         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
121680         We want GCC to complain, since this piece of code makes
121681         re_match non-reentrant, which *should* be fixed.
121682         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
121683         (EXTEND_BUFFER): Use RETALLOC.
121684         (SET_LIST_BIT): Don't cast.
121685         (re_wchar_t): New type.
121686         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
121687         that those two functions will always properly return.
121688         (IMMEDIATE_QUIT_CHECK): Cast to void.
121689         (analyse_first): Use recursion rather than an explicit stack.
121690         (re_compile_fastmap): Can't fail anymore.
121691         (re_search_2): Don't check re_compile_fastmap for failure.
121692         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
121693         Now also sets the new value (passed in a new argument).
121694         (re_match_2_internal): Use it.
121695         Also, use a new var `reg' of type size_t when looping through regs
121696         rather than reuse the inappropriate `mcnt'.
121698 2000-10-25  Jim Meyering  <meyering@lucent.com>
121700         * lib/obstack.c: Update from libc.
121702 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
121704         * regex.c (regex_compile): Change the way of handling a range from
121705         a char less than 256 to a char not less than 256.
121707 2000-10-24  Andrew Innes  <andrewi@gnu.org>
121709         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
121710         NT-Emacs only.
121711         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
121712         so that re_search functions only quit when callers expect them to.
121714 2000-10-23  Jim Meyering  <meyering@lucent.com>
121716         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
121717         wrong.  That set_locale call must not have any side effects.
121718         From Paul Eggert.
121720 2000-10-22  Jim Meyering  <meyering@lucent.com>
121722         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
121723         [CYCLIC]: Remove now-unused definition.
121725         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
121726         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
121727         Suggestion from Ulrich Drepper.
121729 2000-10-21  Jim Meyering  <meyering@lucent.com>
121731         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
121732         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
121733         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
121735 2000-10-21  Jim Meyering  <meyering@lucent.com>
121737         * lib/dirname.c (memrchr): Declare if necessary.
121738         (dir_name): Remove the restriction that there be no
121739         trailing slashes.  Now, this code skips past them, effectively
121740         ignoring them.
121741         [TEST_DIRNAME] (main): New unit tests.
121743         * lib/memrchr.c: New file from GNU libc.
121744         Undef __memrchr, too.
121745         [!weak_alias]: Define __memrchr to memrchr.
121746         Guard weak_alias use with `#ifdef weak_alias'.
121748 2000-10-21  Jim Meyering  <meyering@lucent.com>
121750         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
121751         (dir_name): Use dir_name_r.
121752         * lib/dirname.h (dir_name_r): Declare it.
121754 2000-10-17  Jim Meyering  <meyering@lucent.com>
121756         * lib/quote.h (PARAMS): Define and use.
121757         Reported by Akim Demaille.
121759         * lib/getopt.c: Update from libc.
121761 2000-10-16  Jim Meyering  <meyering@lucent.com>
121763         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
121764         setlocale.
121765         From Jan Fedak.
121767 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
121769         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
121771 2000-09-25  Jim Meyering  <meyering@lucent.com>
121773         * lib/md5.h (rol): Define (from GnuPG).
121775         * lib/sha.c: Give credit (GnuPG) where due.
121776         (M): Use rol rather than open-coding it.
121777         Add a FIXME comment.
121779 2000-09-21  Jim Meyering  <meyering@lucent.com>
121781         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
121782         Reported by Michael Stone.
121784 2000-09-20  Jim Meyering  <meyering@lucent.com>
121786         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
121787         (noinst_HEADERS): Add sha.h.
121788         Based on code from Scott G. Miller and from GnuPG.
121790 2000-09-18  Jim Meyering  <meyering@lucent.com>
121792         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
121793         LIBS. Otherwise, everyone ends up linking with -lelf for some
121794         configurations.
121795         Reported by Mike Stone.
121797 2000-09-15  Jim Meyering  <meyering@lucent.com>
121799         * lib/regex.c: Update from libc.
121801 2000-09-10  Jim Meyering  <meyering@lucent.com>
121803         * lib/getopt.c (_getopt_internal): Update from glibc.
121805 2000-09-09  Jim Meyering  <meyering@lucent.com>
121807         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
121808         think it should be used as a general replacement for isascii.
121809         * lib/fnmatch.c: Likewise.
121810         * lib/mbswidth.c: Likewise
121811         * lib/regex.c: Likewise.
121813         Don't use atoi.
121814         * lib/userspec.c: Include sys/param.h and limits.h.
121815         Include xstrtol.h.
121816         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
121817         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
121818         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
121819         UID, GID.  Check range.
121821 2000-09-06  Jim Meyering  <meyering@lucent.com>
121823         * lib/getopt.c (_getopt_internal): Update from glibc.
121825 2000-08-30  Jim Meyering  <meyering@lucent.com>
121827         * lib/strftime.c: Merge in changes from GNU libc.
121829 2000-08-26  Jim Meyering  <meyering@lucent.com>
121831         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
121832         * m4/fpending.m4: New file.
121834 2000-08-26  Jim Meyering  <meyering@lucent.com>
121836         * lib/closeout.c: Include "__fpending.h".
121837         (close_stdout_status): Return right away if there's nothing to flush.
121839         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
121840         * lib/__fpending.c: New file.
121841         * lib/__fpending.h: New file.
121843 2000-08-20  Jim Meyering  <meyering@lucent.com>
121845         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
121846         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
121847         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
121849 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
121851         Improve fileutils installation on systems where running
121852         programs (like install) can't be unlinked.
121853         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
121854         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
121856 2000-08-07  Paul Eggert  <eggert@twinsun.com>
121858         Standardize on "memory exhausted" instead of "Memory exhausted"
121859         or "virtual memory exhausted".
121860         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
121861         "virtual memory exhausted".
121862         * lib/same.c (same_name): Invoke xalloc_die instead of printing
121863         our own message.
121864         * lib/userspec.c (parse_user_spec): Likewise.
121865         * lib/bumpalloc.h: comment fix
121866         * lib/same.c, userspec.c: Include xalloc.h.
121868         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
121869         not char *const and pointing to a constant array.
121870         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
121871         (xrealloc): Comment fix.
121873         * lib/userspec.c (parse_user_spec):
121874         Don't translate a message until just before returning,
121875         to avoid unnecessary translation.
121877 2000-08-07  Jim Meyering  <meyering@lucent.com>
121879         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
121880         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
121881         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
121882         getgroups.c, gethostname.c, getopt.h, group-member.c,
121883         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
121884         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
121885         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
121886         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
121887         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
121888         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
121889         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
121890         yesno.c: Back out Copyright date changes for each file with no change
121891         this year.  This eases coordination with other programs using the same
121892         source code modules.  From Paul Eggert.
121894 2000-08-06  Paul Eggert  <eggert@twinsun.com>
121896         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
121897         not char, for compatibility with glibc 2.1.3 strftime.c.
121899 2000-08-03  Greg McGary  <greg@mcgary.org>
121901         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
121902         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
121903         (EXTEND_BUFFER): Use them.
121905 2000-08-01  Jim Meyering  <meyering@lucent.com>
121907         * lib/dirname.c (ISSLASH): Define.
121908         (BACKSLASH_IS_PATH_SEPARATOR): Define.
121909         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
121910         both `\' and `/' may be use as path separators.
121911         Based on a patch from Prashant TR.
121913 2000-07-31  Paul Eggert  <eggert@twinsun.com>
121915         * lib/quotearg.c (quotearg_n_options): Don't make the initial
121916         slot vector a constant, since it might get modified.
121918 2000-07-31  Jim Meyering  <meyering@lucent.com>
121920         * lib/xmalloc.c: Use `virtual memory exhausted', not
121921         `Memory exhausted'.
121922         * lib/obstack.c (print_and_abort): Likewise.
121924 2000-07-30  Paul Eggert  <eggert@twinsun.com>
121926         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
121927         buffer, so that the caller can always quote one small
121928         component of a "memory exhausted" message in slot 0.
121929         From a suggestion by Jim Meyering.
121931 2000-07-30  Jim Meyering  <meyering@lucent.com>
121933         * lib/makepath.c (make_path): Quote the other instance, too.
121935         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
121936         (STATIC_BUF_SIZE): Define.
121937         (quotearg_n_options): Use only statically allocated storage when
121938         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
121939         than STATIC_BUF_SIZE.
121941 2000-07-29  Jim Meyering  <meyering@lucent.com>
121943         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
121944         * lib/dirname.c (dir_name): Likewise.
121946         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
121947         `/'.
121949         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
121950         (dir_name): Assert that there are no trailing slashes.
121952 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
121954         * lib/mbswidth.h (mbswidth): Add a flags argument.
121955         (mbswidth): New declaration.
121956         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
121957         * lib/mbswidth.c (mbswidth): Add a flags argument.
121958         (mbsnwidth): New function.
121960 2000-07-24  Jim Meyering  <meyering@lucent.com>
121962         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
121964 2000-07-23  Paul Eggert  <eggert@twinsun.com>
121966         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
121968 2000-07-23  Paul Eggert  <eggert@twinsun.com>
121970         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
121971         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
121972         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
121973         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
121974         invoke multibyte primitives.
121976 2000-07-23  Paul Eggert  <eggert@twinsun.com>
121978         * lib/quotearg.c:
121979         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
121980         so that mbstate_t is always defined.
121982         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
121983         be 1 in at least one GCC installation, and this configuration
121984         error is likely to be common.  Ignoring MB_LEN_MAX hurts
121985         performance on hosts that have mbrtowc but have only unibyte
121986         locales, but I assume these hosts are rare.
121988 2000-07-23  Paul Eggert  <eggert@twinsun.com>
121990         * lib/mbswidth.c (_XOPEN_SOURCE):
121991         Don't define; this causes problems on Solaris 7.
121992         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
121994 2000-07-23  Jim Meyering  <meyering@lucent.com>
121996         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
121997         too: getgrgid, getpwuid, getuid.
121999 2000-07-23  Jim Meyering  <meyering@lucent.com>
122001         * lib/basename.c (base_name): Add an assertion.
122003 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
122005         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
122006         shadow its mbsinit function.
122008 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
122010         * lib/mbswidth.h: New file.
122011         * lib/mbswidth.c: New file.
122012         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
122013         (noinst_HEADERS): Add mbswidth.h.
122015 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
122017         * lib/config.charset: Add support for FreeBSD. Improve support for
122018         HP-UX and IRIX 6.
122020 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
122022         * m4/mbswidth.m4: New file.
122023         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
122025 2000-07-15  Jim Meyering  <meyering@lucent.com>
122027         * lib/makepath.c: Include quote.h.
122028         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
122029         corresponding argument in a `quote (...)' call.
122030         Give better diagnostics.
122032         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
122033         (noinst_HEADERS): Add quote.h.
122035         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
122036         from tar's src/misc.c.
122037         * lib/quote.h: New file.  Prototypes for same.
122039 2000-07-14  Paul Eggert  <eggert@twinsun.com>
122041         From a suggestion by Bruno Haible.
122042         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
122043         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
122044         to decide whether to define the BeOS workaround macro;
122045         this adjusts to the change to AC_MBSTATE_T.
122047 2000-07-14  Jim Meyering  <meyering@lucent.com>
122049         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
122050         jm_AC_TYPE_UINTMAX_T.
122052 2000-07-13  Paul Eggert  <eggert@twinsun.com>
122054         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
122056         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
122057         quotearg_buffer_restyled): Add support for
122058         clocale_quoting_style.  Undo previous change to
122059         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
122060         and "{RIGHT QUOTATION MARK}" msgids.
122062 2000-07-10  Paul Eggert  <eggert@twinsun.com>
122064         From a suggestion by Bruno Haible.
122065         * m4/mbstate_t.m4 (AC_MBSTATE_T):
122066         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
122067         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
122068         and mbstate_t, to a single-part test that simply defines mbstate_t.
122069         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
122070         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
122072 2000-07-10  Jim Meyering  <meyering@lucent.com>
122074         * m4/strerror_r.m4: Mirror the correction made in autoconf.
122076         * m4/gnu-source.m4: Output to confdefs.h directly.
122077         Suggestion from Akim Demaille.
122079 2000-07-09  Paul Eggert  <eggert@twinsun.com>
122081         The old behavior of quoting `like this' doesn't look good with
122082         newer, ISO-style fonts.  See:
122083         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
122085         Instead, quote "like this" by default.  Let the translator
122086         tailor the locale-specific quoting behavior by providing
122087         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
122089         * lib/quotearg.c (N_): New macro.
122090         (gettext_default): New function.
122091         (quotearg_buffer_restyled): Use
122092         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
122093         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
122095 2000-07-09  Jim Meyering  <meyering@lucent.com>
122097         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
122098         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
122100         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
122101         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
122103 2000-07-09  Jim Meyering  <meyering@lucent.com>
122105         * lib/Most files: Update copyright dates to include 2000.
122107 2000-07-08  Jim Meyering  <meyering@lucent.com>
122109         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
122110         if not defined.
122111         (xgethostname): Remove now-unnecessary #ifdef.
122112         Move declaration of `err' into loop where it's used.
122114 2000-07-05  Paul Eggert  <eggert@twinsun.com>
122115         and Bruno Haible  <haible@clisp.cons.org>
122117         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
122118         only if the test for an object-type mbstate_t fails.  This
122119         prevents us from mistakenly reporting that mbstate_t is a
122120         system object type after we "#define mbstate_t int" to work
122121         around its lack.
122123 2000-07-05  Paul Eggert  <eggert@twinsun.com>
122124         and Bruno Haible  <haible@clisp.cons.org>
122126         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
122128 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
122130         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
122131         to strerror_r.
122132         Include <ctype.h> for use of isalpha.
122134 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
122136         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
122137         by allocating a larger buffer. Test the gethostname return value for
122138         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
122139         returns an error and ENAMETOOLONG isn't defined.
122141 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
122143         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
122144         dimension.
122146 2000-07-04  Jim Meyering  <meyering@lucent.com>
122148         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
122149         of the deprecated AC_CHECKING.
122151 2000-07-04  Jim Meyering  <meyering@lucent.com>
122153         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
122154         Reported by Bruno Haible.
122156 2000-07-04  Jim Meyering  <meyering@lucent.com>
122158         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
122159         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
122160         lacks mbrtowc.
122162 2000-07-03  Paul Eggert  <eggert@twinsun.com>
122164         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
122165         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
122167 2000-07-03  Paul Eggert  <eggert@twinsun.com>
122168         and Bruno Haible  <haible@clisp.cons.org>
122170         * lib/quotearg.c (mbrtowc):
122171         Assign to *pwc, and return 1 only if result is nonzero.
122172         (iswprint): Use ISPRINT when substituting our own mbrtowc.
122174 2000-07-03  Jim Meyering  <meyering@lucent.com>
122176         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
122178 2000-07-03  Jim Meyering  <meyering@lucent.com>
122180         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
122181         This is necessary to get a definition of e.g., UTMP_FILE on
122182         HP-UX 10.20.
122183         From Bob Proulx.
122185 2000-07-02  Jim Meyering  <meyering@lucent.com>
122187         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
122189         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
122190         AC_LIBOBJ(function_name).
122191         * m4/chown.m4: Likewise.
122192         * m4/fnmatch.m4: Likewise.
122193         * m4/ftruncate.m4: Likewise.
122194         * m4/getgroups.m4: Likewise.
122195         * m4/getline.m4: Likewise.
122196         * m4/group-member.m4: Likewise.
122197         * m4/jm-macros.m4: Likewise.
122198         * m4/lstat.m4: Likewise.
122199         * m4/malloc.m4: Likewise.
122200         * m4/memcmp.m4: Likewise.
122201         * m4/nanosleep.m4: Likewise.
122202         * m4/putenv.m4: Likewise.
122203         * m4/realloc.m4: Likewise.
122204         * m4/regex.m4: Likewise.
122205         * m4/stat.m4: Likewise.
122206         * m4/strftime.m4: Likewise.
122208 2000-07-02  Jim Meyering  <meyering@lucent.com>
122210         * lib/quotearg.c (mbstate_t): Don't define here.
122212 2000-07-02  Jim Meyering  <meyering@lucent.com>
122214         * lib/nanosleep.c (SIGCONT): Define if not already defined.
122216 2000-07-01  Jim Meyering  <meyering@lucent.com>
122218         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
122220 2000-07-01  Jim Meyering  <meyering@lucent.com>
122222         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
122223         problem.
122225 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
122227         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
122228         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
122230 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
122232         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
122233         per change in ../m4/ls-mntd-fs.m4.
122234         (read_filesystem_list): Ignore symbolic links.
122236 2000-06-29  Jim Meyering  <meyering@lucent.com>
122238         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
122239         for declaration of strcmp.
122241         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
122243         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
122244         Avoid warning by casting result to `char *' to remove `const'.
122246 2000-06-28  Jim Meyering  <meyering@lucent.com>
122248         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
122249         included by quotearg.c, for which we perform this test.  From
122250         Bruno Haible.
122252 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
122254         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
122255         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
122256         <utmpx.h> exists, put readutmp.o into LIBOBJS.
122258 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
122260         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
122262 2000-06-26  Paul Eggert  <eggert@twinsun.com>
122264         savedir now sets errno on failure and invokes xmalloc to get memory.
122265         Fix a couple of other minor bugs while we're at it.
122267         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
122268         (NAMLEN): Remove macro.
122269         (malloc, realloc): Remove decls.
122270         (stpcpy): Likewise.
122271         ("xalloc.h"): Include.
122272         (NAME_SIZE_DEFAULT): New macro.
122273         (savedir): Use xmalloc / xrealloc to allocate memory.
122274         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
122275         Skip "" directory entries.
122276         Use strlen to calculate directory entry length, since the old method
122277         is rarely used these days and isn't worth supporting.
122278         Don't use a pointer after freeing it.
122279         Check for integer overflow when calculating allocation size.
122280         Use memcpy to copy entries, instead of stpcpy.
122281         Set errno properly when returning NULL.
122282         Check for readdir error.
122284 2000-06-26  Jim Meyering  <meyering@lucent.com>
122286         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
122288 2000-06-25  Jim Meyering  <meyering@lucent.com>
122290         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
122291         Linux header bug when _XOPEN_SOURCE is defined to 500.
122293 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
122295         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
122296         deficiency.
122298 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
122300         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
122301         Include xalloc.h.
122302         Don't include <stdlib.h>.  Don't declare malloc, realloc.
122304 2000-06-24  Jim Meyering  <meyering@lucent.com>
122306         * m4/strerror_r.m4: Revive this file -- to try out an experimental
122307         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
122308         for which strerror does return char*, but which lacks a conveniently
122309         accessible declaration of the function.  If the compile-test says
122310         strerror_r doesn't work, then resort to a `run'-test that works on
122311         BeOS and segfaults on DEC Unix.
122313 2000-06-24  Jim Meyering  <meyering@lucent.com>
122315         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
122317 2000-06-23  Paul Eggert  <eggert@twinsun.com>
122319         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
122320         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
122322 2000-06-23  Paul Eggert  <eggert@twinsun.com>
122324         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
122325         (mbrtowc, mbstate_t): Define substitutes if
122326         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
122327         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
122328         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
122330 2000-06-23  Jim Meyering  <meyering@lucent.com>
122332         * m4/afs.m4: Add missing AC_MSG_RESULT.
122333         Reported by Bruno Haible.
122335         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
122336         Suggestion from Bruno Haible.
122338 2000-06-23  Jim Meyering  <meyering@lucent.com>
122340         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
122342 2000-06-21  Jim Meyering  <meyering@lucent.com>
122344         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
122346 2000-06-21  Jim Meyering  <meyering@lucent.com>
122348         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
122349         (noinst_HEADERS): Add getstr.h.
122351         * lib/getline.c (getstr): Move into a separate file.
122352         * lib/getstr.c (getstr): New file, extracted from getline.c, with
122353         the following changes: new parameter, delim2; both delim[12]
122354         parameters have type `int', not `char'.  The latter would lose
122355         with 8-bit delimiters.
122356         * lib/getstr.h: New file.
122358 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
122360         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
122361         than 1024, return a memory chunk of least possible size, instead
122362         of size PATH_MAX + 2. In the loop, increment the size proportionally.
122363         Use free/xmalloc instead of xrealloc to avoid copying for very long
122364         paths.
122366 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
122368         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
122369         the empty string.
122371 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
122373         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
122374         address, not strdup.  Include <stdlib.h> and don't declare free().
122376 2000-06-19  Jim Meyering  <meyering@lucent.com>
122378         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
122380 2000-06-18  Jim Meyering  <meyering@lucent.com>
122382         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
122384         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
122385         `checking whether...' message to be consistent with that of the
122386         lstat test.
122388 2000-06-18  Jim Meyering  <meyering@lucent.com>
122390         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
122391         Besides, these days every porting target provides a mkdir function.
122393         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
122394         needed. (this snippet comes from src/system.h).
122396 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
122398         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
122400 2000-06-15  Paul Eggert  <eggert@twinsun.com>
122402         * lib/human.c (adjust_value): New function.
122403         (human_readable_inexact): Apply rounding style even when
122404         printing approximate values.
122406 2000-06-14  Paul Eggert  <eggert@twinsun.com>
122408         * lib/human.c (human_readable_inexact): Allow an input block
122409         size that is not a multiple of the output block size, and vice versa.
122410         Reported by Piergiorgio Sartor.
122412 2000-06-14  Paul Eggert  <eggert@twinsun.com>
122414         * lib/getdate.y (get_date): Apply relative times after time
122415         zone indicator, not before.  Reported by Todd A. Jacobs.
122417 2000-06-13  Jim Meyering  <meyering@lucent.com>
122419         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
122421         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
122423 2000-06-12  Paul Eggert  <eggert@twinsun.com>
122425         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
122427 2000-06-12  Jim Meyering  <meyering@lucent.com>
122429         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
122430         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
122431         optional argument.
122432         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
122433         the optional argument, `lib'.
122435 2000-06-08  Jim Meyering  <meyering@lucent.com>
122437         * m4/largefile.m4: Remove file (now that it's part of autoconf).
122439 2000-06-04  Paul Eggert  <eggert@twinsun.com>
122441         Rewrite largefile configuration so that we don't need to run
122442         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
122443         AC_CANONICAL_HOST in configure.in -- jmm]
122445         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
122446         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
122447         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
122448         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
122449         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
122450         All uses changed.
122451         Instead of inspecting the output of getconf, try to compile the
122452         test program without and with the macro definition.
122453         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
122454         for getconf.  Instead, check for the needed flags by compiling
122455         test programs.
122457 2000-06-04  Paul Eggert  <eggert@twinsun.com>
122459         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
122461 2000-06-04  Jim Meyering  <meyering@lucent.com>
122463         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
122464         SunOS 4.1.4 for which gid_t is an unsigned type.
122466 2000-06-03  Jim Meyering  <meyering@lucent.com>
122468         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
122469         now that autoconf requires that.
122471         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
122472         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
122473         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
122475 2000-06-03  Jim Meyering  <meyering@lucent.com>
122477         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
122479 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
122481         * m4/glibc21.m4: New file.
122482         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
122484 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
122486         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
122487         newer, don't install charset.alias.
122488         * lib/config.charset: Change the Linux/glibc rules so they become empty
122489         on glibc-2.1 or newer.
122491 2000-06-02  Jim Meyering  <meyering@lucent.com>
122493         * lib/mountlist.c: Back out last change.  Instead, do this...
122494         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
122495         me_dummy member using the same `ignore'-testing code.
122496         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
122497         fs_type strings.
122498         From Mark D. Roth.
122500 2000-05-29  Jim Meyering  <meyering@lucent.com>
122502         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
122503         mounts with the `ignore' attribute.  Based on a patch from
122504         Mark D. Roth.
122506 2000-05-28  Jim Meyering  <meyering@lucent.com>
122508         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
122509         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
122510         * m4/stat.m4: Likewise.
122511         * m4/lstat.m4: Likewise.
122512         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
122514         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
122515         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
122517 2000-05-26  Jim Meyering  <meyering@lucent.com>
122519         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
122521 2000-05-24  Jim Meyering  <meyering@lucent.com>
122523         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
122524         autoconf requires that.
122525         * m4/lib-check.m4: Likewise.
122526         * m4/jm-macros.m4: Likewise.
122527         * m4/strftime.m4: Likewise.
122529         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
122530         AC_CHECK_DECLS, now that autoconf requires that.
122532 2000-05-22  Jim Meyering  <meyering@lucent.com>
122534         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
122535         * m4/lstat.m4: Likewise.
122537 2000-05-22  Jim Meyering  <meyering@lucent.com>
122539         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
122541 2000-05-20  Jim Meyering  <meyering@lucent.com>
122543         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
122544         (jm_PREREQ): Use it.
122546 2000-05-18  Jim Meyering  <meyering@lucent.com>
122548         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
122549         back, too, since it may have been modified by allocate_entry.
122550         (hash_delete): Rewrite to use neither the assignment operator
122551         nor the comma operator in an if-expression.
122553 2000-05-15  Paul Eggert  <eggert@twinsun.com>
122555         * lib/closeout.c:
122556         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
122557         Remove; no longer needed.
122558         "quotearg.h": Add include.
122559         (file_name): Do not bother to explicitly initialize to NULL; it's less
122560         efficient on some hosts.
122561         (close_stdout_status): Remove test as to whether stdout was already
122562         closed; it breaks for the case "echo x | sort >&-".
122563         Quote file name colons.
122564         Do not assume that _("write error") lacks format strings.
122566 2000-05-15  Jim Meyering  <meyering@lucent.com>
122568         * lib/version-etc.c (version_etc_copyright): Update the copyright
122569         string used in all --version output.
122571 2000-05-14  Jim Meyering  <meyering@lucent.com>
122573         * lib/closeout.c (close_stdout_set_file_name): New function.
122574         (close_stdout_status): Use new file-scoped global.
122575         Return right away if fstat says the stdout file descriptor is invalid.
122576         * lib/closeout.h (close_stdout_set_file_name): Declare.
122578 2000-05-10  Jim Meyering  <meyering@lucent.com>
122580         * lib/closeout.c [default_exit_status]: New file-scoped variable.
122581         (close_stdout_set_status): New function.
122582         * lib/closeout.h (close_stdout_set_status): Declare.
122584 2000-05-09  Jim Meyering  <meyering@lucent.com>
122586         * m4/gettext.m4: Rename this...
122587         * m4/libintl.m4: ...to this.
122589 2000-05-08  Jim Meyering  <meyering@lucent.com>
122591         * lib/long-options.c: Don't include closeout.h.
122592         (parse_long_options): Don't call close_stdout for --version.
122594 2000-05-06  Paul Eggert  <eggert@twinsun.com>
122596         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
122597         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
122598         2.1.3 bug.  This avoids a clash when files like regex.c define
122599         _GNU_SOURCE.
122601 2000-05-06  Jim Meyering  <meyering@lucent.com>
122603         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
122604         (AC_REPLACE_FUNCS): Add strnlen.
122606         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
122607         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
122609         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
122610         AC_SEARCH_LIBS call for nanosleep.
122611         (LIB_NANOSLEEP): Set and AC_SUBST.
122613 2000-05-06  Jim Meyering  <meyering@lucent.com>
122615         * lib/strnlen.c: Undefine __strnlen and strnlen.
122616         [!weak_alias]: Define __strnlen to strnlen.
122618         * lib/atexit.c: New file, from libiberty.
122620 2000-05-06  Jim Meyering  <meyering@lucent.com>
122622         * lib/closeout.c (close_stdout_status): Also check for errors on the
122623         stderr stream.
122625 2000-05-05  Jim Meyering  <meyering@lucent.com>
122627         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
122628         AC_SEARCH_LIBS call for clock_gettime.
122629         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
122631         * m4/search-libs.m4: Update from autoconf.
122633         su doesn't work on Solaris 2.6.
122634         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
122635         <shadow.h>.  Reported by Dragos Harabor.
122637 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
122639         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
122640         memcpy instead of xmalloc, xrealloc, path_concat.
122641         (locale_charset): Treat empty environment variables as absent.
122642         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
122644 2000-05-04  Jim Meyering  <meyering@lucent.com>
122646         * lib/getopt.c: Update from glibc.
122647         * lib/obstack.c: Likewise.
122648         * lib/obstack.h: Likewise.
122649         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
122650         file
122652         * lib/regex.h: Likewise.
122653         * lib/strndup.c: Likewise.
122654         * lib/strnlen.c: New file, from glibc.
122656 2000-05-03  Jim Meyering  <meyering@lucent.com>
122658         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
122660 2000-05-02  Paul Eggert  <eggert@twinsun.com>
122662         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
122663         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
122664         compile-time test, rather than inspecting host and OS, to
122665         decide whether to define _LARGEFILE_SOURCE.
122667 2000-05-01  Jim Meyering  <meyering@lucent.com>
122669         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
122671         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
122672         Based on a patch from Bruno Haible.
122674 2000-05-01  Jim Meyering  <meyering@lucent.com>
122676         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
122678 2000-04-29  Jim Meyering  <meyering@lucent.com>
122680         * lib/path-concat.c: Declare strdup only if it's not defined.
122681         * lib/canon-host.c: Likewise.
122683 2000-04-28  Jim Meyering  <meyering@lucent.com>
122685         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
122686         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
122687         is included first, then limits.h is included by locale.h by libintl.h.
122688         From John David Anglin.
122690 2000-04-25  Jim Meyering  <meyering@lucent.com>
122692         * lib/makepath.c (S_IRWXUGO): Define.
122693         (make_path): Always perform explicit chmod if MODE specifies any
122694         of the `special' permission bits.  Prompted by a bug report against
122695         install from Mate Wierdl and Joost van Baal.
122697 2000-04-18  Jim Meyering  <meyering@lucent.com>
122699         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
122700         (jm_PREREQ): Use it.
122702 2000-04-18  Jim Meyering  <meyering@lucent.com>
122704         * lib/README: New file.
122706         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
122707         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
122709 2000-04-17  Jim Meyering  <meyering@lucent.com>
122711         Get it right :-)
122712         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
122713         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
122714         Suggestion from Akim Demaille.
122716 2000-04-17  Jim Meyering  <meyering@lucent.com>
122718         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
122719         the definition of it to rpl_strftime also defined-away the system's
122720         declaration.
122722 2000-04-15  Jim Meyering  <meyering@lucent.com>
122724         Use `C' to denote so-called `contiguous' files, the same way
122725         that tar does.
122726         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
122727         (ftypelet): Use S_ISCTG.
122728         From Michael Deutschmann.
122730 2000-04-14  Jim Meyering  <meyering@lucent.com>
122732         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
122733         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
122734         clobbered.
122736 2000-04-14  Jim Meyering  <meyering@lucent.com>
122738         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
122740 2000-04-13  Jim Meyering  <meyering@lucent.com>
122742         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
122743         AH_VERBATIM to insert required #ifndef into config.h.in.
122744         Suggestion from Akim Demaille.
122746 2000-04-12  Jim Meyering  <meyering@lucent.com>
122748         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
122749         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
122750         Christian Krackowizer.
122752         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
122753         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
122754         (AC_SYS_LARGEFILE): Require.
122755         (AM_C_PROTOTYPES): Require.
122757 2000-04-08  Jim Meyering  <meyering@lucent.com>
122759         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
122760         names don't conflict.  Reported by Eli Zaretskii.
122762 2000-04-07  Jim Meyering  <meyering@lucent.com>
122764         * lib/putenv.c: Move inclusion of errno.h so it follows that of
122765         sys/types.h, to work around system header problems on AIX 3.2.5.
122766         From Bruno Haible.
122768 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
122770         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
122771         bug.  Deal with the different error behavior of Irix iconv.
122773 2000-04-05  Paul Eggert  <eggert@twinsun.com>
122775         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
122776         IRIX if the installer said otherwise.
122778 2000-04-05  Jim Meyering  <meyering@lucent.com>
122780         Portability tweaks required for ultrix4.3.
122781         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
122782         (jm_CHECK_DECLS): Add getutent to the list of functions.
122783         (_jm_DECL_HEADERS): Add utmpx.h.
122784         From John David Anglin.
122786         * m4/strftime.m4: Back out the 2000-04-02 change.
122787         Instead of that change, simply undefine putenv in the test program.
122789 2000-04-05  Jim Meyering  <meyering@lucent.com>
122791         Portability tweaks required for ultrix4.3.
122792         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
122793         getutent.
122794         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
122795         * lib/canon-host.c: Declare strdup.
122796         * lib/path-concat.c: Likewise.
122797         From John David Anglin.
122799 2000-04-04  Jim Meyering  <meyering@lucent.com>
122801         Be more DOS 8.3-friendly.
122802         * lib/ref-add.sin: Renamed from ref-add.sed.in.
122803         * lib/ref-del.sin: Renamed from ref-del.sed.in.
122804         * lib/Makefile.am: Reflect renaming.
122805         Reported by Eli Zaretskii.
122807         Use a temporary file name that won't clash with `charset.alias'
122808         in the DOS 8.3 name space.
122809         * lib/Makefile.am (charset_tmp): Define.
122810         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
122811         (uninstall-local): Likewise.
122812         Reported by Eli Zaretskii.
122814 2000-04-03  Jim Meyering  <meyering@lucent.com>
122816         * m4/gettext.m4: Fix typo in comment.
122818         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
122819         textutils/configure.in).  Suggestion from Paul Eggert.
122820         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
122822 2000-04-02  Paul Eggert  <eggert@twinsun.com>
122824         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
122825         variable in the shell rather than using putenv, which isn't
122826         portable.  This avoids the configure-time inter-test dependency
122827         on the potentially-renamed putenv function.
122829 2000-03-30  Paul Eggert  <eggert@twinsun.com>
122831         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
122832         before checking struct stat.st_blksize, so that
122833         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
122835 2000-03-29  Paul Eggert  <eggert@twinsun.com>
122837         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
122838         since strftime.c uses HAVE_STRFTIME to decide whether to use
122839         the underlying strftime.
122841 2000-03-29  Paul Eggert  <eggert@twinsun.com>
122843         * lib/time/strftime.c (my_strftime): Make sure we call the system
122844         strftime, not ourselves, when invoking the underlying strftime.
122846 2000-03-24  Jim Meyering  <meyering@lucent.com>
122848         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
122849         (charset_alias): Define.
122850         (install-exec-local): Factor out common code.
122851         (uninstall-local): Split lines longer than 80.
122852         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
122853         (SUFFIXES): Define.
122854         (.sed.in.sed): New rule.  Don't redirect directly to $@.
122855         (CLEANFILES): Add ref-add.sed and ref-del.sed.
122857 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
122859         * lib/config.charset: Output a line containing "Packages using this
122860         file".
122861         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
122862         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
122863         ref-del.sed): New rules.
122865 2000-03-17  Jim Meyering  <meyering@lucent.com>
122867         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
122868         Otherwise, include <strings.h>
122870 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
122872         * lib/unicodeio.c (utf8_wctomb): New function.
122873         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
122874         format instead of in UCS-4 with platform dependent endianness.
122876 2000-03-10  Jim Meyering  <meyering@lucent.com>
122878         * m4/lib-check.m4: Look for getspnam in -lgen, too.
122879         From Marco Franzen.
122881 2000-03-07  Paul Eggert  <eggert@twinsun.com>
122883         * lib/savedir.c (savedir): Work even if directory size is
122884         negative; this can happen with some screwy NFS configurations.
122886 2000-03-06  Jim Meyering  <meyering@lucent.com>
122888         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
122889         if it's NULL (because we ran out of memory).  From Bruno Haible.
122891 2000-03-05  Jim Meyering  <meyering@lucent.com>
122893         * lib/localcharset.c ("path-concat.h"): Include.
122894         (get_charset_aliases): Use path_concat instead of ANSI string
122895         concatenation.
122897         * lib/unicodeio.h (PARAMS): Define.
122898         Use it to guard prototype.
122900 2000-03-04  Jim Meyering  <meyering@lucent.com>
122902         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
122903         for lib/localcharset.c.
122905 2000-03-04  Jim Meyering  <meyering@lucent.com>
122907         * lib/Makefile.am (install-exec-local): Create $(libdir) before
122908         installing into it.
122909         (uninstall-local): Uncomment this rule so `make distcheck' works
122910         once again.
122912         * lib/unicodeio.c (<errno.h>): Include it.
122913         (errno): Declare if not defined.
122915         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
122917         * lib/config.charset: New version, incorporating remarks from a linux
122918         i18n mailing list.  From Bruno Haible.
122920 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
122922         * m4/codeset.m4: New file.
122923         * m4/iconv.m4: New file.
122924         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
122926 2000-03-03  Jim Meyering  <meyering@lucent.com>
122928         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
122930 2000-03-02  Jim Meyering  <meyering@lucent.com>
122932         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
122933         the messages come out on separate lines.
122935         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
122936         rather than jm_CHECK_DECLARATIONS.
122937         * m4/decl.m4: Remove now-unused file.
122939         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
122940         geteuid.
122942 2000-03-02  Jim Meyering  <meyering@lucent.com>
122944         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
122946 2000-03-01  Jim Meyering  <meyering@lucent.com>
122948         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
122949         * lib/unicodeio.c: Likewise.
122951 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
122953         * lib/config.charset: New file.
122954         * lib/localcharset.c: New file.
122955         * lib/unicodeio.h, lib/unicodeio.c: New files.
122956         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
122957         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
122958         (noinst_HEADERS): Add unicodeio.h.
122959         (all-local, install-exec-local, charset.alias): New targets.
122961 2000-02-28  Paul Eggert  <eggert@twinsun.com>
122963         * lib/quotearg.c (ALERT_CHAR): New macro.
122964         (quotearg_buffer_restyled): Use it.
122966 2000-02-27  Jim Meyering  <meyering@lucent.com>
122968         * m4/check-decl.m4: Add getenv to the list.
122970 2000-02-27  Jim Meyering  <meyering@lucent.com>
122972         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
122973         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
122975         * lib/backupfile.c: Guard inclusion of stdlib.h with
122976         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
122977         Declare malloc if needed.
122979         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
122980         `#ifndef HAVE_DECL..'
122981         now that autoconf always defines the HAVE_DECL_ symbols.
122982         * lib/human.c: Likewise.
122983         * lib/same.c: Likewise.
122984         * lib/strtoumax.c: Likewise.
122986         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
122987         declaration check was not run.
122988         * lib/hash.c: Likewise.
122989         * lib/human.c: Likewise.
122990         * lib/same.c: Likewise.
122991         * lib/strtoumax.c: Likewise.
122993         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
122994         `.', then first look up the entire `.'-containing string as a login
122995         name.
122997 2000-02-23  Jim Meyering  <meyering@lucent.com>
122999         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
123000         in place of my hack.
123002 2000-02-18  Paul Eggert  <eggert@twinsun.com>
123004         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
123005         (textint): New typedef.
123006         (parser_control): Member year changed from int to textint.
123007         All uses changed.
123008         (YYSTYPE): Removed; replaced by %union with int and textint members.
123009         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
123010         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
123011         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
123012         (tSNUMBER, tUNUMBER): Now of type <textintval>.
123013         (date, number, to_year): Use width of number in digits, not its value,
123014         to determine whether it's a 2-digit year, or a 2-digit time.
123015         (yylex): Store number of digits of numeric tokens.
123016         Reported by John Kendall.
123018         (parser_control): Changed from struct parser_control to typedef (for
123019         consistency).  All uses changed.
123021         (tID): Removed; not used.
123022         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
123024 2000-02-14  Paul Eggert  <eggert@twinsun.com>
123026         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
123027         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
123029 2000-02-12  Jim Meyering  <meyering@lucent.com>
123031         * lib/userspec.c (ISDIGIT): Define it.
123032         (isdigit): Remove definition.
123033         (is_number): Use ISDIGIT, not isdigit.
123034         <libintl.h>: Include.
123035         (_ and N_): Define.
123036         (parse_user_spec): Mark translatable strings.
123038 2000-02-10  Jim Meyering  <meyering@lucent.com>
123040         With these changes, nanosleep.[ch] are finally enough like the other
123041         lib/* replacement files to compile on a few more losing systems.
123043         * lib/nanosleep.h: Don't include config.h.
123044         Remove prototype from declaration of nanosleep.
123045         (PARAMS): Remove now-unneeded definition.
123046         * lib/nanosleep.c: #undef nanosleep.
123047         (rpl_nanosleep): Rename from nanosleep.
123049 2000-02-10  Jim Meyering  <meyering@lucent.com>
123051         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
123052         gnu_nanosleep to rpl_nanosleep.
123054 2000-02-09  Jim Meyering  <meyering@lucent.com>
123056         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
123057         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
123059 2000-02-08  Akim Demaille  <akim@epita.fr>
123061         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
123062         `[' and `]' and remove uses of `changequote'.
123063         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
123064         (AC_SYS_LARGEFILE): Likewise.
123065         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
123066         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
123067         of changequote.
123068         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
123069         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
123070         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
123071         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
123073 2000-02-05  Jim Meyering  <meyering@lucent.com>
123075         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
123076         Remove explicit use of AC_HEADER_TIME.  It is required by
123077         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
123078         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
123079         in autoconf whereby the expansion of the latter ended up preceding
123080         the expansion of its prerequisite, AC_HEADER_TIME.
123081         Reported by Volker Borchert.
123083 2000-02-03  Jim Meyering  <meyering@lucent.com>
123085         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
123087 2000-02-03  Jim Meyering  <meyering@lucent.com>
123089         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
123090         rather than with `#if HAVE_UTMPNAME'.
123092 2000-02-02  Jim Meyering  <meyering@lucent.com>
123094         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
123095         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
123096         Reported by Eli Zaretskii.
123098 2000-02-01  Jim Meyering  <meyering@lucent.com>
123100         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
123102 2000-01-31  Jim Meyering  <meyering@lucent.com>
123104         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
123105         functions.  Add the time.h and sys/time.h headers along with the
123106         AC_REQUIRE'ment of AC_HEADER_TIME.
123108 2000-01-31  Jim Meyering  <meyering@lucent.com>
123110         * lib/nanosleep.h (nanosleep): Guard declaration with
123111         `#if ! HAVE_DECL_NANOSLEEP'.
123112         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
123113         the declaration in that vendor's sys/timers.h.
123114         Reported by Christian Krackowizer.
123116         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
123117         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
123118         (ISPRINT): Likewise.
123119         Reported by Tom Tromey.
123121 2000-01-30  Jim Meyering  <meyering@lucent.com>
123123         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
123125         * m4/prereq.m4 (utmp_includes): Define.
123126         Check for ut_user and ut_name members in both struct utmpx
123127         and struct utmp.
123129 2000-01-30  Jim Meyering  <meyering@lucent.com>
123131         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
123132         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
123133         header files where only utmpx.ut_user is declared.
123135         * lib/readutmp.h (UT_USER): Define.
123137 2000-01-29  Jim Meyering  <meyering@lucent.com>
123139         * m4/lib-check.m4: New file containing library-related checks from
123140         fileutils and sh-utils (textutils had none).
123142 2000-01-28  Jim Meyering  <meyering@lucent.com>
123144         * m4/perl.m4: Change format of warning message to look more like that
123145         from the missing script.  Suggestion from François Pinard.
123147 2000-01-25  Jim Meyering  <meyering@lucent.com>
123149         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
123150         well as time.h in the compile check.
123151         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
123152         Fix typo in cross-compiling case: s/yes/no/.
123154 2000-01-23  Jim Meyering  <meyering@lucent.com>
123156         * m4/jm-macros.m4: Move df-related tests here from
123157         fileutils/configure.in
123159         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
123160         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
123162         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
123163         s/space/ac_fsusage_space/.
123164         (jm_FILE_SYSTEM_USAGE): Take two parameters.
123166         * m4/ftruncate.m4: New file (derived from part of
123167         fileutils/configure.in).
123168         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
123169         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
123171         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
123172         AC_SUBST these here, rather than just in sh-util/configure.in, so
123173         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
123174         all the same.
123175         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
123176         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
123177         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
123178         (AC_SUBST(POW_LIBM)): Likewise.
123179         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
123181 2000-01-23  Jim Meyering  <meyering@lucent.com>
123183         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
123184         obstack.c.
123186 2000-01-22  Jim Meyering  <meyering@lucent.com>
123188         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
123190         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
123192         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
123193         configure.in
123194         (AC_CHECK_HEADERS): Likewise for sh-utils.
123195         (AC_CHECK_HEADERS): Likewise for textutils.
123196         Merge the three lists of headers.
123198         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
123199         from fileutils' configure.in.
123201         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
123202         code. Moved tests into their own function (_jm_DECL_HEADERS) in
123203         check-decl.m4.
123205         * m4/check-decl.m4: Use #if rather than #ifdef.
123206         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
123207         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
123208         (_jm_DECL_HEADERS): Define new function.
123209         (jm_CHECK_DECLARATIONS): Require it.
123211 2000-01-22  Jim Meyering  <meyering@lucent.com>
123213         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
123214         [! HAVE_DECL_STRTOULL]: Declare strtoull.
123215         Required for some AIX systems.  Reported by Christian Krackowizer.
123216         [TESTING] (main): New function.
123218         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
123219         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
123220         letters.
123222         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
123223         iswprint.
123225         * lib/strverscmp.c (ISDIGIT): Define.
123226         (strverscmp): Use ISDIGIT, not isdigit.
123228 2000-01-19  Jim Meyering  <meyering@lucent.com>
123230         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
123231         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
123232         defines `struct timespec' in <sys/time.h>
123234         * m4/c-bs-a.m4: Remove uses of changequote altogether.
123235         Thanks to Akim for explaining.
123237 2000-01-17  Paul Eggert  <eggert@twinsun.com>
123239         * lib/nanosleep.c (nanosleep):
123240         Don't use SA_INTERRUPT to decide whether to call sigaction, as
123241         POSIX.1 doesn't require SA_INTERRUPT and some systems
123242         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
123243         it's been part of POSIX.1 since day 1 (in 1988).
123245 2000-01-17  Jim Meyering  <meyering@lucent.com>
123247         * lib/interlock: Remove unused file.  Reported by François Pinard.
123249 2000-01-16  Paul Eggert  <eggert@twinsun.com>
123251         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
123252         alert, backslash, formfeed, and vertical tab unnecessarily in
123253         shell quoting style.
123255 2000-01-16  Jim Meyering  <meyering@lucent.com>
123257         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
123258         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
123259         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
123260         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
123262 2000-01-16  Jim Meyering  <meyering@lucent.com>
123264         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
123265         because the latter didn't work.
123267 2000-01-15  Jim Meyering  <meyering@lucent.com>
123269         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
123270         (AC_REPLACE_FUNCS): Add memcpy and memset.
123271         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
123272         Add strpbrk.
123273         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
123275 2000-01-12  Jim Meyering  <meyering@lucent.com>
123277         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
123278         (jm_PREREQ): Use it.
123279         (jm_PREREQ_READUTMP): New macro.
123280         (jm_PREREQ): Use it.
123282 2000-01-11  Paul Eggert  <eggert@twinsun.com>
123284         Quote multibyte characters correctly.
123285         * m4/c-bs-a.m4: New file.
123286         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
123287         (jm_PREREQ): Use it.
123289 2000-01-11  Paul Eggert  <eggert@twinsun.com>
123291         * m4/uintmax_t.m4: Port to autoconf 2.13.
123293 2000-01-08  Jim Meyering  <meyering@ascend.com>
123295         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
123296         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
123298 2000-01-04  Jim Meyering  <meyering@ascend.com>
123300         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
123301         jm_STRUCT_DIRENT_D_TYPE.
123302         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
123303         jm_STRUCT_DIRENT_D_INO.
123304         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
123305         jm_STRUCT_UTIMBUF.
123306         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
123307         renamings.
123308         * m4/utime.m4: Likewise.
123310         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
123311         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
123313 2000-01-03  Paul Eggert  <eggert@twinsun.com>
123315         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
123316         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
123318 2000-01-02  Jim Meyering  <meyering@ascend.com>
123320         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
123321         remember if this is necessary.
123323 1999-12-26  Jim Meyering  <meyering@ascend.com>
123325         * m4/jm-macros.m4: Use it here.
123326         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
123328 1999-12-23  Jim Meyering  <meyering@ascend.com>
123330         * m4/jm-macros.m4: Check for clock_gettime (moved from
123331         fileutils/configure.in)
123332         Check for gettimeofday.
123334 1999-12-20  Jim Meyering  <meyering@ascend.com>
123336         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
123337         autoconf-2.14a-1999-12-20.
123339 1999-12-19  Jim Meyering  <meyering@ascend.com>
123341         * m4/lstat-slash.m4: New file.
123342         * m4/jm-macros.m4: Use the new macro:
123343         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
123345 1999-12-07  Jim Meyering  <meyering@ascend.com>
123347         * m4/perl.m4: Require that File::Compare be available, too.
123348         Too many systems seem to lack it.
123350         * m4/strftime.m4: Add checks for most of the cpp macros tested in
123351         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
123353 1999-11-18  Paul Eggert  <eggert@twinsun.com>
123355         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
123356         problem with the QNX 4.25 shell, which doesn't propagate exit
123357         status of failed commands inside shell assignments.
123359 1999-11-17  Jim Meyering  <meyering@ascend.com>
123361         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
123363 1999-11-07  Jim Meyering  <meyering@ascend.com>
123365         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
123367 1999-11-06  Jim Meyering  <meyering@ascend.com>
123369         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
123370         * m4/jm-macros.m4 (jm_MACROS): Use it here.
123372 1999-11-05  Jim Meyering  <meyering@ascend.com>
123374         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
123375         configure.in of textutils, fileutils, and sh-utils into this one
123376         (shared between those packages) file.
123377         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
123378         AC_STRUCT_ST_BLKSIZE.
123380 1999-11-03  Jim Meyering  <meyering@ascend.com>
123382         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
123383         of AC_CHECK_TYPE checks includes unistd.h.
123384         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
123385         Suggestion from Akim Demaille.
123387 1999-10-30  Jim Meyering  <meyering@ascend.com>
123389         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
123390         m4-quoted string.
123391         * m4/ls-mntd-fs.m4: Likewise.
123392         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
123393         * m4/jm-winsz1.m4: Likewise.
123395         * m4/const.m4: Remove file, since the fix made it into the experimental
123396         version of autoconf.
123397         * m4/mktime.m4: Likewise.
123399         * m4/check-type.m4: Remove file, now that the latest version of
123400         AC_CHECK_TYPE takes a third arg to specify additional #includes.
123402         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
123403         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
123404         AC_CHECK_TYPE.
123406 1999-10-04  Jim Meyering  <meyering@ascend.com>
123408         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
123410 1999-09-22  Paul Eggert  <eggert@twinsun.com>
123412         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
123413         2.95.1 bug with HP-UX 10.20.
123415 1999-09-17  Jim Meyering  <meyering@ascend.com>
123417         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
123418         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
123419         due to missing strdup (against sh-utils-2.0).
123421 1999-08-29  Jim Meyering  <meyering@ascend.com>
123423         * m4/jm-macros.m4: Require jm_BISON.
123424         * m4/bison.m4: New file.
123426 1999-08-17  Paul Eggert  <eggert@twinsun.com>
123428         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
123429         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
123431 1999-08-05  Jim Meyering  <meyering@ascend.com>
123433         * m4/getline.m4: Rename test file from conftestdata to conftest.data
123434         to avoid conflicts with `conftest' on 8+3 filesystems.
123435         Suggestion from Eli Zaretskii.
123437 1999-08-04  Jim Meyering  <meyering@ascend.com>
123439         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
123440         fileutils and sh-utils (textutils's getline test was inadequate).
123441         (AM_FUNC_GETLINE): Run this test.
123442         (AC_CHECK_FUNCS): Check for getdelim.
123443         Reported by Bob Proulx.
123445 1999-08-02  Jim Meyering  <meyering@ascend.com>
123447         * m4/jm-macros.m4: Add a comment.
123449 1999-08-01  Paul Eggert  <eggert@twinsun.com>
123451         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
123452         <inttypes.h> defines strtoumax as a macro (and not as a
123453         function).
123455 1999-08-01  Paul Eggert  <eggert@twinsun.com>
123457         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
123458         that we can shift, multiply and divide unsigned long long
123459         values; Ultrix cc can't do it.
123461 1999-08-01  Paul Eggert  <eggert@twinsun.com>
123463         * m4/mktime.m4: New file, which is a preview of what should appear
123464         in the next public autoconf release.
123466 1999-08-01  Paul Eggert  <eggert@twinsun.com>
123468         * m4/lfs.m4: Remove this file.
123469         * m4/largefile.m4: New file.  It contains the old contents of
123470         lfs.m4, except that all names with prefix AC_LFS have been
123471         changed to use the prefix AC_SYS_LARGEFILE instead, to be
123472         compatible with future autoconf versions.  Also, some minor m4
123473         quoting problems have been fixed.
123475 1999-08-01  Paul Eggert  <eggert@twinsun.com>
123477         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
123478         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
123479         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
123480         and simplify the shell code.
123482 1999-08-01  Jim Meyering  <meyering@ascend.com>
123484         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
123485         m4.
123487 1999-07-20  Jim Meyering  <meyering@ascend.com>
123489         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
123491 1999-07-15  Jim Meyering  <meyering@ascend.com>
123493         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
123495 1999-05-22  Jim Meyering  <meyering@ascend.com>
123497         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
123499 1999-05-20  Jim Meyering  <meyering@ascend.com>
123501         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
123502         Add a colon after each `then' in case $4 is empty.
123504 1999-05-16  Jim Meyering  <meyering@ascend.com>
123506         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
123508 1999-05-10  Jim Meyering  <meyering@ascend.com>
123510         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
123512         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
123513         AC_FUNC_MKTIME.
123515 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
123517         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
123519 1999-05-04  Paul Eggert  <eggert@twinsun.com>
123521         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
123522         not CPPFLAGS, so that linking works correctly in IRIX.
123524 1999-04-30  Paul Eggert  <eggert@twinsun.com>
123526         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
123528 1999-04-20  Paul Eggert  <eggert@twinsun.com>
123530         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
123531         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
123532         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
123533         jm_AC_TYPE_UNSIGNED_LONG_LONG.
123534         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
123536         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
123538 1999-04-20  Jim Meyering  <meyering@ascend.com>
123540         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
123541         AC_REPLACE xstroull if necessary.  From Paul Eggert.
123542         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
123544 1999-04-18  Jim Meyering  <meyering@ascend.com>
123546         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
123547         * m4/jm-macros.m4: Use it.
123549 1999-04-06  Jim Meyering  <meyering@ascend.com>
123551         * m4/strftime.m4: Remove test for %f.
123553 1999-03-29  Jim Meyering  <meyering@ascend.com>
123555         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
123556         superset of the AC_TYPE_* checks in the textutils, fileutils,
123557         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
123558         AC_TYPE_PID_T.
123560 1999-03-28  Jim Meyering  <meyering@ascend.com>
123562         * m4/jm-macros.m4: Define GNU_PACKAGE here.
123563         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
123564         replaced e.g., in the *.sh files of the sh-utils.
123566 1999-03-20  Jim Meyering  <meyering@ascend.com>
123568         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
123569         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
123570         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
123572 1999-03-19  Jim Meyering  <meyering@ascend.com>
123574         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
123576 1999-03-12  Jim Meyering  <meyering@ascend.com>
123578         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
123580 1999-03-07  Jim Meyering  <meyering@ascend.com>
123582         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
123583         declared.
123585 1999-02-17  Jim Meyering  <meyering@ascend.com>
123587         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
123588         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
123590 1999-02-07  Jim Meyering  <meyering@ascend.com>
123592         * m4/group-member.m4: New file -- extracted from sh-utils'
123593         configure.in.
123595         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
123596         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
123598 1999-02-06  Jim Meyering  <meyering@ascend.com>
123600         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
123601         * m4/fnmatch.m4: Likewise.
123602         * m4/getgroups.m4: Likewise.
123603         * m4/lstat.m4: Likewise.
123604         * m4/malloc.m4: Likewise.
123605         * m4/putenv.m4: Likewise.
123606         * m4/realloc.m4: Likewise.
123607         * m4/regex.m4: Likewise.
123608         * m4/stat.m4: Likewise.
123609         * m4/strftime.m4: Likewise.
123610         Suggestion from Alain Magloire.
123612         * m4/chown.m4: Use `.$ac_objext', not `.o'.
123613         * m4/fnmatch.m4: Likewise.
123614         * m4/getgroups.m4: Likewise.
123615         * m4/getline.m4: Likewise.
123616         * m4/lstat.m4: Likewise.
123617         * m4/malloc.m4: Likewise.
123618         * m4/memcmp.m4: Likewise.
123619         * m4/putenv.m4: Likewise.
123620         * m4/realloc.m4: Likewise.
123621         * m4/regex.m4: Likewise.
123622         * m4/stat.m4: Likewise.
123623         * m4/strftime.m4: Likewise.
123624         Suggestion from Alain Magloire.
123626         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
123627         an argument.
123629         * m4/regex.m4: Add a run-time Test for proper operation of
123630         re_compile_pattern.
123632 1999-01-31  Jim Meyering  <meyering@ascend.com>
123634         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
123636 1999-01-30  Jim Meyering  <meyering@ascend.com>
123638         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
123640         * m4/jm-mktime.m4: Make this a wrapper around the official
123641         AM_FUNC_MKTIME rather than my private copy, now that the official one
123642         is up to date.
123643         * m4/mktime.m4: Remove file.
123645         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
123646         * m4/uptime.m4: Likewise.
123647         * m4/uintmax_t.m4: Likewise.
123649 1999-01-28  Jim Meyering  <meyering@ascend.com>
123651         * m4/jm-macros.m4: Use jm_AFS.
123652         * m4/afs.m4: New file (from fileutils' configure.in).
123654         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
123655         * m4/chown.m4: Likewise.
123656         * m4/d-ino.m4: Likewise.
123657         * m4/d-type.m4: Likewise.
123658         * m4/fnmatch.m4: Likewise.
123659         * m4/getgroups.m4: Likewise.
123660         * m4/gettext.m4: Likewise.
123661         * m4/jm-mktime.m4: Likewise.
123662         * m4/jm-winsz2.m4: Likewise.
123663         * m4/lcmessage.m4: Likewise.
123664         * m4/ls-mntd-fs.m4: Likewise.
123665         * m4/malloc.m4: Likewise.
123666         * m4/memcmp.m4: Likewise.
123667         * m4/putenv.m4: Likewise.
123668         * m4/realloc.m4: Likewise.
123669         * m4/st_mtim.m4: Likewise.
123670         * m4/strftime.m4: Likewise.
123672 1999-01-16  Jim Meyering  <meyering@ascend.com>
123674         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
123675         (ARGMATCH_DIE_DECL): Define.
123677 1999-01-12  Jim Meyering  <meyering@ascend.com>
123679         * m4/Makefile.am.in: Rewrite to avoid using fmt.
123680         Reported by Lars Hecking.
123682 1999-01-10  Jim Meyering  <meyering@ascend.com>
123684         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
123685         gross kludge.
123686         * m4/inttypes_h.m4: Likewise.
123687         * m4/lstat.m4: Likewise.
123688         * m4/malloc.m4: Likewise.
123689         * m4/readdir.m4: Likewise.
123690         * m4/realloc.m4: Likewise.
123691         * m4/st_dm_mode.m4: Likewise.
123692         * m4/stat.m4: Likewise.
123693         * m4/utimbuf.m4: Likewise.
123694         * m4/utimes.m4: Likewise.
123696         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
123697         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
123698         comments in config.h.in are meaningful.
123700         * m4/jm-macros.m4: Require autoconf-2.13 here.
123702         * m4/regex.m4: By default, don't use the included regex.c on systems
123703         with glibc 2.  Suggestion from Uli Drepper.
123705 1999-01-02  Jim Meyering  <meyering@ascend.com>
123707         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
123709 1998-12-18  Jim Meyering  <meyering@ascend.com>
123711         * m4/Makefile.am.in (Makefile.am): Simplify rule.
123712         Based on a suggestion from Lars Hecking.
123714 1998-11-16  Paul Eggert  <eggert@twinsun.com>
123716         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
123718 1998-11-16  Jim Meyering  <meyering@ascend.com>
123720         * m4/lfs.m4: Double-quote the `uname...` expression.
123722 1998-11-14  Jim Meyering  <meyering@ascend.com>
123724         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
123725         * m4/stat.m4: Likewise.
123727 1998-11-03  Jim Meyering  <meyering@ascend.com>
123729         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
123730         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
123732 1998-10-18  Jim Meyering  <meyering@ascend.com>
123734         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
123736 1998-10-17  Jim Meyering  <meyering@ascend.com>
123738         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
123739         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
123740         calls for those previously hard-coded headers.  Instead, take a new
123741         parameter.
123742         (jm_CHECK_DECLARATIONS): Reflect interface change.
123743         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
123744         (jm_CHECK_DECL_LOCALTIME_R): New macro.
123746         * m4/mktime.m4: Test for spring-forward gap before long-running test.
123748 1998-10-14  Jim Meyering  <meyering@ascend.com>
123750         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
123751         instead of "TZ=America/Vancouver".  From Paul Eggert.
123753 1998-10-11  Jim Meyering  <meyering@ascend.com>
123755         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
123756         This adds a test for a recently added compatibility fix for mktime.c.
123757         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
123759 1998-09-27  Jim Meyering  <meyering@ascend.com>
123761         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
123763         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
123764         ../configure.in, including a change from Gordon Matzigkeit to allow
123765         cross-compiling for the Hurd.
123767         * m4/glibc.m4: New file/macro to test for the GNU C Library
123768         versions 1 and 2.  From Gordon Matzigkeit.
123769         Indent.
123771 1998-09-21  Jim Meyering  <meyering@ascend.com>
123773         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
123775 1998-08-18  Paul Eggert  <eggert@twinsun.com>
123777         Port nanosecond-resolution times to UnixWare 2.1.2 and
123778         pedantic Solaris 2.6.
123780         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
123781         AC_STRUCT_ST_MTIM.
123782         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
123783         Generate name of ns member, instead of just 1 or undef.
123784         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
123786 1998-08-15  Jim Meyering  <meyering@ascend.com>
123788         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
123789         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
123790         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
123791         instead of jm_TYPE_SSIZE_T.
123793 1998-08-12  Jim Meyering  <meyering@ascend.com>
123795         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
123797 1998-08-02  Jim Meyering  <meyering@ascend.com>
123799         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
123800         in acconfig.h manually.
123802 1998-07-31  Paul Eggert  <eggert@twinsun.com>
123804         * m4/st_mtim.m4: New file.
123806 1998-07-28  Jim Meyering  <meyering@ascend.com>
123808         * m4/utimes.m4: Undef stat.
123810 1998-07-25  Jim Meyering  <meyering@ascend.com>
123812         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
123813         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
123815 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
123817         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
123818         uid and gid actually remain unchanged.
123820 1998-07-07  Jim Meyering  <meyering@ascend.com>
123822         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
123824 1998-07-04  Jim Meyering  <meyering@ascend.com>
123826         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
123827         to prove that this macro can be used in packages without regex.c.
123829 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
123831         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
123832         is to be used.
123834 1998-07-03  Jim Meyering  <meyering@ascend.com>
123836         * m4/gettext.m4: Add -lintl if it's found to be necessary.
123838         * m4/gettext.m4: New file -- from gettext-0.10.35.
123839         * m4/lcmessage.m4: Likewise.
123840         * m4/progtest.m4: Likewise.
123842         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
123843         * m4/jm-macros.m4: Require the new macro.
123845 1998-06-29  Jim Meyering  <meyering@ascend.com>
123847         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
123848         for the definition of NGROUPS (used in a system header included
123849         by sys/mount.h).
123851 1998-06-28  Jim Meyering  <meyering@ascend.com>
123853         * m4/ls-mntd-fs.m4: New file.
123854         * m4/fstypename.m4: New file.
123856         * m4/jm-macros.m4: Require the new macro.
123857         * m4/jm-glibc-io.m4: New file.
123859 1998-05-19  Jim Meyering  <meyering@ascend.com>
123861         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
123862         * m4/lchown.m4: New file.
123864         * m4/Makefile.am.in: New file.
123865         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
123867 1998-05-14  Jim Meyering  <meyering@ascend.com>
123869         * m4/Makefile.am (EXTRA_DIST): Add them.
123870         * m4/jm-macros.m4: New file.
123871         * m4/utimbuf.m4: New file.
123873 1998-05-12  Jim Meyering  <meyering@ascend.com>
123875         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
123877 1998-05-11  Jim Meyering  <meyering@ascend.com>
123879         * m4/isc-posix.m4: New file.
123881 1998-05-10  Jim Meyering  <meyering@ascend.com>
123883         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
123885 1998-05-09  Jim Meyering  <meyering@ascend.com>
123887         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
123888         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
123889         with automake.
123891         * m4/ssize_t.m4: New file.
123892         * m4/mktime.m4: Remove file -- the new automake has this now.
123894 1998-04-26  Jim Meyering  <meyering@ascend.com>
123896         * m4/assert.m4: New file.
123897         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
123899 1998-04-05  Jim Meyering  <meyering@ascend.com>
123901         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
123902         (jm_PREREQ): Use it here.
123904 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
123906         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
123907         in acconfig.h.
123909 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
123911         * m4/prereq.m4: New file.
123912         * m4/error.m4: New file.
123913         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
123915 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
123917         * m4/getline.m4: Don't set am_cv_func_working_getline before the
123918         cache-check for the same variable -- that defeated the purpose of
123919         the test; the test program was never run.  This was a problem only
123920         on systems with losing getline functions -- HP-UX 10.20 is one.
123921         Reported by Bjorn Helgaas.
123923 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
123925         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
123927 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
123929         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
123931         * m4/const.m4: New file.  Use an initializer in this declaration
123932         typedef int charset[2]; const charset x;
123933         Reported by Bob Glickstein.
123935 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
123937         * m4/chown.m4: Fix reversed types on -1 args to chown.
123938         From Kaveh Ghazi.
123940 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
123942         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
123943         Add lseek and memchr.
123945         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
123946         T.E.Dickey <dickey@clark.net> said that some older preprocessors
123947         have a 20-character limit on names.
123949 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
123951         * m4/inttypes_h.m4: New file.
123952         * m4/uintmax_t.m4: New file.
123953         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
123956         -----
123958         Local Variables:
123959         coding: utf-8
123960         End:
123962         Copyright (C) 1997-2019 Free Software Foundation, Inc.
123964         Copying and distribution of this file, with or without
123965         modification, are permitted provided the copyright notice
123966         and this notice are preserved.